Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server vs Client interchange

Status
Not open for further replies.

nuVBer

Programmer
Jul 6, 2001
63
US
OK, I'm new to ASP so give me a break, but I really don't understand how to get data (specifically db records) that I generate in ASP to client side vbscript. I need the ASP to create the records, but I can't get them into or make reference or anything to them in vbscript where I can use them. Am I just s.o.l. or what? I've tried everything I have seen on this, but nothing works.
 
So your ASp pages queries the DB, gets some records and then ypour ASP pages display that info back to the user? If you are talking about using the DB records in client cide script in your ages script do this
<script language=&quot;VBScript&quot;>
strSomeVar = &quot;<% =rs(&quot;UserName&quot;) %>&quot;
</script>

Then when your page is sent to the client it would look like this
<script language=&quot;VBScript&quot;>
strSomeVar = &quot;Bob smith&quot;
</script>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top