Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to pass values from textboxes on one page to a "another page" Pin
megivimal21-Jul-09 2:14
megivimal21-Jul-09 2:14 
GeneralRe: How to pass values from textboxes on one page to a "another page" Pin
Abhishek Sur21-Jul-09 2:36
professionalAbhishek Sur21-Jul-09 2:36 
AnswerRe: How to pass values from textboxes on one page to a "another page" Pin
Brij21-Jul-09 3:02
mentorBrij21-Jul-09 3:02 
QuestionData Storage in Windows Azure Tables Pin
NikosN21-Jul-09 1:39
NikosN21-Jul-09 1:39 
Questionproblem with GridView derived control selected items state maintainance set/reset Pin
VenkataRamana.Gali21-Jul-09 0:44
VenkataRamana.Gali21-Jul-09 0:44 
AnswerRe: problem with GridView derived control selected items state maintainance set/reset Pin
r a m e s h21-Jul-09 1:15
r a m e s h21-Jul-09 1:15 
AnswerRe: problem with GridView derived control selected items state maintainance set/reset Pin
Zafar A khan 21-Jul-09 1:44
professionalZafar A khan 21-Jul-09 1:44 
Questionhow to increment Application Object in Global.asax file Pin
QuickDeveloper21-Jul-09 0:17
QuickDeveloper21-Jul-09 0:17 
hi

i am using Application Object to count the number of users created for a webpage.I am using following code in C#:

1.       protected void Session_Start(object sender, EventArgs e)
2.      {
3.           int userCount=(int)(Application["userCount"]) ;
4.           Application["userCount"] = ++userCount;
5.       }



It gives error @ line 3 saying Object reference not set to an instance of an object. in WebPage.

how do i increment Application Object Value in Session_Start?

i tried
Application["userCount"] + =1
but it says Can't convert Int to Object type....

I am using VS 2008 /ASP.NET 3.5

thanx in advance..

"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"


AnswerRe: how to increment Application Object in Global.asax file Pin
Paddy Boyd21-Jul-09 0:18
Paddy Boyd21-Jul-09 0:18 
GeneralRe: how to increment Application Object in Global.asax file Pin
QuickDeveloper21-Jul-09 0:21
QuickDeveloper21-Jul-09 0:21 
GeneralRe: how to increment Application Object in Global.asax file Pin
Paddy Boyd21-Jul-09 0:23
Paddy Boyd21-Jul-09 0:23 
AnswerRe: how to increment Application Object in Global.asax file Pin
Abhijit Jana21-Jul-09 1:27
professionalAbhijit Jana21-Jul-09 1:27 
AnswerRe: how to increment Application Object in Global.asax file Pin
Abhishek Sur21-Jul-09 2:52
professionalAbhishek Sur21-Jul-09 2:52 
GeneralRe: how to increment Application Object in Global.asax file Pin
QuickDeveloper21-Jul-09 19:45
QuickDeveloper21-Jul-09 19:45 
QuestionIssue with HttpWebResponse Pin
dews turner21-Jul-09 0:13
dews turner21-Jul-09 0:13 
AnswerRe: Issue with HttpWebResponse Pin
N a v a n e e t h21-Jul-09 0:22
N a v a n e e t h21-Jul-09 0:22 
GeneralRe: Issue with HttpWebResponse Pin
dews turner21-Jul-09 1:48
dews turner21-Jul-09 1:48 
QuestionCrystal Report Binding To the Own Created DataSet Pin
HatakeKaKaShi21-Jul-09 0:13
HatakeKaKaShi21-Jul-09 0:13 
QuestionHow do i play audio stored in Database on my asp.net webpage Pin
DotNetCoderJunior20-Jul-09 23:51
DotNetCoderJunior20-Jul-09 23:51 
AnswerRe: How do i play audio stored in Database on my asp.net webpage Pin
Manas Bhardwaj20-Jul-09 23:58
professionalManas Bhardwaj20-Jul-09 23:58 
Questionmail from asp.net1.1 Pin
Kissy1620-Jul-09 23:47
Kissy1620-Jul-09 23:47 
AnswerRe: mail from asp.net1.1 Pin
Christian Graus20-Jul-09 23:50
protectorChristian Graus20-Jul-09 23:50 
GeneralRe: mail from asp.net1.1 Pin
Kissy1621-Jul-09 0:15
Kissy1621-Jul-09 0:15 
GeneralRe: mail from asp.net1.1 Pin
Manas Bhardwaj21-Jul-09 0:28
professionalManas Bhardwaj21-Jul-09 0:28 
AnswerRe: mail from asp.net1.1 Pin
Manas Bhardwaj21-Jul-09 0:04
professionalManas Bhardwaj21-Jul-09 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.