Display/Download Table in Pdf - c#

I have the following table and I need to downloaded to PDF.
The method downloads to pdf but it does not display the table's border.
Thank you!
protected void Button2_Click(object sender, EventArgs e)
{
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=Panel.pdf");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringWriter stringWriter = new StringWriter();
HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter);
Repeater_AK.RenderControl(htmlTextWriter);
StringReader stringReader = new StringReader(stringWriter.ToString());
Document Doc = new Document(PageSize.A4, 160, 160, 20, 20);
HTMLWorker htmlparser = new HTMLWorker(Doc);
PdfWriter.GetInstance(Doc, Response.OutputStream);
Doc.Open();
htmlparser.Parse(stringReader);
Doc.Close();
Response.Write(Doc);
Response.End();
}
HTML
<table cellspacing="0" style="border-style:solid; font-family:Calibri; border-width:thin;" >
<tr style="height: 26.4pt;">
<td align="center" colspan="6"
style="padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_title" runat="server"
Style="font-weight: bold; font-size:7pt; padding-left:5.4pt; padding-right:5.4pt;">ALASKA INSURANCE IDENTIFICATION CARD</asp:Label>
</td>
</tr>
<tr style="height: 8.4pt;">
<td colspan="2"
style="max-width:98.1pt; padding-left:5.4pt; padding-right:5.4pt; padding-bottom:0px;">
<asp:Label ID="lbl_Company_NAIC_Number" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Company NAIC Number"></asp:Label>
</td>
<td style="width:43.2pt; padding-left:5.4px; padding-right:5.4pt; padding-bottom:0px;">
<asp:Label ID="lbl_Commercial" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Commercial"></asp:Label>
</td>
<td style="width:20.7pt; padding-left:5.4pt; padding-right:5.4pt; padding-bottom:0px;">
</td>
<td style="width:38.7pt; padding-left:5.4pt; padding-right:5.4pt; padding-bottom:0px;">
<asp:Label ID="lbl_Personal" runat="server" Style="font-weight:bold; font-size:7pt;" Text="Personal"></asp:Label>
</td>
<td style="width:16.2pt; padding-left:5.4pt; padding-right:5.4pt; padding-bottom:0px;">
</td>
</tr>
<tr valign="top">
<td colspan="2" style="width:108.9pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Company_NAIC_Number_out" runat="server" Style="font-size:5pt;" Text="31089"></asp:Label>
</td>
<td colspan="4"
style="width:162pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_empty2" runat="server"
Style="font-weight:bold; font-size:7pt;" Text=""></asp:Label>
</td>
</tr>
<tr style="height: 21.6pt;" valign="top">
<td colspan="2"
style="width:108.9pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Company_Name_and_Address" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Company Name and Address"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Company_Name_and_Address_out" runat="server" Style="font-size:5pt;" Text="Repwest Insurance Company"></asp:Label>
</td>
<td colspan="4"
style="width:162pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Company_Phone_Number" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Company Phone Number"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Company_Phone_Number_out" runat="server"
Style="font-size:5pt;" Text="1-800-858-0317"></asp:Label>
</td>
</tr>
<tr style="height: 21.6pt;" valign="top">
<td colspan="2"
style="width:108.9pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Policy_Number" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Policy Number"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Policy_Number_out" runat="server"
Style="font-size:5pt;" Text="PolicyPlaceHolder"></asp:Label>
</td>
<td colspan="2"
style="width:85.5pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Effective_Date" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Effective Date"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Effective_Date_out" runat="server"
Style="font-size:5pt;" Text="4/1/2015"></asp:Label>
</td>
<td colspan="2"
style="width:76.5pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Expiration_Date" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Expiration Date"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Expiration_Date_out" runat="server"
Style="font-size:5pt;" Text="3/31/2016"></asp:Label>
</td>
</tr>
<tr style="height: 22.2pt;" valign="top">
<td style="width:50.4pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Year" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Year"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Year_out" runat="server"
Style="font-size:5pt;" Text='<%# Eval("YEAR") %>'></asp:Label>
</td>
<td style="width:58.5pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Make_Model" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Make/Model"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Make_Model_out" runat="server"
Style="font-size:5pt;" Text='<%# Eval("MODEL") %>'></asp:Label>
</td>
<td colspan="4"
style="width:162pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_VIN" runat="server" Style="font-weight:bold; font-size:7pt;"
Text="Vehicle Identification Number"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_VIN_out" runat="server" Style="font-size:5pt;"
Text='<%# Eval("VIN") %>'></asp:Label>
</td>
</tr>
<tr style="height: 37.8pt;" valign="top">
<td colspan="2"
style="width:108.9pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Agency" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Agency/Company Issuing Card"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Agency_out" runat="server"
Style="font-size:5pt;">Company<br />ADDRESS<br />PHOENIX, AZ 85024</asp:Label>
</td>
<td colspan="4"
style="width:162pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Insured_Name" runat="server"
Style="font-weight:bold; font-size:7pt;" Text="Insured Name and Address"></asp:Label>
<p style="margin:0px;">
</p>
<asp:Label ID="lbl_Insured_Name_out" runat="server" Style="font-size:5pt;"><%# Eval("INSURED_NAME") %><br /><%# Eval("INSURED_ADDRESS") %><br /><%# Eval("INSURED_CITY")%>, <%# Eval("INSURED_STATE")%>&nbsp <%# Eval("INSURED_ZIPCODE") %></asp:Label>
</td>
</tr>
<tr style="height: 9.6pt;" valign="top">
<td align="center" colspan="6"
style="width:260.1pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_Not_valid" runat="server"
Style="font-weight:bold; font-size:7pt;"
Text="Not valid for more than one year from effective date"></asp:Label>
</td>
</tr>
<tr style="height: 12pt;">
<td align="center" colspan="6"
style="width:260.1pt; padding-left:5.4pt; padding-right:5.4pt;">
<asp:Label ID="lbl_see_importance" runat="server"
Style="font-weight:bold; font-size:7pt;"
Text="See Important notice on reverse side"></asp:Label>
</td>
</tr>
<tr style="height: 13.7pt;">
<td colspan="6"
style="width:260.1pt; padding-left:5.4pt; padding-right:5.4pt;">
</td>
</tr>
</table>

