aspx页面中的新行常量错误 [英] New line constant Error in aspx page

查看:69
本文介绍了aspx页面中的新行常量错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,


在我的aspx页面中,我的aspx页面

Hai,


In my aspx page i am getting the error "Newline in constant" in the first line of my aspx page

<%@ Page Language="C#" MasterPageFile="~/HOME PAGE MODULE/MasterPage.master" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Default3" %>

的第一行出现错误常量中的换行".我该如何解决.请帮助我.


在此先感谢
Sridar

.How can i solve this.plz help me.


Thanks in advance
Sridar

推荐答案

此处的详细信息:
PRB:字符串包含</SCRIPT>时出现"CS1010:常量换行"错误消息内联代码中标记 [ ^ ]

将字符串修改为:
Details here:
PRB: "CS1010: Newline in Constant" Error Message When a String Contains a </SCRIPT> Tag in the Inline Code[^]

Modify string as:
string strValue = "My value";
string strAll = "<SCRIPT lanquage='JScript'>window.alert('" + strValue + "');<"+"/SCRIPT>";


这篇关于aspx页面中的新行常量错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