Pop up calender values
private void showdata()
{
//clsData obj = new clsData();
Common obj = new Common();
Hashtable ht = new Hashtable();
ht.Add("SID", Request.QueryString["sid"]);
DataTable tb = obj.GetDataTable("sp_display_FeeNormsNewEdit", ht);
drpFeeCollPeriod.Text = tb.Rows[0]["FeeCollPeriod"].ToString();
txtsession.Text = tb.Rows[0]["SessionYr"].ToString();
//string dt1 = tb.Rows[0]["StartDate"].ToString();
//txtdate.Text = tb.Rows[0]["StartDate"].ToString();
PopCalendarSt.DateValue = Convert.ToDateTime(tb.Rows[0]["StartDate"].ToString());
//txtduedate1.Text = tb.Rows[0]["DueDate1"].ToString();
Popcalendar1.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate1"].ToString());
//txtduedate2.Text = tb.Rows[0]["DueDate2"].ToString();
Popcalendar2.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate2"].ToString());
//txtduedate3.Text = tb.Rows[0]["DueDate3"].ToString();
Popcalendar3.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate3"].ToString());
//txtduedate4.Text = tb.Rows[0]["DueDate4"].ToString();
Popcalendar4.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate4"].ToString());
//txtduedate5.Text = tb.Rows[0]["DueDate5"].ToString();
Popcalendar5.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate5"].ToString());
//txtduedate6.Text = tb.Rows[0]["DueDate6"].ToString();
Popcalendar6.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate6"].ToString());
//txtduedate7.Text = tb.Rows[0]["DueDate7"].ToString();
Popcalendar7.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate7"].ToString());
//txtduedate8.Text = tb.Rows[0]["DueDate8"].ToString();
Popcalendar8.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate8"].ToString());
//txtduedate9.Text = tb.Rows[0]["DueDate9"].ToString();
Popcalendar9.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate9"].ToString());
//txtduedate10.Text = tb.Rows[0]["DueDate10"].ToString();
Popcalendar10.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate10"].ToString());
//txtduedate11.Text =tb.Rows[0]["DueDate11"].ToString();
Popcalendar11.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate11"].ToString());
txtfineamt.Text = tb.Rows[0]["FineAmount"].ToString();
drpFinal.Text = tb.Rows[0]["Finalised"].ToString();
txtFineDays.Text = tb.Rows[0]["FineDateDuration"].ToString();
DispayHideRow();
}
private void showdata()
{
//clsData obj = new clsData();
Common obj = new Common();
Hashtable ht = new Hashtable();
ht.Add("SID", Request.QueryString["sid"]);
DataTable tb = obj.GetDataTable("sp_display_FeeNormsNewEdit", ht);
drpFeeCollPeriod.Text = tb.Rows[0]["FeeCollPeriod"].ToString();
txtsession.Text = tb.Rows[0]["SessionYr"].ToString();
//string dt1 = tb.Rows[0]["StartDate"].ToString();
//txtdate.Text = tb.Rows[0]["StartDate"].ToString();
PopCalendarSt.DateValue = Convert.ToDateTime(tb.Rows[0]["StartDate"].ToString());
//txtduedate1.Text = tb.Rows[0]["DueDate1"].ToString();
Popcalendar1.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate1"].ToString());
//txtduedate2.Text = tb.Rows[0]["DueDate2"].ToString();
Popcalendar2.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate2"].ToString());
//txtduedate3.Text = tb.Rows[0]["DueDate3"].ToString();
Popcalendar3.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate3"].ToString());
//txtduedate4.Text = tb.Rows[0]["DueDate4"].ToString();
Popcalendar4.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate4"].ToString());
//txtduedate5.Text = tb.Rows[0]["DueDate5"].ToString();
Popcalendar5.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate5"].ToString());
//txtduedate6.Text = tb.Rows[0]["DueDate6"].ToString();
Popcalendar6.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate6"].ToString());
//txtduedate7.Text = tb.Rows[0]["DueDate7"].ToString();
Popcalendar7.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate7"].ToString());
//txtduedate8.Text = tb.Rows[0]["DueDate8"].ToString();
Popcalendar8.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate8"].ToString());
//txtduedate9.Text = tb.Rows[0]["DueDate9"].ToString();
Popcalendar9.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate9"].ToString());
//txtduedate10.Text = tb.Rows[0]["DueDate10"].ToString();
Popcalendar10.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate10"].ToString());
//txtduedate11.Text =tb.Rows[0]["DueDate11"].ToString();
Popcalendar11.DateValue = Convert.ToDateTime(tb.Rows[0]["DueDate11"].ToString());
txtfineamt.Text = tb.Rows[0]["FineAmount"].ToString();
drpFinal.Text = tb.Rows[0]["Finalised"].ToString();
txtFineDays.Text = tb.Rows[0]["FineDateDuration"].ToString();
DispayHideRow();
}
No comments:
Post a Comment