c#关于response.write script
string ss="hello";
Response.Write(" <script language='javascript'>alert('" + ss + "'); </script>");
出错,错误
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1010: Newline in constant
Source Error:
Line 37: label1.Text=Price.ToString();
Line 38: string ss="hello";
Line 39: Response.Write(" <script language='javascript'>alert('" + ss + "'); </script>");
Line 40:
Line 41:
C# code:
Page.RegisterStartupScript(" <script language='javascript'>alert('" + ss + "'); </script>");
我测试了下 没有问题啊
C# code:
protected void Page_Load(object sender, EventArgs e)
{
string ss = "hello";
Response.Write(" <script language='javas
相关问答:
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
我这里有一个登陆WIFI网络的页面。由于WIFI经常断线,所以要反复地在这个网页上登陆,没法无人值守。
所以,我想做一个C#程序,放一个webbrowser控件,自动填表并自动点击提交按钮。
问题一:
基本照网上找的程序 ......
21cn的邮箱,在outlook配置后可以正常收发邮件,可是我写在C#中就不行,换成其它邮箱,163很早注册的。可以发送。查了很久,没有找到原因,请高手帮忙解答。。。小弟,谢了。。代码如下:
private void SendMail ......
急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:
unit UShare;
interface
uses Windows, Me ......
大虾们,我今天去面试,面试官问我,关于C# web访问性能问题,如果多个用户同时访问网站,这个问题要怎么解决,比如10000个用户同时访问,这个要怎么解决
用线程啊!缓存都行的啊
没搞懂什么意思.
如果一台服 ......