Click here to Skip to main content
15,919,778 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: asp.net Pin
Sandeep Mewara20-Oct-12 21:24
mveSandeep Mewara20-Oct-12 21:24 
Questionmultiple NavigateUrlField Pin
Jassim Rahma20-Oct-12 11:17
Jassim Rahma20-Oct-12 11:17 
AnswerRe: multiple NavigateUrlField Pin
Sandeep Mewara20-Oct-12 21:36
mveSandeep Mewara20-Oct-12 21:36 
QuestionI want to open a popup window and disable the parent window. Pin
jojoba201120-Oct-12 7:57
jojoba201120-Oct-12 7:57 
AnswerRe: I want to open a popup window and disable the parent window. Pin
Sandeep Mewara20-Oct-12 21:27
mveSandeep Mewara20-Oct-12 21:27 
QuestionRe: I want to open a popup window and disable the parent window. Pin
jojoba201120-Oct-12 22:19
jojoba201120-Oct-12 22:19 
AnswerRe: I want to open a popup window and disable the parent window. Pin
Sandeep Mewara20-Oct-12 23:30
mveSandeep Mewara20-Oct-12 23:30 
QuestionRe: I want to open a popup window and disable the parent window. Pin
jojoba201120-Oct-12 23:57
jojoba201120-Oct-12 23:57 
Thanks for Solution!
My Code is like this but the Problem is that i dont need that child form be open once more.(in other word : after i click OK the child form to be closed and only parent should be appear!)

<br />
<script type = "text/javascript"><br />
    function Open()<br />
    {<br />
        var Return;<br />
        Return = window.showModalDialog("ChildForm.aspx", "", "dialogWidth:670px;dialogHeight:600px;")<br />
        document.getElementById("txtFirstName").value = Return.firstname;<br />
        document.getElementById("txtLastName").value = Return.lastname;<br />
    }<br />
</script><br />
<br />
where Open() will invoke, upon onclick event of a button, like,<br />
<br />
btnOpen.Attributes.Add("onclick", "Open()");<br />
<br />
and what will you do in your Child page, is:<br />
<br />
<script type = "text/javascript"><br />
    function Close()<br />
    {<br />
        window.close();<br />
    }<br />
    function OK()<br />
    {<br />
        var vReturnValue = new Object();<br />
        vReturnValue.firstname = document.getElementById("txtFirstName").value;<br />
        vReturnValue.lastname = document.getElementById("txtLastName").value;<br />
        window.returnValue = vReturnValue;<br />
        window.close();<br />
    } <br />
</script><br />
<br />
which also will work on click event of buttons(in my case, i have used two buttons, OK and CANCEL), like,<br />
<br />
btnOK.Attributes.Add("onclick", "OK()");<br />
btnCancel.Attributes.Add("onclick", "Close()");<br />
<br />

this code open the cildform once more.
BUt if i write call OK() in onunload child form it works ok!

modified 21-Oct-12 6:24am.

AnswerRe: I want to open a popup window and disable the parent window. Pin
Sandeep Mewara21-Oct-12 1:45
mveSandeep Mewara21-Oct-12 1:45 
QuestionAsp.net MVC Model binding Pin
shashikanth 201120-Oct-12 2:53
shashikanth 201120-Oct-12 2:53 
AnswerRe: Asp.net MVC Model binding Pin
Sandeep Mewara20-Oct-12 21:31
mveSandeep Mewara20-Oct-12 21:31 
QuestionCreate a Event at run time in asp .net with out refresh a page Pin
RAMALINGAM.K19-Oct-12 22:52
RAMALINGAM.K19-Oct-12 22:52 
AnswerRe: Create a Event at run time in asp .net with out refresh a page Pin
Sandeep Mewara19-Oct-12 23:28
mveSandeep Mewara19-Oct-12 23:28 
QuestionDisabling web browser close(x) button. Pin
RAMADURAI P19-Oct-12 19:08
RAMADURAI P19-Oct-12 19:08 
AnswerRe: Disabling web browser close(x) button. Pin
Sandeep Mewara19-Oct-12 23:30
mveSandeep Mewara19-Oct-12 23:30 
GeneralRe: Disabling web browser close(x) button. Pin
RAMADURAI P21-Oct-12 18:13
RAMADURAI P21-Oct-12 18:13 
GeneralBest structure in .Net? Pin
batuhan karaduman19-Oct-12 4:57
batuhan karaduman19-Oct-12 4:57 
AnswerRe: Best structure in .Net? Pin
AspDotNetDev19-Oct-12 5:58
protectorAspDotNetDev19-Oct-12 5:58 
GeneralMessage Closed Pin
19-Oct-12 6:42
professionalfjdiewornncalwe19-Oct-12 6:42 
GeneralMessage Removed Pin
19-Oct-12 7:07
protectorAspDotNetDev19-Oct-12 7:07 
GeneralRe: Best structure in .Net? Pin
R. Giskard Reventlov19-Oct-12 7:19
R. Giskard Reventlov19-Oct-12 7:19 
QuestionIErrorInfo.GetDescription failed with E_FAIL(0x80004005) Pin
busteronline19-Oct-12 2:57
busteronline19-Oct-12 2:57 
AnswerRe: IErrorInfo.GetDescription failed with E_FAIL(0x80004005) Pin
Jay Royall19-Oct-12 3:12
Jay Royall19-Oct-12 3:12 
Questionweb stats recommendations Pin
Jassim Rahma19-Oct-12 2:52
Jassim Rahma19-Oct-12 2:52 
AnswerRe: web stats recommendations Pin
code-frog19-Oct-12 18:11
professionalcode-frog19-Oct-12 18:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.