Author: husted
Date: Fri Oct 21 14:18:37 2005
New Revision: 327583
URL: http://svn.apache.org/viewcvs?rev=327583&view=rev
Log:
OVR-21
* Added reset_Click handler to call ResetControls.
Modified:
struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs
Modified: struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs
URL:
http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs?rev=327583&r1=327582&r2=327583&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/ViewControl.ascx.cs Fri Oct 21
14:18:37 2005
@@ -294,11 +294,20 @@
{
TextBox x = (TextBox) control;
x.Text = String.Empty;
+ continue;
}
if (IsListControl(control))
{
ListControl x = (ListControl) control;
x.SelectedIndex = -1;
+ continue;
+ }
+
+ if (IsRadioButton(control))
+ {
+ RadioButton x = (RadioButton) control;
+ x.Checked = false;
+ continue;
}
}
}
@@ -733,6 +742,15 @@
public virtual void Page_Reset()
{
ResetControls();
+ }
+
+ /// <summary>
+ /// Reset control values.
+ /// </summary>
+ ///
+ protected void reset_Click(object sender, EventArgs e)
+ {
+ Page_Reset();
}
/// <summary>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]