scriptString.Append(" window.opener=null;");
scriptString.Append(" window.close(); ");
scriptString.Append("</" + "script>");
page.Response.Write(scriptString.ToString());
}
/// <summary>
/// 重置页面
/// </summary>
/// <param name="page">页面</param>
protected void pageReset(Page page)
{
StringBuilder scriptString = new StringBuilder();
scriptString.Append("<script language = javascript>");
scriptString.Append(" this.location.reset(); ");
scriptString.Append("</" + "script>");
page.Response.Write(scriptString.ToString());
}
/// <summary>
/// js界面工厂传入后生成Hashtable
/// </summary>
/// <param name="splitStr">js界面工厂传入字符串</param>
/// <returns></returns>
public Hashtable AjaxUIFactory(string splitStr)
{
string[] fristStr = splitStr.Split(',');
Hashtable table = new Hashtable();
for (int x = 0; x < fristStr.Length; x++)
{
string[] secondStr = fristStr[x].Split('|');
if (secondStr.Length == 3)
{
//取截取后字符串和值
table.Add(secondStr[1], secondStr[2]);
最新相关文章
发表评论