display data

  • Thread starter Thread starter Mike
  • Start date Start date
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
 
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";
 
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";
 
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
 
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
 
Back
Top