PostBack with query string

Discussion in 'ASP .Net Web Controls' started by sacred, Sep 23, 2003.

  1. sacred

    sacred Guest

    If you are using that code in the actual aspx file I found
    it doesn't work.

    The only thing that will work is <% response.write
    (<variable>/<string>) %> in aspx file.

    Hope this helped.

    Many blessings,

    Sacred

    >-----Original Message-----
    >I'm just trying to do a simple insert into a table when
    >the user clicks a button, and want to show the added

    item
    >on the same aspx page(page1.aspx), by getting the values
    >from the querystring.
    >
    >however, in the form tag when i add the action
    >="page1.aspx?id=<%=generatedid%>&desc=<%=desc%>" the

    page
    >is posted back without the query string.
    >
    >I'm using server controls and pagebehind.
    >
    >in the Page_Load I have,
    >
    >
    >if (IsPostBack)
    >{
    > Id = Request.QueryString.Get("id");
    > desc = Request.QueryString.Get("desc");
    >}
    >
    >i don't seem to get the values in the querystring..
    >Plase help!!
    >
    >
    >
    >
    >.
    >
     
    sacred, Sep 23, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Psych971
    Replies:
    5
    Views:
    4,894
    bruce barker
    Dec 17, 2004
  2. =?Utf-8?B?Q2hhZA==?=

    Postback not being set to True on first postback

    =?Utf-8?B?Q2hhZA==?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    650
    =?Utf-8?B?Q2hhZA==?=
    Apr 4, 2005
  3. gce
    Replies:
    2
    Views:
    1,874
  4. Jacky Chau
    Replies:
    2
    Views:
    2,329
    Ninjamyst
    Jun 8, 2005
  5. =?Utf-8?B?SnVsaWEgQg==?=

    Date string problem in query string when posting back

    =?Utf-8?B?SnVsaWEgQg==?=, Aug 29, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    710
    =?Utf-8?B?SnVsaWEgQg==?=
    Aug 29, 2007
  6. Fabio Mastria
    Replies:
    5
    Views:
    4,725
    TechMCAD13
    Jan 30, 2008
  7. roadrunner
    Replies:
    1
    Views:
    436
    Gunnar Hjalmarsson
    Feb 8, 2006
  8. nick
    Replies:
    1
    Views:
    717
    David Mark
    Feb 13, 2011
Loading...