ASP.NET server control property bind.

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.
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top