Click here to Skip to main content
15,921,694 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Availability Calendar Pin
munklefish1-Aug-07 0:04
munklefish1-Aug-07 0:04 
QuestionProblem with ASP.NET Website URLs (like url redirection or something) Pin
FranciscoR31-Jul-07 7:25
FranciscoR31-Jul-07 7:25 
Questiongetting XY coords of mouse click from a ImageMap Control Pin
Joshua Lunsford31-Jul-07 7:14
Joshua Lunsford31-Jul-07 7:14 
QuestionConvert HTML page to PDF Pin
Khan.Bangash31-Jul-07 6:36
Khan.Bangash31-Jul-07 6:36 
QuestionPassword Protecting a Default/Home Page Pin
ISIS-Striker31-Jul-07 5:40
ISIS-Striker31-Jul-07 5:40 
AnswerRe: Password Protecting a Default/Home Page Pin
Tarakeshwar Reddy31-Jul-07 5:50
professionalTarakeshwar Reddy31-Jul-07 5:50 
QuestionHandle UserControl Events Pin
kjosh31-Jul-07 5:32
kjosh31-Jul-07 5:32 
QuestionApplication variables and web.config Pin
sankar.K31-Jul-07 5:13
sankar.K31-Jul-07 5:13 
Is it correct to read from web.config file in the following way? i am using asp.net 2.0 VS 2005.I get the following error

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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
anmar.SharpWebMail.UI.Login.Login_Click(Object sender, EventArgs args) in login.cs:75
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


The point where the error is shown is

int login_mode = (int)Application["sharpwebmail/login/mode"];

Are application variables available in asp.net 2.0
AnswerRe: Application variables and web.config Pin
Fred_Smith31-Jul-07 5:52
Fred_Smith31-Jul-07 5:52 
GeneralRe: Application variables and web.config Pin
sankar.K31-Jul-07 19:16
sankar.K31-Jul-07 19:16 
GeneralRe: Application variables and web.config Pin
Fred_Smith31-Jul-07 22:02
Fred_Smith31-Jul-07 22:02 
Questionclose window and redirect to another site Pin
brsecu31-Jul-07 5:09
brsecu31-Jul-07 5:09 
AnswerRe: close window and redirect to another site Pin
Fred_Smith31-Jul-07 5:56
Fred_Smith31-Jul-07 5:56 
GeneralRe: close window and redirect to another site Pin
brsecu31-Jul-07 6:08
brsecu31-Jul-07 6:08 
GeneralRe: close window and redirect to another site Pin
Fred_Smith31-Jul-07 6:20
Fred_Smith31-Jul-07 6:20 
GeneralRe: close window and redirect to another site Pin
brsecu31-Jul-07 10:25
brsecu31-Jul-07 10:25 
QuestionApproving Membership Pin
hurrem31-Jul-07 4:58
hurrem31-Jul-07 4:58 
AnswerRe: Approving Membership Pin
kubben31-Jul-07 7:00
kubben31-Jul-07 7:00 
GeneralRe: Approving Membership Pin
hurrem31-Jul-07 7:37
hurrem31-Jul-07 7:37 
GeneralRe: Approving Membership Pin
kubben31-Jul-07 8:16
kubben31-Jul-07 8:16 
QuestionCode behind from web pages Pin
celsoluiz31-Jul-07 4:28
celsoluiz31-Jul-07 4:28 
AnswerRe: Code behind from web pages Pin
martin_hughes31-Jul-07 5:46
martin_hughes31-Jul-07 5:46 
GeneralRe: Code behind from web pages Pin
celsoluiz31-Jul-07 6:48
celsoluiz31-Jul-07 6:48 
GeneralRe: Code behind from web pages Pin
martin_hughes31-Jul-07 6:55
martin_hughes31-Jul-07 6:55 
Questiondata from database Pin
h@$@n31-Jul-07 3:52
h@$@n31-Jul-07 3:52 

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.