开发者

rewrite url address using vb.net

just like the title is. When users land on the second page, after clicking submit on first page, i want the second page to read the url, then modify the aspx page in the end and send the user to a specific page. e.g - www.abc.com/page1.aspx --> click submit --> redirect to www.abc.com/page2.aspx the code should read "/page2.as开发者_JS百科px" and then rewrite it as "/page5.aspx" and automatically redirect to page5.aspx


You sound like you want to build a multi-step wizard. There is a control in asp.net for this, the <asp:Wizard /> control.

This is gives you multiple steps that you can move backwards and forwards through but the best thing is that it remembers the data for each of the steps. So when you are on the last step you can go back and pull the data out of all the steps and process it. You can also make decisions based on data in the current step to decide which step you move to next.

  • basic overview at msdn
  • more introductions on scott gu's blog
  • an article I wrote that will help you hop between steps in a clean way


Response.Redirect("~/page5.aspx")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