c#


RegularExpressionValidator for an HTML input button?


In my ASPX pages, I find the asp:RegularExpressionValidator extremely comfortable. I use it to prevent form submissions, but could it also be used to prevent Javascript functions run by HTML controls like <input type='button'> which do not cause postback?
Example:
<input runat="server" type="text" id="txtName" />
<asp:RegularExpressionValidator ID="fooValidator" ControlToValidate="txtName" runat="server" ErrorMessage="Please enter you name" ValidationExpression="^[\s\S]{3,}$" /><br />
<input runat="server" id="fooBtn" type="button" value="Continue" onclick="foo();" />
Could I prevent the fooBtn click using the above fooValidator which validates a simple HTML text input?

Related Links

c# Using AmazonS3 SDK for RIAK
RadRichTextBox ContextMenu Click Event WPF
WPF C# UserControl DependencyProperty Command Binding is null
Multiple instances of same process logging on different files
Many to many relationship not returning child results
C# Winform Retrieving Formatted text from MySQL Database to Richtextbox
DownloadStringAsync has return type void. So how do I await it?
Install and remove a plugin in c# web application (asp.net mvc)
Incorrect string value(C# Visual Studio 2015, MySQL Server 5.5(Console))
C# can't reach Enum class variables
My ViewModel should inherit from DependencyObject? [closed]
Open Access Ole-Object From C#-Code
Extract content from a Listview column c#/wpf
Data is not getting inserted
Error message when calling Unity Animator.Play() : Invalid Layer -1?
Accessing the rows of a GridView filled with EF

Categories

HOME
http
indexing
microcontroller
dronekit
highmaps
singleton
css-selectors
install
token
gcloud
logstash-configuration
opengrok
react-select
k-means
versioning
cucumberjs
virtuemart
views
project-reactor
xforms
datasource
formulas
multipart
prepros
nsopenpanel
jopendocument
visual-studio-community
cloudformation
proof-general
large-files
overflow
akamai
exacttarget
loopback
kubectl
qt-designer
luhn
availability
zimbra
dom4j
campaign-monitor
stochastic-process
ssdp
google-chrome-console
susy
redbean
amazon-rds-aurora
automapper-4
jsfl
multivalue
openidm
sp
blackberry
wicketstuff
acceleo
sharing
easy-thumbnails
eclipse-mars
mate-desktop
treelist
firefox-os
markerspiderfier
web-performance
maven-antrun-plugin
taverna
playn
web-standards
vspackage
waterline
gmaps4jsf
teamstudio-unplugged
report-builder2.0
illegalargumentexception
formbuilder
agent-based-modeling
livescript
telerik-appbuilder
reactjs-native
code-smell
mixradio
facebook-java-api
objectdatasource
nokogiri
wordbreaker
mysql2
auctex
biztalk-deployment
setcookie
django-tinymce
cryptarithmetic-puzzle
junit-rule
php-gettext
winrt-async
parsec
helicontech
designated-initializer
lwp
noise-reduction
viewdata
mediastreamsource
activescaffold
iphone-maps
large-data-volumes
lts
calendarextender
dojox.gfx
onresize
managed-code

Resources

Encrypt Message