首页 新闻 会员 周边

关于 在C#代码中拼接字符串生成js,打开你新窗体并传值遇到的问题

0
悬赏园豆:30 [已解决问题] 解决于 2013-02-22 12:04

这个函数是用来提示的,其中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));
}

}

吴名的主页 吴名 | 初学一级 | 园豆:175
提问于:2012-12-11 14:22
< >
分享
最佳答案
0

你的url这个是从哪里来的?

newContext.AppendFormat("window.open({0},'','status:no;resizable:yes;dialogHeight:100px;dialogWidth:150px;unadorne:yes',url);

收获园豆:30
chenping2008 | 大侠五级 |园豆:9836 | 2012-12-11 14:37
其他回答(1)
0

string url = string.Format("Messok.aspx?instroduce=" + context);     


 newContext.Append(

"window.open('" +url + "','','status:no;resizable:yes;dialogHeight:100px;dialogWidth:150px;unadorne:yes');");

geass.. | 园豆:1821 (小虾三级) | 2012-12-11 19:36
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册