I want to get a list of months from my database. I want my drop down list to show only months that have orders. I have SQL query to get the number of the month, but how can I convert it to text?
Mark Kenyon II
http://www.geocities.com/qwert231
Yea, but it was a while ago. I believe I had to set the BindingContext of the form (Me.BindingContext.Position = 0) or something like that.
Mark Kenyon II
http://www.geocities.com/qwert231
Thank you. I think you're starting to see it. I have the ddList populating correctly, even selecting the correct value. Now all I need is that when they change the value and hit submit the new value is loaded into the database. As well as if they changed the checkbox and/or the textbox.
I am...
Actually, you are a bit mistaken. I am not using a listbox, I am using a DataList, which is similar to a Datagrid. There are multiple items in the DataList representing rows of a datatable. Each item (cell) containts a radiobutton, textbox, and a drop down list.
<asp:datalist...
I have my datalist with one check box, and one text box. Is there a way to just have a data adapter update set all the changes at the database? Or do I have to read through each datalist item and update one at a time?
Thanks Is, actually, I am doing an ItemDataBound event that finds my Drop down, sets it's datasource, and also, sets it's Selected.
Here's the code:
Private Sub dlTest_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlTest.ItemDataBound...
I have a datalist that will show a dropdownlist for every item. I want that datalist to reflect a value stored in the database as well as allowing the user to change that value with one of the other items in the list. Any pointers?
Hmm... I design time DataBind the textbox with a typed dataset, and I didn't notice before, but with VS 2k3 you have a drop down box that allows you to specify formatting. Thanks for the tips tho.
I have a typed dataset that gets filled from a SQL table with money datatype fields. When I bind to my text boxes I get 4 decimal places. What's the best way to show only 2 decimal places? Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.