SunQuest
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 4th, 2001, 08:20 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
customValidator Not Working

<i><b>Originally posted by : Rob (rob@tconsult.com)</b></i><br /><br />Has anyone else been having trouble getting this to work? <br />This should be so easy. I have a user control(pagelet) where I have this code with the date forms and other date functions. But I can not for the life of me get this to call the LeapYearOK function. <br /><br />This is the server control with binded data from a FOR loop <br /><aspropDownList id="yr" RUNAT="server" /> <br /><br />This is the Custom Validator <br /><asp:CustomValidator id="CheckLeapYear" runat="server" <br />controlToValidate = "yr" <br />onServerValidate = "LeapYearOK" <br />display="static"> <br />***** <br /></asp:CustomValidator> <br /><br /><br />This is the function <br /><SCRIPT LANGUAGE="vb" RUNAT="server"> <br />Function LeapYearOK(Sender AS Object, value AS String) AS Boolean <br />Dim markYear As Int32 = Int32.FromString(value) <br />If markYear = 2000 then <br />LeapYearOK = True <br />Else <br />LeapYearOK = False <br />End If <br />End Function <br /></SCRIPT> <br /><br />Please note I have required validators in here that <br />work fine. It is only the custom validation. <br />Thanks, <br /><br />Rob <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > customValidator Not Working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway