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

how can i search or locate an address on google map using xamarin?
SHA256 Base64 Hash in Ruby
Running cmd programaticly only returns some outputs [duplicate]
.NET Print Area and PageBreak
How to attach a database to a setup
Messaging PlugIn (Carel Lotz) in Xamarin PCL?
how to change OrderBy direction of IQueryable
Faster alternative to SelectedOption to retrieve selected item on drop down menu?
VPN for concrete domains?
Why are dumped IL files smaller than .exe files?
Programmatically add buttons to a UWP app
Unity Button not shooting projectile properly
XML Deserialization is not working
dotnet core autofac and json configuration can they all work together in a console app
Entity framework - Fill multiple object with list from database without foreach every objects
when we debug code that time upload all images but when upload through webservice that time upload only one or two image in C#

Categories

HOME
drupal
postgresql
azure-active-directory
aix
file-upload
liquibase
glsl
symfony-sonata
download
ebay
glympse
sequence
jquery-select2
scapy
select2
javascript-debugger
saucelabs
aggregate
jsfiddle
brightway
geography
caldav
webgl-earth
turn.js
ajaxcontroltoolkit
beaker-notebook
ng-tags-input
nsopenpanel
pydub
ballerinalang
units-of-measurement
pypy
schedule
opencsv
unity3d-5
oracle-nosql
snapkit
hippocms
multi-user
framebuffer
libconfig
nscollectionview
gem-fury
julia-jump
vertical-alignment
colorbox
f#-fake
piranha-cms
ack
reqif
automapper-4
react.rb
import.io
flask-socketio
dotnet-cli
richtext
kendo-scheduler
liferay-ide
codesniffer
spring-cloud-aws
copy-constructor
firebase-polymer
hoare-logic
falcon
cherry-pick
hotkeys
aws-kms
3d-rendering
jmh
firefox-os
jersey-test-framework
google-finance-api
sdkman
traminer
first-order-logic
winforms-interop
callfire
litedb
log-analysis
fileinputstream
copy-on-write
iphone-6
vundle
nsmutableurlrequest
ccmenuitem
scjp
satisfiability
traceur
mahara
infinity.js
msbuild-task
generator-expression
mmo
antixsslibrary
rfc822
netzke
big-endian
jquery-1.8
states
php-gettext
github-archive
nserror
advanceddatagrid
facebook-winjs-sdk
towerjs
code-organization
jqzoom
mcpd
pex-and-moles
hs-err
code-golf
file-icons

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