By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,934 Members | 1,804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,934 IT Pros & Developers. It's quick & easy.

How to detect textbox or dropdownlist is modified

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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.public.dotnet.languages.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**********@news1.tilbu1.nb.home.nl>
NNTP-Posting-Host: cp264278-a.venra1.lb.home.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.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!newsfeed00.su
l.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news2.telebyte.n
l!newshub1.home.nl!home.nl!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:176783
X-Tomcat-NG: microsoft.public.dotnet.languages.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

P: n/a
ton
I'm not sure how to do so, since the controls are added dynamically in
Protected Overrides Sub CreateChildControls()

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*************@cpmsftngxa07.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.public.dotnet.languages.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**********@news1.tilbu1.nb.home.nl>
NNTP-Posting-Host: cp264278-a.venra1.lb.home.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.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!newsfeed00.su l.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news2.telebyte.n l!newshub1.home.nl!home.nl!not-for-mail
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:176783
X-Tomcat-NG: microsoft.public.dotnet.languages.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

P: n/a
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.public.dotnet.languages.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**********@news4.tilbu1.nb.home.nl>
References: <bv**********@news1.tilbu1.nb.home.nl> <XT*************@cpmsftngxa07.phx.gbl>NNTP-Posting-Host: cp264278-a.venra1.lb.home.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.phx.gbl!cpmsftngxa06.phx.gbl!cpmsftng xa09.phx.gbl!TK2MSFTNGP08.
phx.gbl!newsfeed00.sul.t-online.de!t-online.de!newsfeed.gamma.ru!Gamma.RU!ne
ws.tele.dk!news.tele.dk!small.news.tele.dk!news2.t elebyte.nl!newshub1.home.n
l!home.nl!not-for-mailXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:178455
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

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

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*************@cpmsftngxa07.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.public.dotnet.languages.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**********@news1.tilbu1.nb.home.nl>
>NNTP-Posting-Host: cp264278-a.venra1.lb.home.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.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s

u

l.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!news2.telebyte.

n
l!newshub1.home.nl!home.nl!not-for-mail
>Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:176783
>X-Tomcat-NG: microsoft.public.dotnet.languages.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 discussion thread is closed

Replies have been disabled for this discussion.