Ultimately your problem is that you are using an obsolete HTML parser, you should actually be getting a warning from your IDE if you're using a recent version of iTextSharp, and unless you have a lot of legacy code, there really isn't a good reason to not be running the most recent version. If you're running the 4.x version because of the license differences I strongly recommend you read the fourth block on this page.
Regardless, HTMLWorker has very limited support for style commands and border is not one of them. If you want to continue using HTMLWorker, read the fifth paragraph here which tells you which attributes you can use. If you want to change the border using HTMLWorker you're only option that I'm aware of is setting it on the HTML tag itself:
<table border="1">
However, if you switch over to XMLWorker your code will work as expected as long as you change your border-width property to an actual unit like 1px:
<table style="border-style:solid; border-width: 1px;">

Related

I need to merge only a specific column in gridview

Respected Viewers I need only a specific column does not repeat again and again in Gridview I attache a screenshot in you can see room charges repeat 3 times but I need to this repeat only one time and then its charges and date are shown in simple language it is a heading Please review
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" Width="100%" BorderWidth="0px" BorderStyle="None" OnRowDataBound="GridView1_RowDataBound" ShowFooter="true" OnDataBound="GridView1_DataBound">
<Columns>
<asp:TemplateField HeaderStyle-BorderStyle="None" ItemStyle-BorderStyle="None" FooterStyle-BorderStyle="None" >
<ItemTemplate>
<table style="width:100%;font-size:12px;text-align:left">
<tr>
<td colspan="5">
<table style="width:100%;font-size:16px; font-weight:bold; font-family:Cambria, Cochin, Georgia, Times, Times New Roman, serif;text-align:left;margin-bottom:10px">
<tr><td><u> <asp:Label ID="lblprintheading" runat="server" Text='<%#Eval("Headingname")%>' ></asp:Label></u>
</td></tr>
</table>
</td>
</tr>
<tr>
<td style="width:10%;">
<asp:Label ID="lblservicedate" runat="server" Text='<%#Eval("Date")%>'></asp:Label>
</td> <td style="width:50%;">
<asp:Label ID="lblparticular" runat="server" Text='<%#Eval("Servicename")%>'></asp:Label> (<asp:Label ID="Label22" runat="server" Text='<%#Eval("doctorname")%>'></asp:Label>)
</td>
<td style="width:10%;">
<asp:Label ID="lblrate" runat="server" Text='<%#Eval("Rate")%>'></asp:Label>
</td>
<td style="width:10%;">
<asp:Label ID="lblnos" runat="server" Text='<%#Eval("Qty")%>'></asp:Label>
</td>
<td style="width:20%;">
<asp:Label ID="lblprice" runat="server" Text='<%#Eval("Nettotal")%>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
<FooterTemplate >
<table style="width:100%;text-align:center; border:0px none">
<tr>
<td colspan="5" style="text-align:right;padding-right:50px"> ..................................................................................</td>
</tr>
<tr>
<td style="width:10%;">
</td> <td style="width:50%;">
</td>
<td style="width:10%;">
</td>
<td style="width:10%; font-size:18px; font-weight:bold;">
Total:
</td>
<td style="width:20%;">
<asp:Label ID="Label18" runat="server" Text='<%#Eval("Nettotal")%>'></asp:Label>
</td>
</tr>
</table>
</FooterTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
https://i.stack.imgur.com/6Rl6K.png
You can use nested grid view. Which will give you perfect result as you want.

