var allprops="";
var count = 0;
for (var prop in RangeFromTextbox)
{
allprops += prop + "=" + RangeFrom[prop] + " \n" ;
if (count > 20)
{
alert(allprops);
allprops = "";
count = 0;
}
count++;
}
alert(allprops);
A good business
7 hours ago
This is my 'technical stuff' blog on all things ASP.NET, SharePoint and C#.
...Sydney IT Consultant - Paul Rowland...
var allprops="";
var count = 0;
for (var prop in RangeFromTextbox)
{
allprops += prop + "=" + RangeFrom[prop] + " \n" ;
if (count > 20)
{
alert(allprops);
allprops = "";
count = 0;
}
count++;
}
alert(allprops);
///
/// Recursive loop through form controls.
///
private void SetFormDisabled (Control control)
{
foreach (Control ctrl in control.Controls)
{
if (ctrl is TextBox)
{
((TextBox)(ctrl)).Enabled = false;
}
else if (ctrl is Telerik.WebControls.RadNumericTextBox)
{
((Telerik.WebControls.RadNumericTextBox)(ctrl)).Enabled = false;
}
else if (ctrl is CheckBox)
{
((CheckBox)(ctrl)).Enabled = false;
}
else
{
if (ctrl.Controls.Count > 0)
{
SetFormDisabled (ctrl);
}
}
}
}