NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<tr>
<td colspan="6">
<GridView ID="gvWORKINGEXP" AutoGenerateColumns="False" CellPadding="4"
Width="100%" ForeColor="#333333" HeaderStyle-CssClass="headerStyle" OnRowDeleting="gvWORKINGEXP_RowDeleting "
CssClass="VCStable6">
<columns>
<templatefield headertext="Experience Type">
<itemtemplate>
<Label ID="lblmonth" Text='<%# Eval("MONTHS") %>'></Label>
<Label ID="lblyear" Text='<%# Eval("YEARS") %>'></Label>
<%--<Label ID="lblExamName" Text='<%# Eval("InstitutionName") %>'></Label>--%>
<Label ID="lblExpType" Text='<%# Eval("ddlExpType") %>'></Label>
<Label ID="Label5"Text='<%# Eval("ddlExpTypeDisplay") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="Organization Name">
<itemtemplate>
<Label ID="lblOrgName" Text='<%# Bind("OrgName") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="Designation">
<itemtemplate>
<Label ID="lblDesignation" Text='<%# Bind("Designation") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="From Date">
<itemtemplate>
<Label ID="lblFromDate" Text='<%# Bind("FromDate") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="To Date">
<itemtemplate>
<Label ID="lblTotalMarks" Text='<%# Bind("ToDate") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="Description">
<itemtemplate>
<Label ID="lblDescription" Text='<%# Bind("Description") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield headertext="Months">
<itemtemplate>
<Label ID="lblObtainMarks" Text='<%# Bind("Period") %>'></Label>
</itemtemplate>
</templatefield>
<templatefield showheader="False">
<itemtemplate>
<LinkButton ID="LinkButton1" CausesValidation="False" CommandName="Delete"
Text=""><img src="/portal/services/RGPVTET/Images/delete.png" alt="Delete" title="Delete Record" /></LinkButton>
</itemtemplate>
<headerstyle horizontalalign="Left" width="5%" />
</templatefield>
</columns>
<%-- <headerstyle cssclass="headerStyle" />--%>
</GridView>
</td>
</tr>

