In this blog we will know how to retrieve the related data from database into textbox's when we provide one data in the textbox and press submit button.
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs"
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>Untitled Page</title>
</head>
<body>
<form
id="form1"
runat="server">
<div>
<asp:Label ID="Label1" runat="server"
Text="REGDNO"
Width="100px"></asp:Label>
<asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox><br />
<asp:Label ID="Label2" runat="server"
Text="NAME"
Width="100px"></asp:Label>
<asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><br />
<asp:Label ID="Label3" runat="server"
Text="BRANCH"
Width="100px"></asp:Label>
<asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox><br />
<asp:Label ID="Label4" runat="server"
Text="ADDRESS"
Width="100px"></asp:Label>
<asp:TextBox ID="TextBox4"
runat="server"></asp:TextBox><br />
<asp:Label ID="Label5" runat="server"
Text="PHNO"
Width="100px"></asp:Label>
<asp:TextBox ID="TextBox5"
runat="server"></asp:TextBox><br />
<asp:Label ID="Label6" runat="server"
Text="STATE"
Width="100px"></asp:Label>

Sakshi KaulPosted Mar 26, 2019, 6:29 AM
On which page I have to do this connection string coding?
Nurassyura AripinPosted Aug 25, 2017, 5:04 AM
Can you advice me. thank you very much
Nurassyura AripinPosted Aug 25, 2017, 5:03 AM
Hi Satyapriya Nayak, thank you for sharing. I have problem to run your program. it says "Config Error: There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined "
SubashPosted Sep 10, 2016, 5:31 AM
Nice
Siva VasanPosted Aug 4, 2016, 8:48 AM
Nice article
Fadi alfadiPosted Feb 4, 2013, 6:39 AM
please how to compare string equal( between textbox value and sql data filed) and Retrieving the difference compare between words (like mistake word and extra words)