asp textfield value
am 14.12.2006 05:23:24 von iskofajardo
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
Re: asp textfield value
am 14.12.2006 12:58:13 von reb01501
iskofajardo@yahoo.com wrote:
> 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?
>
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-0ef33a651779.asp
Here is a link to the vbscript documentation:
http://tinyurl.com/7rk6
--
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"