D
Dave
Hi I created a user control that has a property that accepts a url ("NavUrl")..
I tried to set the value as follows directly in the aspx page where strLink would be a link.
<uc1:mycontrol id="mycontrol2" runat="server" HtmlContent="html stuff goes here." ImgUrl="myimage.gif" NavUrl="<%Response.Write(strLink);%>"></uc1:mycontrol
Literal content ('">') is not allowed within a 'ASP.mycontrol_ascx'
The only way I was able to set this property dynamically was on referencing the control in my codebehing and set the property in the page_load()...is this the only way?
I tried to set the value as follows directly in the aspx page where strLink would be a link.
<uc1:mycontrol id="mycontrol2" runat="server" HtmlContent="html stuff goes here." ImgUrl="myimage.gif" NavUrl="<%Response.Write(strLink);%>"></uc1:mycontrol
Literal content ('">') is not allowed within a 'ASP.mycontrol_ascx'
The only way I was able to set this property dynamically was on referencing the control in my codebehing and set the property in the page_load()...is this the only way?