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

Is it possible to update Cors Policy dyamically (OWIN pipeline)
get nearest tens-place number above and below any number
Linq statement : Order by
how to send integer type data in xml
How to read data from Unity3D's prefab file?
How to upload a file using httpwebrequest c#?
Send multi messages via PostAsync within LuisDialog
How to add ComboBox column in XCeed DataGridControl (WPF)
Stream DateTime value,return Epoch value instead of “human” value
Finding a PowerPoint shape using Alternative text without looping through all shapes in C#
ASP.Net Page not loading when locale is en
Use c# variable in Jquery
How to use BeginInvoke in VB.NET
Looping through values in a string variable taken from a BizTalk message
Using RegEx to split strings after specific character
How to proper validate SSL certificate with X509Certificate2 on Mono and multiple platforms

Categories

HOME
ckan
ibm
readdir
jquery-plugins
app-store
esxi
snmp
revit-api
obd-ii
decoding
desktop-application
captcha
camunda
tmux
android-notifications
javascript-debugger
swift3.1
console-application
web-worker
greensock
reportlab
vivado-hls
openam
cucumberjs
android-navigation-drawer
scrapy-spider
knapsack-problem
windows-mobile
recreate
urhosharp
qt-designer
ports
odp.net
cocoa-scripting
realloc
oracle-bpm-suite
mediastream
keychain
tapply
spring-data-commons
rivets.js
emacs24
audio-fingerprinting
aws-rds
seyren
disassembly
pyautogui
nls
scikit-image
jigsaw
hotkeys
diameter-protocol
avi
mrunit
database-administration
nd4j
android-progressbar
std
markerspiderfier
web-performance
gtkwave
dnvm
hexagonal-tiles
asp.net-2.0
pymol
numerical-recipes
aiff
react-os
cocos2d-x-2.x
dotcmis
ccmenuitem
nspopupbutton
behance-api
episerver-7
yandex-api
adabas
grunt-wiredep
svg-android
google-voice
raddatepicker
ironworker
violation
mandelbrot
jython-2.5
coinbase-php
pudb
gmail-imap
mail-gem
jqueryi-ui-buttonset
advanceddatagrid
code-organization
virtual-printer
mismatch
chromebug
calendarextender
moores-law

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App