Imports System.Data.Oledb Public Class dochome Inherits System.Web.UI.Page #Region " Web Form Designer Generated Code " 'This call is required by the Web Form Designer. Private Sub InitializeComponent() End Sub Protected WithEvents lbldname As System.Web.UI.WebControls.Label Protected WithEvents lnklogout As System.Web.UI.WebControls.LinkButton Protected WithEvents lnkpatient As System.Web.UI.WebControls.LinkButton Protected WithEvents lnkmsg As System.Web.UI.WebControls.LinkButton 'NOTE: The following placeholder declaration is required by the Web Form Designer. 'Do not delete or move it. Private designerPlaceholderDeclaration As System.Object Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'CODEGEN: This method call is required by the Web Form Designer 'Do not modify it using the code editor. InitializeComponent() End Sub #End Region Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load lbldname.Text = Session("doctorcode") & "|" & Session("Doctorname") End Sub Private Sub lnkpatient_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkpatient.Click Response.Redirect("download.aspx") End Sub Private Sub lnkmsg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkmsg.Click Response.Redirect("doc_res.aspx") End Sub Private Sub lnklogout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnklogout.Click Session.Abandon() Response.Redirect("default.aspx") End Sub End Class