1

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
        };

        SP.UI.ModalDialog.showModalDialog(options);
    }
</Script>

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

0

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. – Harsh Bhavsar Jun 29 '13 at 4:01
0

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, privacy policy and cookie policy

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