- Joined
- Mar 6, 2009
- Messages
- 2
- Reaction score
- 0
Hi,
I have a parent page with a dropdown box. The dropdown box is connected to a database. Here is how it functions....when you select the value "Add Names", a pop-up window opens up. This pop-up window has text box and a button. The user is expected to type a new name and click the button, upon doing that the name gets loaded into the database and closes the pop-up window.
Upon closing the window, I want the parent page to be refreshed such that the drop down box has the new name listed....and this is where I am not sure of.
Here is how my code looks in the pop-up window..
this.RegisterStartupScript("CloseAndReload", @"
<script language='javascript'>
window.close();
</script>
");
Can someone help me with this please.
Thanks,
VS
I have a parent page with a dropdown box. The dropdown box is connected to a database. Here is how it functions....when you select the value "Add Names", a pop-up window opens up. This pop-up window has text box and a button. The user is expected to type a new name and click the button, upon doing that the name gets loaded into the database and closes the pop-up window.
Upon closing the window, I want the parent page to be refreshed such that the drop down box has the new name listed....and this is where I am not sure of.
Here is how my code looks in the pop-up window..
this.RegisterStartupScript("CloseAndReload", @"
<script language='javascript'>
window.close();
</script>
");
Can someone help me with this please.
Thanks,
VS