Asp – Page redirects not working after Conversion to WAP

asp.net

I was able to successfully convert (really copy code over to a WAP project) a Web Site Project to a WAP project.

All is fine except after the site runs, any links are redirecting to page not found. I'm trying to figure out why but it's not apparent.

So when you click on a link, does a handler play into effect? What server-side variables kick in to handle the request? I assume I would not look at a global.asax as that's really for application events.

so in our header for example here's a link:

<td class="HeaderLink"><a runat="server" id="Account">Account</a></td>

in the code-behind of the header control we set that link which simply sets it to an .aspx page as stated on our site. Now the magic happening after the link is clicked is what I can't figure out or not magic but the problem. These links have not been changed and were working fine in a non-WAP project. The folder structure is the same.

Best Answer

I would guess that just by looking at your example that you're missing either the href="oursite/somepage.aspx" or the navigationURL="~/oursite/somepage.aspx" for the hyperlink that you're calling id="Account".

Related Topic