Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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" %>
.How can i solve this.plz help me.


Thanks in advance
Sridar
Posted

1 solution

Details here:
PRB: "CS1010: Newline in Constant" Error Message When a String Contains a </SCRIPT> Tag in the Inline Code[^]

Modify string as:
C#
string strValue = "My value";
string strAll = "<SCRIPT lanquage='JScript'>window.alert('" + strValue + "');<"+"/SCRIPT>";
 
Share this answer
 
Comments
sridharan28 11-Jun-12 8:12am    
Tks for ur reply.But how can i put the page directive tag in a string format
Sandeep Mewara 11-Jun-12 9:12am    
It's pointing there but the issue is elsewhere. Fix it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900