Calling an Ascx from w/i Aspx codebehind

Discussion in 'ASP .Net Building Controls' started by SABmore, Nov 8, 2005.

  1. SABmore

    SABmore Guest

    I have an aspx that I would like to "dynamically" display a user
    control on. When the user clicks (LinkButton) on "Find Existing Trip"
    within the aspx page, it calls the codebehind for the onClick event,
    which in turn would call my ascx page. The ascx page would then
    populate a drop-down list to be displayed on my calling aspx page. Is
    there a way (or better way) to do this? Also, how would I specify on
    my aspx page exactly where I want the drop-down list to be generated?
    Thanks in advance!
     
    SABmore, Nov 8, 2005
    #1
    1. Advertising

  2. SABmore

    DWS Guest

    Easy solution
    ascx is already on the aspx page but you set it visible false
    Ok so far.
    linkbutton sets ascx visible true

    good luck
    DWS


    "SABmore" wrote:

    > I have an aspx that I would like to "dynamically" display a user
    > control on. When the user clicks (LinkButton) on "Find Existing Trip"
    > within the aspx page, it calls the codebehind for the onClick event,
    > which in turn would call my ascx page. The ascx page would then
    > populate a drop-down list to be displayed on my calling aspx page. Is
    > there a way (or better way) to do this? Also, how would I specify on
    > my aspx page exactly where I want the drop-down list to be generated?
    > Thanks in advance!
    >
    >
     
    DWS, Jan 2, 2006
    #2
    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. exshige
    Replies:
    2
    Views:
    959
    exshige
    Jul 8, 2003
  2. rodrigo
    Replies:
    1
    Views:
    8,718
    Raterus
    Aug 3, 2004
  3. Gerald
    Replies:
    2
    Views:
    2,147
    Gerald
    Oct 21, 2005
  4. Replies:
    2
    Views:
    539
  5. steve cobian

    Possible? Different .ascx to share same codebehind

    steve cobian, Oct 12, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    235
    steve cobian
    Oct 12, 2003
Loading...

Share This Page