
Close Module Dialog SharePoint from server side Code and javascript
Javascript
C#
//current Context
HttpContext Currentcontext = HttpContext.Current;
//Checking dialog is open on this page or not
if (HttpContext.Current.Request.QueryString["IsDlg"] != null)
{
//executing javascript for closing pop on runtime;
Currentcontext.Response.Write("");
Currentcontext.Response.Flush();
Currentcontext.Response.End();
}
from update panel
///
/// Call Runtime Javascript Functions
///
/// type Complete Function and js Code
private void CallJavaScriptMethods(string Script)
{
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), Guid.NewGuid().ToString(), Script, true);
}
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), Guid.NewGuid().ToString(), "window.frameElement.commitPopup();", true);
SharePoint 2010 Close Module Dialog through code
Sunday, June 2, 2013
Posted by Usama Wahab Khan at 6:20 AM 0 comments
Labels: SharePoint 2010
Retrieve files from a sub folder SharePoint document library with CSOM
Saturday, June 1, 2013
public static void GetAllListItemsInFolder()
{
ClientContext clientContext = new ClientContext("http://xxxxxx:000");
List list = clientContext.Web.Lists.GetByTitle("MainLib");
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml = @"
"; camlQuery.FolderServerRelativeUrl = "/MainLib/HR";
ListItemCollection listItems = list.GetItems(camlQuery);
clientContext.Load(listItems);
clientContext.ExecuteQuery();
ListItem itemOfInterest = listItems[0];
string Itemcreator = itemOfInterest.FieldValues["Created_x0020_By"].ToString();
string Itemtitle = itemOfInterest.FieldValues["Title"].ToString();
}
Posted by Usama Wahab Khan at 9:44 AM 0 comments
Labels: SharePoint 2010, SharePoint 2013
MVA Certifcate of Learining
Monday, May 27, 2013
Posted by Usama Wahab Khan at 8:24 AM 0 comments
Labels: Share Point, Usama wahab khana
Autohosted app Uploading a large file to an SharePoint 2013
Sunday, May 26, 2013
if you trying to upload Large file to you AutoHosted App some thing like 1.5 Gb which more time to execute then you will receive and error especially if you're using MVC.
Add in app web.config :)
Posted by Usama Wahab Khan at 11:56 PM 0 comments
Labels: SharePoint 2013, SharePoint Apps
SharePoint 2013 WebPart vs AppPart and Cloud App Module Advantages
Tuesday, May 21, 2013
WebPart Vs App Part
|
Web Part
|
App Part
|
|
Run on SharePoint
Server
|
Run on external servers or Browser
|
|
Run with User Permissions or will full
Permissions (elevated Privilege)
|
Run with App Identity that is
granted specific Permission.
|
|
Runs in the Same
Domain and environment of the page and its content.
|
Runs on Different domain
providing complete client -side isolation
|
|
Could take up a
significant amount of CPU cycles for complex operations
|
Executed outside SharePoint
hence SharePoint performance is not
impacted
|
|
Not easy to publish
globally / locally. It requires installations and activations.
|
Can be published internally
and or to the Microsoft public SharePoint Store
|
- Cloud App Module which runs Outside the SharePoint server
- Better life cycle installs > update > install.
- App Store to Manage Apps.
Posted by Usama Wahab Khan at 6:20 AM 0 comments
Labels: App Part, SharePoint 2013, SharePoint Apps
Dubai Sharepointer meetup
Friday, May 17, 2013
Posted by Usama Wahab Khan at 3:34 AM 0 comments
Labels: Usama wahab khana
X-Frame-Options’ to ‘SAMEORIGIN’ SharePoint2013 X-Frame without x-frame-options error
Monday, May 6, 2013
I was try to Add Item in Custom list which in hosted Site from SharePoint hosted App. then try to open same Add Form in Dialogbox and Get this Error. then I Find one very helpful Post By Humberto Lezama.
Hope So it will help others
Posted by Usama Wahab Khan at 3:51 AM 0 comments
Labels: SharePoint 2013







