Hi all!
I'm having some trouble using user controls.
Situation:
An apsx page contains an user control (Control A) that contains
another user control(Control B). Control B is located in the subfolder
"Controls" and has some imagebutton server controls. I want to set the
imageurl of these image controls directly into the html using:
<code>
<ASP:IMAGEBUTTO N runat="server" id="btnTest"
imageurl='<%=Se ssion["imgprefix"]%>images/test.gif'/>
</code>
the html output from .NET :
<code>
<input type="image" name="ctrlA:ctr lB:btnTest"
id="ctrlA_ctrlB _DownButton"
src="Controls/<%=Session["imgPrefix "]%>images/test.gif"
align="Middle" border="0" />
</code>
Anybody has a clue why the src attribute is rendered like this?
Thanks in advance,
Jeroen
I'm having some trouble using user controls.
Situation:
An apsx page contains an user control (Control A) that contains
another user control(Control B). Control B is located in the subfolder
"Controls" and has some imagebutton server controls. I want to set the
imageurl of these image controls directly into the html using:
<code>
<ASP:IMAGEBUTTO N runat="server" id="btnTest"
imageurl='<%=Se ssion["imgprefix"]%>images/test.gif'/>
</code>
the html output from .NET :
<code>
<input type="image" name="ctrlA:ctr lB:btnTest"
id="ctrlA_ctrlB _DownButton"
src="Controls/<%=Session["imgPrefix "]%>images/test.gif"
align="Middle" border="0" />
</code>
Anybody has a clue why the src attribute is rendered like this?
Thanks in advance,
Jeroen
Comment