I want to call a onclick function of server side like below(i.e in test.aspx.cs)
protected void linkTest_Click(object sender, EventArgs e)
{
string a=HiddenField1.value;
Response.Write("<script>alert("+a +" is called)</script>");
}
And i am passing the test.html as src in Iframe(i.e in test.aspx)
<asp:HiddenField ID="HiddenField1" runat="server" />
<iframe id="Iframe" src="../test.html" ></iframe>
My HTML control is like below and it is inside test.html
<a id="linkTest" runat="server" onclick="linkTest_Click">Test</a>
Now,I want to call a server side onClick event(linkTest_Click
) on this <a>
which is inside iframe
control which is inside test.aspx