ASP.Net ITemplate - how do i get the content inside
Posted
by Mahes
on Stack Overflow
See other posts from Stack Overflow
or by Mahes
Published on 2010-04-08T20:04:53Z
Indexed on
2010/04/08
20:13 UTC
Read the original article
Hit count: 418
i have situation where in i would like to read the content of the ITemplate.
for example i have something like
<WD:PopUpPanel runat="server" ID="MyPoPUp">
<InitScript>
// javascript
document.getElementByID('urName').value = 'enter your name';
</InitScript>
<Content>
Name:<asp:TextBox runat="Server" ID="urName"/>
</Content>
</WD:PopUpPanel>
basically the contents inside the InitScript
is some javascript, which i want to use in ScriptManager.RegisterScript
.
so my question is how do i define InitScript???
i tried public ITemplate InitScript;
but this give CompiledTemplateBuilder object, how do i read the content inside InitScript
???
thanks for reading...
© Stack Overflow or respective owner