How do I redirect to a page after successful login?

前端 未结 7 2039
梦谈多话
梦谈多话 2021-01-18 02:59

I\'m fairly new to web forms development, playing around with a project created using the ASP.NET Web Application template in VS 2010. After the user successfully logs in, I

相关标签:
7条回答
  • 2021-01-18 03:37
    Server.Transfer( *url*) ?
    

    (method on HttpServerUtility)

    I know next to nothing about ASP.NET, but from my Java web developer daze, redirect is bad because it involves another network round trip to the browser and back when you really just want to continue processing in another page.

    And Response.Redirect() really does issue a 302 response code ("try this other url instead") back to the browser. yuck. XP

    Server.Transfer() looks like the java version of Response.Forward()

    0 讨论(0)
提交回复
热议问题