我给Button按钮加onclick事件,代码如下Button1.Attributes.Add("onclick", "Response.Write(\"<script>window.open('ProductsQuotationUpLoad.aspx?ProjectNo=" + ProjectNo + "&BaoJiaDanID=" + HDFBaoJiaDanID.Value + "&FileTypeID=44,45','new1','width=750,height=400,toolbar=0,scrollbars=2,top=200,left=200');</script>);");
说“未结束的字符串常量”,请求帮助
说“未结束的字符串常量”,请求帮助
解决方案 »
- webbrowser控件怎样对在线编辑器自动赋值?
- GridView每新增一行dropdownlit的绑的值就不包含上面的值该怎么解决
- 不同用户在同一个浏览器里面登录同一个网站
- "异常详细信息: System.Web.HttpException: 请指定一个分类 "该怎么解决?
- 简单,但却必须解决的问题
- 请问高手!如何用Javascript清空ViewState的值呢???
- Infragistics.WebUI.UltraWebGrid.UltraWebGrid控件怎么不能DataBinder.Eval??
- 请指点 我做了一个Remoting 入门的例子 出了点小问题!献分
- 大家看看这个问题
- Server.Transfer 和 Response.Redirect的区别? 谢谢!
- Datagrid某一栏位居中,如果文字长短不一样的话,让它们在居中的前提下在左对齐或则右对齐
- 怎么让CS文件一些看得一些看不到
<input type="submit" name="GridView1$ctl02$Button1" value="Button" onclick="Response.Write("<script>window.open('ProductsQuotationUpLoad.aspx?ProjectNo=B41193001&BaoJiaDanID=B41193001-TSBJ20090908171709&FileTypeID=44,45','new1','width=750,height=400,toolbar=0,scrollbars=2,top=200,left=200');</script>);" id="GridView1_ctl02_Button1" />
麻烦帮看下!谢谢!
Button1.Attributes.Add("onclick", "<script language=\"javascript\">window.open(\"ProductsQuotationUpLoad.aspx?ProjectNo=" + ProjectNo + "&BaoJiaDanID=" + HDFBaoJiaDanID.Value + "&FileTypeID=44,45\",\"new1\",\"width=750,height=400,toolbar=0,scrollbars=2,top=200,left=200\");</script>)不需要在里面在Response.Write()了
Button1.Attributes.Add("onclick", "window.open('ProductsQuotationUpLoad.aspx?ProjectNo=" + ProjectNo + "&BaoJiaDanID=" + HDFBaoJiaDanID.Value + "&FileTypeID=44,45','new1','width=750,height=400,toolbar=0,scrollbars=2,top=200,left=200')");
Button1.Attributes.Add("onclick", "<script>window.open('ProductsQuotationUpLoad.aspx?ProjectNo=" + ProjectNo + "&BaoJiaDanID=" + HDFBaoJiaDanID.Value + "&FileTypeID=44,45','new1',
'width=750,height=400,toolbar=0,scrollbars=2,top=200,left=200');</script>");
不需要在里面在Response.Write()了