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 reflect the change made to the table in the database at the time of updation itself?

How to reflect the change made to the table in the database at the time of updation itself?

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorialquestion
8 Posts 5 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.
  • S Offline
    S Offline
    Subin Alex
    wrote on last edited by
    #1

    Hi, I am developing web app and: I have a text box and a drop down list.If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way? Help me.

    A M C D 4 Replies Last reply
    0
    • S Subin Alex

      Hi, I am developing web app and: I have a text box and a drop down list.If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way? Help me.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Subin Alex wrote:

      .If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way?

      I didn't get your question. My understanding is that,You have one textbox and a dropdown list, You are entering some data in textbox and you want some data will be populated to dropdown list. Is it correct?

      cheers, Abhijit CodeProject MVP

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        Subin Alex wrote:

        .If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way?

        I didn't get your question. My understanding is that,You have one textbox and a dropdown list, You are entering some data in textbox and you want some data will be populated to dropdown list. Is it correct?

        cheers, Abhijit CodeProject MVP

        S Offline
        S Offline
        Subin Alex
        wrote on last edited by
        #3

        Exactly!

        A 1 Reply Last reply
        0
        • S Subin Alex

          Exactly!

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Then why you are not using AJAX.

          cheers, Abhijit CodeProject MVP

          1 Reply Last reply
          0
          • S Subin Alex

            Hi, I am developing web app and: I have a text box and a drop down list.If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way? Help me.

            M Offline
            M Offline
            metallica_rock10
            wrote on last edited by
            #5

            is the data u enter go in database. If yes Ajax is the way If no use javascript or ne client side scripting.

            ASP.NET

            C 1 Reply Last reply
            0
            • S Subin Alex

              Hi, I am developing web app and: I have a text box and a drop down list.If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way? Help me.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Not sure why no-one else was able to answer this. page_load fires before events, page_prerender fires after. Sounds like your events update the data source, but you load the data to your drop down list in page load, so the old data is loaded, then the data gets updated. Move your code to page_prerender so you load it AFTER you update it. AJAX has nothing to do with it.

              Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

              1 Reply Last reply
              0
              • M metallica_rock10

                is the data u enter go in database. If yes Ajax is the way If no use javascript or ne client side scripting.

                ASP.NET

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                What a strange reply. Why is AJAX required ? If the data was not going into a database, how would his question make sense ? How is AJAX different to javascript ?

                Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

                1 Reply Last reply
                0
                • S Subin Alex

                  Hi, I am developing web app and: I have a text box and a drop down list.If i enter a data into the text box i've to show the new entry in the dropdown list at that time itself.If i refresh the page i could see the change ,but is there any other way? Help me.

                  D Offline
                  D Offline
                  danico49
                  wrote on last edited by
                  #8

                  You should use AJAX to call data from your database. Javascript to trigger the call to a servlet that talks to your DB. If you don't have too much data it will be fast enough as is. If you havea large database and it's too slow, you can use an external DB indexing server of some sort. Example: [^] Good luck, Dan - rastaquere AATT gmail DOOTT com

                  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