Looking for a control which can select a value or input a value

As I knew, dropdown list can only allow user to select a value.

Is there any control let user to select a value or input a value?

0
aspfun
4/29/2009 5:29:54 PM
asp.net.web-forms 93655 articles. 5 followers. Follow

4 Replies
632 Views

Similar Articles

[PageSpeed] 23

it depends on your requirement ... you will have to create a custom control ..

what are you trying to do ?


Please remember to click “Mark as Answer” on the post if this answer helps you.

Abdulla AbdelHaq
MCTS, MCPD
How to ask a question


0
Abdulla
4/29/2009 6:11:46 PM
What I need is to list about 15 items to let user select.
Also, user can input a item which is not under list.
0
aspfun
4/29/2009 6:20:05 PM

 so .. what is the problem of using textbox and listbox ?

or gridview control, use the insert mode and create a templatefield and place inside it a checkbox control for selecting row ..

sorry if my answer was too simple :)


Please remember to click “Mark as Answer” on the post if this answer helps you.

Abdulla AbdelHaq
MCTS, MCPD
How to ask a question


0
Abdulla
4/29/2009 6:28:26 PM

aspfun:

As I knew, dropdown list can only allow user to select a value.

Is there any control let user to select a value or input a value?

Based on your description, It seems that you want to create a dropdownlist which allows user to input/modify the Item. If this is the case, I suggest you try to refer to this article.

This article talks about how to create a editable DropdownList.

http://www.codeproject.com/KB/custom-controls/combobox.aspx


Gary yang - MSFT
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
0
Gary
5/5/2009 4:03:01 AM
Reply:

Similar Artilces:

when loading a previously created record on to form, some controls are missing values(controls are depended on values selected in other controls)
Hello - I have created a page for Editing records.  this page will open up a chosen record and allow user to edit the data.On the form, I have 3 drop down lists.   The second dropdown list should fill values depending on value chosen in first dropdown list.  The third dropdown list should show/fill values depending on value chosen in second dropdown list.So taking this into count, i have several records with various data.  When I open-up/load a record in Edit form, only the first dropdown list has a value selected that was the pre-existing va...

Feeling dumb. How can I populate the value of a normal form <input> element? (not .net control)
Hi, I can't figure out how to programmatically add a value to a normal html form input element. I must be missing something. I can add a value to a regular .net form control but not a plain old html element. What is the asp.net equivalent of getelementbyid? Thanks for your time!Jason  jholland99: I can't figure out how to programmatically add a value to a normal html form input element First thing to do is switch to HTML source view for your web page, locate the html control and add the runat attribute for it.What this does is it allows your code behind pa...

how can i Fill the controls on web page by selecting value from dropdownlist control.
  Hi,  Currentlly i am working on a web application where i require to fill the web form with the selected item in a text box. for example i have dropdown control named supplier_name, and i want to fill all the other controls values from database on the form when i select name from that supplier_name box,i.e , if i select name1, then related to that name, its code,address ,city should appear on related text boxes. I have done the same in windows application with c# , but the problem with web application(asp.net) is that, when i select Supplier _ it...

Clearing Web Controls Values from a Web Form
I have a web form and after a user submit it I want to clear the form so that they may submit another entry. I have seen examples in VB of how to loop thru a web form and clear the controls, but I need a C# solution. I have tried the following code, while it does not give me an error, it does not clear the controls on the form. Any suggestions? Thanks! foreach (Control parent in Page.Controls)         {             foreach (Control child in parent.Controls)           ...

Retreiving a value from a web form within a web user control
Hi  I have a page (web form) that retreives some data from a database. To be more specific: at some point when user clicks a button (in the web form) there is some ID number retreived from a database in code behind. At the same time the Visible property of the nestet web user control is chamged to true. I want than forward the ID to the web user control so that a grid view can load data from a database for that ID. How can I access that data (the ID) within a web user control context nested in that page?  Kind regards   Check this ;ink  http://www.codeproject.com/K...

values of web controls in user control can not be access from other pages???
I have aspx page(brief code: includes ascx file) <%@ Register Src="reseller.ascx" TagName="reseller" TagPrefix="uc1" %> <form id="form1" runat="server"> <uc1:reseller ID="idreseller" runat="server" /> </form> the code for asxc file . i have the PostBackUrl to reseller.aspx <asp:TextBox ID="txtPostCode" runat="server" CssClass="form1" Width="50" MaxLength="4" /> <asp:ImageButton ID="ibtn"  ImageUrl="images/searchbutton.jpg" PostBackUrl="~/reseller.aspx" runat="server"  /> In my reseller page i try to read the post value of control txt...

Dropdownlist selected value passes first value in list no matter what value is selected. why ?
 HI . I have a dropdownlist. Databinds ok but when I must pass a value as a Selected value it always passes the first value in the list even if I select another value. I tried to set the ddl to enableviewstate false but it doesn't change anything. Any ideas ? Code below, thanksLoading the ddl:       productCategories = CatalogAdmin.Admin_Product_Categories_NotIn(productId);        for (int i = 0; i < productCategories.Rows.Count; i++)        {       &...

