473,605 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to detect textbox or dropdownlist is modified

ton
How can I detect that the user has modified the data on the page where
several textboxes, checkboxes and dropdownlist exist.
Ton
Nov 20 '05 #1
3 4480
Ton -

You can monitor events that tell you when these values change. Try the
TextChanged event for the TextBoxes and ComboBoxes, and the CheckChanged
event of the checkboxes.
hope that helps

Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.

--------------------
From: "ton" <vr*@home.nl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
Subject: How to detect textbox or dropdownlist is modified
Date: Wed, 28 Jan 2004 11:52:49 +0100
Organization : @Home Benelux
Lines: 5
Message-ID: <bv**********@n ews1.tilbu1.nb. home.nl>
NNTP-Posting-Host: cp264278-a.venra1.lb.hom e.nl
X-Trace: news1.tilbu1.nb .home.nl 1075287759 11442 212.204.171.245 (28 Jan 2004 11:02:39 GMT)X-Complaints-To: ab***@home.nl
NNTP-Posting-Date: Wed, 28 Jan 2004 11:02:39 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!newsfeed00.s u
l.t-online.de!t-online.de!news-lei1.dfn.de!new s-fra1.dfn.de!new s2.telebyte.n
l!newshub1.home .nl!home.nl!not-for-mailXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:176783
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

How can I detect that the user has modified the data on the page where
several textboxes, checkboxes and dropdownlist exist.
Ton


Nov 20 '05 #2
ton
I'm not sure how to do so, since the controls are added dynamically in
Protected Overrides Sub CreateChildCont rols()

with the added event to save the record i can find each textbox, but there
is no property for TextChanged. Or do you mean that I should fire this event
to the server, where i can handle it. But is this a good approach ? It looks
if the app will go back for the server each time some one modifies a field,
for what reason ?

Ton

""Steven Stein [MSFT]"" <ss****@online. microsoft.com> schreef in bericht
news:XT******** *****@cpmsftngx a07.phx.gbl...
Ton -

You can monitor events that tell you when these values change. Try the
TextChanged event for the TextBoxes and ComboBoxes, and the CheckChanged
event of the checkboxes.
hope that helps

Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.

--------------------
From: "ton" <vr*@home.nl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
Subject: How to detect textbox or dropdownlist is modified
Date: Wed, 28 Jan 2004 11:52:49 +0100
Organization : @Home Benelux
Lines: 5
Message-ID: <bv**********@n ews1.tilbu1.nb. home.nl>
NNTP-Posting-Host: cp264278-a.venra1.lb.hom e.nl
X-Trace: news1.tilbu1.nb .home.nl 1075287759 11442 212.204.171.245 (28 Jan 2004 11:02:39 GMT)
X-Complaints-To: ab***@home.nl
NNTP-Posting-Date: Wed, 28 Jan 2004 11:02:39 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Path:

cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!TK2 MSFTNGP08.phx.g bl!newsfeed00.s u l.t-online.de!t-online.de!news-lei1.dfn.de!new s-fra1.dfn.de!new s2.telebyte.n l!newshub1.home .nl!home.nl!not-for-mail
Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:176783
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

How can I detect that the user has modified the data on the page where
several textboxes, checkboxes and dropdownlist exist.
Ton

Nov 20 '05 #3
Ton -

Is this a Web or Windows app?

If it's a Web app you can add some client-side scripting if you do not want
to make a round trip to the server.

If it's a Windows app the TextBox has a TextChanged event that fires when
the text changes. In this event handler you can add code to do what you
want when the text changes.
Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.

--------------------
From: "ton" <vr*@home.nl>
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
Subject: Re: How to detect textbox or dropdownlist is modified
Date: Tue, 3 Feb 2004 15:06:01 +0100
Organization : @Home Benelux
Lines: 64
Message-ID: <bv**********@n ews4.tilbu1.nb. home.nl>
References: <bv**********@n ews1.tilbu1.nb. home.nl> <XT************ *@cpmsftngxa07. phx.gbl>NNTP-Posting-Host: cp264278-a.venra1.lb.hom e.nl
X-Trace: news4.tilbu1.nb .home.nl 1075817550 3349 212.204.171.245 (3 Feb 2004 14:12:30 GMT)X-Complaints-To: ab***@home.nl
NNTP-Posting-Date: Tue, 3 Feb 2004 14:12:30 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Path: cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
phx.gbl!newsfee d00.sul.t-online.de!t-online.de!newsf eed.gamma.ru!Ga mma.RU!ne
ws.tele.dk!news .tele.dk!small. news.tele.dk!ne ws2.telebyte.nl !newshub1.home. n
l!home.nl!not-for-mailXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:178455
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

I'm not sure how to do so, since the controls are added dynamically in
Protected Overrides Sub CreateChildCont rols()

