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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

databinding child controls

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I have the following:

<Toolkit:XMLTransformer RUNAT=&quot;SERVER&quot; xslFilePath=&quot;xml/test.xsl&quot; xmlFilePath=&quot;xml/test.xml&quot;
sessionID=&quot;<%# Session.SessionID%>&quot; debug=&quot;true&quot;>
<Toolkit:parameter Name=&quot;xmlFilePath&quot; Value=&quot;xml/test.xml&quot;/>
<Toolkit:parameter Name=&quot;xslFilePath&quot; Value=&quot;xml/test.xsl&quot;/>

<Toolkit:parameter Name=&quot;MULTIPASS&quot; Value=&quot;<%# 'string here'%>&quot;/>

</Toolkit:XMLTransformer>


I need to be able to use databind with the parameters so I can customize the parameters which are for an XSL transformation, but at the moment the value for MULTIPASS is being passed as null.

All other databinding works, just not in these nested controls. Why is this?

<bb/>
 
It turns out we have to manually add child nodes to the controls collection if they are parsed as attributes - and then DataBind them.

This can be done the other way too, by searching the Controls collection, and matching NamingContainer - and getting the parameters that way.

<bb/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top