Fill the form as drop down element is selected in asp.net c#

This is my event method for drop down. I need to display all record from database as selected any element from drop down list. But the following code is not working. Can you suggest any solution in the same.
protected void DropDownListSelectEmployee_SelectedIndexChanged(object sender, EventArgs e)
{
string q = "select uid,fname,mname,lname,date_format(hire_date,'%Y-%m-%d'),desg,date_format(dob,'%Y-%m-%d'),AddressLine1,AddressLine2,state,city,pincode,country,MobileNo,UserActive,username,date_format(annivarsary,'%Y-%m-%d'),email from nWorksUser where Username='" + DropDownListSelectEmployee.Text + "'";
MySqlCommand cmd = new MySqlCommand(q,conn);
conn.Open();
MySqlDataAdapter dataAdapter = new MySqlDataAdapter(q, conn);
DataTable dt = new DataTable();
dataAdapter.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
txtFirstName.Text = dr[1].ToString();
txtMiddleName.Text = dr[2].ToString();
txtLastName.Text = dr[3].ToString();
txtMobile.Text = dr[13].ToString();
txtUsername.Text = dr[15].ToString();
txtState.Text = dr[9].ToString();
txtPincode.Text = dr[11].ToString();
txtEmail.Text = dr[17].ToString();
txtDob.Text = dr[6].ToString();
txtDesignation.Text = dr[5].ToString();
txtDateofHire.Text = dr[4].ToString();
txtDateofAnnivarsary.Text = dr[16].ToString();
txtCountry.Text = dr[12].ToString();
txtCity.Text = dr[10].ToString();
txtAddressLine2.Text = dr[7].ToString();
txtAddressLine1.Text = dr[8].ToString();
if(dr[14].ToString().Length==4)
{
RdoGender.SelectedIndex = 1;
}
else
{
RdoGender.SelectedIndex = 2;
}
conn.Close();
}
}
asp code :
<%# Page Language="C#" AutoEventWireup="true" CodeBehind="EmployeeManagementForm.aspx.cs" Inherits="WebAPP.EmployeeManagementForm" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="Content/MyStyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<header>
<h1>Employee Management</h1>
<asp:Button ID="ButtonLogOut" runat="server" Text="Log Out" class="btnLogout" />
</header>
<nav>
<button id="btnAttendance" onclick="window.location.href='AttendanceForm.aspx';return false;" class="btn">Attendance</button><br />
<button id="ButtonOnBoardEmployee" onclick="window.location.href='OnBoardEmployeeForm.aspx';return false;" class="btn">On Board Employee</button><br />
<button id="ButtonEmployeeManagement" onclick="window.location.href='EmployeeManagementForm.aspx';return false;" class="btn">Employee Management</button><br />
<button id="ButtonAdministration" onclick="window.location.href='AdministrationForm.aspx';return false;" class="btn" >Administration</button><br />
<button id="ButtonAdminManagement" onclick="window.location.href='AdminManagementForm.aspx';return false;" class="btn" >Admin Management</button><br />
<button id="ButtonEventCalendar" onclick="window.location.href='EventCalendarForm.aspx';return false;" class="btn" >Event Calendar</button><br />
</nav>
<div>
<table style="border: 1pt solid #6666FF; width: 82.9%; height: 924px; font-family: Verdana;
border-collapse: collapse; background-color: #ffffff; text-align: center;">
<tr>
<td style="text-align: center;" class="style12" colspan="3">
<asp:Label ID="lableMessage" runat="server" ForeColor="red"></asp:Label>
</td>
</tr>
<tr>
<td style="text-align: center; height: 50px;" colspan="3" class="style9">
<asp:Label ID="lblHeader" runat="server" Text="Modification Form" Font-Bold="True"></asp:Label>
</td>
</tr>
<tr>
<td class="style11" style="text-align: center;" colspan="3">
<b>Select Employee : </b>
<asp:DropDownList ID="DropDownListSelectEmployee" runat="server"
OnSelectedIndexChanged="DropDownListSelectEmployee_SelectedIndexChanged">
<asp:ListItem>nWorks Employee</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblFirstName" runat="server" Text="First Name :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtFirstName" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvFirstName" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtFirstName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label2" runat="server" Text="Middle Name :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtMiddleName" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtMiddleName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblLastName" runat="server" Text="Last Name :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtLastName" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvLastName" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtLastName"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblEmail" runat="server" Text="E-Mail :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtEmail" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvUserName" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator ID="RxvEmail" runat="server" ControlToValidate="txtEmail"
ErrorMessage="Invalid E-mail" ForeColor="#FF3300" ValidationExpression="\w+([-+.']\w+)*#\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label3" runat="server" Text="Username :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtUsername" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtUsername"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblPassword" runat="server" Text="Password :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvPwd" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblConfirmPwd" runat="server" Text="Confirm Pasword :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtConfirmPwd" runat="server" TextMode="Password" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvCnfrmPwd" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtConfirmPwd"></asp:RequiredFieldValidator>
<br />
<asp:CompareValidator ID="CvCnfmPwd" runat="server" ErrorMessage="Password and Confirm Password didnt matched"
ForeColor="#FF3300" ControlToCompare="txtPassword" ControlToValidate="txtConfirmPwd"></asp:CompareValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblDob" runat="server" Text="Date of Birth :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtDob" runat="server" Class="style9"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Text="(dd/mm/yyyy)"></asp:Label>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtDob"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator ID="RxvDob" runat="server" ControlToValidate="txtDob"
ErrorMessage="Invalid Date Format" ValidationExpression="^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$"
ForeColor="#FF3300"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td style="text-align: right;" class="style11">
<asp:Label ID="lblMobile" runat="server" Text="Mobile"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtMobile" runat="server" MaxLength="10" Class="style9"></asp:TextBox>
</td>
<td class="style4">
<asp:RegularExpressionValidator ID="RxvMobile" runat="server" ErrorMessage="Invalid Mobile Number"
ForeColor="#FF3300" ValidationExpression="^([7-9]{1})([0-9]{9})$" ControlToValidate="txtMobile"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblAddress" runat="server" Text="Address Line 1:"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtAddressLine1" runat="server" TextMode="MultiLine" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvAddress" runat="server" ErrorMessage="* Required"
ForeColor="Red" ControlToValidate="txtAddressLine1"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label4" runat="server" Text="Address Line 2:"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtAddressLine2" runat="server" TextMode="MultiLine" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;"></td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label5" runat="server" Text="City :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtCity" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtCity"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label6" runat="server" Text="State :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtState" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtState"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label7" runat="server" Text="Country :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtCountry" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtCountry"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label8" runat="server" Text="Pin Code :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtPincode" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtPincode"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label9" runat="server" Text="Date of Hire :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtDateofHire" runat="server" Class="style9"></asp:TextBox>
<asp:Label ID="Label10" runat="server" Text="(dd/mm/yyyy)"></asp:Label>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtDateofHire"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDateofHire"
ErrorMessage="Invalid Date Format" ValidationExpression="^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$"
ForeColor="#FF3300"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label11" runat="server" Text="Date of Annivarsary :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtDateofAnnivarsary" runat="server" Class="style9"></asp:TextBox>
<asp:Label ID="Label12" runat="server" Text="(dd/mm/yyyy)"></asp:Label>
</td>
<td class="style4" style="text-align: left;"> <br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDateofAnnivarsary"
ErrorMessage="Invalid Date Format" ValidationExpression="^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$"
ForeColor="#FF3300"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="Label13" runat="server" Text="Designation :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="txtDesignation" runat="server" Class="style9"></asp:TextBox>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="txtDesignation"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">
<asp:Label ID="lblGender" runat="server" Text="Gender :"></asp:Label>
</td>
<td class="style11" style="text-align: left;">
<asp:RadioButtonList ID="RdoGender" runat="server" RepeatDirection="Horizontal" Width="176px">
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:RadioButtonList>
</td>
<td class="style4" style="text-align: left;">
<asp:RequiredFieldValidator ID="RfvGender" runat="server" ErrorMessage="* Required"
ForeColor="#FF3300" ControlToValidate="RdoGender"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style11" style="text-align: right;">Employee Status :</td>
<td class="style11" style="text-align: left;">
<asp:RadioButtonList ID="RadioButtonsEmployeeStatus" runat="server"
RepeatDirection="Horizontal"
OnSelectedIndexChanged="RadioButtonsEmployeeStatus_SelectedIndexChanged" >
<asp:ListItem>Inactive</asp:ListItem>
<asp:ListItem>Active</asp:ListItem>
</asp:RadioButtonList></td>
<td class="style11" style="text-align: left;">
<asp:TextBox ID="TextBoxEmpInactivatedDate" runat="server" Class="style9" AutoPostBack= "True"></asp:TextBox></td>
</tr><tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td style="text-align: center;" class="style12">
</td>
<td class="style12" style="text-align: left;">
<asp:Button ID="btnSubmit" runat="server" Text="Submit" class="btnsLikeSubmit"
/> &nbsp
<asp:Button ID="btnClear" runat="server" CausesValidation="False" class="btnsLikeSubmit"
Text="Clear" />
</td>
<td style="text-align: center;" class="style7"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<footer>
Copyright © nWorks.co
</footer>
</div>
</form>
</body>
</html>

