Monthly Archives: January 2014

Programe to Confirm Leaving of page using javaScript

for example if you have a scenario that to display confirm leaving when ever user is leaving the page by closing browser or by clicking on any part of other page lie, clicking on buttons or Links for that we … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Compare 2 ArrayLists using C# and tell wether they are same or not

usefull method to compare 2 ArrayLists private bool CompareArrayLists(ArrayList List1, ArrayList List2)    {        if (List1.Count != List2.Count)            return false;         for (int i = 0; i < List1.Count; i++)        {            if (!List1[i].Equals(List2[i]))                return false;        }        return true;    }  

Posted in Uncategorized | Tagged , | Leave a comment

Upload .csv file to Codebehind and Convert it to Dataset using C#

HI friends this example is going to teach you how to upload a .csv file using file upload control and how to Convert the content of .csv file into Dataset so that this Dataset can be used further in Programe … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Convert string CCYYMMDD to Date Time format using C#

Hi Friends Today when i was Writing a Programe to upload .csv file to server in which i encountered a small problem that is the user was entering date in string format in .csv file as CCYYMMDD(20140130) format so when … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment