Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello my friends at codeproject.I am very thankful for your help in my many queries.
I am making a web application using ASP.net3.5, c# language and sql server management studio.

I will brief out the small jist of the application below:

1.i have a mainform.aspx which is an "entry" form having many dropdownlists,textboxes and buttons.But i am having some issue.

I have a dropdownlist that shows name of the products say parle,britania etc...I have used a second form say NEWPRDUCT.aspx.
if the user doesnt find the product in the dropdownlist in amainform.aspx.He chooses createnew in the dropdownlist and NEWPRODUCT.aspx pops out , which will submit new product into the database.
But when i close the popup form.MY DROPDOWNIST DOESNT GET UPDATED AUTOMATICALLY.EVEN THOUGH I HAVE PUT IT IN AN UPDATEPANEL USING AJAX.

IS THERE ANY METHOD BY WHICH I CAN ACHIEVE THIS.????
Posted

1 solution

Check Javascript library http://knockoutjs.com/.
This is a good library.
If you don`t want a third party you can simply add a javascript timer that will check the source every 5 seconds and if anything new then it will update the page.
 
Share this answer
 
Comments
Member 9581909 28-Dec-12 23:16pm    
Can the javascript timer update a specefic portion of the page?
Shahare 29-Dec-12 2:08am    
Of course.
You can do it like so - (pseudo code) document.getElementById("someID").value = somevalue;

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900