Click here to Skip to main content
15,908,264 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: create a forum like code project Pin
accessred27-Jun-07 19:56
accessred27-Jun-07 19:56 
AnswerRe: create a forum like code project Pin
RichardGrimmer28-Jun-07 1:06
RichardGrimmer28-Jun-07 1:06 
QuestionHelp in Web.Config file Pin
Biju Sam27-Jun-07 18:08
Biju Sam27-Jun-07 18:08 
AnswerRe: Help in Web.Config file Pin
sathesh pandian27-Jun-07 18:30
sathesh pandian27-Jun-07 18:30 
GeneralRe: Help in Web.Config file Pin
Biju Sam27-Jun-07 18:40
Biju Sam27-Jun-07 18:40 
GeneralRe: Help in Web.Config file Pin
sathesh pandian27-Jun-07 18:42
sathesh pandian27-Jun-07 18:42 
GeneralRe: Help in Web.Config file Pin
Biju Sam27-Jun-07 19:09
Biju Sam27-Jun-07 19:09 
QuestionHelp with dropdownlist [modified] Pin
ASPnoob27-Jun-07 17:46
ASPnoob27-Jun-07 17:46 
Hi, Suppose I have pulled out data from a database into a data reader and load the DropDownList as follows.
Dim ddDR As OdbcDataReader = Nothing
Dim ddOdbcConnection As New OdbcConnection("server=(local);database=[dbname];user id=username;password=password;connection reset=false;connection lifetime=5;min pool size=1;max pool size=50;")
Dim ddOdbcCommand As New OdbcCommand("SELECT * FROM TableName", ddOdbcConnection)
ddOdbcConnection.Open()
ddDR = ddOdbcCommand.ExecuteReader(CommandBehavior.CloseConnection)
DropDownList1.DataSource = ddDR
DropDownList1.DataTextField = "DisplayValueFieldFromDB"
DropDownList1.DataValueField = "DataValueFieldFromDB"
DropDownList1.DataBind()


What I would like to do now is read the Data from the DropDownList. I've read that the values can be retrieved as DropDownList.Items[index] - replace the
index with a number, which can go up to the maximum number of data members. I am not sure what the author meant by that could you please explain? Thank you in advance for your help.


-- modified at 1:01 Thursday 28th June, 2007
AnswerRe: Help with dropdownlist Pin
postmaster@programmingknowledge.com27-Jun-07 18:34
postmaster@programmingknowledge.com27-Jun-07 18:34 
QuestionConfused About Skinning User Controls Pin
expinch27-Jun-07 16:40
expinch27-Jun-07 16:40 
QuestionIf my GridView isn't bound to a SqlDataSource the edit control doesn't work Pin
InvalidTypecast27-Jun-07 15:57
InvalidTypecast27-Jun-07 15:57 
QuestionWhich is Better? Pin
Kasson27-Jun-07 15:38
Kasson27-Jun-07 15:38 
AnswerRe: Which is Better? Pin
Venkatesh Mookkan27-Jun-07 16:57
Venkatesh Mookkan27-Jun-07 16:57 
GeneralRe: Which is Better? Pin
Kasson27-Jun-07 17:17
Kasson27-Jun-07 17:17 
AnswerRe: Which is Better? Pin
accessred27-Jun-07 18:22
accessred27-Jun-07 18:22 
GeneralRe: Which is Better? Pin
Kasson27-Jun-07 18:34
Kasson27-Jun-07 18:34 
GeneralRe: Which is Better? Pin
_AK_27-Jun-07 19:54
_AK_27-Jun-07 19:54 
GeneralRe: Which is Better? Pin
accessred27-Jun-07 20:15
accessred27-Jun-07 20:15 
AnswerRe: Which is Better? Pin
Sathesh Sakthivel27-Jun-07 18:50
Sathesh Sakthivel27-Jun-07 18:50 
GeneralRe: Which is Better? Pin
Kasson27-Jun-07 18:53
Kasson27-Jun-07 18:53 
AnswerRe: Which is Better? Pin
sathesh pandian27-Jun-07 18:53
sathesh pandian27-Jun-07 18:53 
GeneralRe: Which is Better? Pin
Kasson27-Jun-07 18:55
Kasson27-Jun-07 18:55 
AnswerRe: Which is Better? Pin
Sathesh Sakthivel27-Jun-07 19:03
Sathesh Sakthivel27-Jun-07 19:03 
GeneralRe: Which is Better? Pin
Kasson27-Jun-07 19:07
Kasson27-Jun-07 19:07 
GeneralRe: Which is Better? Pin
sathesh pandian27-Jun-07 19:36
sathesh pandian27-Jun-07 19:36 

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.