Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Re: How to move between pages

 
Thread Tools Search this Thread
Old 06-25-2003, 12:49 PM   #1
Default Re: How to move between pages


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
  Reply With Quote
Old 06-25-2003, 04:18 PM   #2
Robin Day
 
Posts: n/a
Default Re: How to move between pages
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
  Reply With Quote
Old 06-25-2003, 05:03 PM   #3
Sam
 
Posts: n/a
Default Re: How to move between pages
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46