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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Please help me in aspdotnet

Please help me in aspdotnet

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasemysql
4 Posts 4 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.
  • A Offline
    A Offline
    abglorie
    wrote on last edited by
    #1

    Please can you help me, for the following problem solving I want update the string value. The string value is "Women's Studies" Now I am using UPDATE command like Dim MyText as TextBox MyBox = "Women's Studies" MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'" The programme running time display the error message as Incorrect syntax near 'S'. Unclosed quotation mark before the character string How to rectify in above problem? Now I am using Asp.net with VB, and SQL Server Please Help me Thanking you in advance abglorie abglorie

    P A N 3 Replies Last reply
    0
    • A abglorie

      Please can you help me, for the following problem solving I want update the string value. The string value is "Women's Studies" Now I am using UPDATE command like Dim MyText as TextBox MyBox = "Women's Studies" MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'" The programme running time display the error message as Incorrect syntax near 'S'. Unclosed quotation mark before the character string How to rectify in above problem? Now I am using Asp.net with VB, and SQL Server Please Help me Thanking you in advance abglorie abglorie

      P Offline
      P Offline
      Pankaj Garg
      wrote on last edited by
      #2

      Replace single quote to double quotes.

      1 Reply Last reply
      0
      • A abglorie

        Please can you help me, for the following problem solving I want update the string value. The string value is "Women's Studies" Now I am using UPDATE command like Dim MyText as TextBox MyBox = "Women's Studies" MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'" The programme running time display the error message as Incorrect syntax near 'S'. Unclosed quotation mark before the character string How to rectify in above problem? Now I am using Asp.net with VB, and SQL Server Please Help me Thanking you in advance abglorie abglorie

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        abglorie wrote:

        MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'"

        Check this line.... you will get your soln.. ;)

        Best Regards ----------------- Abhijit Jana View My Latest Article :- SpyNet : Your Network Spy "Success is Journey it's not a destination"

        1 Reply Last reply
        0
        • A abglorie

          Please can you help me, for the following problem solving I want update the string value. The string value is "Women's Studies" Now I am using UPDATE command like Dim MyText as TextBox MyBox = "Women's Studies" MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'" The programme running time display the error message as Incorrect syntax near 'S'. Unclosed quotation mark before the character string How to rectify in above problem? Now I am using Asp.net with VB, and SQL Server Please Help me Thanking you in advance abglorie abglorie

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          abglorie wrote:

          MySql = "UPDATE MyTable SET Title='" & MyText & "' Where Title='Womens Studies'"

          Use parameterized query. Read about SQL injection attacks.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          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