易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关问答:

在C#中怎么把一个Excel保存成为一个Html文件?

在C#中怎么把一个Excel保存成为一个Html文件?
如同在Excel中  文件——保存为——格式选为html 生成的文件 及文件夹(在多张sheet 时)

引用
excelapp.Workbooks[1].PublishObjects ......

sql小小的疑问 - .NET技术 / C#

可能因为工作的原因 接触数据库这块比较少,之前都是做程序这块,数据库这块都有专门的人来做 分工都很明细 所以对数据库这一块完全不了解。前段时间 去面试了几家公司 几乎都是在数据库这块挂掉的 连个简单的SQ ......

求一段delphi代码转C#代码,急用,可人民币支付,谢谢

急用。联系QQ:8775262,谢谢。
需要进行DllImport的地方直接写DLLImport.方法名。
如:DLLImport.GlobalAddAtom(……);
文件:UShare.pas
Delphi(Pascal) code:

unit UShare;
interface
uses Windows, Me ......

截取WINfrom中HTML的标签!!! - .NET技术 / C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......

新人如何去学习C++。C#转型过来的

我现在 业余时间比较多。。 想学习C++;我是C#程序员。熟练C#编程 现在主要做的是通信行业的

学习C++  应该 按照哪些步骤来呢。。先学什么在学什么呢?? 请有经验的C++朋友们给条明路;

准备以 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号