Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Thursday, May 26, 2016

ASP.Net Server Side Code for redirect to another Page

You can use in the below code in your code block

string spurl = SPContext.Current.Site.Url;              
string scriptText = "alert('Record has Successfully SavedDraft.'); window.location='" + spurl + "/Test/default.aspx'";
System.Web.UI.ScriptManager.RegisterClientScriptBlock(panel4, Page.GetType(), "alertMessage", scriptText, true);

Once user click on the Button then it will redirect to other page.

Wednesday, September 16, 2015

Enable cross domain sharepoint profile picture in sharepoint 2013

I just enabled custom claim provider Authentication in the 80 web application, After that I just enabled My Site with custom claim provider Authentication .

When I open my 80 website and click on the my site link then My Profile picture is not showing in the first time.  So I just enabled in the below solution. It is working fine.

Run the code in the PowerShell skills. Basically all you need to do is to set the CrossDomainPhotosEnabled property on the SPWebApplication object to true, like this:
asnp Microsoft.SharePoint.PowerShell
$wa = Get-SPWebApplication
$wa.CrossDomainPhotosEnabled = $true