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. Why does EditItemTemplate data changes?

Why does EditItemTemplate data changes?

Scheduled Pinned Locked Moved ASP.NET
questionhelpcssannouncement
3 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.
  • I Offline
    I Offline
    innocent73
    wrote on last edited by
    #1

    Hello Experts, There are some date columns in my data grid. The data in a date column is like below: "01/11/2010" But when I press the update button on the gridview then the edititemtemplate directly converts the data as: "01/00/2010" What is the problem??..Please help...

    A 1 Reply Last reply
    0
    • I innocent73

      Hello Experts, There are some date columns in my data grid. The data in a date column is like below: "01/11/2010" But when I press the update button on the gridview then the edititemtemplate directly converts the data as: "01/00/2010" What is the problem??..Please help...

      A Offline
      A Offline
      anujbanka1784
      wrote on last edited by
      #2

      from where this value come 01/11/2010 wat code u use for it..

      I 1 Reply Last reply
      0
      • A anujbanka1784

        from where this value come 01/11/2010 wat code u use for it..

        I Offline
        I Offline
        innocent73
        wrote on last edited by
        #3

        I havent used it.. The update code of the gridview is like below.There is no mistake... UPDATE [CP_MASTER] SET [ORDERNUMBER] = @ORDERNUMBER, [NEWRPT] = @NEWRPT, [UNICLODEL] = CAST(@UNICLODEL as smalldatetime), [SUPPLDEL] = @SUPPLDEL, [CUSTOMER] = @CUSTOMER, [DEPARTMENT] = @DEPARTMENT, [SUPPLIER] = @SUPPLIER, [LINE] = @LINE, [COLORS] = @COLORS, [QTY] = @QTY, [NOTES] = @NOTES, [RATIO] = @RATIO, [WC] = @WC, [KIMBALL] = @KIMBALL, [LAPDIPSENT] = @LAPDIPSENT, [LAPDIPAPPRV] = @LAPDIPAPPRV, [WASH] = @WASH, [WASHTYPE] = @WASHTYPE, [PRINTX] = @PRINTX, [PRINTAPPRV] = @PRINTAPPRV, [EMB] = @EMB, [EMBAPPRV] = @EMBAPPRV, [BULKFABRICARRV] = @BULKFABRICARRV, [FITSENT] = @FITSENT, [FITAPPRV] = @FITAPPRV, [SIZESETSENT] = @SIZESETSENT, [SIZESETAPPRV] = @SIZESETAPPRV, [SEALERSENT] = @SEALERSENT, [SEALERAPPRV] = @SEALERAPPRV, [BULKFABRICTEST] = @BULKFABRICTEST, [GARMENTTEST] = @GARMENTTEST, [CUTDATE] = @CUTDATE, [SEWING] = @SEWING, [MIDINSPECTION] = @MIDINSPECTION, [PRODSENT] = @PRODSENT, [PRODAPPRV] = @PRODAPPRV, [INSPECTIONDATE] = @INSPECTIONDATE, [STATUS] = @STATUS WHERE [ORDERDATE] = @ORDERDATE AND [ONUNICLO] = @ONUNICLO AND [STYLE] = @STYLE AND [MERCH] = @MERCH

        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