日期:2009-12-03 浏览次数:20399 次
namespace MyBill
{
/// <summary>
/// Configuration 的摘要说明。
/// </summary>
public class Configuration
{
/// <summary>
/// 打开新窗口
/// </summary>
/// <param name="pg">请求的页面</param>
/// <param name="url">要打开的页面的url</param>
/// <param name="windowname">要打开的窗口的名称</param>
public static void OpenWindowScript(Page pg,string url,string windowname)
{
string scriptBlock;
scriptBlock="<script language='javascript'>\n"+
"window.open("+"'"+url+"','"+"windowname"+"',"+"'toolbar=no,location=no,resizeabel=0,width=400,height=400'"+");"+
"</script>";
pg.RegisterClientScriptBlock("OpenWindow",scriptBlock);
}
public Configuration()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
}
}