I just have notices that you can't access hyperlink as usually you access other serverside controls.
Suppose there is a Server side TextBox named “txtBox”
you will Access it in javaScript as
[document_name].[form_name].[Control_name].value
document.form.txtBox.value
here is assume that the name of my Server Side Text box is “txtBox“ and the name of my Form is “form“
okie this is the normal procedure . you can't Access Server Side in the same fashion. As it is rendered as <a> in the HTML so u have to send the function with the clientID parameter when want to access a hyperlink
your Code behind Code
Form_Load()
{
[ControlName].Attributes.Add(“OnClick“,“validate(“ + [ControlName].ClientID + “)“);
}
your Scripted Code
<script>
function validate(clientID)
{
var control=document.form.getElementById(clientid);
var.href=“ure specified url“ // or wat ever u want to do .
}
</script>
if you experience any problem in using the CODE just write me a mail on raiyawar@gmail.com