OK, here's the thing. I have a variable named sTXT that I need to be able to set using a standard <a href> tag. The user should be able to click the link, and the sTXT variable will be changed to whatever value I have hard coded in for that link.
For example, if I have a section of links such as: Washington, Oregon, California, etc... then when the user hits that "Washington" link, sTXT is set to the value "Washington" and the page stays at the current page.
I've tried <a href="javascript:void(0)"; onClick='<% sTXT = "Washingon" %>' >Washington</a>, as well as a few variations of that.
And what happens is it seems to ignore the "onClick" and just automatically sets the value, regardless of whether it was clicked or not. I'm generally just having problems with the onClick...
I've tried making a button, just to test, with and onClick that goes is set to call a sub call, but it never works! I hit the button, and nothing happens. I know the sub call works though, because I can call it outside of the button and it works just fine
If anybody could help that would be awesome. I've tried looking at other more ASP based forums, but most questions go unanswered...