"The ContentLength property contains the value of the Content-Length header returned with the response. If the Content-Length header is not set in the response, ContentLength is set to the value -1."
From the error you are getting, I would say the above applies to:
Hmm..since it is for a class where I assume you are suppose to be "learning" about programming, don't you think you should at least try first? If you get stuck on something, you can ask for help. How do you expect to learn?
I too had a hard time using more .NET methods than the old familier FileOpen types from the old VB days. I used a .split function since you advised your text file has the hour values in one line, each line being a day? Maybe I'm assuming too much. Anyway, the following reads the text file, one...
I would think you want to check a particular username for a password, not the other way around. It is quite possible to have several usernames with the same password, but unlikely to have multiple instances of the same username. So, with that in mind, the logic would be like this:
1) Query the...
Are you trying to get cell values by clicking in the datagrid? Or are you wishing to get the cell values by some other method?
If its by clicking around on the datagrid, you could use the _CurrentCellChanged event of the datagrid (Winform I am assuming) like this:
There is already a click event for CheckBox. It is the CheckedChanged event. You can always put code here to handle when someone clicks your checkbox.
Still, if you want to put an 'onclick' event on the checkbox, you need to add it to the attributes collection for the checkbox. Something like...
After you set the item you want to TRUE, disable the control by setting its .Enabled to FALSE.
That should work without any problems. If it still does not, post some code showing what your testing for at page_load and how your setting the selected item.
In your function your return value is boolean? Are you only wanting to know if there are selected values in the CheckBoxList? If so then you should Return True inside your loop. You currently return your boolean value after End Function, which of course won't be seen.
If your intention is to...
Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.CurrentCellChanged
MessageBox.Show("Col is " & DataGrid1.CurrentCell.ColumnNumber _
& ", Row is " & DataGrid1.CurrentCell.RowNumber _
& ", Value is " &...
What do you mean its not working? Can you not tab in the order you set up? Or is it doing something weird? Also, what type of controls are you trying to tab to? Many controls handle tab differently.
You need to iterate through each item in the checklistbox and see if it is selected. If so you could add them to, for example, and arraylist.
Dim checkedItems As New ArrayList
Dim i As Short
For i = 0 To cblTest.Items.Count - 1
If cblTest.Items(i).Selected Then...