public void DisplayThickBox(Page page, int width, int height)
{
string script = "<script type='text/javascript'>";
script += "$(document).ready(function(){";
script += "tb.show('null', 'auto-insurance-redirect.aspx?keepThis=true&TB_iframe=true&height=" + height.ToString() + "&width=" + width.ToString() + "',null);";
script += "});";
script +="</script>";
ScriptManager.RegisterStartupScript(page, page.GetType(), "", script, true);
}
^^^显示thickbox的方法...^^^
DisplayThickBox(this, 518, 321);
^^^在触发它的按钮的单击事件中调用方法...^^^
页面刚刚刷新,厚框永远不会显示。我正在尝试手动调用javascript,因为在我在后面的代码中显示thickbox之前我做了一些其他的事情......