As usual, nothing is said about how or when the data is being
retrieved from
the database. Sigh.
Let's say the data is available when the page loads. Thus,
HTML controls of
type="hidden" can be populated with the data retrieved from
the database
during the page compilation process. The data in the HTML
controls can then
be referenced using the document object model in your
JavaScript.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL
http://clintongallagher.metromilwaukee.com/
MAP
http://wikimapia.org/#y=43038073&x=-88043838&z=17&l=0&m=h
"Feras_86" <webforumsuser@macromedia.com> wrote in
message
news:en828c$dm$1@forums.macromedia.com...
> hello
> I have this simple javascript code:
>
> <script language="JavaScript"
type="text/javascript">
> var Emp = new String(3);
> Emp[0] = fname;
> Emp[1] = mname;
> Emp[2] = lname;
> </script>
>
> the question is : how to give values to fname, mname,
lname from a
> database
> table using asp.net? ( table contains :
Fname,MName,LName)
> thx alot guys
>