Not aware of any disadvatages in doing this. One advatage in
submitting popup form to itself is that you could reuse same popup page
from multiple parent pages if needed. But if you plan to use modal
window(ShowModalDialog) , submitting to itself will popup another
window. To submit modal winows to itself you will be able to load the
page with form in an Iframe.
not very sure on this. Do they block the modal windows too ? is there a
modal winow in firefox ?
Well, I dont think that is going to work for me either.
Basically, what I'm trying to do is something like this
website.aspx:
<form id="form1" runat="server">
<asp:TextBox id="Mytext" runat="server" />
<asp:imageButton id="ResetButton" imageURL="blah.gif" runat="server" />
</form>
website.aspx.cs:
private void ResetButton_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
// Code that will pop-up a window
// "form1" Processing
}
As you can see above, I need 2 things to happen when the "ResetButton" is
clicked.
a) form submission and processing in the _Click event handler
b) Popup a window
Now, if I use regular HTML buttons, I can use an
"onClick=someJavascriptFunction()" event in the website.aspx to pop-up a
window, but that prevents me from submitting/processing the form data using
the ResetButton_Click event handler in the website.aspx.cs file.
I know that I could do form submission from the someJavascriptFunction() ,
but I dont want to do that.
I need the code-behind to open this pop-up window. If thats even possible.
I hope that makes sense?
Thanks.