Hi sagar,<o:p></o:p>
<o:p> </o:p>
In the following code Response.write("<script
language='_javascript_"> window.open("popup.aspx","height=200,width=100")</script>)<o:p></o:p>
<o:p> </o:p>
Replace window.open with window.showModalDialog<o:p></o:p>
Try this.<o:p></o:p>
<o:p> </o:p>
And for the Second one try the following one<o:p></o:p>
<o:p> </o:p>
Use _javascript_ confirm
method for your requirement.<o:p></o:p>
<o:p> </o:p>
If(confirm(“Are you sure you want to delete this record ?”))<o:p></o:p>
{<o:p></o:p>
//
write your code for if the user press ok <o:p></o:p>
Alert(“Yes”);<o:p></o:p>
}<o:p></o:p>
Else<o:p></o:p>
{<o:p></o:p>
// write your code for if the user press cancel<o:p></o:p>
Alert(“No”);<o:p></o:p>
}<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
Thanks & regards,<o:p></o:p>
MVKS Suresh<o:p></o:p>
Intelligroup Asia Pvt. Ltd.<o:p></o:p>
<o:p> </o:p>
From: ba_sagar
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 11, 2004 8:19
PM
To: dotNET User Group Hyd
Subject: Doing Modal Webforms,
Client side Dialog s<o:p></o:p>
<o:p> </o:p>
<o:p></o:p>
<o:p> </o:p>
Doing Modal Webforms, Client side Dialog s<o:p></o:p>
|
Reply
<o:p></o:p>
|
<o:p></o:p>
|
|
From: ba_sagar
<o:p></o:p>
|
|
<o:p> </o:p>
Trouble again !
How to open a modal webforms ? When I want click on my aspx button, I want
to show a pop up window ( a webform). The user cannot come back to the main
webform without closing the popup. How ?
I was trying something like
Response.write("<script language='_javascript_">
window.open("popup.aspx","height=200,width=100")</script>)
<o:p></o:p>
Does anyone have working code on this issue ?<o:p></o:p>
And again, How to do a asp.net equivalent of the
following VB6 code<o:p></o:p>
if vbyes = msgbox("Are you sure you want to
delete this record ?",vbyesno) then<o:p></o:p>
How to write a ClientSide code ( _javascript_) for the above functionalty in
a aspx page ?
Thanks,
Anand Sagar.<o:p></o:p>
|
<o:p></o:p>
|
View other groups in this
category.