CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2001
    Posts
    2

    loading a webpage from C sharp

    Hello,

    I'm making a component in C# that I will call from an ASP page. Now after calling this component and some error checking I want it to forward the user to another webpage. I've been looking on the msdn site for the correct function to do so but I can't seem to find it. (I looked a while at httprequest but that doesn't seem to be it ?) Can anyone help me out ?

    Thanks,

    Jorn


  2. #2
    Join Date
    Jan 2001
    Posts
    73

    Re: loading a webpage from C sharp

    The server object in asp.net( and in asp) has a Transfer method that you can use to redirect the user to another page. You would need to call this from the asp.net page.
    hth,
    Nas.

    Find out what you like doing best and get someone to pay you for doing it.

  3. #3
    Join Date
    Nov 2001
    Posts
    2

    Re: loading a webpage from C sharp

    but wouldnt it be possible to do all things from the component itself ? i'd like to use
    System.Web.HttpContext.Current.Response.Redirect
    but i cant get it to work in C# ... is that an ASP.net only function or something ?

    Jorn


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured