templated user controls

A

Adrijan Josic

Ok I have made a templated user control using the sample
in help that is used like this:

<General:WebPage id="WebPage1"
runat="server">
<Header>
header
</Header>
<Left>
<asp:Button
ID="test" Runat="server" OnClick="testClick"
Text="test "></asp:Button>
</Left>
<Content>
content
</Content>
</General:WebPage>

Ok, notice the server button inside on of the templates.
Is there any way I could declare that button as a property
of the page this code is on? I could probably access the
button using a couple of FindControl calls and typecasts
but that's a little tedious.

Thanks
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top