Click here to Skip to main content
15,922,650 members

Comments by waqasahmed786 (Top 5 by date)

waqasahmed786 21-May-11 13:16pm View    
<%@ Page Language="C#" MasterPageFile="~/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="Education.aspx.cs" Inherits="HRMS_MAJU.Education" %>
<asp:Content ID="Content2" ContentPlaceHolderID="titleContent" runat="server">Education

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="adminmainbareducation" style="width: 673px">
<div class="articleeducation" style="height: 520px; width: 767px;">
<%--
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>--%>
<div id="myBoxEducation">Education:</div>

<div class="myformdataEducation">

<table>
<tr>
<td align="right"><asp:Label ID="EducationLabel" runat="server" Text="Degree Name :"> </td>
<td style="width: 308px">
<asp:TextBox ID="EducationTextBox" runat="server" Height="24px" Width="153px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="EducationTextBox" ErrorMessage="*">
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="EducationTextBox" ErrorMessage="Only Char Allow"
ValidationExpression="^[a-zA-Z''-'\s]{1,400}$">
</td>
</tr>
<tr>
<td align="right"><asp:Label ID="InstitueNameLabel" runat="server" Text="Institute Name :"> </td>
<td style="width: 308px">
<asp:TextBox ID="InstituteTextBox" runat="server" Height="24px" Width="153px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="InstituteTextBox" ErrorMessage="*">
</td>
</tr>
<tr>
<td align="right"><asp:Label ID="YearOfPasingLabel" runat="server" Text="Year Of Pasing :"> </td>
<td style="width: 308px">
<asp:TextBox ID="YearTextBox" runat="server" Height="24px" Width="153px">
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="YearTextBox" ErrorMessage="*">
</td>
</tr>
<tr>
<td align="right"><asp:Label ID="GradeLabel" runat="server" Text="Grade :"> </td>
<td style="width: 308px">
<asp:DropDownList ID="GradeDropDownList" runat="server" Height="24px"
Width="155px" DataSourceID="SqlDataSourceMyGrade" DataTextField="GradeName"
DataValueField="GradeId">





<asp:SqlDataSource ID="SqlDataSourceMyGrade" runat="server"
ConnectionString="<%$ ConnectionStrings:HRMSConnectionString %>"
SelectCommand="SELECT * FROM [Grade] ORDER BY [GradeName]">

<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="GradeDropDownList" ErrorMessage="*"
InitialValue="Select Grade">
</td>
</tr>
<tr>
<td align="right" valign="middle" style="height: 137px">
<asp:Label ID="EducationDescLabel" runat="server" Text="Description :"> </td>
<td style="width: 308px; height: 137px;">
<asp:TextBox ID="EducationDescriptionTextBox" runat="server" Height="130
waqasahmed786 18-May-11 17:24pm View    
i always google but same time i am also posting the same query on different forums hope u r clear now
waqasahmed786 17-May-11 14:15pm View    
thanks its also working
waqasahmed786 16-May-11 16:40pm View    
can u plz gave me the code of regular expression plz so that i can paste it in re validators
waqasahmed786 13-May-11 18:37pm View    
i am using this
string format ="dd/MM/yyyy";
qualification.YearOfPassing=DateTime.ParseExact(YearTextBox.Text.ToString(), format, null);

i got exception of incorrect format plz help me in this regards