i had made Modalupdialog for Document Upload fro following Cod.

<script type="text/javascript">
    function RedirectUpload() {

        var tempUrl = "/_layouts/Upload.aspx?List={1264ADD5-41C8-4DF8-8468-BF275EA55E3E}";

        var options = {
            url: tempUrl,
            width: 500,
            height: 250,
            title: "Upload",
            allowMaximize: true,
            showClose: true,
            //dialogReturnValueCallback: showModalDialog


But. it Display Blank Dialog for Second & Disapper.I am Calling this function from onclientclick of Button.

2 Answers 2


The comma after showClose must be deleted, you have commented the dialogReturnValueCallback and therefor the comma must be removed.

  1. What happens when you add the url to the browseraddress?
  2. Change the script to window.location = tempUrl to see if your url is correct
  • Thanks bonm... But,This is not the Reason. Commented Jun 29, 2013 at 4:01

It's done by taking Html Button instead of Asp.net Button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.