How to move between pages

Ask a Question related to ASP.NET General, Design and Development.

  1. #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" <l_falk1@hotmail.com> wrote in message
    news:02f501c339af$e8ae8f80$a301280a@phx.gbl...
    > 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 Guest

  2. Similar Questions and Discussions

    1. Move pages inside the PDF file
      I am tryinn to relocate several pages inside the same PDF file. Some TIPs say I can do it by moving Page Thumbnails. However there is no Page...
    2. Move pages?
      Some editors have active draft pages in a directory that no longer exists (to launch a part of the website I moved all the files from an old/...
    3. how to move pages between the docoments
      how to move pages between the docoments, Becouse now i do it layer by layer by coping the objects from spreads of one document to the blank spreads...
    4. How to print 3 small pages wide by 5 pages tall in one spread?
      Hi Vincent, I'm having a similar problem. My dilemma is that I've created a raffle ticket design and to save paper have tiled them 5 to an A4...
    5. Best way to move data across multiple pages?
      I am trying to build a few pages basically emulating a wizard that you might find in a Windows product. A few fields to fill out on one page, move...
  3. #2

    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" <udupa@email.com> wrote in message
    news:eXcfYAxODHA.2224@TK2MSFTNGP10.phx.gbl...
    > 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" <l_falk1@hotmail.com> wrote in message
    > news:02f501c339af$e8ae8f80$a301280a@phx.gbl...
    > > 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 Guest

  4. #3

    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" <robin.day@advorto.com> wrote in message
    news:O0saJ0yODHA.560@TK2MSFTNGP10.phx.gbl...
    > 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" <udupa@email.com> wrote in message
    > news:eXcfYAxODHA.2224@TK2MSFTNGP10.phx.gbl...
    > > 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" <l_falk1@hotmail.com> wrote in message
    > > news:02f501c339af$e8ae8f80$a301280a@phx.gbl...
    > > > 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 Guest

Posting Permissions

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

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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139