'**************************************************************** Code for Full Name Matching Developed by : Technical Team, Election Commission of India, New Delhi. '************************************************************* Imports System.Data.OleDb Public Class frmNameSuggestor 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 Label3 As System.Web.UI.WebControls.Label Protected WithEvents Label4 As System.Web.UI.WebControls.Label Protected WithEvents Panel1 As System.Web.UI.WebControls.Panel Protected WithEvents txtName As System.Web.UI.WebControls.TextBox Protected WithEvents Label1 As System.Web.UI.WebControls.Label Protected WithEvents uiddlPercentage As System.Web.UI.WebControls.DropDownList Protected WithEvents Label2 As System.Web.UI.WebControls.Label Protected WithEvents uibtnSuggest As System.Web.UI.WebControls.Button Protected WithEvents Panel2 As System.Web.UI.WebControls.Panel Protected WithEvents uidgNames As System.Web.UI.WebControls.DataGrid Protected WithEvents Label5 As System.Web.UI.WebControls.Label Protected WithEvents Panel3 As System.Web.UI.WebControls.Panel Protected WithEvents pnlHeader As System.Web.UI.WebControls.Panel Protected WithEvents Label6 As System.Web.UI.WebControls.Label '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 Dim objSearch As New AMIN.AMIN Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here If Not IsPostBack Then Session("Sort_Order") = "PERCENTAGE DESC" End If End Sub Private Sub uibtnSuggest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles uibtnSuggest.Click Dim strDbasePath As String = Server.MapPath("Database\Names.mdb") Dim condb As New OleDbConnection("provider=Microsoft.Jet.Oledb.4.0; data source=" & strDbasePath) Dim strsource As String Dim strMsg As String strsource = Trim(UCase(txtName.Text)) If Len(strsource) < 2 Then strMsg = "