I have a asp.net code which adds js to a button on runtime ...the following command does not executes properly when I change the meta http-equv content
CS code:
protected void btnPrev_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(Type.GetType("System.String"), "addScript", "checkAns();", true);
}
Masterpage Code:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
but it works with
<meta http-equiv="X-UA-Compatible" content="IE=8" />
And then the css rolls back to IE8 compatibility which is ugly. Please share an alternative to the problem.