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. Context.Items.Add question

Context.Items.Add question

Scheduled Pinned Locked Moved ASP.NET
questiondatabasedesign
3 Posts 2 Posters 1 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi! At first I tell you what I will do: 1. Load data from DB 2. Fill System.Web.UI.WebControls.TextBox with data from DB 3. Than the user can change some data in the System.Web.UI.WebControls.TextBox and now how I can compare what the user change? should I add a new Item to Context.Items and compare it after changes? any idea? regards, gicio

    U 1 Reply Last reply
    0
    • L Lost User

      Hi! At first I tell you what I will do: 1. Load data from DB 2. Fill System.Web.UI.WebControls.TextBox with data from DB 3. Than the user can change some data in the System.Web.UI.WebControls.TextBox and now how I can compare what the user change? should I add a new Item to Context.Items and compare it after changes? any idea? regards, gicio

      U Offline
      U Offline
      User 377904
      wrote on last edited by
      #2

      Gicio, Any reason for you need to compare with the changed values ? You can straight away update the database whatever the user changes, I dont know the idea behind it, if you need to compare and do something else, then you need compare with the hidden values for which u need to store the values during page rendering. There is another option called Autopostback = true when you set it for the textbox control it automatically submit the page (I think when u leave the focus from the textbox control) let me know if this helps you out. Regards Sreenath

      L 1 Reply Last reply
      0
      • U User 377904

        Gicio, Any reason for you need to compare with the changed values ? You can straight away update the database whatever the user changes, I dont know the idea behind it, if you need to compare and do something else, then you need compare with the hidden values for which u need to store the values during page rendering. There is another option called Autopostback = true when you set it for the textbox control it automatically submit the page (I think when u leave the focus from the textbox control) let me know if this helps you out. Regards Sreenath

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

        and what about saving the data so: ViewState["MyData"] = MyTextBox.Text; ??? regards, gicio

        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