473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

display data

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
Nov 18 '05 #1
6 1149
Can do from codebehinmd
so

this.myTextBox.value = "My value for text box";
"Mike" <me@me.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #2
Ok thanks,
so i would just have my connection string to the DB, write my SQL,

then do textbox.text = dataItem?
"Darren Clark" <dc******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Can do from codebehinmd
so

this.myTextBox.value = "My value for text box";
"Mike" <me@me.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #3
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

"Mike" <me@me.com> wrote in message news:OW****************@TK2MSFTNGP12.phx.gbl...
Ok thanks,
so i would just have my connection string to the DB, write my SQL,

then do textbox.text = dataItem?
"Darren Clark" <dc******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
Can do from codebehinmd
so

this.myTextBox.value = "My value for text box";
"Mike" <me@me.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #4
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...SyntaxForHTMLC
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...gWebControlPro
pertiesProgrammatically.asp?frame=true

#Setting HTML Server Control Properties Programmatically
http://msdn.microsoft.com/library/en...gHTMLControlPr
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
Nov 18 '05 #5
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...PSyntaxForHTML
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...ngWebControlPr
pertiesProgrammatically.asp?frame=tru

#Setting HTML Server Control Properties Programmaticall
http://msdn.microsoft.com/library/en...ngHTMLControlP
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

Nov 18 '05 #6
Hi Mike,

Have you got any further ideas on this issue? If you have anything unclear
or if there're anything else we can help, please feel free to post here.
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

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: StepH | last post by:
Hi, I'm building a little application, which the goal is to: 1./ Collect data via Serial line and or via a file (for playback). 2./ Display these data as graph, oscilloscope, ... How manage...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
2
by: Kay | last post by:
This function is used to display the context of a queue. I input an integer comparing with the queue cuisine number, if cuisine number is same as the input, it shows the context. However, it cannot...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
7
by: Stefan Finzel | last post by:
Hi, is there a way to change the display property on Windows Mobile 2003 SE Mobile/Pocket Internet Explorer? See following example. Please note: visibilty property has the same problem. Is...
1
by: JK | last post by:
In my win form, I'm trying to display a Crystal report with the data in my dataset only but, if I follow the steps in this msdn page: ...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
1
by: Eric Keung | last post by:
Hi all, my case is I want to get an image from access database and I just know it's "OLE object" field type at access I also don't know how to insert it into access here is my code and it just...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
18
by: Terry Holland | last post by:
I have an asp.net (1.1) application that connects to a SQL server 2000 db. I have a stored procedure in my db that out puts data in xml format. What I need to be able to do is display that xml...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.