工作上為了相容一些舊程式只好降版執行

筆記一下!

前端(放在<title></title>上面) :

<asp:Literal ID="lblIE" runat="server"></asp:Literal>

 

後端 :

protected void Page_Load(object sender, EventArgs e)
  {
            Literal lbl1 = (Literal)Master.FindControl("lblIE");
            lbl1.Text = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=8;\" />";
   }

 

arrow
arrow
    全站熱搜

    Kenny Lin 發表在 痞客邦 留言(0) 人氣()