Hello experts!!
I have this challenge. I need to display a popup window with some controls on the clicking of a button on a page. Thereafter the contents of these controls (textboxes) on the popup window are to be transfered into a gridview on the parent form.
Current status:
I am able to display the popup window on clicking a button on the parent form(which is actually a form displayed in a customized window) and Fill the data popup window with data. But I found that when I click the "ok" button(which persists the data to a database) on the popup window a new window is displayed with the same content of the popup window while leaving the popup intact.
The challenge:
I do not want another page displayed because of the obvious postback as a result of the clicking of a button
I want the instantaneous refresh of the gridview showing the data just persisted without the popup window "flinching"
Please find below a sample of how the popup window was created on clicking of a button the parent page
<script type="text/javascript">
var formflds;
function fCallDialog()
{
var j;
j= showModalDialog("B.aspx",window,"status:no;dialogWidth:400px;dialogHeight:350px;unadorned:yes;help:no");
}
</script>
B.aspx contains a server button control and some text boxes.
Any Idea will be deeply appreciated
peace :.)