Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clicking a link to this same page, but with param, throws...

Status
Not open for further replies.

organicg

Programmer
Oct 21, 2002
151
US
I have created a simple custom pagination at the top of somepage.aspx. The links look like this:
Code:
<a href="somepage.aspx?PageIndex=1">Page 1</a>
<a href="somepage.aspx?PageIndex=2">Page 2</a>
<a href="somepage.aspx?PageIndex=3">Page 3</a>

It throws a System.Web.HttpException, which, in my app, is usually because the page is not found. I have run a ton of tests, trying all sorts of ways to link to this page, like going up a directory and then back down:
Code:
<a href="../upafolder/somepage.aspx?PageIndex=1">Page 1</a>
but nothing works. I have successfully tested linking to other pages in the same directory:
Code:
<a href="someOTHERpage.aspx">Some Other Page</a>

It won't even work with a fully qualified path:
Code:
<a href="[URL unfurl="true"]http://localhost/virtualdir/subfolder/somepage.aspx">Some[/URL] Page</a>

Anyone know What's Going On? (Marvin Gaye)
 
Have you tried putting a breakpoint on the page load of the page that is being linked to? It may be that the exception is being thrown from that page as opposed to the page not being found (as otherwise wouldn't you just get a 404 error?).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top