Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. javascript error is getting while passing the string through vb code

javascript error is getting while passing the string through vb code

Scheduled Pinned Locked Moved ASP.NET
helpjavascripthtmltutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lakshmichawala
    wrote on last edited by
    #1

    while sending the string which contains the html tags iam getting an error of unterminated string constant how to solve this problem

    J 1 Reply Last reply
    0
    • L lakshmichawala

      while sending the string which contains the html tags iam getting an error of unterminated string constant how to solve this problem

      J Offline
      J Offline
      jack_ajay
      wrote on last edited by
      #2

      hi friend, Need more information of where u r using it,also try to post the code snippet where u r getting the errors.

      L 1 Reply Last reply
      0
      • J jack_ajay

        hi friend, Need more information of where u r using it,also try to post the code snippet where u r getting the errors.

        L Offline
        L Offline
        lakshmichawala
        wrote on last edited by
        #3

        i mean in grid view row databound iam adding an attribute to get javascript fired when that link button is clicked.for this javascript function iam sending the string that contains the javascript.then only iam getting this error stating unterminated string constant error it is coming .

        S 1 Reply Last reply
        0
        • L lakshmichawala

          i mean in grid view row databound iam adding an attribute to get javascript fired when that link button is clicked.for this javascript function iam sending the string that contains the javascript.then only iam getting this error stating unterminated string constant error it is coming .

          S Offline
          S Offline
          Sathesh Sakthivel
          wrote on last edited by
          #4

          Check for apostrophes inside the HTML in your code. i hope this is your problem. becoz i dont have your code to see otherwise we can easily find out what is the problem?

          SSK. Anyone who says sunshine brings happiness has never danced in the rain.

          L 1 Reply Last reply
          0
          • S Sathesh Sakthivel

            Check for apostrophes inside the HTML in your code. i hope this is your problem. becoz i dont have your code to see otherwise we can easily find out what is the problem?

            SSK. Anyone who says sunshine brings happiness has never danced in the rain.

            L Offline
            L Offline
            lakshmichawala
            wrote on last edited by
            #5

            if apostrophes is there how to handle while passing to the javascript

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups