Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 07, 2012 10:21 AM by AmalO.Abdullah
Participant
1928 Points
1352 Posts
May 07, 2012 06:33 AM|LINK
If i access a link from my inbox it perfectly redirected to all pages in my site.
but it does not redirected to particular page only, it gives me
" object reference not set to an instance of onject"
http://osadev.smabes.com/CheckVerificationCode.aspx?firstName=sam.
For the above page CheckVerificationCode.aspx i am getting error,
but if i change any other page like,
http://osadev.smabes.com/Login.aspx?firstName=sam.
http://osadev.smabes.com/Default.aspx?firstName=sam.
it redirected to that page correctly.
I also checked i have that page(CheckVerificationCode.aspx) in my application.
All-Star
37372 Points
6846 Posts
May 07, 2012 06:37 AM|LINK
Check the Load event of page. might be you are checking some value like Session etc..
Contributor
3116 Points
764 Posts
there must be an error in that page,, try to debug it and see what's the error and in which line.
3230 Points
668 Posts
post the screen shot for the error it displays
also put a breakpoint on the page load event and see that it reaches there
Star
8731 Points
1681 Posts
May 07, 2012 06:45 AM|LINK
Hi
Check the querystring
string sName = Request.QueryString["firstName"];
You are using querystring in all three pages? or session? ...
May 07, 2012 08:44 AM|LINK
I checked all things, actually that link send by me to user mail, and then they trying to click that. but it does not redirected to that page.
May 07, 2012 08:53 AM|LINK
I did not check any session, and i donot have any error on that page.
16962 Points
3725 Posts
May 07, 2012 09:01 AM|LINK
ssjGanesh actually that link send by me to user mail, and then they trying to click that. but it does not redirected to that page.
Well, it actually redirects to your mentioned page but it is throwing error.
It generates below link,
http://osadev.smabes.com/CheckVerificationCode.aspx?e=baron.mcdowell@gmail.com,2bc17910c0fbf819
and I guess there's some flow in your logic after reading querystring value. Check for null values.
You might want to check out generated stack trace, it will help you out to solve the error.
May 07, 2012 10:19 AM|LINK
can you show us your error page please.
May 07, 2012 10:20 AM|LINK
Hi guys.,
I found the a runtime error in that page.Now its working.
Anyways i got ideas from ur post thats y i could found that.
Thanks 1 sec.
ssjGanesh
Participant
1928 Points
1352 Posts
Cannot redirect to particular page only
May 07, 2012 06:33 AM|LINK
If i access a link from my inbox it perfectly redirected to all pages in my site.
but it does not redirected to particular page only, it gives me
" object reference not set to an instance of onject"
http://osadev.smabes.com/CheckVerificationCode.aspx?firstName=sam.
For the above page CheckVerificationCode.aspx i am getting error,
but if i change any other page like,
http://osadev.smabes.com/Login.aspx?firstName=sam.
http://osadev.smabes.com/Default.aspx?firstName=sam.
it redirected to that page correctly.
I also checked i have that page(CheckVerificationCode.aspx) in my application.
Mark as answer,if it helped U!
Rajneesh Ver...
All-Star
37372 Points
6846 Posts
Re: Cannot redirect to particular page only
May 07, 2012 06:37 AM|LINK
Check the Load event of page. might be you are checking some value like Session etc..
www.rajneeshverma.com
Keep Forums Clean || Use Alert Moderators.
AmalO.Abdull...
Contributor
3116 Points
764 Posts
Re: Cannot redirect to particular page only
May 07, 2012 06:37 AM|LINK
there must be an error in that page,, try to debug it and see what's the error and in which line.
tusharrs
Contributor
3230 Points
668 Posts
Re: Cannot redirect to particular page only
May 07, 2012 06:37 AM|LINK
post the screen shot for the error it displays
also put a breakpoint on the page load event and see that it reaches there
( Mark as Answer if it helps you out )
View my Blog
Primillo
Star
8731 Points
1681 Posts
Re: Cannot redirect to particular page only
May 07, 2012 06:45 AM|LINK
Hi
Check the querystring
You are using querystring in all three pages? or session? ...
Primillo
http://www.facebook.com/programandopuntonet
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Cannot redirect to particular page only
May 07, 2012 08:44 AM|LINK
I checked all things, actually that link send by me to user mail, and then they trying to click that. but it does not redirected to that page.
Mark as answer,if it helped U!
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Cannot redirect to particular page only
May 07, 2012 08:53 AM|LINK
I did not check any session, and i donot have any error on that page.
Mark as answer,if it helped U!
nilsan
All-Star
16962 Points
3725 Posts
Re: Cannot redirect to particular page only
May 07, 2012 09:01 AM|LINK
Well, it actually redirects to your mentioned page but it is throwing error.
It generates below link,
http://osadev.smabes.com/CheckVerificationCode.aspx?e=baron.mcdowell@gmail.com,2bc17910c0fbf819
and I guess there's some flow in your logic after reading querystring value. Check for null values.
You might want to check out generated stack trace, it will help you out to solve the error.
Blog | Get your forum question answered | Microsoft Community Contributor 2011
AmalO.Abdull...
Contributor
3116 Points
764 Posts
Re: Cannot redirect to particular page only
May 07, 2012 10:19 AM|LINK
can you show us your error page please.
ssjGanesh
Participant
1928 Points
1352 Posts
Re: Cannot redirect to particular page only
May 07, 2012 10:20 AM|LINK
Hi guys.,
I found the a runtime error in that page.Now its working.
Anyways i got ideas from ur post thats y i could found that.
Thanks 1 sec.
Mark as answer,if it helped U!