Search results for query: *

  • Users: macca
  • Order by date
  1. M

    Error Message Being Thrown

    I keep getting the following error message in my vb.net code: "Format of the initialization string does not conform to specification starting at index 0." I get the message when I refer to a class from a web form, when this code runs: oPolicy = New Policy oDR = oPolicy.GetPolicy() I am...
  2. M

    Arrays?

    Thanks for the reply. But how do I output what the value of s(1) or s(2) is, can I do this: value = s(1) in order to use value for something else
  3. M

    Arrays?

    I have a variable "nextnum", nextnum could have a value of 1,2,3,4,5,6, or 7 all the way to 50. Depending on the value of nextnum I want to give a certain outout, i have it partially done using IF..Else If NextNum =1 Then DeptName = "Bloggs" ElseIF NextNum = 2 Then DeptName = "joe" Else...
  4. M

    DropDownList/ Button Problem

    I have a Drop down List and button on an asp page as such: asp:DropDownList id="DropAuthors" runat="server" asp:Button id="Button1" runat="server" Text="Pick Author" The dropdown list is populated from a Database Table using the following code: Dim myConnection As SqlConnection Dim...
  5. M

    Databinding

    David, How does the code you supplied me read the data from the database using the datatable? Macca
  6. M

    Databinding

    David, Thanks for your reply. I think that I might try using the code with the tempgage datatable in it. i want to combine it with the following HTML on a page I have: '<td> '<select id="state" runat="server" NAME="state"> '<option selected>CA</option>...
  7. M

    Databinding

    I have a sqlserver table with values stored in it. I am trying to write the values to a dropdownlist. Someone told me that to do this properly in VB.net that I should consider using complex Databinding. Has anyone any useful resources on databinding or any code snippets demonstrating code...
Back
Top