473,466 Members | 1,294 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Text_Changed ???

Hi. I have kind of a 'file manager' on my website. It also allows for
changing some text files (for administrative purposes). My question is
this - is it possible to detect the changes in a text box and react
accordingly ? Text_changed works only on posting back to the server. I would
like to a) enable the Save button only if a change has been made and b) on
change, if the user tries to navigate away from that page, to ask "You have
made changes to file.... Would you like to save them ? (Y/N)". In windows
forms it's trivial, but in ASP how could one do this ?

Thank you.
Alex
Nov 19 '05 #1
1 1169
Check out OnBlur and then OnUnload ( client-side ).


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Alex Nitulescu" <RE***********************@yahoo.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Hi. I have kind of a 'file manager' on my website. It also allows for changing some text
files (for administrative purposes). My question is this - is it possible to detect the
changes in a text box and react accordingly ? Text_changed works only on posting back to
the server. I would like to a) enable the Save button only if a change has been made and
b) on change, if the user tries to navigate away from that page, to ask "You have made
changes to file.... Would you like to save them ? (Y/N)". In windows forms it's trivial,
but in ASP how could one do this ?

Thank you.
Alex

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raghu Raman | last post by:
Hi , I ve a aspx page with a textbox.I have created the Text_Changed event for this textbox.We know that , this will be fired when we enter any text in that textbox and pressing the enter...
6
by: Jax | last post by:
Custom control problem. I'm modding a textbox so that it will always have a "%" sign at the end of it. I have overrided the Text property to account for the "%" value within the textbox and have...
0
by: Yanir | last post by:
H I have a lookup table in a popup menu. A click on the table(datagrid) will force a value on a field on the opener window But I want that the forced field will behave as a text_chnged Event. What...
4
by: Craig Duffy | last post by:
When I load up my page, some of the text boxes show up with a light yellow color. I can't change it to any other color or even set it transparent. Anybody know what's going on? The background...
3
by: Adrian Parker | last post by:
v1.1 and v2.0 We have a problem with viewstate not being stored. What's happening is that we create controls in CreateChildControls and add them to a container on the page (whether it be a...
2
by: Jim | last post by:
When I manually enter data into a bound textbox then point my cursor to my Save button and press Save the data I just entered data does not save. However if I move my cursor to another text box or...
3
by: kieran | last post by:
Hi, I want to create a regular expression on a web form that allows the user to input a maximum of 7 characters (these characters can be either letters or numbers) but no full stops. I cant...
4
by: bytecolor | last post by:
I'm trying to extract the text of the current line on the <<Modified>> event. It doesnt work if I delete a character. If I type 'abc' I get 'abc' in text_changed(). If I hit backspace I still get...
1
by: Rissoman | last post by:
Hello, I have an issue were I have a zipcode textbox in an atlas ajax updatepanel. When you tab out of the zip textbox and the shipping is calculated. I know this works perfect! Then a user...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.