Click to See Complete Forum and Search --> : Passing Values from javascript to ASP


mattgb1
July 24th, 2007, 03:59 PM
I have a JavaScript function that successfully sets the .src property of an <img> control, but when I click on an <asp:ImageButton> control, the server side reports that same control's .src property as the value it had at design time.

How can I get JavaScript to set it on the server side?

PeejAvery
July 24th, 2007, 07:06 PM
Since the server-side language is always executed first and then sent to the browser, the only way for JavaScript (client-side) to get back to the browser is to use AJAX or a form.