Code Comments
Programming Forum and web based access to our favorite programming groups.Can anybody tell me how to bind a text box to a SQL Server dataset? What is
the next line?
Dim conStatewide As SqlClient.SqlConnection
Dim MyDataAdapter As SqlClient.SqlDataAdapter
Dim MyDataSet As DataSet
MyDataSet = New DataSet
conStatewide = New
SqlClient.SqlConnection(" Server=myserver;UID=sa;PWD=secret;DataBa
se=Test")
MyDataAdapter = New SqlClient.SqlDataAdapter("SELECT * FROM PROPERTY WHERE
PropertyID = '1'", conStatewide)MyDataAdapter.Fill(MyDataSet, "Property")
MytextBox.Text = MyDataSet??????????????????
--
Mark A. Deal
Document & Data Solutions, LLC
http://www.docsol.com
Time Matters AIC
HotDocs Certified Consultant
GhostFill Certified Consultant
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.