How to reflect the change made to the table in the database at the time of updation itself?
-
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.
-
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.
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
-
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
Exactly!
-
Exactly!
Then why you are not using AJAX.
cheers, Abhijit CodeProject MVP
-
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.
is the data u enter go in database. If yes Ajax is the way If no use javascript or ne client side scripting.
-
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.
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 )
-
is the data u enter go in database. If yes Ajax is the way If no use javascript or ne client side scripting.
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 )
-
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.
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