Tabcontainer issue with rendering the tab stripe

enter code![as you can see here the tabs are half eaten!][1] here
Hello, I have a problem with showing the tab stripe I don't know what is wrong with it. can any one help? when I run this the tabs are not fully shown I have three tabs and I tried this with different browsers but the issue persists.
below is a sample of the code:
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" BackColor="#62A5C8" BorderStyle="none" ForeColor="#ffffff" Height="450px" server="" Style=" background-color:#012F54; margin-top: 0px;" Width="100%" ScrollBars="Both" Font-Size="Medium"
ToolTip="Move between tabs to fill-in all information">
<asp:TabPanel runat="server" HeaderText="Student Information" ID="TabPanel1">
<ContentTemplate>
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<table class="auto-style15">
<tr>
<td class="auto-style27">
<br />
<span class="auto-style117">First Name:<br /> </span>
</td>
<td class="auto-style21">
<br />
<strong>
<asp:TextBox ID="TextBox1" runat="server" BorderColor="Black" BorderStyle="Solid" Height="23px" Width="198px" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
<td> </td>
</tr>
<tr>
<td class="auto-style117">Last Name:</td>
<td class="auto-style24"><strong>
<asp:TextBox ID="TextBox2" runat="server" BorderStyle="Solid" Height="21px" Width="198px" BorderColor="Black" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td class="auto-style25"></td>
</tr>
<tr>
<td class="auto-style17"></td>
<td class="auto-style20"></td>
<td class="auto-style18"></td>
</tr>
<tr>
<td class="auto-style27" style="font-size: small; color: #043d5d">Student ID:</td>
<td class="auto-style21"><strong>
<asp:TextBox ID="TextBox3" runat="server" BorderStyle="Solid" Height="23px" Width="198px" BorderColor="Black" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
<td> </td>
</tr>
<tr>
<td class="auto-style27" style="font-size: small; color: #043d5d">Department:</td>
<td class="auto-style21"><strong>
<asp:DropDownList ID="DropDownList1" runat="server" Height="27px" Width="295px" style="margin-left:7px;">
<asp:ListItem>Cardiac Technology</asp:ListItem>
<asp:ListItem>Clinical Laboratory Sciences</asp:ListItem>
</asp:DropDownList>
</strong>
</td>
<td> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
<td> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
</tr>
<tr>
<td class="auto-style28"> </td>
<td class="auto-style21"> </td>
<td>
<asp:Button ID="Button1" runat="server" BackColor="#4DA3B0" BorderColor="#4DA3B0" Font-Bold="False" Font-Size="12pt" ForeColor="White" Height="36px" style="margin-left:10px;" Text="Next ►" Width="166px" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Graduate Form">
<ContentTemplate>
**
Hi brother use below code
first add refrence at the top of the page
<%# Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
then use below code
<asp:ScriptManager runat="server" ID="sc">
</asp:ScriptManager>
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" BackColor="#62A5C8"
BorderStyle="none" ForeColor="#ffffff" Height="450px" server="" Style="background-color: #012F54;
margin-top: 0px;" Width="100%" ScrollBars="Both" Font-Size="Medium" ToolTip="Move between tabs to fill-in all information">
<asp:TabPanel runat="server" HeaderText="Student Information" ID="TabPanel1">
<ContentTemplate>
<table class="auto-style15">
<tr>
<td class="auto-style27">
<br />
<span class="auto-style117">First Name:<br />
</span>
</td>
<td class="auto-style21">
<br />
<strong>
<asp:TextBox ID="TextBox1" runat="server" BorderColor="Black" BorderStyle="Solid"
Height="23px" Width="198px" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style117">
Last Name:
</td>
<td class="auto-style24">
<strong>
<asp:TextBox ID="TextBox2" runat="server" BorderStyle="Solid" Height="21px" Width="198px"
BorderColor="Black" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td class="auto-style25">
</td>
</tr>
<tr>
<td class="auto-style17">
</td>
<td class="auto-style20">
</td>
<td class="auto-style18">
</td>
</tr>
<tr>
<td class="auto-style27" style="font-size: small; color: #043d5d">
Student ID:
</td>
<td class="auto-style21">
<strong>
<asp:TextBox ID="TextBox3" runat="server" BorderStyle="Solid" Height="23px" Width="198px"
BorderColor="Black" CssClass="auto-style116"></asp:TextBox>
</strong>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style27" style="font-size: small; color: #043d5d">
Department:
</td>
<td class="auto-style21">
<strong>
<asp:DropDownList ID="DropDownList1" runat="server" Height="27px" Width="295px" Style="margin-left: 7px;">
<asp:ListItem>Cardiac Technology</asp:ListItem>
<asp:ListItem>Clinical Laboratory Sciences</asp:ListItem>
</asp:DropDownList>
</strong>
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
<td>
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
</tr>
<tr>
<td class="auto-style28">
</td>
<td class="auto-style21">
</td>
<td>
<asp:Button ID="Button1" runat="server" BackColor="#4DA3B0" BorderColor="#4DA3B0"
Font-Bold="False" Font-Size="12pt" ForeColor="White" Height="36px" Style="margin-left: 10px;"
Text="Next ►" Width="166px" />
</td>
</tr>
</table>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Graduate Form">
<ContentTemplate>
</ContentTemplate>
</asp:TabPanel>
</asp:TabContainer>

