display data

M

Mike

I need to display data in text boxes not datagrid, can anyone point to some
examples on how this is done in VB.NET?

in the old way it was <input type="text" value=<% dataitem %> >

how can i do this in the .net world from db connection to populating the
text boxes .net
 
M

Mike

Ok thanks,
so i would just have my connection string to the DB, write my SQL,

then do textbox.text = dataItem?


Can do from codebehinmd


so

this.myTextBox.value = "My value for text box";
 
D

Darren Clark

Well you would get your data however you get your data..

so in psudo code

Get Data from DB...

then

textbox.text = oDataItem.toString()

type thing

Ok thanks,
so i would just have my connection string to the DB, write my SQL,

then do textbox.text = dataItem?


Can do from codebehinmd


so

this.myTextBox.value = "My value for text box";
 
S

Steven Cheng[MSFT]

Thanks for Darren's suggestions.

Hi Mike,

In addition to the ASP.NET web server controls, we can also use Html Server
controls in asp.net web pages. Here is the Html Server Control's reference
in MSDN:

#HTML Server Controls
http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconASPSyntaxForHTMLC
ontrols.asp?frame=true

And below are the reference on setting ASP.NET SErver control or Html
Server control's property
#Setting Web Server Control Properties Programmatically
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskSettingWebControlPro
pertiesProgrammatically.asp?frame=true

#Setting HTML Server Control Properties Programmatically
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskSettingHTMLControlPr
opertiesProgrammatically.asp?frame=true

Hope also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
G

Guest

just to display data
you have ASP.NET Server control and Html Server control

expect next version to have another one

this is why you love and hate asp.ne

:

----- Steven Cheng[MSFT] wrote: ----

Thanks for Darren's suggestions

Hi Mike

In addition to the ASP.NET web server controls, we can also use Html Server
controls in asp.net web pages. Here is the Html Server Control's reference
in MSDN

#HTML Server Control
http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconASPSyntaxForHTML
ontrols.asp?frame=tru

And below are the reference on setting ASP.NET SErver control or Html
Server control's propert
#Setting Web Server Control Properties Programmaticall
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskSettingWebControlPr
pertiesProgrammatically.asp?frame=tru

#Setting HTML Server Control Properties Programmaticall
http://msdn.microsoft.com/library/en-us/vbcon/html/vbtskSettingHTMLControlP
opertiesProgrammatically.asp?frame=tru

Hope also helps. Thanks

Regards

Steven Chen
Microsoft Online Suppor

Get Secure! www.microsoft.com/securit
(This posting is provided "AS IS", with no warranties, and confers no
rights.

Get Preview at ASP.NET whidbe
http://msdn.microsoft.com/asp.net/whidbey/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top