A
Adam Knight
Hi all,
I have just tried to assign the properties of a user control dynamically in
the following way:
<% If Not(Request.QueryString("lvl2") Is Nothing) Then %>
<L:Links ID="LevelTwo" intAreaID="<%=Request.QueryString("lvl2")%>"
intStandardID='<%# Container.DataItem("standard_id")%>' Runat="Server"/>
<% ElseIf Not(Request.QueryString("lvl3") Is Nothing) Then %>
<L:Links ID="LevelThree"
intAreaID="<%=Request.QueryString("lvl3")%>" intStandardID='<%#
Container.DataItem("standard_id")%>' Runat="Server"/>
<% End If %>
Obviously this is incorrect.
How would i go about this?
Cheers,
Adam
I have just tried to assign the properties of a user control dynamically in
the following way:
<% If Not(Request.QueryString("lvl2") Is Nothing) Then %>
<L:Links ID="LevelTwo" intAreaID="<%=Request.QueryString("lvl2")%>"
intStandardID='<%# Container.DataItem("standard_id")%>' Runat="Server"/>
<% ElseIf Not(Request.QueryString("lvl3") Is Nothing) Then %>
<L:Links ID="LevelThree"
intAreaID="<%=Request.QueryString("lvl3")%>" intStandardID='<%#
Container.DataItem("standard_id")%>' Runat="Server"/>
<% End If %>
Obviously this is incorrect.
How would i go about this?
Cheers,
Adam