Bugzilla – Attachment 165088 Details for
Bug 313011
RangeValidator results in exception
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
Testcase
RangeTest.aspx (text/plain), 1.49 KB, created by
Thomas Wiest
on 2003-10-21 16:10:00 UTC
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Thomas Wiest
Created:
2003-10-21 16:10:00 UTC
Size:
1.49 KB
patch
obsolete
><%@ Page clienttarget=downlevel %> ><HTML> > <HEAD> > <script language="C#" runat="server"> > > void Button1_Click(Object sender, EventArgs e) { > rangeValDate.Validate(); > if (rangeValDate.IsValid) { > lblOutput2.Text = "Result: Valid!"; > } else { > lblOutput2.Text = "Result: Not Valid!"; > } > > if (Page.IsValid) { > lblOutput.Text = "Result: Page Valid!"; > } else { > lblOutput.Text = "Result: Page Not valid!"; > } > } > > </script> > </HEAD> > <body> > <h3> </h3> > <p> > <form runat="server" ID="Form1"> > <table bgcolor="#eeeeee" cellpadding="10"> > <tr valign="top"> > <td> > <h5><font face="Verdana">Value to Check:</font></h5> > <asp:TextBox Selected id="txtComp2" runat="server" /> > </td> > <td> > <h5><font face="Verdana">Data Type: Date Min(2000/1/1), Max(2001/1/1)</font></h5> > </td> > <td> > <asp:Label id="lblOutput2" Font-Name="verdana" Font-Size="10pt" runat="server" /> > </td> > </tr> > </table> > <asp:Button Text="Validate" ID="Button1" onclick="Button1_Click" runat="server" /> > <asp:RangeValidator id="rangeValDate" Type="Date" ControlToValidate="txtComp2" MaximumValue="2001/1/1" > MinimumValue="2000/1/1" runat="server" /> > <br> > <asp:Label id="lblOutput" Font-Name="verdana" Font-Size="10pt" runat="server" /> > </form> > </p> > </body> ></HTML>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 313011
: 165088