Control.Value and Control.SelectedItem.Value
Can someone explain to me the difference between say, Dropdownlist.SelectedItem.Value and Dropdownlist.SelectedValue?? Just curious, Thanks!Tim These are going to return the same thing. dropdownlist.selectedvalue is a shortcut to get the currently selected value in the dropdown. If that is all you want then you can just use that. If you want to access the currently selected item you can use dropdownlist.selecteditem and that return the item and you can then access any of the item's properties, including in this case the value property. If this post answered your question please r...

How can I open a .Net web applicaiton from a web service page and return values
 Hi allhere is what I need from an Oracle jdeveloper form, click on a button, open a web application in .Net, let the user choose several options and calculate a Total Amount, return the total amount to the jdeveloper application,could it be done with a web service?the Oracle jdeveloper form calls a web service that opens my .Net  web applicationmy web application returns a Total Amount value, my web service returns the Total Amountthe jdeveloper form gets the Total Amountthanksjsn     jsn1:  Hi all here is what I need  from an Oracle jdeve...

Passing Values from a Web Form to Another Web Form
Hello All! I am trying to pass values from one web form to another web form. I know that there are 3 ways of doing this: queryString, Server.Transfer and Session. I am using the Server.Transfer method. But I am not able to create, in my 2nd web form, an instance of my 1st web form. My 1st Web form is named CallTrack.aspx and my 2nd is named Export.aspx. What I mean is something like this: Public value as CallTrack. I can't create it in my 2nd web form because when the intellisense is displayed, there's no CallTrack in the options. Thanks!   How about using cross-...

Setting the Parameter Value to the Property Value of a Web Control
I want to filter my DetailsView with a declarative parameter. In my case, I am setting the SqlDataSource's parameter values based on the value of 2 TextBox controls on the page. I have a SP that does a SELECT based on 1 of the parameters passed in (either an ID or phone number). Param Name          Value MemberID          TextBox1.Text Phone               TextBox2.Text I want to assign a default value of 'null' for b...

can i drag the selected value of dropdown list in one web part to another web part
hi, supose i am having time displaying in on webpart can i drag the value of time to another web part and and display the time is: and the value draged from the other webpart so i want to drag the value year and population into antoher web part and according to that the grap must appear i.e what  i exactly want is i must drag some value from one webpart to onother webpart and according to event some thing must happen in another web part   Hi, The problem has been replied in the following post: http://forums.asp.net/t/1141884.aspx But from the title you described, do ...

How to get the HREF value of the Anchor tag in a web page using the web browser control in vb.net
Hi Friends,               i have a webserver control in my application.i load the web browser control on a button click using the below code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click                AxWebBrowser1.Navigate("http://www.rateitall.com/i-322335-.aspx", False) End sub once the page is loaded in the browser i want the <a> HREF value in that page.For example if that page has ...

Passing values from a parent web control to child web control
I have a parent control which called CONTROL1 and a child control witch called CONTROL2 I would link to pass a value from the parent control to the child control. In the parent control(CONTROL1) I have the following Event Handler . private void btn_Handler(object sender, EventArgs e) { …      if (Page.IsPostBack) {              // Send the officer names to the child controls.             if(m_nameList.SelectedItem.Text != "")     ...

Web resources about - Looking for a control which can select a value or input a value - asp.net.web-forms

Deadline’s DGA Awards Live Blog
The big takeaway from tonight’s 68th annual Directors Guild Awards will be sheer clarity in regards to what film might have the best chance of ...

‘Playboy’s’ First Non-Nude Issue Makes Debut At Super Bowl 50 Party
Playboy is making some major changes this year. The struggling men’s magazine is finally doing away with nude photos like it promised last year. ...

132 people trapped in Taiwan rubble
A TOTAL of 132 people are trapped beneath the rubble of a Taiwan apartment tower that collapsed in a powerful earthquake.

Maduro, Sanders and Clinton: Compare and Contrast
(John Hinderaker) Socialism always fails, and it’s always someone else’s fault. In the last stages of socialist collapse, when there is not ...

N. Korea launches space rocket in defiance of sanctions threats
North Korea launched a long-range rocket on Sunday, violating UN resolutions and doubling down against an international community already struggling ...

Twitter users decry reported plan to prioritize tweets
NEW YORK (By Amy Tennery, Reuters) – The hashtag #RIPTwitter became the top trending U.S. item on Twitter on Saturday, after a report from BuzzFeed ...

At least two presumed dead after plane crashes into ocean off San Pedro
Los Angeles Times At least two presumed dead after plane crashes into ocean off San Pedro Los Angeles Times Rescue personnel were called out ...

Turkish border crossing closed as Syrians flee govt offensive
The United Nations said some 20,000 people have gathered at the Bab al-Salam crossing, hoping to reach Turkey, which already hosts more than ...

More Than 3,100 Pregnant Women In Colombia Have Zika Virus, 25,645 Total Infections, President Santos ...
More than 3,100 pregnant women in Colombia are infected with the mosquito-borne Zika virus, President Juan Manuel Santos said on Saturday. According ...

Syrian Foreign Minister Walid al-Moallem has warned that foreign ground troops entering Syria would “return ...
FOREIGN Minister Walid al-Moallem warned that foreign ground troops entering Syria would “return home in wooden coffins.”

Resources last updated: 2/7/2016 4:14:24 AM