0
当我点击一个按钮时,是否可以使用文件后面的代码(.cs)为aspx页面更改缩放级别?如何从后面的代码更改页面的缩放级别?
<asp:LinkButton runat="server" ID="lnkZoom" OnClick="lnkZoom_onClick" Text="Zoom" Font-Italic="true" Font-Size="XX-Small"></asp:LinkButton>
protected void lnkZoom_onClick(object sender, EventArgs e)
{
// ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "zoom()", true);
// c# code to do the same as above instead of firing the js function.
}
我试着用JS,但是当我点击它时,它不起作用..所以我试图用其他方式做同样的事情。