Button in Modal Popup Is not working as it should have to worked

I am Having a code for Modal PopUp windoe in which I wanna perform login operation and code for extender is as follows.
<div class="wrapper">
<ul id="icons">
<li><asp:ImageButton runat="server" ImageUrl="images/lgn.png" ID="btnimg" CssClass="image" /></li>
</ul>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnimg" PopupControlID="Panel1" BackgroundCssClass="modalBackground">
</asp:ModalPopupExtender >
<asp:panel id="Panel1" CssClass="popup" runat="server">
<div class="popup">
<div id="PopupHeader" style="height:55px;background-color:#f6f6f6;border-radius:10px;width:348px;font-size:2.7em; "> <font style="margin:30px 0px 0px 20px;vertical-align:middle;color:Black;line-height:1.2em; font-size:37px; font-family: BonvenoCF;"> Login </font></div>
<div class="PopupBody">
<table width="350px" style="vertical-align:middle;text-align:center;">
<tr>
<td style="width:43.5px"> </td>
<td style="width:131.25px"> </td>
<td style="width:131.25px"> </td>
<td style="width:43.5px"> </td>
</tr>
<tr>
<td style="width:43.5px"> </td>
<td style="width:131.25px">
<asp:Label ID="Label1" runat="server" Text="User Name: "></asp:Label>
</td>
<td style="width:131.25px">
<asp:TextBox ID="txtUserName" runat="server" Height="20px" style="border-radius:8px;"> </asp:TextBox>
<asp:TextBoxWatermarkExtender ID="txtUserName_TextBoxWatermarkExtender" runat="server" Enabled="True" TargetControlID="txtUserName"WatermarkText="User Name">
</asp:TextBoxWatermarkExtender>
</td>
<td style="width:43.5px"> </td>
</tr>
<tr>
<td style="width:43.5px"> </td>
<td style="width:131.25px"> </td>
<td style="width:131.25px"> </td>
<td style="width:43.5px"> </td>
</tr>
<tr>
<td style="width:43.5px"> </td>
<td style="width:131.25px">
<asp:Label ID="Label2" runat="server" Text="Password: " ></asp:Label>
</td>
<td style="width:131.25px">
<asp:TextBox ID="txtPassword" runat="server" Height="20px" style="border-radius:8px;"> </asp:TextBox>
<asp:TextBoxWatermarkExtender ID="txtPassword_TextBoxWatermarkExtender"
runat="server" Enabled="True" TargetControlID="txtPassword"
WatermarkText="Password">
</asp:TextBoxWatermarkExtender>
</td>
<td style="width:43.5px"> </td>
</tr>
<tr>
<td style="width:43.5px"> </td>
<td colspan="2">
<asp:Label ID="Label3" runat="server" Text="Invalid User Name Or Password." Visible="False"></asp:Label>
</td>
<td style="width:43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:Button ID="Button2" runat="server" CssClass="button" Text="Login" />
</td>
<td style="width: 131.25px">
<asp:Button ID="Button1" runat="server" CssClass="button" Text="Cancle" /></td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:LinkButton ID="LinkButton1" runat="server">Forgot Password</asp:LinkButton>
</td>
<td style="width: 131.25px">
<asp:Button ID="Button3" runat="server" CssClass="button" Text="Sign Up" />
</td>
<td style="width: 43.5px"> </td>
</tr>
</table>
</div>
</div>
</asp:panel>
</div>
on button2_Click code behind is as follows.
protected void Button2_Click(object sender, EventArgs e)
{
ds = obj.sel("select UserName and Password from tblUserMaster where UserName='"+txtUserName.Text+"' AND Password='"+txtPassword.Text+"'");
if (ds.Tables[0].Rows.Count == 0)
{
Label3.Visible = true;
}
else
{
Response.Redirect("Default.aspx");
}
}
But when i'm clicking on LOGIN Button it is not redirection me on Default.aspx page popup is getting closed.
while on clicking on cancel button it is not working at all.
please suggest an solution as soon as possible.
use update panel for refreshing problem .
here is complete code .
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div class="wrapper">
<ul id="icons">
<li><asp:ImageButton runat="server" ImageUrl="images/lgn.png" ID="btnimg" CssClass="image" /></li>
</ul>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnimg" PopupControlID="Panel1" BackgroundCssClass="modalBackground" CancelControlID="Button1"></asp:ModalPopupExtender>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="Panel1" CssClass="popup" runat="server">
<div class="popup">
<div id="PopupHeader" style="height: 55px; background-color: #f6f6f6; border-radius: 10px; width: 348px; font-size: 2.7em;"><font style="margin: 30px 0px 0px 20px; vertical-align: middle; color: Black; line-height: 1.2em; font-size: 37px; font-family: BonvenoCF;"> Login </font></div>
<div class="PopupBody">
<table width="350px" style="vertical-align: middle; text-align: center;">
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px"> </td>
<td style="width: 131.25px"> </td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:Label ID="Label1" runat="server" Text="User Name: "></asp:Label>
</td>
<td style="width: 131.25px">
<asp:TextBox ID="txtUserName" runat="server" Height="20px" Style="border-radius: 8px;"> </asp:TextBox>
</td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px"> </td>
<td style="width: 131.25px"> </td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:Label ID="Label2" runat="server" Text="Password: "></asp:Label>
</td>
<td style="width: 131.25px">
<asp:TextBox ID="txtPassword" runat="server" Height="20px" Style="border-radius: 8px;"> </asp:TextBox>
<asp:TextBoxWatermarkExtender ID="txtPassword_TextBoxWatermarkExtender"
runat="server" Enabled="True" TargetControlID="txtPassword"
WatermarkText="Password">
</asp:TextBoxWatermarkExtender>
</td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td colspan="2">
<asp:Label ID="Label3" runat="server" Text="Invalid User Name Or Password." Visible="False"></asp:Label>
</td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:Button ID="Button2" runat="server" CssClass="button" Text="Login" OnClick="Button2_Click" />
</td>
<td style="width: 131.25px">
<asp:Button ID="Button1" runat="server" CssClass="button" Text="Cancle" /></td>
<td style="width: 43.5px"> </td>
</tr>
<tr>
<td style="width: 43.5px"> </td>
<td style="width: 131.25px">
<asp:LinkButton ID="LinkButton1" runat="server">Forgot Password</asp:LinkButton>
</td>
<td style="width: 131.25px">
<asp:Button ID="Button3" runat="server" CssClass="button" Text="Sign Up" OnClick="Button3_Click" />
</td>
<td style="width: 43.5px"> </td>
</tr>
</table>
</div>
</div>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
#Chirag : you haven't added the onclick event on your button . so please add this ..
edit your code .
<asp:Button ID="Button2" runat="server" CssClass="button" Text="Login" OnClick="Button2_Click"/>

