query string in asp.net 2.0

Discussion in 'ASP .Net' started by Guy Cohen, Dec 5, 2006.

  1. Guy Cohen

    Guy Cohen Guest

    Guy Cohen, Dec 5, 2006
    #1
    1. Advertising

  2. Guy Cohen

    Karl Seguin Guest

    Karl Seguin, Dec 5, 2006
    #2
    1. Advertising

  3. Guy Cohen

    David Wier Guest

    However, in addition, I'd recommend making the parameter Global for the page
    (dim it OUTSIDE the Page_Load event)
    Dim param as string
    Then, as Karl said, assign the value in Page_Load
    param=Request.Querystring("thisparameter")
    --
    David Wier
    MVP/ASPInsider
    http://aspnet101.com
    http://aspexpress.com


    "Karl Seguin" <> wrote in
    message news:eTrj$...
    > Are you talking about the Request.QueryString collection?
    >
    > you can just do:
    >
    > dim parameter as string = Request.QueryString("thisparameter")
    >
    > Karl
    >
    > --
    > http://www.openmymind.net/
    > http://www.fuelindustries.com/
    >
    >
    > "Guy Cohen" <> wrote in message
    > news:...
    > > Hi all
    > > I would like to send parameters to my aspx page:
    > > e.g.
    > > www.x.com/mypage.aspx?thisparameter=thatvalue
    > >
    > > How do I know what is that value from page_load event?
    > >
    > > TIA
    > > Guy
    > >

    >
     
    David Wier, Dec 5, 2006
    #3
    1. Advertising

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. Paul M.
    Replies:
    2
    Views:
    7,648
    Dave Bush
    Sep 6, 2003
  2. Eric Nelson
    Replies:
    5
    Views:
    1,544
    Alexey Smirnov
    Feb 4, 2009
  3. Roland Hall

    ASP LIKE query using parameterized query

    Roland Hall, Jan 12, 2007, in forum: ASP General
    Replies:
    8
    Views:
    228
    Roland Hall
    Jan 13, 2007
  4. roadrunner
    Replies:
    1
    Views:
    249
    Gunnar Hjalmarsson
    Feb 8, 2006
  5. nick
    Replies:
    1
    Views:
    476
    David Mark
    Feb 13, 2011
Loading...

Share This Page