Solved

ASP.net VB.net gather value of text box text change

Posted on 2016-09-18
4
50 Views
Last Modified: 2016-09-19
Hi. The following four lines are used to add a text box to my web page in ASP.net. When the user changes the text in this text box how do
I get the text value in the procedure HandleTextChanged()

 Dim tb As New TextBox
 tb.ID = oControlName
 AddHandler tb.TextChanged, AddressOf HandleTextChanged
 Me.Panel_Controls.Controls.Add(tb)

    Sub HandleTextChanged()

    End Sub
0
Comment
Question by:murbro
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
ID: 41804339
Dim tb As New TextBox
 tb.ID = oControlName
 tb.TextChanged += New EventHandler(HandleTextChanged)
 Me.Panel_Controls.Controls.Add(tb)

 Sub HandleTextChanged()

 End Sub

Open in new window

0
 

Author Comment

by:murbro
ID: 41804371
I am specifically looking at how to get the value of the text inside the procedure

 Sub HandleTextChanged()
   'HERE
 End Sub
0
 
LVL 12

Accepted Solution

by:
Ramkisan Jagtap earned 500 total points
ID: 41804383
I am not sure what exactly you are doing.
Based on my assumptions,
declare a variable and get the value in it.


Sub HandleTextChanged()
   Dim newText As New string
   newText = tb.Text
 End Sub

Open in new window

0
 

Author Closing Comment

by:murbro
ID: 41804429
Thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question