with the added event to save the record i can find each textbox, but there
is no property for TextChanged. Or do you mean that I should fire this eventto the server, where i can handle it. But is this a good approach ? It looksif the app will go back for the server each time some one modifies a field,
for what reason ?

Ton

""Steven Stein [MSFT]"" <ss****@online. microsoft.com> schreef in bericht
news:XT******* ******@cpmsftng xa07.phx.gbl...
Ton -

You can monitor events that tell you when these values change. Try the
TextChanged event for the TextBoxes and ComboBoxes, and the CheckChanged
event of the checkboxes.
hope that helps

Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.
--------------------
>From: "ton" <vr*@home.nl>
>Newsgroups: microsoft.publi c.dotnet.langua ges.vb
>Subject: How to detect textbox or dropdownlist is modified
>Date: Wed, 28 Jan 2004 11:52:49 +0100
>Organization : @Home Benelux
>Lines: 5
>Message-ID: <bv**********@n ews1.tilbu1.nb. home.nl>
>NNTP-Posting-Host: cp264278-a.venra1.lb.hom e.nl
>X-Trace: news1.tilbu1.nb .home.nl 1075287759 11442 212.204.171.245 (28
Jan 2004 11:02:39 GMT)
>X-Complaints-To: ab***@home.nl
>NNTP-Posting-Date: Wed, 28 Jan 2004 11:02:39 +0000 (UTC)
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Path:

cpmsftngxa07.p hx.gbl!cpmsftng xa06.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s

u

l.t-online.de!t-online.de!news-lei1.dfn.de!new s-fra1.dfn.de!new s2.telebyte.

n
l!newshub1.home .nl!home.nl!not-for-mail
>Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:176783
>X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
>
>How can I detect that the user has modified the data on the page where
>several textboxes, checkboxes and dropdownlist exist.
>Ton
>
>
>



Nov 20 '05 #4

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

Similar topics

4
2678
by: Benton | last post by:
Hi there, I am working with ASP.NET. I have a TextBox and DropDownList (for customer info input) that I need to tie up, i.e., when the DropDownList item changes (the customer name), the TextBox should reflect the selected value (the customer number). And when a user types something in the TextBox and exits the control, the DropDownList item should be changed to that value, showing the corresponding customer name. I am new to JS so I...
2
2963
by: NewToDotNet | last post by:
Hi, I am very new to ASP.NET and web programming in general. I have one issue. I have a Datagrid object with Edit template. In one Datagrid row, I have 1 DropdownList, 1 textbox and 1 readonly textbox in Edit mode. I have written OnTextChanged event handler for text box and OnSelectionIndexChanged event handler for dropdownlist. Whenever a text is changed in writable textbox or a selection is changed in DropDownList, I perform calculations...
0
3515
by: Paul Rees | last post by:
I am wondering if anyone has encountered a similar problem to the one that I am having. I have an ASP.NET page which has a table and a dropdownlist that was added at design time. The majority of the rows in the table are then generated at run-time based on a SQL query from a Jet database, and similarly the dropdownlist is filled at run-time Then I follow these steps 1. Loop through the records returned by the OleDbDataReade 2. Setup a...
6
10703
by: tfs | last post by:
I am trying to display some data that is about 200 characters long and I was trying to display it on the screen in a textbox <asp:textbox /> But I don't want any borders. How would I display that? Thanks,
1
5372
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved completely/succsessfully on the client's computer before updating some metadata on the server (file downloaded date for instance) However, All examples i have tried, and all examples I have found that other people says works - doesn't work for me :-(
2
11047
by: Atreju | last post by:
Ok I got form within a c sharp page. Situation: On the form I have a drop downliwst and a textbox, the dropdownlist is populated with products and the textbox has a default vale of the product price. Problem: The first item prce in the dropdownlist is populated in the textbox. When I select another product from the dropdownlist the value within the
2
3195
by: André | last post by:
Hi, I made a detailsview containing several fields for inserting only. I also made a dropdownlist which is invisible at start. Now, when clicking in a particular textbox, the dropdownlist must become visible (in order to put the selected value of the dropdownlist into the textbox of the detailsgrid.). I must say, the detailsview contains textboxes, but also a checkbox. I tried a lot of things, but i don't know which events to take:
0
2390
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile View I want the form populated from there profile on the sql server. The code to save the profile works fine. But when the user logs back in they data doesn't load back to the form. The multiview is located inside the LoginView's Logged-In View ....
1
3096
by: CindyH | last post by:
Hi I'm using vs.net 2003. I have a dropdownlist inside a datagrid. I would like to be able to select a value from the dropdownlist and then have a textbox which is also inside the datagrid filled with that value. I'm calling OnSelectedIndexChanged="ddlGridMonth_SelectedIndexChanged" event when an item from the dropdownlist is selected I'm not sure of the code I should be using for this event.
0
8001
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8424
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8415
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8069
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3912
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1270
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.