Link to home
Start Free TrialLog in
Avatar of Gaiala
GaialaFlag for Germany

asked on

DropDownList_selectedIndexChanged get content of a TextBox

Hello together,

on the following code I want to get the content of a TextBox if the DropDownList_selectedIndexChanged event fires.

Thanks in advice
Gaiala
Public Sub DropDownList_selectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim strSelMenu As String = CType(sender, DropDownList).Text
        Dim ddl1 As DropDownList = CType(sender, DropDownList)
        Dim row As GridViewRow = CType(ddl1.NamingContainer, GridViewRow)
        ' here I just get the information System.Web.UITextBox
        ' but I want the content of the textbox
        'Dim strCQUID As String = row.FindControl("txt01").ToString()
 
    End Sub

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of vb_jonas
vb_jonas
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gaiala

ASKER

thank you!