Solved

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

Posted on 2016-09-18
4
68 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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:Murray Brown
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:Murray Brown
ID: 41804429
Thanks
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

617 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