-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: rathod_s
Message 25 in Discussion
hi swapnil,
your solution is getting quite nearer to my requirement.
my requirement is quite similiar to this link example
http://www.eggheadcafe.com/articles/20050319.asp
i have an emailSample application along with the attachment page as child
window.
In Email page i have asp:button"btnAttachment" for opening attachment child
window.
I need btnAttachment as asp:button since i needed to save the email addresses
into session that i do in btnAttachment_Click using the function
GetTextboxValuesInSession();.
I have written on page_load
string scrp="<script>function OpenAttachment()" +
"{window.showModalDialog('Attachment.aspx','WriteMail'," +
"'statusBar=yes,height=220,width=420,Left=350,top=150');" +
"\n";
scrp += "{__doPostBack('','');}}</script>";
to open the attachment window.In attachment window i have used <base
target=_self> to avoid the opening of other window as u mentioned & also in
this site.
As child window is a modalDailog it get closed as i close parent window using
[X] .
I also need postback on parent window to set the sessioned email addresses the
respective textboxes using GetTextboxValuesFromSession() function on page_load
; when i come to parent window from clicking a btnDone button on child
window.That is accomplished by "{__doPostBack('','');}}</script as mentioned
above.
but the problem is when i use showmodaldialog ;the btnAttachment_click doesn't
get fired.Which is not the case with window.open ;if i use showmodelessDailog
the child window doesn't get opened.
Hope u got me.
I am able to open the child window ;close it on [X]of parent; avoiding
unneccessary popup in child window button click;postback when coming back from
child window to get the sessioned email addreses in to the respective textboxes.
just i want the "btnAttachment_click event fired before the
window.showmodalDailog ";so that i can i have the email addresses in sesion and
retrive them on coming back form child window.
Thanks.
SwapnilDeshmukh <[EMAIL PROTECTED]> wrote:
New Message on MumbaiUserGroup
asp.net (parent-child window) +C#
Reply
Reply to Sender Recommend
Message 13 in Discussion
From: SwapnilDeshmukh
New Message on MumbaiUserGroup
asp.net (parent-child window) +C#
Reply
Reply to Sender Recommend
Message 11 in Discussion
From: SwapnilDeshmukh
Hi,
You can avoid that new page open in the modalwindow by this tag <base
traget=_self>
Regards
Swapnil Deshmukh
View other groups in this category.
View other groups in this category.
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]