Open Sourcing DOS 4
2 days ago
public static void ResetControls(ControlCollection pagecontrols, bool txtbox, bool dropdownlist, bool label)
{
foreach (Control cntrl in pagecontrols)
{
foreach (Control mycontrols in cntrl.Controls)
{
if (txtbox)
{
if (mycontrols is TextBox)
{
(mycontrols as TextBox).Text = string.Empty;
}
}
if (dropdownlist)
{
if (mycontrols is DropDownList)
{
(mycontrols as DropDownList).SelectedIndex = 0;
}
}
if (label)
{
if (mycontrols is Label)
{
(mycontrols as Label).Text = string.Empty;
}
}
}
}
}
FormControl.ResetControls(this.Controls, true, true, false);
SELECT name, create_date, modify_date,type
FROM sys.objects
WHERE type = 'P' order by modify_date desc
SELECT name, create_date, modify_date,type
FROM sys.objects
WHERE type = 'P' order by create_date desc
SELECT name, create_date, modify_date,type
FROM sys.objects
WHERE type = 'u' order by create_date desc
SELECT name, create_date, modify_date,type
FROM sys.objects
WHERE type = 'u' order by modify_date desc