Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Customer Server Control - Help~


Message #1 by "Stephen Chu" <cheeseburger810@h...> on Tue, 14 Jan 2003 05:51:18
I have a custom control like this: 

<YY:Control id="Control1" attrib1="1" attrib2="20" attrib3="12"/> 

Is it possible for me to do the following to make my attribN's dynamic? If 
so, what do I have to do/add to my control (like, IEnum?) ? If not, are 
there ways to go around it? 

<YY:Control id="Ctrl1"
attrib1='<%# DataBinder.Eval(Container.DataItem, "DBField1") %>' 
attrib2='<%# .... %>' 
attrib3='<%# .... %>' 
/> 

Because the custom control I have by itself is like f(attrib1, attrib2, 
attrib3), it does something with those attributes and gives output. But I 
am reluctant to do database retrievals *within* the custom control logics, 
as it will make my control less flexible... 

Any help is appreciated...

  Return to Index