User Controls

Discussion in 'ASP .Net' started by Murphy, Apr 8, 2004.

  1. Murphy

    Murphy Guest

    If an aspx page is passed a value via a query string is it possible for a
    user control on that page to read the value passed to the parent aspx ?

    Thanks

    Murphy
     
    Murphy, Apr 8, 2004
    #1
    1. Advertising

  2. I would venture a yes, although you may have to explicitly call the page.
    You can also set up control properties, make sure the control is referenced
    in the page and set from the page by explicitly setting the control
    properties you create.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    ***************************************************************
    Think outside the box!
    ***************************************************************
    "Murphy" <> wrote in message
    news:%...
    > If an aspx page is passed a value via a query string is it possible for a
    > user control on that page to read the value passed to the parent aspx ?
    >
    > Thanks
    >
    > Murphy
    >
    >
     
    Cowboy \(Gregory A. Beamer\) [MVP], Apr 8, 2004
    #2
    1. Advertising

  3. Murphy

    Murphy Guest

    Thanks Gregory,

    What about something like the following in the load event for the ascx page:

    ' Set the current selection of list
    Dim CategoryId As String = Request.Params("categoryid")


    "Cowboy (Gregory A. Beamer) [MVP]" <> wrote
    in message news:...
    > I would venture a yes, although you may have to explicitly call the page.
    > You can also set up control properties, make sure the control is

    referenced
    > in the page and set from the page by explicitly setting the control
    > properties you create.
    >
    > --
    > Gregory A. Beamer
    > MVP; MCP: +I, SE, SD, DBA
    >
    > ***************************************************************
    > Think outside the box!
    > ***************************************************************
    > "Murphy" <> wrote in message
    > news:%...
    > > If an aspx page is passed a value via a query string is it possible for

    a
    > > user control on that page to read the value passed to the parent aspx ?
    > >
    > > Thanks
    > >
    > > Murphy
    > >
    > >

    >
    >
     
    Murphy, Apr 8, 2004
    #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. trinitypete

    HTML Controls and User controls

    trinitypete, Jun 25, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    3,466
    trinitypete
    Jun 26, 2003
  2. Axel Dahmen
    Replies:
    1
    Views:
    546
    Teemu Keiski
    Nov 12, 2003
  3. Nathan Sokalski
    Replies:
    4
    Views:
    1,172
    Muhammad Naveed Yaseen
    Sep 5, 2007
  4. Faizan Ahmed
    Replies:
    1
    Views:
    312
    John Saunders
    Jan 4, 2005
  5. Faizan Ahmed
    Replies:
    1
    Views:
    390
    John Saunders
    Jan 4, 2005
Loading...

Share This Page