This statement is not working and I think it is due to syntax....I think I am missing a " or something...
strUpdateStatement = "UPDATE Employee_Info SET PayPeriod='" & dropdownlist2.selecteditem.value & "', Hours='" & HourlyRate.Text & "' WHERE Employee_ID=12...
Hi all again,
Here is the code that works:
Dim elements() As String = New String() {"1", "2", "3"}
Dim i As Integer
For i = 0 To ubound(elements)
Me.dropdownlist2.Items.Add(New ListItem(elements(i)))
Next
However, instead of New String()...
Hi all,
I want to populate a drop down list with the integers 1 through 52. Instead of writing out a list item for each item I want to create an array to store the 52 values and then bind them to the dropdownlist. Any ideas on how to code this?
I have a dropdownbox that I select a number. I assign the value of the box to x. I then want to use x in an sql statement.
Here is the code for the button:
Sub Button1_Click(sender As Object, e As EventArgs)
Dim ds As DataSet =new DataSet()
dim x as string
x=dropdownlist1.selecteditem.value...
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.