Re: How to detect textbox or dropdownlist is modified

From: Steven Stein [MSFT] (sstein_at_online.microsoft.com)
Date: 02/03/04


Date: Tue, 03 Feb 2004 23:14:33 GMT

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" <vrs@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: <bvoa8e$38l$1@news4.tilbu1.nb.home.nl>
>References: <bv84sf$b5i$1@news1.tilbu1.nb.home.nl>
<XTNKUyc6DHA.568@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: abuse@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!cpmsftngxa09.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.telebyte.nl!newshub1.home.n
l!home.nl!not-for-mail
>Xref: 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
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]"" <sstein@online.microsoft.com> schreef in bericht
>news:XTNKUyc6DHA.568@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" <vrs@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: <bv84sf$b5i$1@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: abuse@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!TK2MSFTNGP08.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
>> >
>> >
>> >
>>
>
>
>



Relevant Pages

  • Best approach for downloading .zip files in dot net?
    ... We're in the process of porting an old VB5 application to dot net. ... be a Windows app (not a web app). ... We are constrained to use http or https, ...
    (microsoft.public.dotnet.security)
  • Re: Really slow, painfullu slow asp.net web app
    ... But windows app, alos slowed way down (oh, btw, in prototype windows I ... was not using tables but rather storing data in arrays, hashtables, ... Then moved it back to a web app. ... aspnet_wp.exe still churning away in the background ... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Where does the config file go?
    ... Is this a windows or web app? ... For a windows app, if your application name is myApp.exe, the configuration ... and on build it copies the file out to the output directory ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Need to write web service
    ... I think for my web app I chose ASP.NET Web Site next but perhaps it was Empty Web Site--not sure, but I see ASP.NET Web Service which sounds more like what I want this time. ... Can I write a web service in a windows app? ... Web Services are web applications but they can be used in any .NET ... select Add Web Reference to add a webservice. ...
    (microsoft.public.dotnet.languages.vb)
  • controlling the input into a textbox
    ... Does anyone know how can ensure that the only input that is accepted into a textbox is a numeric (only digits 1-9 accepted)? ... I am using vb.net to create a windows app. ...
    (microsoft.public.dotnet.general)