Answer Posted / sona
private void CheckChkBoxStatusHold()
{
ArrayList objChkBoxID = new ArrayList();
if (Cache[(Session["Userid"]
+ "BankReconChkBoxID")] != null)
{
objChkBoxID=(ArrayList)Cache[(Session
["Userid"] + "BankReconChkBoxID")];
}
for (int i = 0; i < CurPageCnt; i++)
{
if (intCheckSave == 1)
{
if (((CheckBox)
lstBankReconcilation.Items[i].FindControl
("chkReconcile")).Checked == true)
{
objChkBoxID.Add(((Label)
lstBankReconcilation.Items[i].FindControl
("lblVoucherId")).Text);
DateTime dtReconDate =
Convert.ToDateTime((((TextBox)lstBankReconcilation.Items
[i].FindControl("txtReconcileDate")).Text), new CultureInfo
("hi-IN"));
objChkBoxID.Add(dtReconDate.ToString
("dd-MMM-yyyy"));
}
}
else if (intCheckSave == 0)
{
if (((CheckBox)
lstBankReconcilation.Items[i].FindControl
("chkReconcile")).Checked == false)
{
objChkBoxID.Add(((Label)
lstBankReconcilation.Items[i].FindControl
("lblVoucherId")).Text);
DateTime dtReconDate =
Convert.ToDateTime((((TextBox)lstBankReconcilation.Items
[i].FindControl("txtReconcileDate")).Text), new CultureInfo
("hi-IN"));
objChkBoxID.Add(dtReconDate.ToString
("dd-MMM-yyyy"));
}
}
}
Cache.Remove((Session["Userid"]
+ "BankReconChkBoxID"));
Cache[(Session["Userid"]
+ "BankReconChkBoxID")] = objChkBoxID;
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the code of Password Recovery or Forget your password? Plz tell in c # language.
how to create a search bar which access data from various websites and retrieves the data
Code for Using Keyboard Events?
How we use ajax in asp.net through javaScript. Please givee me an example.
How to Bind Nested XML to a Repeater Control with Container.DataItem?
Coding for Synchronizing Cache Access in ASP.NET?
Code for Creating a Form Using PlaceHolder Controls?
how to track links visited in google using iframes
How to use Client-side Script to Focus Controls in ASP.NET?
Coding for .NET Delegates?
How to get Dynamically Linked Comboboxes Set?
Code for Presenting Parent/Child Data in a Data Grid Row?
Code for Document Validation in XML.NET?
Code for Communicating over Sockets?
ArrayList declaration in .net