![]() |
|
|
|||||||
![]() |
ASP Net - Re: How to move between pages |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Is it possible to refresh a page from within codebehind when Response
object is not available (say, from a user thread?). If so, can you please let me know how this can be done, with some code? Thanks, Udupa. "Leif" <> wrote in message news:02f501c339af$e8ae8f80$... > asp.net pages post back to themselves. > you can use Response.Redirect(URL) in the code behind or > scripting (whichever you're using). that will call a new > aspx page. > > >-----Original Message----- > >Hi all, > > > >I am new to ASP.NET and i had try some things but one > thing that i can't > >understand is how to move between two aspx pages. > >for example i have one page with some text fields and > submit button in a > >form . > >when i should press submit button it should move to next > page and there the > >values of text boxes are read. > >but insted it remain in same page . how can i move it to > second page where > >the values are read and displayed. > >bye, > > shahzad. > > > > > >. > > Udupa |
|
|
|
|
#2 |
|
Posts: n/a
|
Ideally, always keep a reference to the Page that you are using, then you
can always access Page.Response etc. However, if this is not possible, you can obtain the Response object from the current context. This is also true for other objects such as Session and Application. Very useful when writing assemblies that have a sole use for within web applications. HttpResponse Response = HttpContext.Current.Response; You can then proceed to use Response as you would normally. Robin "Udupa" <> wrote in message news:... > Is it possible to refresh a page from within codebehind when Response > object is not available (say, from a user thread?). If so, can you please > let me > know how this can be done, with some code? > > Thanks, > Udupa. > > "Leif" <> wrote in message > news:02f501c339af$e8ae8f80$... > > asp.net pages post back to themselves. > > you can use Response.Redirect(URL) in the code behind or > > scripting (whichever you're using). that will call a new > > aspx page. > > > > >-----Original Message----- > > >Hi all, > > > > > >I am new to ASP.NET and i had try some things but one > > thing that i can't > > >understand is how to move between two aspx pages. > > >for example i have one page with some text fields and > > submit button in a > > >form . > > >when i should press submit button it should move to next > > page and there the > > >values of text boxes are read. > > >but insted it remain in same page . how can i move it to > > second page where > > >the values are read and displayed. > > >bye, > > > shahzad. > > > > > > > > >. > > > > > > Robin Day |
|
|
|
#3 |
|
Posts: n/a
|
I tried it. But the problem is, once the server event is done with, the
current response object is invalid and even if I keep a reference to the page/object, in my thread, IsClientConnected flag is false and hence I am unable to use the Response object there. Is there some way for the server side code to reload the page? Thanks in advance, Udupa. "Robin Day" <> wrote in message news:... > Ideally, always keep a reference to the Page that you are using, then you > can always access Page.Response etc. > However, if this is not possible, you can obtain the Response object from > the current context. This is also true for other objects such as Session and > Application. Very useful when writing assemblies that have a sole use for > within web applications. > > HttpResponse Response = HttpContext.Current.Response; > > You can then proceed to use Response as you would normally. > > Robin > > "Udupa" <> wrote in message > news:... > > Is it possible to refresh a page from within codebehind when Response > > object is not available (say, from a user thread?). If so, can you please > > let me > > know how this can be done, with some code? > > > > Thanks, > > Udupa. > > > > "Leif" <> wrote in message > > news:02f501c339af$e8ae8f80$... > > > asp.net pages post back to themselves. > > > you can use Response.Redirect(URL) in the code behind or > > > scripting (whichever you're using). that will call a new > > > aspx page. > > > > > > >-----Original Message----- > > > >Hi all, > > > > > > > >I am new to ASP.NET and i had try some things but one > > > thing that i can't > > > >understand is how to move between two aspx pages. > > > >for example i have one page with some text fields and > > > submit button in a > > > >form . > > > >when i should press submit button it should move to next > > > page and there the > > > >values of text boxes are read. > > > >but insted it remain in same page . how can i move it to > > > second page where > > > >the values are read and displayed. > > > >bye, > > > > shahzad. > > > > > > > > > > > >. > > > > > > > > > > > > Sam |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to view web pages | acaravia | General Help Related Topics | 1 | 08-07-2007 05:16 AM |
| Clip Art file Move to another computer | spirit07 | MCITP | 1 | 08-04-2007 12:34 AM |
| .NET stops compiling some aspx pages | angelbrown | Software | 0 | 09-04-2006 01:48 PM |
| DVD Verdict reviews: LAST EXILE: FIRST MOVE, AVRIL LAVIGNE: MY WORLD, and more! | DVD Verdict | DVD Video | 0 | 11-14-2003 10:04 AM |
| DVD web pages WTD | TSKO | DVD Video | 0 | 09-11-2003 08:04 PM |