Click here to Skip to main content
15,896,201 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralCaret position Pin
Sylvain Gross13-May-01 21:45
Sylvain Gross13-May-01 21:45 
GeneralWeb Service in C# Pin
Christian Bejram3-May-01 21:34
Christian Bejram3-May-01 21:34 
GeneralVisual Studio .NET Disk1 not installing pls help.... Pin
Dharne Atul20-Apr-01 23:00
Dharne Atul20-Apr-01 23:00 
GeneralRe: Visual Studio .NET Disk1 not installing pls help.... Pin
Steve Beaudoin4-May-01 9:18
Steve Beaudoin4-May-01 9:18 
GeneralRe: Visual Studio .NET Disk1 not installing pls help.... Pin
Dharne Atul19-May-01 7:42
Dharne Atul19-May-01 7:42 
GeneralWeb Service Performance Pin
17-Apr-01 5:05
suss17-Apr-01 5:05 
GeneralRe: Web Service Performance Pin
Paul Watson11-Jun-01 5:55
sitebuilderPaul Watson11-Jun-01 5:55 
GeneralASP.NET Pin
Jamie Nordmeyer6-Feb-01 10:36
Jamie Nordmeyer6-Feb-01 10:36 
In my ASP+ page, I have three radio buttons for 'Vacaction', 'Paid Absence', and 'Other'. Next to the 'Other' radio button is a TextBox, where the user is supposed to specify what the 'Other' reason is for requesting time off. Following the TextBox, I have a CustomValidator WebControl that calls a ClientValidationFunction that, at this time, simply has the line 'alert("Hello");'. My problem is that right now, the function only gets called if I enter text in to the field. What I want to have happen is that anytime the 'Other' radio button is checked, if the TextBox is empty, then the validator should flag, and the error message should become visible. Here is the relevant code:

<asp:radiobutton id="optVacation" text="Vacation" checked="true" groupname="AttendanceType" runat=server/> 
<asp:radiobutton id="optPaidAbsence" text="Paid Absence" groupname="AttendanceType" runat=server/> 
<asp:radiobutton id="optOther" text="Other (Specify)" groupname="AttendanceType" runat=server/>
<asp:textbox id="txtOther" class="TextBox" width="300" runat=server/><asp:customvalidator id="OtherValidator" ClientValidationFunction="IsOtherFilled" ControlToValidate="txtOther" display="static" runat=server>Please specify Attendance (Other)</asp:customvalidator>


And the function:

function IsOtherFilled(source, value)
{
	alert("Hello"); //This is only called if txtOther has text in it, but should be called regardless
}


Thanks in advance for any help that you may be able to provide.



Jamie Nordmeyer
Portland, Oregon, USA
GeneralVisual Studio.Net Installation. Pin
30-Jan-01 4:39
suss30-Jan-01 4:39 
GeneralRe: Visual Studio.Net Installation. Pin
29-Apr-01 17:52
suss29-Apr-01 17:52 
GeneralRe: Visual Studio.Net Installation. Pin
Steve Beaudoin4-May-01 9:20
Steve Beaudoin4-May-01 9:20 
GeneralBug in VS .Net C++ Compiler.. Pin
17-Jan-01 4:08
suss17-Jan-01 4:08 
Generalself extracting file code Pin
11-Jan-01 15:42
suss11-Jan-01 15:42 
Questionhow is it pronounced Pin
shahzad30-Aug-00 10:58
shahzad30-Aug-00 10:58 
AnswerRe: how is it pronounced Pin
Crom84843-Nov-00 5:33
Crom84843-Nov-00 5:33 
GeneralVS7, .NET and MSDN Universal Subscription Pin
Mike15-Aug-00 18:11
Mike15-Aug-00 18:11 
GeneralRe: VS7, .NET and MSDN Universal Subscription Pin
Joe Pantuso13-Sep-00 17:56
sussJoe Pantuso13-Sep-00 17:56 
GeneralRe: VS7, .NET and MSDN Universal Subscription Pin
29-May-01 11:58
suss29-May-01 11:58 
General.NET Server Pin
Martin Lapierre25-Jul-00 5:26
Martin Lapierre25-Jul-00 5:26 
GeneralRe: .NET Server Pin
Sandu Turcan1-Aug-00 10:34
Sandu Turcan1-Aug-00 10:34 
GeneralRe: .NET Server Pin
29-May-01 12:05
suss29-May-01 12:05 
GeneralRe: .NET Server Pin
Chris Maunder1-Aug-00 11:59
cofounderChris Maunder1-Aug-00 11:59 
General.NET rocks Pin
anonymous coward19-Jul-00 4:13
anonymous coward19-Jul-00 4:13 
GeneralRe: .NET rocks Pin
Keith Hill20-Jul-00 13:07
Keith Hill20-Jul-00 13:07 
GeneralRe: .NET rocks Pin
Dan Smith22-Jul-00 19:47
Dan Smith22-Jul-00 19:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.