ASP.NET server control property bind.

  • Thread starter Thread starter dmitryslx2
  • Start date Start date
D

dmitryslx2

Hi.
Is there any syntax in ASP.NET to bind some value to server control
without need of calling DataBind method?

I have this statement:
<att:timeZone id="timeZone" runat="server" SelectedIndex="<
%=UserManager.CurentTimeZone%>" />

So I want to set SelectedIndex to a value from global static field
UserManager.CurentTimeZone.
I know that this is possible by using bind syntax and calling
DataBind() method. But I want to set this property only in .aspx file
without using code-behind.

Thanks.
 
no. the binding expression is stored as the property value, then the
databind replaces it with the databind results.

you could write a databinding control, that performed a databind on its
children automatically.

-- bruce (sqlwork.com)
 
Back
Top