The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Its more javascript though, because Im asking for help specifically for writing a line of javascript.

Ill try to explain again.

Im trying to reload the page, and have some sort of variable set that can be accessed after/during the page refresh. The variable will be set to different values depending on what text link was clicked.

Lets say I have two links:

Link one
Link two

If the user clicks one, a value such as "Userclickone" to be in the http post vars contained in a variable called something like 'linkval' so I can access it on the next page refresh. If link two is clicked I want to see "Userclicktwo" in 'linkval' variable.

Is it a different page? Are the values needed to be retrieved user specified? There are a myraid of ways you can do this very easily with C# and webcontrols without the need for JavaScript at all, and without any real effort either.

Example, if you have two links, and want to determine what link is pressed, you simply need to LinkButton controls, with the CommandArgument set for each and use a single handler to determine which was clicked by checking the CommandArgument. Or you can have a handler for each LinkButton. Or use the CommandName method.

If you can explain exactly what your wanting to accomplish, we can prolly help more.

Now on the page refresh my C# can dig into the post params and dig out which one it clicked, allowing me to run specific code when the page is refreshed. (Im not working accross pages, just refreshing one and making it work differently).