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. how to trace the textbox when the value is modified

how to trace the textbox when the value is modified

Scheduled Pinned Locked Moved ASP.NET
databasedebuggingtutorialannouncement
2 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.
  • R Offline
    R Offline
    ramyasangeet
    wrote on last edited by
    #1

    Hi all, I have number of textboxes on a form and a submit button. the form allows the user to change existing data in the database. when a textbox is modified, i need to capture the changes done by the user and update the collection i've used to populate the text boxes and then to use the updated collection to update the database. How to trace which textbox value is changed.i need to update only the values changed. Plz give suggestions.. Thanks in Advance,

    cheers sangeet

    S 1 Reply Last reply
    0
    • R ramyasangeet

      Hi all, I have number of textboxes on a form and a submit button. the form allows the user to change existing data in the database. when a textbox is modified, i need to capture the changes done by the user and update the collection i've used to populate the text boxes and then to use the updated collection to update the database. How to trace which textbox value is changed.i need to update only the values changed. Plz give suggestions.. Thanks in Advance,

      cheers sangeet

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      I think one way is to crate a base class that drives TextBox class and implement OnTextChanged method in that class public sealed class CustomTextBoxOnTextChanged : System.Web.UI.WebControls.TextBox { private bool isDirty = false; protected override void OnTextChanged(System.EventArgs e) { // Call the base OnTextChanged method. base.OnTextChanged(e); // Change the dirty flag to True. isDirty = true; } }

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      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