User Control: Dynamic Properties!!

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
 
M

Mats Lycken

Hi,
I'm sorry but I'm not sure what you're trying to accomplish, maybe you
could explain a little more about what you want to do and what kind of
component L:Links is?

Best regards,
Mats
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top