freelanceprogrammers.org Forum Index » ASP
Re: System.NullReferenceException error
Joined: 08 Jan 2005
Posts: 5
Re: System.NullReferenceException error
if (Session["Admin"]== null)
{
Response.Redirect("controlpanel.aspx?Msg=illegal");
}
----- Original Message -----
From: Arindam
To: AspNetAnyQuestionIsOk@yahoogroups.com
Sent: Saturday, January 08, 2005 3:05 PM
Subject: [AspNetAnyQuestionIsOk] System.NullReferenceException error
Hello Friend
In Page_Load i have written
if (Session["Admin"].ToString()=="")
{
Response.Redirect("controlpanel.aspx?Msg=illegal");
}
when Session["Admin"] expired its not getting redirected to the specified url
,
i am getting the following error..why ? How should i write ?
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.
Thanks
Arindam
Thanks & Regards
Arindam
Web Designer & Developer
Yahoo! India Matrimony: Find your life partneronline.
[Non-text portions of this message have been removed]
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
b.. To unsubscribe from this group, send an email to:
AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
Joined: 09 Jan 2006
Posts: 17
Re: System.NullReferenceException error
Hello friend
I am using ASp.net (C#a)
HOw do i encode any string value when a page is submitted
How do i handle, when someone has entered any text like
"<Script> <BR> <Table>" . which may create some problem in my application.
Arindam
Thanks & Regards
Arindam
Web Designer & Developer
Yahoo! India Matrimony: Find your life partneronline.
[Non-text portions of this message have been removed]
Joined: 07 Jan 2006
Posts: 63
Re: System.NullReferenceException error
server.htmlencode is one way.
On Sun, 9 Jan 2005 07:48:29 +0000 (GMT), Arindam <e_arindam@...> wrote:
>
> Hello friend
>
> I am using ASp.net (C#a)
> HOw do i encode any string value when a page is submitted
> How do i handle, when someone has entered any text like
> "<Script> <BR> <Table>" . which may create some problem in my application.
>
>
>
> Arindam
>
>
>
>
> Thanks & Regards
>
> Arindam
> Web Designer & Developer
>
>
>
>
> Yahoo! India Matrimony: Find your life partneronline.
>
> [Non-text portions of this message have been removed]
>
>
> ________________________________
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
> To unsubscribe from this group, send an email to:
> AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Joined: 07 Jan 2006
Posts: 7
Re: System.NullReferenceException error
hi . i want to make a heiglieght a multi part of one image using javascript ,
each part is depentent from the other`s. the really what i need when the mouse
over one part of the image the other parts of the image to be unlieghted .
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







