Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / December 2006



Tip: Looking for answers? Try searching our database.

asp textfield value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iskofajardo@yahoo.com - 14 Dec 2006 04:23 GMT
how can i display a certain value inside a textfield? suppose i have a
table inside my data base, there were 2 columns inside my table. one is
idNumber and the other one is the correspnding name of the Employee...

my conditions is like this, if i found the idNumber in the record, the
value of textfield is the name of the employee...

can it be possible? how and what kind of code/conditions i have to put
inside ASP?

thanx
Bob Barrows [MVP] - 14 Dec 2006 11:58 GMT
> how can i display a certain value inside a textfield? suppose i have a
> table inside my data base, there were 2 columns inside my table. one
[quoted text clipped - 6 lines]
> can it be possible? how and what kind of code/conditions i have to put
> inside ASP?

Remember, all you are doing with ASP is generating html to be sent to the
client. So your first step is to learn how to write html (which is outside
the scope of this group - here are some groups that focus on html and css:
http://groups.google.com/groups/dir?sel=33584039). Once you realize that
html is simply a string of characters, you will come to the realization that
all you need to do in ASP is manipulate strings to generate the html which
you write to the Response object. So the top-level description of the task
you wish to perform is:

In server-side code:
- use ADO to retrieve the data from the database into a recordset.
- read the data from each record in the recordset and concatenate that data
into a string containing the html you wish to send to the client
- write the html string to Response.

For specifics, see this article which contains some recommendations and
examples:
http://www.aspfaq.com/show.asp?id=2467

Here is a link to the ASP scripting documentation:
http://msdn.microsoft.com/library/en-us/iissdk/html/2c40c3cf-90eb-41ca-ae2a-0ef3
3a651779.asp


Here is a link to the vbscript documentation:
http://tinyurl.com/7rk6

Signature

Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.