Home » 2011 » February

Archive for February, 2011

Count number of rows in gridview

<%# GridView1.Rows.Count.ToString%>

Disable back button

On the internal main page, create “log-off” or “exit” link. In code behind of the same page write sub to disable browser back button, like this: [ Control-Panel.aspx.vb ] Protected Overloads Overrides Sub OnPreRender(ByVal e As EventArgs)         ‘/ disable back button         MyBase.OnPreRender(e)         Dim strDisAbleBackButton As String         strDisAbleBackButton = “<script language=’javascript’>” & […]