Redirect to last page in asp.net

Filed in Uncategorized Leave a comment

if (!IsPostBack)

{

ViewState[Constants.ViewState.ReferUrl] = Request.UrlReferrer.ToString();

}

protected void btnSignIn_Click(object sender, ImageClickEventArgs e)

{

if (this.SignIn())

{

if (ViewState[Constants.ViewState.ReferUrl] != null)

{

Response.Redirect(ViewState[Constants.ViewState.ReferUrl].ToString(), false);

}

}

}

http://www.dotnetcurry.com/ShowArticle.aspx?ID=89

String Concatenation in gridview Template column using Eval

Filed in Uncategorized Leave a comment

Text=’<%# “Receipt Id# : ” + Eval(“SId”) %>’

This is only possible in Eval method, doesn’t work in Bind.

 

Take backup of your pinned items in Windows 7

Filed in Uncategorized Leave a comment

%AppData%\Microsoft\Windows\Recent\AutomaticDestinations
%AppData%\Microsoft\Windows\Recent\CustomDestinations
%AppData%\Microsoft\Windows\Recent\AutomaticDestinations
 

TOP