Home > Unterminated String > Unterminated String Error Asp.net

Unterminated String Error Asp.net

Can someone help me? My code throws an error when data.txt looks like this:

It does NOT throw an error when data.txt looks like this:
There Can anyone tell how to get the whole text with the newline in it??? Vis Dotnet No viewsNew 1:15 jQuery - Get by ID ID has space in its name - Duration: 1:11. have a peek at this web-site

Dealing with a nasty recruiter Trick or Treat polyglot Who was Mikael Blomkvist with at the end of the movie and why did Lisbeth hate it so much? How do I handle an unterminated wire behind my wall? You can't have an alert that runs over multiple lines. In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms

This code is used in adjusting `InfoWindow in Google API` So far I tried and non of these method worked: + "

"+' @string.Format("

{0}

", serviceDescription[i])'+"

" + "

"+'@string.Format(serviceDescription[i])'+"

" + "

"+'@string.Format("{0}", @Html.Raw(serviceDescription[i]))'+"

" Hey, Thanks for the reply. Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Sign in to add this to Watch Later Add to Loading playlists... 12,563,060 members (50,930 online) Sign in Email Password Forgot your password?

  1. Try using double backslash to escape the backslash: string sample = sampledata.Replace("
    ", "\\n"); share|improve this answer answered Aug 13 '12 at 7:06 Simon Whitehead 37.9k53376 How to set the
  2. Up next MSSQL - How to fix error - Only one expression can be specified in the selec - Duration: 0:22.
  3. Loading...
  4. I have faced this problem numerous times and believe me this is really very cumbersome error.
  5. You have to use javascript:alert('test\''); Look for such error in your page Santhosh Reply chetan.sarod...

Even my colleagues got this kind error many times. Anibal View Public Profile View Extended RPG Stats Challenge This User To Battle Send a private message to Anibal Find all posts by Anibal Find all threads by Anibal Add Anibal JavaScript is used in most websites to enrich the interface and enhance the user experience. Loading...

When pulling the data out and assigning it to the value variable in the javascript function for FCKeditor, I would get the same problem due to the line breaks djheru View When you do

Sign in to report inappropriate content. Discuss 'Unterminated String constant' error in javascript! Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next. Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution!

Because, instead of "alert(<%=content%>);" when i try "alert("hello");", the program is working fine. mi.com/in/events/2nda… 3monthsago tweettest/ google.com 5monthsago @mbostock Thank you 5monthsago @mbostock What is so special in this? Related Posted in ASP.net, C#, JavaScript | Tagged ASP.net, C#, IIS, JavaScript, Unterminated String Constant, Unterminated String Constants | Leave a Comment Comments RSS Leave a Reply Cancel reply Enter your That's a separate subject though.. –Simon Whitehead Aug 13 '12 at 7:25 how to create custom alert dialog box? –Prince Antony G Aug 13 '12 at 7:52 add a

like this: alert('Name :zzzzzzzzzzzzzzzz Phone :00000000000000 Country :India'); ..which won't work, and will produce the error you're seeing. http://cloudindet.com/unterminated-string/unterminated-string-constant-error.html Add a Solution Add your solution here B I U S small BIG code Plain TextC++CSSC#Delphi / PascalF#HTML / XML / ASPJavaJavascriptObjective-CSQLSwiftPerlPHPPythonVBXMLvar < > & link [^] encode untab case indent Terms of Service Layout: fixed | fluid CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100 Home About Me Hiteshagja's Blog MY BLOG IS ALL ABOUT PROGRAMMING CodeFurnace 159,910 views 2:49:07 Channel PEAR For Roku Setup Add Live TV To Roku - Duration: 11:53.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month OriginalGriff 360 Sander Rossel 115 Dave Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Thanks, Krunal krunalbarot View Public Profile View Extended RPG Stats Challenge This User To Battle Send a private message to krunalbarot Find all posts by krunalbarot Find all threads by krunalbarot http://cloudindet.com/unterminated-string/unterminated-string-constant-javascript.html c# javascript asp.net share|improve this question asked Aug 13 '12 at 6:58 Prince Antony G 74431434 add a comment| 4 Answers 4 active oldest votes up vote 6 down vote accepted

Sometimes I wish they would tell us these things before assigning a project like this share|improve this answer answered Dec 28 '11 at 17:23 Daren 2619 add a comment| Your Answer This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month OriginalGriff 360 Sander Rossel 115 Dave I am really curious to know. 5monthsago RT @HTSportsNews: #IPL9: Run machine Rohit Sharma churns out yet another classic at Eden Gardens read.ht/BDZy https://t.co/eJS6F… 6monthsago Blog Stats 57,382 hits Advertise BLOG

Do you need your password?

Your Email This email is in use. Something like this: functionX('I need to pass the HTML code here!!!'); Now, say there is a variable called 'buffer' (i am using PHP code) which contains the entire HTML code which Let's work to help developers, not make them feel stupid. Sign in Share More Report Need to report the video?

Check for apostrophes inside the HTML.. We appreciate your feedback. BestDotNetTraining 5,910 views 35:29 jQuery - Check if control exists - Duration: 1:14. http://cloudindet.com/unterminated-string/unterminated-string-error-in-informatica.html Loading...

I don't know about you guys, but i have problems with IE almost every time. Optional Password I have read and agree to the Terms of Service and Privacy Policy Please subscribe me to the CodeProject newsletters Submit your solution! Rights for IIS user, ASP.net process.   Also check permission (rights) for image directory, if you are working with images.   Check for the hard coded path in the CS(Class file Basically you need the string to be all in one line and the indentation, spaces etc etc in the HTML code are causing this error.

Rating is available when the video has been rented. Recent Posts jQuery HTML5 SignaturePad Silverlight - Listbox ScrollbarProblem Dealing with DateTime inC# Run Executable (exe/bat) file from WebPage Populate data in Gridview using jQueryAJAX .net Ajax ASP.net C# General JavaScript