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. gridview update problem plz help needed ,,,

gridview update problem plz help needed ,,,

Scheduled Pinned Locked Moved ASP.NET
helpdatabasetestingbeta-testingquestion
4 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.
  • D Offline
    D Offline
    dream_liner_7e7
    wrote on last edited by
    #1

    i m using dropdownlist in my gridview edititemtemplate, when i click update of gridview to send values in database i m getting error (Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.) for testing i use GridView2_RowUpdating event and write all the update code in it, its working fi9 values r going in DB, then after this execution end i get the same old error screen ... ? i m confused plz help. thnkx in advance.

    U A D 3 Replies Last reply
    0
    • D dream_liner_7e7

      i m using dropdownlist in my gridview edititemtemplate, when i click update of gridview to send values in database i m getting error (Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.) for testing i use GridView2_RowUpdating event and write all the update code in it, its working fi9 values r going in DB, then after this execution end i get the same old error screen ... ? i m confused plz help. thnkx in advance.

      U Offline
      U Offline
      UD IA
      wrote on last edited by
      #2

      i don't understand what u want to do? please explain your question? :-D

      I will do my best?

      1 Reply Last reply
      0
      • D dream_liner_7e7

        i m using dropdownlist in my gridview edititemtemplate, when i click update of gridview to send values in database i m getting error (Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.) for testing i use GridView2_RowUpdating event and write all the update code in it, its working fi9 values r going in DB, then after this execution end i get the same old error screen ... ? i m confused plz help. thnkx in advance.

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

        dream_liner_7e7 wrote:

        (Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.)

        Your exception tell every thing. please debug your code

        cheers, Abhijit Check My Latest Article

        1 Reply Last reply
        0
        • D dream_liner_7e7

          i m using dropdownlist in my gridview edititemtemplate, when i click update of gridview to send values in database i m getting error (Exception Details: System.Data.SqlClient.SqlException: Incorrect syntax near 'nvarchar'.) for testing i use GridView2_RowUpdating event and write all the update code in it, its working fi9 values r going in DB, then after this execution end i get the same old error screen ... ? i m confused plz help. thnkx in advance.

          D Offline
          D Offline
          dream_liner_7e7
          wrote on last edited by
          #4

          ok the simple question .. how to update values from gridview, when gridview update link is clicked?? thnx in advance

          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