Click here to Skip to main content
15,921,250 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Why is it the log4net doesn't work in deploy Pin
Colin Angus Mackay14-Dec-08 14:35
Colin Angus Mackay14-Dec-08 14:35 
QuestionRecreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz14-Dec-08 10:38
Ginozzzz14-Dec-08 10:38 
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Christian Graus14-Dec-08 11:08
protectorChristian Graus14-Dec-08 11:08 
AnswerRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh14-Dec-08 18:24
Nishant Singh14-Dec-08 18:24 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz14-Dec-08 23:26
Ginozzzz14-Dec-08 23:26 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Nishant Singh15-Dec-08 1:15
Nishant Singh15-Dec-08 1:15 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 1:57
Ginozzzz15-Dec-08 1:57 
GeneralRe: Recreating the VBA ComboBox Functionality on my aspx page Pin
Ginozzzz15-Dec-08 9:40
Ginozzzz15-Dec-08 9:40 
Okay, I'm a little stuck. I have posted my code of how I am filling my DDL. I am using a datareader.
Protected Sub FillOptionsList()
  ddl1.Items.Clear()

  Dim sqlStr As String = "SELECT Option1, Option2, Option3 FROM TblOptions WHERE Bid=1"

  Dim con As New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("myConnection").ConnectionString)
  Dim cmd As New SqlCommand(sqlStr, con)
  Dim reader As SqlDataReader

  Try
    con.Open()
    reader = cmd.ExecuteReader()


    Do While reader.Read()
      Dim newItem As New ListItem()
      newItem.Value = reader("Option1").ToString()
      newItem.Text = reader("Option2")
      ddl1.Items.Add(newItem)
    Loop
    reader.Close()

  Catch ex As Exception
    Label1.Text = "Error Reading list" & "  " & Err.Description
  Finally
    con.Close()
  End Try

End Sub


Please can you help me with the code to get option3 into an 'unseen column' within the DDL? I have tried a few things (not posted) but with no success, and I can't find any help online for this feature.
Thanks.
QuestionDetailsView and dropdownlist Pin
Sandraa14-Dec-08 8:01
Sandraa14-Dec-08 8:01 
AnswerRe: DetailsView and dropdownlist Pin
Marcelo Emmerich14-Dec-08 9:30
Marcelo Emmerich14-Dec-08 9:30 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa14-Dec-08 9:43
Sandraa14-Dec-08 9:43 
GeneralRe: DetailsView and dropdownlist Pin
Christian Graus14-Dec-08 10:14
protectorChristian Graus14-Dec-08 10:14 
AnswerRe: DetailsView and dropdownlist Pin
Nishant Singh14-Dec-08 17:09
Nishant Singh14-Dec-08 17:09 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa15-Dec-08 7:51
Sandraa15-Dec-08 7:51 
GeneralRe: DetailsView and dropdownlist Pin
Sandraa16-Dec-08 9:04
Sandraa16-Dec-08 9:04 
QuestionHow to load any configuration file other than web.config ? Pin
Bijay Deo14-Dec-08 7:30
Bijay Deo14-Dec-08 7:30 
AnswerRe: How to load any configuration file other than web.config ? Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 
QuestionA free hosting of ASP with Mysql Pin
abbd14-Dec-08 6:16
abbd14-Dec-08 6:16 
AnswerRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 8:20
protectorChristian Graus14-Dec-08 8:20 
GeneralRe: A free hosting of ASP with Mysql Pin
abbd14-Dec-08 9:01
abbd14-Dec-08 9:01 
GeneralRe: A free hosting of ASP with Mysql Pin
Paul Conrad14-Dec-08 9:08
professionalPaul Conrad14-Dec-08 9:08 
GeneralRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 9:35
protectorChristian Graus14-Dec-08 9:35 
GeneralRe: A free hosting of ASP with Mysql Pin
abbd14-Dec-08 10:00
abbd14-Dec-08 10:00 
GeneralRe: A free hosting of ASP with Mysql Pin
Christian Graus14-Dec-08 10:15
protectorChristian Graus14-Dec-08 10:15 
GeneralRe: A free hosting of ASP with Mysql Pin
Paul Conrad14-Dec-08 10:59
professionalPaul Conrad14-Dec-08 10:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.