473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP.NET server control property bind.

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.

Sep 7 '07 #1
1 1397
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)

dm********@gmail.com wrote:
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.
Sep 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tao | last post by:
I am newbie to C#. Here is a question: I want to bind a variable in my class to a control. I got tons of troubles to do so. Can somebody give me quick sample in C#(not VB) please. Thanks.
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
0
by: AMDRIT | last post by:
Hello everyone, VB2003-Winforms I have a class object (testclass), that I would like to bind parts of to two custom controls (control1 and control2). The testclass is stored in a hash table...
3
by: muthu | last post by:
Hi guys, Iam using a repeator control in my page.In wich i have dropdown list as the last column.I have a label in the first column.Now i have binded a datable to the repeator in the page load...
1
by: verge | last post by:
hello everyone! how's it going? like everyone in here im in need of some help and good friendship along the way...take a look at this: //MODIFIED SO IT DEALS WITH WINDOWS FTP USING ACTIVE...
12
by: SAL | last post by:
Hello, Is it possible to read a CSV from the Client, and bind my Datagrid to the data in the CSV file without uploading the file to the Server first? I have tried and in Debug mode on my...
9
by: mjheitland | last post by:
Hello, when I use a property grid to display all properties of a control I want to exclude the control's name. (The name of my control shall not be altered) How do I exlude the name? ...
7
by: Naveen | last post by:
I posted this message to another board and have hardly had any views on it, leave alone answers. So I am cross-posting here. This may be a very simple question but I can't get my head around it....
4
by: John | last post by:
Hello, I was wondering if it was possibly to bind a control to a dataset.haschanges property. The reason I want to do this is so that a little warning shows up on the form saying that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.