Redirect Page using HttpContext

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jesuraja
    New Member
    • Apr 2010
    • 1

    Redirect Page using HttpContext

    I am new in ASP.Net and C#.

    I have used HttpContext.Cur rent.Response.R edirect in a class file.

    Is it right? or if any problem occur by using this?

    Thanks
  • sotasoft
    New Member
    • Apr 2010
    • 1

    #2
    Hi jesuraja,

    It depends what you plan to do.
    In general everything should be OK.

    Best regards,
    Vitaliy
    <removed link>
    Last edited by Frinavale; Apr 30 '10, 06:04 PM. Reason: Removed link. Please do not posts any links that are not relavent to the question asked.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      It may be confusing to someone maintaining the website later when a class issues a redirect (at least that's what I'm assuming you're doing).

      With this in mind it's more common do redirects in the Page code...but there is nothing wrong with what you're doing.

      Comment

      Working...