|
-
November 8th, 2001, 05:14 AM
#1
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
-
November 10th, 2001, 07:38 PM
#2
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.
-
November 12th, 2001, 05:34 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|