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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net and javascript?

Status
Not open for further replies.

Sidro

MIS
Sep 28, 2002
197
US
hi,

Is it possible to use asp.net and javascript together?
Can I process some number, assign it to a variable and then
pass that variable to a javascript? If so, could you please provide some examples on how to do this? Thankx in advance.
 
First, yes you can use asp.net and javascript in the same application.

Net does the server-side stuff while javascript handles whatever can be done on the client-side.

As to passing variables between the two, yes and no....

Asp.net and javascript don't share session variables, but you can get a value from one to the other by putting it in
a hidden field on your form. Net can access on the host side via a postback while javascript can access it on the client side.

I don't have a sample handy, but I'll look around and post on when I find it.

Good luck
TT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top