Friday, August 16, 2013

SharePoint isDlg querystring mystery

One of my client asked me to show the preview of SharePoint list item in a custom task form page.

So I thought of using an iframe in a custom task form using a webcontrol and passed the src attribute as

"src='http://sharepoint:784/Lists/TestNintex/DispForm.aspx?ID=3&IsDlg=0'"

As we did not want to have left navigation appear on the iframe i passed a query string as "isDlg=0" but to my surprise I was still seeing the left navigation.

I verified the piece of code again and again but could not find any thing.Also google did not help me.


Somehow I thought of changing the value of isDlg to 2 and to my surprise the list item page was rendered with no left navigation.


"src='http://sharepoint:784/Lists/TestNintex/DispForm.aspx?ID=3&IsDlg=2'"

I am not sure how Microsoft has implemented it but it works.

Happy Coding!! :)

No comments:

Post a Comment