try
{
string Digits = @"[0-9]+(.[0-9][0-9]?)?";
string Name = "^[a-zA-Z ]*[a-zA-Z]{1}[a-zA-Z ]*$";
string Phone = @"^[6789]d{9}$";
string numeric = "^[0-9]{4,15}$";
string date = @"^(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)dd$";
string Alphanumeric = @"^[a-zA-Z0-9]+$";
string pincode = "^[0-9]{6}$";
string space = @"^[a-zA-Z]*$";
string boardname = @"^[a-zA-Z0-9,]+$";
string Salary = @"^[0-9-]{4,12}$";//1000-3000
string DesciptionMultiline = "^[a-zA-Z r|n]*[a-zA-Zr|n]{1}[a-zA-Z r|n]*$";

if (!ValidDate(model.DOB.Trim()))
{
throw new Exception("Please Enter Valid Date Of Birth.");
}
Validatedrp(model.expType, "Experience Type");
ValidateInput(model.name_org, Name, "Organization Name", true);
ValidateInput(model.designation, Name, "Designation", true);
ValidateInput(model.working_till, date, "Working From Date", true);
//ValidateDOBToExperience();
if (!ValidDate(model.working_from.Trim()))
{
throw new Exception("Please Enter Valid Working From Date.");
}
string DOB = calculateExp(model.DOB, model.working_from);
string Ageyear = DOB.Substring(0, DOB.IndexOf("yy")).Trim();
string Agemonth = DOB.Substring(DOB.IndexOf("yy") + 2, 2).Trim();
string Ageday = DOB.Substring(DOB.IndexOf("mm") + 2, 2).Trim();

if (Convert.ToInt32(Ageyear) < 15)
{
throw new Exception("Experience Working From Date should be greater than 15 Years From Date of Birth.");
}

ValidateInput(model.working_till, date, "Working Till Date", true);
if (!ValidDate(model.working_till.Trim()))
{
throw new Exception("Please Enter Valid Working Till Date.");
}
//ValidateInput(txtExpDesc.Text, DesciptionMultiline, "Description", true);

//if (txtExpDesc.Text.Length > 256)
//{
// throw new Exception("Please Enter 256 Max Character in Description.");
//}

ValidateInput(model.working_from, date, "Working From Date", true);
ValidateInput(model.working_till, date, "Working Till Date", true);

DateTimeFormatInfo DtFormat = new CultureInfo("en-GB", false).DateTimeFormat;

DateTime dt3 = Convert.ToDateTime(model.working_from.Trim(), DtFormat);
DateTime dt4 = Convert.ToDateTime(model.working_till.Trim(), DtFormat);
{
RegExValidation RegEx = new RegExValidation();
if (!RegEx.CheckInputDate(model.DOB.ToString().Trim(), true))
{
throw new Exception("Please specify Date of birth ");
}
}
DateTime dtdob = Convert.ToDateTime(model.DOB.Trim(), DtFormat);
//DateTime today = Convert.ToDateTime("01/01/2018", DtFormat);
DateTime today = Convert.ToDateTime("01/07/2023", DtFormat);
DateTime todaydate = DateTime.UtcNow.Date;
if (dt3 == dt4)
{
throw new Exception("Experience From Date and To Date Cannot Be Same ");
}
if (dt3 > dt4)
{
throw new Exception("Experience From Date Cannot Be lesser than To Date");
}
if (dt4 > todaydate)
{ throw new Exception("Experience To Date can not be greater than Current Date."); }

if (dtdob > dt3)
{
throw new Exception(" Experience From Date Cannot Be lesser than Date of Birth");
}
if (dtdob > dt4)
{
throw new Exception("Experience To Date Cannot Be lesser than Date of Birth");
}
#region Exp loop

foreach (GridViewRow row in gvWORKINGEXP.Rows)
{
Label lblFromDate = row.FindControl("lblFromDate") as Label;
Label lblToDate = row.FindControl("lblTotalMarks") as Label;
Label lblExpType = row.FindControl("lblExpType") as Label;

if (GetDateMMDDYYYY(lblFromDate.Text) == GetDateMMDDYYYY(txtFromDate.Text.Trim()))
{
throw new Exception("From Date " + lblFromDate.Text + " is already added.");
}
if (GetDateMMDDYYYY(lblToDate.Text) == GetDateMMDDYYYY(txtToDate.Text.Trim()))
{
throw new Exception("To Date " + lblToDate.Text + " is already added.");
}
string persentfrom = txtFromDate.Text;
string persentTo = txtToDate.Text;

if (lblExpType.Text.Trim() != "") //&& String.IsNullOrEmpty(persent) != false)
{
if (GetDateMMDDYYYY(lblFromDate.Text) >= GetDateMMDDYYYY(persentfrom))
{
throw new Exception("Experience From Date Can not be less than inserted Experience from date");
}
}
if (lblExpType.Text.Trim() != "") //&& String.IsNullOrEmpty(persent) != false)
{
if (GetDateMMDDYYYY(lblToDate.Text) >= GetDateMMDDYYYY(persentTo))
{
throw new Exception("Experience To Date Can not be less than inserted Experience To date");
}
}
if (lblExpType.Text.Trim() != "") //&& String.IsNullOrEmpty(persent) != false)
{
if (GetDateMMDDYYYY(lblToDate.Text) >= GetDateMMDDYYYY(persentfrom))
{
throw new Exception("Experience From Date Can not be less than inserted Experience To date");
}
}
}
#endregion


// AddNewRecordRowToGridWORKINGEXP();

}
catch (Exception ex)
{
//lblMsg.Text = ex.Message;
//lblMsg.Visible = true;
}

}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.