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. General Programming
  3. .NET (Core and Framework)
  4. About my project [modified]

About my project [modified]

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpasp-netdatabaseannouncement
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.
  • M Offline
    M Offline
    mandarapu
    wrote on last edited by
    #1

    hi, i am doing one task in my project.i need to update the holidays in the frontend(ASP.NET).but when i am entering the data it is not getting saved and displaying data as "holiday id cannot allow null values". i checked in the backend there is no problem in that it is displaying correctly. only problem is front end. In the holiday id identity specifications i incremented the properties.eventhough error is coming. insert into HolidayList(Holiday,Date,Day) values (@Holiday,@Date,@Day); select HolidayId = SCOPE_IDENTITY(); the query used in the sqlserver.in this we are not declaring the holidayid but when we are executing it automatically gets incremented.suppose there are 6 values in table if we enter the next value it automatically displays as 7 value and getting exeuted. but when coming to the front end it is not saving the data.when we are clicking on the save the page is getting refreshed. please give me the solution.it is very urgent for me. thanks Amala

    modified on Tuesday, December 28, 2010 10:11 AM

    A L 2 Replies Last reply
    0
    • M mandarapu

      hi, i am doing one task in my project.i need to update the holidays in the frontend(ASP.NET).but when i am entering the data it is not getting saved and displaying data as "holiday id cannot allow null values". i checked in the backend there is no problem in that it is displaying correctly. only problem is front end. In the holiday id identity specifications i incremented the properties.eventhough error is coming. insert into HolidayList(Holiday,Date,Day) values (@Holiday,@Date,@Day); select HolidayId = SCOPE_IDENTITY(); the query used in the sqlserver.in this we are not declaring the holidayid but when we are executing it automatically gets incremented.suppose there are 6 values in table if we enter the next value it automatically displays as 7 value and getting exeuted. but when coming to the front end it is not saving the data.when we are clicking on the save the page is getting refreshed. please give me the solution.it is very urgent for me. thanks Amala

      modified on Tuesday, December 28, 2010 10:11 AM

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      You need to post some code here. Until then, it is virtually impossible to figure out the exact problem.

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick

      1 Reply Last reply
      0
      • M mandarapu

        hi, i am doing one task in my project.i need to update the holidays in the frontend(ASP.NET).but when i am entering the data it is not getting saved and displaying data as "holiday id cannot allow null values". i checked in the backend there is no problem in that it is displaying correctly. only problem is front end. In the holiday id identity specifications i incremented the properties.eventhough error is coming. insert into HolidayList(Holiday,Date,Day) values (@Holiday,@Date,@Day); select HolidayId = SCOPE_IDENTITY(); the query used in the sqlserver.in this we are not declaring the holidayid but when we are executing it automatically gets incremented.suppose there are 6 values in table if we enter the next value it automatically displays as 7 value and getting exeuted. but when coming to the front end it is not saving the data.when we are clicking on the save the page is getting refreshed. please give me the solution.it is very urgent for me. thanks Amala

        modified on Tuesday, December 28, 2010 10:11 AM

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        mandarapuamala wrote:

        the query used in the sqlserver

        And how does the table-definition look? What columns and datatypes does it have?

        mandarapuamala wrote:

        "holiday id cannot allow null values". i checked in the backend there is no problem in that it is displaying correctly.

        Any triggers that are defined on the table?

        mandarapuamala wrote:

        but when coming to the front end it is not saving the data.when we are clicking on the save the page is getting refreshed.

        Are you doing an insert or an update at that point?

        mandarapuamala wrote:

        please give me the solution.it is very urgent for me.

        This is a free site and questions are answered by volunteers like you, in their spare time. Demanding them to hurry would be inappropriate. You could also plough through the SCOPE_IDENTITY[^]-documentation on MSDN :)

        I are Troll :suss:

        A 1 Reply Last reply
        0
        • L Lost User

          mandarapuamala wrote:

          the query used in the sqlserver

          And how does the table-definition look? What columns and datatypes does it have?

          mandarapuamala wrote:

          "holiday id cannot allow null values". i checked in the backend there is no problem in that it is displaying correctly.

          Any triggers that are defined on the table?

          mandarapuamala wrote:

          but when coming to the front end it is not saving the data.when we are clicking on the save the page is getting refreshed.

          Are you doing an insert or an update at that point?

          mandarapuamala wrote:

          please give me the solution.it is very urgent for me.

          This is a free site and questions are answered by volunteers like you, in their spare time. Demanding them to hurry would be inappropriate. You could also plough through the SCOPE_IDENTITY[^]-documentation on MSDN :)

          I are Troll :suss:

          A Offline
          A Offline
          Ashwini K Singh
          wrote on last edited by
          #4

          I would suggest to use relevant title so that other people can benefit it :)

          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