c#


asp:Textbox off focus?


I want to save the contents of a multline textbox when off focus - i.e. user has finished typing and clicks outside the textbox so it goes off focus.
I can handle the saving- thats no problem, but is there an off focus function?
I don't mind a javascript version. I must be using asp:TextBox though.
I tried with onFocus, OnServerChange, onKeyUp, but it is not exactly how I want it.
If any of you use Facebook, then it is like the textbox displayed right below the profile picture.
OnBlur :)
<asp:TextBox runat="server" onblur="alert(1);" />
(I can't recall, off the top of my head, if it will write any unknown server property to the client, I think it does, but if it doesn't, you'll need to add it as an attribute, in code).
-- Edit:
Confirmed that it does, indeed, happily write out unknown properties (onblur is not a property of TextBox control, but it will render in the HTML, so it works).
A multiline textbox should render to a textarea element. Assign an event handler to its onBlur event, and you should be good.

Related Links

Linq to SQL any from Enumerable
Unable to cast SimpleWorkerRequest to type ISAPIWorkerRequest
Passing data between two ActionResults in the same controller rendering different views in asp.net mvc
Trying to add two numbers, but it doesn't work
How i can read the line on my “.txt”?
ContextMenu of MenuItem visibility binding
have a issue with sql statement c#
Multiple BadgeElements in single cell with MonoTouch.Dialog
How to cancel Stream.ReadAsync?
How to pass Func to a class which encapsulates the Expression based on that Func?
Fastest way to get matching items from two list c#
Suspend/Resume SQL database mirroring by C#
Is it possible to use variables in beforeFeature Hook as part of the Specflow scenario statement?
Unit testing method with Dapper.Contrib Insert Extension Method
Hide navigation bar android 6.0 xamarin
SQL Server Trigger - Prevent row update if column IsLocked BIT is true

Categories

HOME
qlikview
kendo-ui-angular2
grizzly
sql-server-2014
compression
openacc
conceptual
gaussian
coordinates
snmp
multipartform-data
autocad
gnuradio
install
jquery-select2
clip-path
urllib2
point-of-sale
oxid
cakephp-2.0
opengrok
background-image
samba
wallet
beacon
spring-webflow
minimagick
xna
polybase
rndis
oracle10g
continuous-fourier
checkmarx
request-uri
kundera
folder
openoffice-impress
selenium3
exacttarget
favorites
machine-code
android-geofence
origami
icu
binary-decision-diagram
scrapinghub
indoor-positioning-system
eclipse-mars
geokit
scriptengine
instaparse
syslog4j
system-integration
mod
cexception
periodic-processing
hana-sql-script
dday
serial-communication
pushwoosh
tess4j
waterline
pymol
launcher
windows-search
im4java
xpand
yandex-api
code-smell
traceur
connections
node-mongodb-native
android-jack-and-jill
logo-lang
imaplib
8-puzzle
dylan
http-compression
mysql2
gmail-imap
vline
screensharing
esi
pdf-reader
eeprom
automapper-2
mcpd
log-shipping
flexbuilder
soapexception
overlays
mismatch
file-processing
hs-err
http-response-codes
mediastreamsource
numerical-computing
managed-code
high-load
cons
asp.net-1.1
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