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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top