Home All Groups Group Topic Archive Search About

src attribute of the TagPrefix Page directive

Author
7 Apr 2005 4:37 PM
Richard
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.

Author
8 Apr 2005 1:12 AM
Brock Allen
You can do the equivalent from code by calling Page.LoadControl.

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



Show quoteHide quote
> 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.
>