Feeds:
Posts
Comments

Archive for August, 2008

The IT Crowd

last day at lunch break, boss told me british tv show “The IT crowd”. I download some its epsoides from net. Really enjoy the life at IT support.  You love to Watch IT, not “it” it is “I-T”. Life at pepsi-cola lahore is not much different form it.

url http://www.channel4.com/entertainment/tv/microsites/I/itcrowd/

Read Full Post »

i face a problem that server.mappath did not available in c# class at my utillity framework at app code folder of one of my asp.net application.  While it is available at asp.net page code behind.  Because ASP.NET pages contain a default reference to the System.Web namespace (which contains the
HttpContext class), you can reference the members [...]

Read Full Post »

use the following Code in application

//This method returns the no of days between today and date comes from database
private int GetDateDifference(DateTime _StartDateTime )
{
DateTime startDate = _StartDateTime;
// End date
DateTime endDate = DateTime.Now;
// Time span
TimeSpan diffDate = endDate.Subtract ( [...]

Read Full Post »

Use following code in you page. At Calling Statement send reference of page “this”. It Clears all text boxes and set all checkboxes on page to false

private void ClearControls(Control parent)
{
foreach (Control _ChildControl in parent.Controls)
{
if ((_ChildControl.Controls.Count > 0))
{
ClearControls(_ChildControl);
}
else
{
if (_ChildControl is TextBox)
{
((TextBox)_ChildControl).Text = string.Empty;
}
else
if (_ChildControl is CheckBox)
{
((CheckBox)_ChildControl).Checked = false;
}
}
}
}

Read Full Post »