hi
i can not bind text box at runtime successfully in vb.net2003
the code is describe below
imports system.data.sqlclient
dim conn as new sqlconnection
dim cmd as new sqlcommand
dim adp as new sqldataadapter
dim ds as new dataset
// form load
conn.connectionstring=""
cmd.commandtype=commandtype.text
cmd.commandtext="select * from master_dept"
cmd.connection =conn
conn.open
adp.selectcommand=cmd
adp.fill(ds)
textbox1.databinding.add("text",me.ds,"master_dept.dept_name)
hirtej 0 Newbie 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.