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="<%# ddl.SelectedItem.Text %>"
Runat="server">
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
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="<%# ddl.SelectedItem.Text %>"
Runat="server">
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