parameter

C

cedced

Hello,
How use a variable Javascript in a fonction VB.NET?
(Variable Javascript is executed in page_load but fonction VB.NET is
executed in asp button on_click)
IS it possible?
Thanks you.
 
K

Kevin Spencer

JavaScript is client-side. That is, JavaScript variables do not exist on the
server. So I don't understand what you mean by "Variable JavaScript is
executed in page_load". If you want to get a value from a JavaScript
variable that was set on the client from an event handler on the server,
you're going to have to pass it back to the server. You could put it into a
hidden form field, or you could put it into a Cookie.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top