how to bind the data form dAtabase in c#

"
SelectCommand="select case when len(T.hallticketno)=1 then '0000'+ convert(varchar(20),T.hallticketno)
when len(T.hallticketno)=2 then '000'+ Convert(varchar(20),T.hallticketno)
when len(T.hallticketno)=3 then '00'+ Convert(varchar(20),T.hallticketno)
when len(T.hallticketno)=4 then '0'+ Convert(varchar(20),T.hallticketno)
when len(T.hallticketno)=5 then Convert(varchar(20),T.hallticketno) end as Hallticketno
,T.Studentname,(select senseiname from senseimaster where senseiid=T.senseiID) as SenseiName,(select kyuname from kyumaster where kyuid= T.kyuid) as Kyu,(select groupname from groupmaster where groupid= T.groupid) as GroupName,T.Fathername,convert(varchar(20),T.dob,103) as Dob, case when T.sex=0 then 'Male' else 'Female' end as Gender
from applicationForm T where Franchiseid =#FRANCHISEID and Competitionid=#competitionId
order by groupname ">
--%>
CompanyName
City
--%>
<table id ="sample " border ="1px" visible ="false" >
<tr>
<asp:Label ID="Label13" runat ="server" Font-Bold="true" Text ='<%#Bind(CompetitionName)%>' ></asp:Label><td style="width: 100px">
</td>
<td style="width: 106px">
</td>
<td style="width: 127px">
</td>
<td style="width: 129px">
</td>
</tr>
<tr>
<td style="width: 100px">
Venue</td>
<td style="width: 106px">
<asp:Label ID="Label14" runat ="server" Font-Bold="true" Text ='<%Bind(competitionaddress) %>' ></asp:Label>
</td>
<td style="width: 127px">
Date of Competition</td>
<td style="width: 129px">
<asp:Label ID ="Label15" runat ="server" ></asp:Label>
</td>
</tr>
<tr>
<td style="width: 100px">
Hall Ticket No</td>
<td style="width: 106px">
<asp:Label Font-Bold="true" Font-Size="X-Large" ID="Label16" runat="server" ></asp:Label>
</td>
<td style="width: 127px">
Group</td>
<td style="width: 129px">
<asp:Label ID="Label17" runat="server" Font-Bold="true"></asp:Label>
<%--<asp:Label ID="Lable1" runat ="server" Font-Bold="true" Text ='<%Bind("GroupName")%>'></asp:Label>--%>
</td>
</tr>
<tr>
<td style="width: 100px">
Student Name</td>
<td style="width: 106px">
<asp:Label ID ="Lable18" runat ="server" ></asp:Label>
</td>
<td style="width: 127px">
Kyu</td>
<td style="width: 129px">
<asp:Label ID="Lable19" runat ="server" ></asp:Label>
</td>
</tr>
<tr>
<td rowspan="3" style="width: 100px">
</td>
<td style="width: 106px">
<asp:Label ID ="Lable20" runat ="server" ></asp:Label>
</td>
<td style="width: 127px">
Franchise Name</td>
<td style="width: 129px">
<asp:Label ID ="Lable21" runat ="server" ></asp:Label>
</td>
</tr>
<tr>
<td style="width: 106px">
</td>
<td style="width: 127px">
Sensei's Name</td>
<td style="width: 129px">
<asp:Label ID ="Lable22" runat ="server" ></asp:Label>
</td>
</tr>
<tr>
<td style="width: 106px">
</td>
<td style="width: 127px">
</td>
<td style="width: 129px">
</td>
</tr>
<tr>
<td style="width: 100px">
</td>
<td style="width: 106px">
Signature of HO</td>
<td style="width: 127px">
</td>
<td style="width: 129px">
Signature of Student</td>
</tr>
</table>
<%--</asp:Repeater> --%>
if i click the Hall Ticket then the data sholud be bound to particular field...how to do friends plz help me...
You must use a control supporting DataBind, enclosing your table, like a FormView.

Categories