473,396 Members | 1,938 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.

How to Create a Property Which will contain a Dropdown?

Dear Concerned,

I want to create a property in my user control which i am creating in Web Control Library. I am using .Net 2003.

My question is that how I can create a property that will contain a dropdown list & will have five values 1,2,3,4,5.

The Programmer will be able to select one of these values at design time in his aspx page.

Please help in the form of code.

Thanks,

Fasih
Nov 24 '06 #1
0 871

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Simon Harvey | last post by:
Hi all, Am I being really stupid here: myDropDown.SelectedIndex = 2 I think this line should set the dropdown control's selected item to 2. But nothing seems to be happening on the page....
2
by: Charlie | last post by:
Hi: I'm getting tired of typing get/set property definitions especially when my class has a lot of fields. Is there a way to have the VS.NET IDE declare them automatically? Thanks, Charlie
4
by: Nathan Sokalski | last post by:
I am looking for a property of the System.Web.HttpRequest class that will always be different. Is there a property that uniquely identifies each Request (at least within the specific Session)?...
5
by: ypul | last post by:
How to use properties in webservice ? if I want to create a webservice as my middle tier and want to create public properties so that the presentation layer can assign values to the property...
1
by: Ryan Liu | last post by:
Hi, Why TcpClient has a method TcpClient.GetStream(), not just a read only property? By implementing it as a method, does that mean, each time GetStream() could return a different stream? In...
6
by: Marc Robitaille | last post by:
Hello, Is it possible to add a property to a class on the fly? If yes, How can I do this or where can I find an exemple? Thank you Marc R.
4
by: Boki Digtal | last post by:
Hi All, C# exe file will contain programmer info right ? So, Microsoft or hacker can easily know who design that program ? correct ? Best regards,
0
by: =?Utf-8?B?TWlrZSBNaWxpYW4=?= | last post by:
I have a dropdownlist control in a formview and I am trying to enable 2 way databinding. Only, the option is not available. I look at the "Edit Databinding" option of another DDL control in the...
1
by: braineater | last post by:
Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes:...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.