Hi,

I want to Display My Table Data In Textbox

I Have around 20 columns in my Table and I want to display each of that on particular TextBox.

How Can I Do this ?

I am using SQL Server as Database.

Please Give me code for this

Thank You

If you want to display text in a textbox you say

txtMyTextBox.Text = mystring

If mystring contains vbCrLf (carriage return/linefeed) then multiple lines will be displayed (as long as you have enabled that in the properties for the textbox). If you want a more specific answer then ask a more specific question. Are you having trouble with putting the data in the textbox or with getting the data from SQL Server? Are you having trouble connecting to SQL or accessing the individual fields or possible forming the query?

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.