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

Binding to other simple controls

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello,I'm lost so can you please help me?
When I write Page.DataBind() the entire page is binded.What does that mean?
Why do list controls use DataSource property while
text controls don't need one?
It also seems that when you use DataBind()on list controls this method allready copies the values while with text controls you must also use <%# %>.Why is that and what kind of syntax is this(<%# %>)?
<asp:Label
//dll means some DropDownList object
Text=&quot;<%# ddl.SelectedItem.Text %>&quot;
Runat=&quot;server&quot;>

And last,I thought that declaration block(<asp:Label .../>)gets checked only when initializing the control,after that you can change properties only through methods,so why use <%# %>there if I use Page.DataBind() in Page_Load event handler?


I really appreciate your help.See ya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top