Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Control Property ?

Status
Not open for further replies.

drew10

Programmer
Feb 26, 2002
123
US
I have a usercontrol that has a property called CallingPage that tells me which page my usercontrol is on. The code looks like so:

<cc1:title id=&quot;Title1&quot; runat=server CallingPage=&quot;0-1&quot; />

The problem I am running into is that when I try to dynamically set the CallingPage like so:

<cc1:title id=&quot;Title1&quot; runat=server CallingPage='<%=CP%>' />

it shows the calling page as <%=CP%> instead of the public value that CP is set to in the codebehind.

Any Ideas what might be causing this?

I use almost identical syntax to set the value of the border width for a table on the same usercontrol???

-drew10

 
Try it w/o the surrounding single ticks. It's trying to read it as a string literal.

-paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top