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 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 …
Jump to Posthi,
try like this
<table> <tr> <td> <asp:TextBox ID="txtid" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Button ID="btnsubmit" runat="server" Text="Submit" OnClick="btnsubmit_Click"/> </td> </tr> </table> in code behind: static string[] strname; static int count=1; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindGrid(); } } private void …
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.