M
Mike
I have an ASP.NET webform that has an HTML button (with an onClick
event that calls a javascript function) and a Web Forms button (the
code behind click event saves data back to a SQL DB).
The javascript function basically creates a variable such as:
var someStrings = "foo1.jpg,foo2.jpg,foo3.jpg,foo4.jpg"
I really need to be able to access this javascript variable from the
Click event of my Web Forms button so that I can pull the file names
out of this string and do some database work on them.
Any ideas? I've thought of putting a web forms textbox on the form
and having my javascript function place the string contents in there
which is easily accessible by my web forms button click event, however
now I have an unsightly textbox that should not be on my form.
Is there an easier way to access the contents of a javascript
(client-side) variable from the click event of my web forms button?
Thanks!
event that calls a javascript function) and a Web Forms button (the
code behind click event saves data back to a SQL DB).
The javascript function basically creates a variable such as:
var someStrings = "foo1.jpg,foo2.jpg,foo3.jpg,foo4.jpg"
I really need to be able to access this javascript variable from the
Click event of my Web Forms button so that I can pull the file names
out of this string and do some database work on them.
Any ideas? I've thought of putting a web forms textbox on the form
and having my javascript function place the string contents in there
which is easily accessible by my web forms button click event, however
now I have an unsightly textbox that should not be on my form.
Is there an easier way to access the contents of a javascript
(client-side) variable from the click event of my web forms button?
Thanks!