Forms Data Controls :: Hit Counter Not Updating Except In Debug Mode?
Sep 13, 2010
I have a webcast site that lists them in a gridview. Users have two options, either play the video directly or go to a details page on it and play from there. When the user plays the video directly I need to update the count of how many times it has been viewed. When I run the page from my local machine in debug mode it correctly updates the counter. When I run the page regularly, both from my local machine and on the server it does not update the count, but it does open and play the video. It doesn't give any error messages in any method of running. The only difference between running it on my local machine vs production server is that I have to comment out the authentication code on my local machine. The authentication programming was created by someone else with far more knowledge and I only barely understand how it works. For that matter this site was originally created by that same person. He included the hit counter on the details page but forgot to add it on the front gridview page, so I'm modifying it based on his code on the second page.Important parts of code behind and part of the gridview listed below. Yes I know the means of creating the first connection string is bizarre. I think it has something to do with the authenticate files that makes it work. In the past it has always worked for all connections in code behind but for some reason wouldn't work in the btnPlay subroutine this time, hence the second connection string definition.
[Code]....
[Code]....
View 1 Replies
Similar Messages:
Jun 29, 2010
Is there a way to update a value in a gridview, by pressing a button that shows within the cell? For example, i have a really simple gridview showing supply levels, I havr the following SQL table:
ID = Int
PartNumber = varchar
Quantity = Int
I would like to be able to press a "Plus" or "Minus" button on the gridview next to the Quantity (in stock) value which updates the database and re binds the data to the gridview, but without going into edit mode.
View 9 Replies
Mar 17, 2011
Possible Duplicates: Debug/Release difference Performance differences between debug and release builds
What exactly is the different in compiling and running an asp.net/c# project in Debug mode VS Release Mode?
View 3 Replies
Aug 7, 2010
can i determine programmatically if im running my web project in debug mode or compiled?
or even better if im running it on my local machine or on a server? example to change the path for databases etc..
View 7 Replies
Sep 7, 2010
how can i tell the diffence between a website that has been published in release mode and the same website that was published in debug mode
View 4 Replies
Jan 7, 2011
is there a way to use sql server to debug locally and mysql onthe remote published version ? perhaps with web.config and AppSettings ?
View 3 Replies
May 18, 2010
I want to data bind jQuery Counter just like we do to Ajax Counter. Also I would like to know that do we have events for jQuery counter just like we have a tick event in Ajax Counter?
View 9 Replies
Jan 11, 2010
I am currently working on this situation that I could not find any other resources online to help me
Everything is working fine through VS2008 debug mode, or run without debugging ( database connectivity and everything works)but however when i copy the whole project and set up the IIS,
everything work except for database connectivity. I could not seems to read from the database which currently I am using a attached .mdf file
the error shown is as below :
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[Code]....
Source File: Signup.aspx.vb Line: 23 Stack Trace:
[Code]....
but however when i run on VS 2008, I am able to read the data from the database successfully,
View 4 Replies
Feb 23, 2010
On my web form, I have a RadioButtonList nested within a ListView as follows:
Nested RadioButtonList, and Inconsistency between Debug and Run without Debug
View 2 Replies
Jan 5, 2011
I dragged-and-dropped a few image buttons on my VB.net page. I put a break point on the AddButton Sub routine.
When I run debug and click the button it never picks up on the break point. What's up? Is there something about image buttons that I'm not aware of?
Example of one image button and click button sub:
[Code]....
[Code]....
Update: I've just now noticed that whenever I put a breakpoint anywhere in this project and run debug, it never executes the breakpoint at all. Do I need reinstall Visual Studio?
View 7 Replies
May 7, 2015
I have doubt in debug, What will be modified in web.config and cause any loss in data? As I am using without debugging till now.
View 1 Replies
Feb 27, 2010
I want to show some information on the tooltip of a label if the project runs in debug mode.
View 3 Replies
Mar 7, 2011
gaining mode changing for formview in VB.The problem is that, the current mode im using was ReadOnly, and i want to add some button so thatit could connect to Edit mode in the same formview.Is it necessary to add modechanging and modechanged in the back code?
View 2 Replies
May 21, 2010
I can't get to the breakpoint in the cobebehind file, the debug is enabled in web config and project properties.
View 3 Replies
Nov 29, 2010
I am using a gridview to display data and want to implement Edit, Update and Cancel in the GridView. Edit and Cancel are working fine but on update the Gridview isn't exiting out of the edit mode. I am using the gridview inside an UpdatePanel.
[Code]....
View 9 Replies
Jan 26, 2011
I have an asp.net application which works fine in debug mode but gives a error when i access the default.aspx
after deploying to IIS.
View 4 Replies
Jan 14, 2011
I have an ASP.NET 3.5 web application. For the application:
Configuration set to "DEBUG;
"Define DEBUG constant" checkbox is checked for "DEBUG" configuration;
web.config file contains 'true' as value for 'debug' attribute of 'compilation' node.
Nevertheless to everything the following code:
[code]....
put "DebugMode: False" into result string. In the same time I can't connect to the application with VisualStudio in debug mode...
Question:
how can I get real value of debugging mode?
View 2 Replies
Apr 15, 2010
In my Visual Studio 2005, I am getting Hexadecimal numbers when I do a quick watch at all the integers in debug mode.
I am using VB.NET. What settings need to be changed in order to view integer values in decimal number system?
View 1 Replies
Apr 30, 2010
My requirement is to check whether my application is in debug mode or release mode in DLL class.
View 6 Replies
Apr 19, 2010
Im using Visual Studio 2010 in Windows 7.
I got a problem regarding CSS in my pages. I managed to apply styles to my page using css and everything looks fine in the Design view. I ran it on IE8 and everything is working fine. Now after I returned to Visual Studio, added some rules to my CSS, and noticing that everything is working fine in the Design view, I ran it again in IE8 and nothing has changed. The rules I added was ignored and it looks the same. I ran it on Firefox and Google Chrome and it's working fine.
But if I ran my project in IE8 through IIS7.5, everything is working fine so it means, the problem is within visual studio 2010.
View 1 Replies
Mar 15, 2011
i wrote a sending email function that only works on my debug mode(debug local server) when i publishing and hosting C# code that function doesn't work. This is my email configuration function
<configuration>
<system.net>
<mailSettings>
<smtp from="admin@XXXX.com">
<network host="smtp.XXXXX.com" port="25"
userName="admin@XXXXX.com" password="XXXXX" />
</smtp>
</mailSettings>
</system.net>
<appSettings/>
<connectionStrings/>
<system.web>
View 1 Replies
Jan 19, 2011
any way to deploy code with both release and debug mode together. I know it is logically impossible.
My requirement is to deploy debug based aspx page(for temporary) in release mode build in prod.. the concept is to avoid to put full release build on production again & again.
View 2 Replies
Feb 22, 2011
I am using vs2008 sp1. I am building web site with aspx. I am also using an ajax control. My Site was working normally. I could run it from f5 and it would stop at a debug point. I added an additional aspx page. Then I got a strange error. When I pressed f5 a message box appeared saying that I had not made this version with the debug option. Then from reading an internect post I disabled only my code. That got rid of the message box error but now the debugger does not stop at any break point? Of course this happen when I need to go live with this project in a day.
View 1 Replies
Oct 29, 2010
We have a ASP .Net based web service setup and hosted on a IIS v6.0. We wish to turn on custom error and disable debug mode. I understand these can be accomplished by modifying the web.config and machine.config file. However, since web service does not have a UI...please let me know if the changes made to the config files will take into effect. The reason why we wish to do these changes is because, our external auditors have flagged these as a vulnerabiity.
View 3 Replies
Jan 11, 2010
I have an ASP.NET web application that takes user input across several forms. Sort of like a wizard. On the first form, the user enters information then clicks the "Next" button. In the Click event of the button I save some information to the Session object (via Properties in the Master page). I then Redirect to the next page. Here is an example of what I am doing:
protected void NextButton_Click(Object sender, EventArgs args)
{
//Go to the next form
Master.SessionVal1 = Value1;
Master.SessionVal2 = Value2;
Response.Redirect("~/TheNextPage.aspx", false);
}
In the MasterPage.cs..
public long Value1
{
get { return (long)Session["Value1"]; }
set { Session["Value1"] = value; }
}
public long Value2
{
get { return (long)Session["Value2"]; }
set { Session["Value2"] = value; }
}
Pretty basic stuff. When I run this in debug mode in VS2008 it works perfectly. When I push this to a test server (IIS7) I get NullReference exceptions when I try to access Value1, Value2, etc. which is stored in the Session object. UPDATE: I have discovered that if I migrate the code to one server I get the problem as described above. BUT, if I promote to another server it works as expected. Both servers are Windows Server 2008 with IIS7. I have looked at the application pool settings and the state management settings and I do not see any differences.
View 2 Replies