hi ,,i m using asp.net 2005 in VB language and sqlserver 2005,,so here i m with a new problem......i have a textbox and a button in my form,,,i m using a table called as details..i want the fname from details table to be displayed in the textbox and on the click of the button the next fname should be displayed in the text box....ok first things first,,i can bind the fname to a dropdown list,,but how can i bind it to a text box...
waiting for ur reply guys,,thnks in advance:(
johnny.g
0
Junior Poster in Training
Recommended Answers
Jump to Postyou can make a variable
dim i as int32 = 0
for each click (button)
i +=1
and make the i is the index of rows in the data base
don't forget to handle the last row of the data base
Jump to Postyou can take the resulr in a reader then populate the reader contents in arraylist. then populate the values form arraylist. i have coded it in C#
SqlCommand m_Command=new SqlCommand(CommandText,m_Connection); m_Connection.Open(); SqlDataReader Reader = m_Command.ExecuteReader(); while(Reader.Read()){ int j=0; object[]values=new object[Reader.FieldCount]; Reader.GetValues(values); rowList.Add(values[i]); j++; } Reader.Close();
on button …
All 6 Replies
johnny.g
0
Junior Poster in Training
johnny.g
0
Junior Poster in Training
ahmedfathy
0
Newbie Poster
carobee
0
Posting Whiz in Training
greeny_1984
14
Posting Whiz
P.K.Chaudhary
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.