src attribute of the TagPrefix Page directive

Discussion in 'ASP .Net Web Controls' started by Richard, Apr 7, 2005.

  1. Richard

    Richard Guest

    Hi,

    is there a way of injecting a string which can be used to
    be assigned to the src attribute of a web user control on
    an aspx page.

    instead of this
    <%@ Register TagPrefix="MyControl" TagName="MyTag"
    Src="someusercontrol.ascx" %>

    how can i use a server variable or a string from the
    web.config file as the src string?

    Thanks for any suggestions.
     
    Richard, Apr 7, 2005
    #1
    1. Advertising

  2. Richard

    Brock Allen Guest

    You can do the equivalent from code by calling Page.LoadControl.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi,
    >
    > is there a way of injecting a string which can be used to be assigned
    > to the src attribute of a web user control on an aspx page.
    >
    > instead of this
    > <%@ Register TagPrefix="MyControl" TagName="MyTag"
    > Src="someusercontrol.ascx" %>
    > how can i use a server variable or a string from the web.config file
    > as the src string?
    >
    > Thanks for any suggestions.
    >
     
    Brock Allen, Apr 8, 2005
    #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. su
    Replies:
    1
    Views:
    509
    Chris Jackson
    Nov 12, 2003
  2. Kevin Buchan
    Replies:
    2
    Views:
    2,102
    Kevin Buchan
    Jan 23, 2004
  3. guy

    Q: @page directive src=

    guy, Aug 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    339
  4. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,113
    Laurent Bugnion
    Feb 9, 2006
  5. Replies:
    3
    Views:
    606
Loading...

Share This Page