Wednesday, May 12, 2010

Sharepoint FBA- Login back to same page

To login back to the same page from wher eyou got logged out from - Sharepoint FBA

Uri MyLastURL;
protected void Page_Load(object sender, EventArgs e)

if (!IsPostBack)


MyLastURL = Request.UrlReferrer;

ViewState["LastURL"] = MyLastURL.AbsoluteUri;

protected void Login_Click(object sender, EventArgs e)

{ //After successful authentication do Response.Redirect



Tuesday, May 11, 2010

Rest App Pool with out doing IISRESET

Tips : #1 : Rest App Pool with out doing IISRESET can be donw with the help of :

cscript c:\windows\system32\iisapp.vbs /a "SharePointAppPool" /r

eg : cscript c:\windows\system32\iisapp.vbs /a "SharePoint - 222" /r

Tips : #2 : Generate Public Key Token for the assembly

 Open  Visual Studio 2005/ 2008 - At Tools - External Tools -  Select -Add.

Give  TitleGet Public Key Token

Add Command :  Browse to  Drive:\ProgramFiles\Microsoft Visual Studio 8.0\SDK\v2.0\Bin\sn.exe.

Add Arguments -Tp "$(TargetPath)".

Wednesday, May 5, 2010

Create document library groupings based on calculated column


 I saw the above query resolved in a very easy manner by my team mate which i though of adding here so that it can help some one else and is a common requirement.

So, the question is how we can create groupings based on calculated column in a document library where the grouping should be in in bunches of  '50'.

So the easiest solution for acheive the same is to create a calculated column, add the below formula, and to create a grouping based on the calculated field.


*assuming the field name as GROUPFIELD  which is a single line of text

Forums Link :