G
Guest
i have the following .aspx file defined:
..... other tags here ...
<asp:TableCell><asp:button id="AddButton" Runat="server" Text="Add New Vessel..."</asp:button></asp:TableCell>
..... other tags here ...
i also have the following codebehind class code to set the action of the button on click to run a modal dialog as follows:
Page_Load
..... load code here ...
AddButton.Attributes.Add("onclick", "javascript:window.showModalDialog('AddClicked.aspx');return true;")
..... load code here...
finally the AddClicked.aspx page has another button on it and when the button on that page (dialog window) is clicked, a new window is automatically spawned (giving me a total of 3 windows: 1) the starting window, 2) the dialog window, 3) the spawned window. why is this happening? i don't want the dialog to spawn a new window when the button is clicked; i simply want the dialog page to refresh its contents. any help would be great...
..... other tags here ...
<asp:TableCell><asp:button id="AddButton" Runat="server" Text="Add New Vessel..."</asp:button></asp:TableCell>
..... other tags here ...
i also have the following codebehind class code to set the action of the button on click to run a modal dialog as follows:
Page_Load
..... load code here ...
AddButton.Attributes.Add("onclick", "javascript:window.showModalDialog('AddClicked.aspx');return true;")
..... load code here...
finally the AddClicked.aspx page has another button on it and when the button on that page (dialog window) is clicked, a new window is automatically spawned (giving me a total of 3 windows: 1) the starting window, 2) the dialog window, 3) the spawned window. why is this happening? i don't want the dialog to spawn a new window when the button is clicked; i simply want the dialog page to refresh its contents. any help would be great...