problem i refreshing the parent page when the popup/child page done the server side processing and closes itself

asp.net.csharp , javascript , html India
  • 12 years ago
    Hi, I have one parent page and one popup page. The dropdown will show all the available companies. Now when I click the “Add new Company” button the popup window will come . Now here we will put new company details and click the “Save button”. On clicking the save button this page should do the following. 1.store the values in the database. 2.Populate the parent window dropdown with the newly added value. 3.Heighlight the values corresponding to the newly added company. 4. Close itself. What I was trying to do was, First using javascript in the popup page I was populating the fields in the parent window. and then using server side code I was storing the values in the database. But I am facing many problems Using this approach. From the parent page javascript I was trying t access the child page code behind variable. .But not working pproperly Can anyone tell me how to write code in the popup window “Save button ”so that it 1.firstly it stores the newly added company details in the server . 2.Reloads the parent window so that the newly added company details reflect in the parent. 3.Then closes itself. It is a kind of urgent. Any comment or suggestion is appritiated. Thanks in adnvance.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“C++ : Where friends have access to your private members.” - Gavin Russell Baker