Click to See Complete Forum and Search --> : loading a webpage from C sharp


darthy
November 8th, 2001, 04:14 AM
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

N Raja
November 10th, 2001, 06:38 PM
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.

darthy
November 12th, 2001, 04:34 AM
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