这个函数是用来提示的,其中url没有值,请问各位如何使得url有值?
private void mess(string context)
{
string url = string.Format("Messok.aspx?instroduce=" + context);
newContext.Append("window.open(url,'','status:no;resizable:yes;dialogHeight:100px;dialogWidth:150px;unadorne:yes');");
if (page != null)
{
page.ClientScript.RegisterClientScriptBlock(page.GetType(), "s", string.Format("<script>{0}</script>", newContext));
}
}
你的url这个是从哪里来的?
newContext.AppendFormat("window.open({0},'','status:no;resizable:yes;dialogHeight:100px;dialogWidth:150px;unadorne:yes',url);
string url = string.Format("Messok.aspx?instroduce=" + context);
newContext.Append(
"window.open('" +url + "','','status:no;resizable:yes;dialogHeight:100px;dialogWidth:150px;unadorne:yes');");