<sr**********@g mail.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
if I want to pop-up a window with
some form data that needs to be submitted? Would it be wise
to have a pop-up like that
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(ShowModa lDialog) , 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.
The reason I ask this is because don't browsers like firefox do a
real good job of preventing pop-up windows? Is it possible to fool
the browser and open a window anyway? If so, how.
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:imageButto n id="ResetButton " imageURL="blah. gif" runat="server" />
</form>
website.aspx.cs :
private void ResetButton_Cli ck(object sender,
System.Web.UI.I mageClickEventA rgs e)
{
// Code that will pop-up a window
// "form1" Processing
}
As you can see above, I need 2 things to happen when the "ResetButto n" 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=someJa vascriptFunctio n()" event in the website.aspx to pop-up a
window, but that prevents me from submitting/processing the form data using
the ResetButton_Cli ck event handler in the website.aspx.cs file.
I know that I could do form submission from the someJavascriptF unction() ,
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.