Dear Sir,
Please check my Combo box not working.
Please help me sir
HTML
<div class="tab-content">
<div id="home" class="container tab-pane active"><br>
<h1 class="text-center">Welcome to C&I Maintenance Department</h1>
<img src="img/istockphoto-1285410936-612x612.jpg"width="1100" height="500"><br />
<h7 class="text-center"><br />For suggestions please contact E-mail id: munplit@ntpc.co.in or Call to 3126</h7>
<h6>This application Designed and Developed by IT Department(idk) © Copyright 2023 , Meja Thermal Power Plant</h6>
</div>
<div id="menu0" class="container tab-pane fade"><br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" DefaultButton = "Button1">
<ContentTemplate>
<table border="1">
<tr>
<td class="auto-style74"><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);">
<span id="ContentPlaceHolder1_Label13" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">Material code</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)" class="auto-style74"> </span></span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74"><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);">:</span></span></td>
<td class="auto-style3" colspan="4">
<ajaxToolkit:ComboBox ID="txt_Mtrl_cd" runat="server" AutoCompleteMode="SuggestAppend" Height="25px" Width="299px" CssClass="auto-style69">
</ajaxToolkit:ComboBox>
<asp:Button runat="server" ID="Button_check" Text="Check" OnClick="btn_check_Click" CausesValidation="false" Width="80px"/>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="First" ControlToValidate="txt_Mtrl_cd" ErrorMessage="!!" ForeColor="Red"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style8" colspan="2"><span id="ContentPlaceHolder1_Label3" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">Description</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)" class="auto-style74"> </span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:</span></td>
<td class="auto-style4">
<asp:TextBox ID="txt_dsc" runat="server" Height="25px" Width="299px" CssClass="auto-style69"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="First" ControlToValidate="txt_dsc" ErrorMessage="!!" ForeColor="Red"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style79">
Id: <b>
<asp:Label ID="Label6" runat="server" CssClass="auto-style66" style="color: #003366"></asp:Label>
</b></td>
</tr>
<tr>
<td class="auto-style74"><span id="ContentPlaceHolder1_Label2" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">Area</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)" class="auto-style74"> </span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:</span></td>
<td class="auto-style3" colspan="4">
<asp:DropDownList ID="txt_area" runat="server" Height="25px" Width="299px" CssClass="auto-style69">
<asp:ListItem Text="--Select Area type--" Value="C" />
<asp:ListItem>TG</asp:ListItem>
<asp:ListItem>SG</asp:ListItem>
<asp:ListItem>Off site</asp:ListItem>
<asp:ListItem>AHP</asp:ListItem>
<asp:ListItem>CCTV</asp:ListItem>
<asp:ListItem>CHP</asp:ListItem>
<asp:ListItem>LAB</asp:ListItem>
<asp:ListItem>Common</asp:ListItem>
<asp:ListItem>FGD</asp:ListItem>
</asp:DropDownList>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="First" ControlToValidate="txt_area" ErrorMessage="!!" ForeColor="Red"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style8" colspan="2"><span id="ContentPlaceHolder1_Label14" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Type of material<span class="auto-style74"> </span></span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:</span></td>
<td class="auto-style4">
<asp:DropDownList ID="txt_mtrl_typ" runat="server" Height="25px" Width="299px" ValidationGroup="First" CssClass="auto-style69">
<asp:ListItem Text="--Select Material type--" Value="C" />
<asp:ListItem>Spare</asp:ListItem>
<asp:ListItem>Tool</asp:ListItem>
<asp:ListItem>Consumable site</asp:ListItem>
</asp:DropDownList>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ValidationGroup="First" ControlToValidate="txt_mtrl_typ" ErrorMessage="!!" ForeColor="Red"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style4"><strong></td>
</tr>
<tr>
<td class="auto-style81" colspan="2"><span id="ContentPlaceHolder1_Label15" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">Type of procurement</span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:
</span></td>
<td class="auto-style80" colspan="2">
<asp:DropDownList ID="txt_typ_of_prcrmnt_in_cs_of_deptt_prchs" runat="server" CssClass="auto-style69" ValidationGroup="First"
AutoPostBack="true" OnSelectedIndexChanged="DropDownList_Changed" Height="25px" Width="299px">
<asp:ListItem Text="--Select Procurement type--" Value="C" />
<asp:ListItem Text="Store" Value="Store" />
<asp:ListItem Text="Gem" Value="Gem" />
<asp:ListItem Text="Imprest site" Value="Imprest site" />
<asp:ListItem Text="Cash" Value="Cash" />
<asp:ListItem Text="From_site" Value="From_site" />
</asp:DropDownList>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ValidationGroup="First" ControlToValidate="txt_typ_of_prcrmnt_in_cs_of_deptt_prchs" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style74"></asp:RequiredFieldValidator>
</td>
</span></b> <td class="auto-style8" colspan="2"><span id="Span38" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">Quantity</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)" class="auto-style74"> </span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:</span></td>
<td class="auto-style83" colspan="3">
<asp:TextBox ID="TextBox1" runat="server" Height="25px" Width="299px" CssClass="auto-style69"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator49" runat="server" ValidationGroup="First" ControlToValidate="TextBox1" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="ui-priority-primary" colspan="3"><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">
<asp:Label ID="Label7" runat="server" Text="Departmental reg. S.no. & page No." CssClass="auto-style72"></asp:Label></span></td>
<td class="auto-style2" colspan="2">
<asp:TextBox ID="txt_dprtmntl_rg_s_no_page_n" runat="server" Height="25px" Width="280px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ValidationGroup="First" ControlToValidate="txt_dprtmntl_rg_s_no_page_n" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style74"><span id="ContentPlaceHolder1_Label16" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<asp:Label ID="Label8" runat="server" Text="Vendor name:" CssClass="auto-style72"></asp:Label>
</span></td>
<td class="auto-style3" colspan="3">
<asp:TextBox ID="txt_vndr_nm" runat="server" Height="25px" Width="299px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ValidationGroup="First" ControlToValidate="txt_vndr_nm" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
</tr>
<tr>
<td class="ui-priority-primary" colspan="3"><span id="Span1" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<asp:Label ID="Label9" runat="server" Text="Vendor Mob. No. :" CssClass="auto-style72"></asp:Label>
</span></td>
<td class="auto-style2" colspan="2">
<asp:TextBox ID="txt_Vndr_mob_no" runat="server" Height="25px" Width="280px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ValidationGroup="First" ControlToValidate="txt_Vndr_mob_no" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style74">
<span id="Span2" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<asp:Label ID="Label10" runat="server" Text="Amount :" CssClass="auto-style72"></asp:Label> </td>
<td class="auto-style3" colspan="3">
<asp:TextBox ID="txt_amt" runat="server" Height="25px" Width="299px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ValidationGroup="First" ControlToValidate="txt_amt" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
</tr>
<tr>
<td class="ui-priority-primary" colspan="3"><span id="Span3" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<asp:Label ID="Label11" runat="server" Text="Purchase By:" CssClass="auto-style72"></asp:Label>
</td>
<td class="auto-style2" colspan="2">
<asp:TextBox ID="txt_purchs_by" runat="server" Height="25px" Width="280px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ValidationGroup="First" ControlToValidate="txt_purchs_by" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
<td class="auto-style74">
<span id="Span4" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">
<asp:Label ID="Label12" runat="server" Text="Date of purchase:" CssClass="auto-style72"></asp:Label>
</td>
<td class="auto-style3" colspan="3">
<asp:TextBox ID="txt_dt_of_prchs" runat="server" Height="25px" Width="299px" CssClass="auto-style73"></asp:TextBox>
<b>
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ValidationGroup="First" ControlToValidate="txt_dt_of_prchs" ErrorMessage="!!" ForeColor="Red" CssClass="auto-style72"></asp:RequiredFieldValidator>
</b>
</td>
</tr>
<tr>
<td class="auto-style8" colspan="2">
<span id="ContentPlaceHolder1_Label4" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Remark</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)"><strong> </strong></span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);">:</span>
</td>
<td class="auto-style8" colspan="2">
<asp:TextBox ID="txt_rmk_one" runat="server" Height="25px" Width="400px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ValidationGroup="First" ControlToValidate="txt_rmk_one" ErrorMessage="!!" ForeColor="Red" style="font-weight: 700"></asp:RequiredFieldValidator>
</td>
<td class="auto-style8" colspan="2"><span id="Span39" style="box-sizing: border-box; color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" class="auto-style74">SIV</span><span style="color: rgb(0, 0, 0); font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none; background-color: rgb(255, 255, 255)" class="auto-style74"> </span><span style="box-sizing: border-box; font-family: sourcesanspro-regular; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; color: rgb(255, 0, 0);" class="auto-style74">:</span></td>
</td>
<td class="auto-style8" colspan="3">
<asp:TextBox ID="TextBox2" runat="server" Height="25px" Width="299px" CssClass="auto-style73"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator47" runat="server" ValidationGroup="First" ControlToValidate="TextBox2" ErrorMessage="!!" ForeColor="Red" style="font-weight: 700"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="9">
<asp:Button runat="server" ValidationGroup="First" ID="btn_save" CssClass="lgnbtn" Text="Save" OnClick="btn_save_Click" Width="156px" OnClientClick="return confirm('Are you sure you want to Save this event?');"/>
<asp:Button runat="server" ValidationGroup="First" ID="btn_cancel" Text="Cancel" class="cnbtn" OnClick="btn_cancel_Click" Width="156px" />
<%-- <asp:Button runat="server" ValidationGroup="First" ID="btn_update" Text="Update" class="Update" OnClick="btn_Update_Click" Width="156px"/><br />--%>
<asp:Label ID="lblMessage" runat="server" Text="" font-color="green"></asp:Label>
</td>
</tr>
<tr> <td colspan="9">
<asp:GridView ID="GridView1"
HeaderStyle-BackColor="#99ccff"
HeaderStyle-ForeColor="black"
DataKeyNames="Id"
runat="server" Font-Size="Medium" AutoGenerateColumns="False"
HeaderStyle-Font-Size="17px"
OnRowCommand="GridView1_RowCommand"
EmptyDataText="There Is No Records In Database!"
Height="16px" Width="1090px"
OnRowDataBound="GridView1_RowDataBound"
CssClass="auto-style7" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Serial No." />
<asp:BoundField DataField="Mtrl_cd" HeaderText="Material code" />
<asp:BoundField DataField="dsc" HeaderText="Description" />
<asp:BoundField DataField="area" HeaderText="Area" />
<asp:BoundField DataField="mtrl_typ" HeaderText="Type of material" />
<asp:BoundField DataField="typ_of_prcrmnt_in_cs_of_deptt_prchs" HeaderText="Type of procurement" />
<asp:BoundField DataField="DATE" HeaderText="DATE" DataFormatString="{0:dd/MM/yyyy}"/>
<asp:TemplateField HeaderText="Action">
<ItemTemplate>
<asp:Button ID="Button" Text="Send" runat="server" CausesValidation="false" CommandName="Mark" OnClientClick="return confirm('Are you sure you want to Send this event?');" OnClick="Mark" CommandArgument="<%# Container.DataItemIndex %>" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="White" ForeColor="#000066" />
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
<RowStyle ForeColor="#000066" />
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#007DBB" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#00547E" />
</asp:GridView>
</td> </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</div>
Code
C#
if (!this.IsPostBack)
{
string constr = ConfigurationManager.ConnectionStrings["IntranetConnectionString"].ConnectionString;
using (SqlConnection con = new SqlConnection(constr))
{
using (SqlCommand cmd = new SqlCommand("SELECT Mtrl_cd, Mtrl_dscrptn FROM mtrl_mstr"))
{
cmd.CommandType = CommandType.Text;
cmd.Connection = con;
con.Open();
txt_Mtrl_cd.DataSource = cmd.ExecuteReader();
txt_Mtrl_cd.DataTextField = "Mtrl_cd";
txt_Mtrl_cd.DataValueField = "Mtrl_dscrptn";
txt_Mtrl_cd.DataBind();
con.Close();
}
}
}