Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i m using the following function to return value from current page to another page.this works fine if i use both simple pages without master page.But when i use content pages with master pages its not returning value.the value that i get is "undefined".
C#
function SelectAndClose() {
    txtValue = document.getElementById('_browseTextBox');
    //txtValue = document.getElementById('_browseTextBox');

    window.returnValue = txtValue.value;
    window.close();
    return false;
}


i am using
C#
function showDirectory() {
    document.all.TextBox1.value = window.showModalDialog("browseDirectory.aspx", 'jain', "dialogHeight: 560px; dialogWidth: 360px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;");   
}

to collect values returned by page
Why so?How can i get proper values? Help Me..
Posted
v3

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900