My .aspx Page <%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”Page1.aspx.vb” Inherits=”_Default” %> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml” > <head runat=”server”> <title>Page 1</title> <script type = “text/javascript” > function preventBack(){window.history.forward();} setTimeout(“preventBack()”, 10); window.onunload=function(){null}; </script> </head> <body> <form id=”form1″ runat=”server”> <h1>My Page</h1> <div> Take me to Google<br /> <asp:Button ID=”Button1″ runat=”server” Text=”Google” /> </div> […]
Home » Posts tagged "ASP.NET" (Page 16)
Archive for the 'ASP.NET' Tag
Count number of rows in gridview
<%# GridView1.Rows.Count.ToString%>
Login – password encrypt
Login.aspx [ form page ] Login.asp.vb [code behind] Imports System.IO Imports System.Data.OleDb Imports System.Web.UI.WebControls.ImageButton Imports System.Web.UI.WebControls.TextBox Imports System.Web.SessionState Imports System.Web.Security Imports System.Web Partial Class Control_Panel Inherits System.Web.UI.Page Protected Sub Login_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles Login.Click ‘/ defining controls Dim usn As TextBox Dim pwd As TextBox ‘/ binding controls usn = […]