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. error on editing data!

error on editing data!

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
7 Posts 2 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.
  • M Offline
    M Offline
    mammad_k
    wrote on last edited by
    #1

    Hi, I am having a problem with editing data in browser preview. I have a datagrid with only one data column which is not read only and users should be able to edit it. I have an "edit" button in front of the row which becomes “Update” and “Cancel” buttons on Click. The cancel button works fine but when I make some changes and press update it gives me this error: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DreamweaverCtrls.DataSet.ConvertParameterValue(String strValue, Enum theType) at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src, DataGridCommandEventArgs E) Any idea what it is for? Thank you in advance.:) Mammad

    D 1 Reply Last reply
    0
    • M mammad_k

      Hi, I am having a problem with editing data in browser preview. I have a datagrid with only one data column which is not read only and users should be able to edit it. I have an "edit" button in front of the row which becomes “Update” and “Cancel” buttons on Click. The cancel button works fine but when I make some changes and press update it gives me this error: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DreamweaverCtrls.DataSet.ConvertParameterValue(String strValue, Enum theType) at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src, DataGridCommandEventArgs E) Any idea what it is for? Thank you in advance.:) Mammad

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      hi, mammad_k wrote: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) these tho lines mean that somewhere you are trying to convert string to integer and it is not possible... Run in debug mode and check line where it happens... there will be incorrect input to some functions or so. eh.. does it help? best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      M 1 Reply Last reply
      0
      • D DavidNohejl

        hi, mammad_k wrote: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) these tho lines mean that somewhere you are trying to convert string to integer and it is not possible... Run in debug mode and check line where it happens... there will be incorrect input to some functions or so. eh.. does it help? best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

        M Offline
        M Offline
        mammad_k
        wrote on last edited by
        #3

        Hi David, How can I run in debug mode?

        M D 2 Replies Last reply
        0
        • M mammad_k

          Hi David, How can I run in debug mode?

          M Offline
          M Offline
          mammad_k
          wrote on last edited by
          #4

          I still dont know how to run it in debug mode but as you said there was some problems with integer data type. I just changed the Integer to VarWCahr and every thing is sorted. That was a great help, thanks;) mammad

          1 Reply Last reply
          0
          • M mammad_k

            Hi David, How can I run in debug mode?

            D Offline
            D Offline
            DavidNohejl
            wrote on last edited by
            #5

            :doh: I could ask... what kind of IDE do you use? VS.NET? Web Matrix? or what? If it is VisualStudio, hit F5 (or Debug->Run from main menu)... ( first check if project configuration is set to debug - Build->configuration manager...) If you are using soemthing else check help manual. When running in debug mode, additional debug information are generated for your code and e.g. exceptions' stack trace will contain line numbers. Plus you can use breakpoints to pause program and look at variables and their values etc... Kind of basic thing so if you already know this.. sry then :-O one never knows who is on the other side;) David Never forget: "Stay kul and happy" (I.A.)

            M 1 Reply Last reply
            0
            • D DavidNohejl

              :doh: I could ask... what kind of IDE do you use? VS.NET? Web Matrix? or what? If it is VisualStudio, hit F5 (or Debug->Run from main menu)... ( first check if project configuration is set to debug - Build->configuration manager...) If you are using soemthing else check help manual. When running in debug mode, additional debug information are generated for your code and e.g. exceptions' stack trace will contain line numbers. Plus you can use breakpoints to pause program and look at variables and their values etc... Kind of basic thing so if you already know this.. sry then :-O one never knows who is on the other side;) David Never forget: "Stay kul and happy" (I.A.)

              M Offline
              M Offline
              mammad_k
              wrote on last edited by
              #6

              sorry David I should have said I am using Dreamweaver MX 2004! mammad

              D 1 Reply Last reply
              0
              • M mammad_k

                sorry David I should have said I am using Dreamweaver MX 2004! mammad

                D Offline
                D Offline
                DavidNohejl
                wrote on last edited by
                #7

                oh, :doh: I was looking at DreamweaverCtrls in yout code all the time time! :-O David Never forget: "Stay kul and happy" (I.A.)

                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