-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: rathod_s
Message 26 in Discussion

hi ,
                  
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.

BraiNdotNET_53 <[EMAIL PROTECTED]> wrote:





New Message on MumbaiUserGroup



asp.net (parent-child window) +C#





Reply





 
Reply to Sender   Recommend 
Message 12 in Discussion 





From: BraiNdotNET_53 



I did ask you at first regarding what u'd wanna actually achieve. But u havent 
yet provided me with the details for that. I mean to say i need to know what 
functionality u wanna provide in ur application.At first u wanted to close the 
child window when the parent window is closed and that is what u can achieve 
using the showMod. method.Now i still am not able to get what u actually wanna 
achieve.
 
If u give me  clear idea of what u actually want i can provide an alternate 
solution to it.
 
regards
Braindotnet_53
http://groups-beta.google.com/group/DotNetStarters
View other groups in this category. 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-----------------------------------------------------------

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]

Reply via email to