Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

How to Fire Textchange from modal popup

$
0
0

Hi ,

Is it possible to trigger the textchange event of a page from a modal popup?

Here's what I have User Control inside a Modal popup

GridView User Control is wrap with update panel so that I can update My TxtName

Passing Gridview SelectedItem to my TxtName.Text

    Protected Sub Select_Clicked(ByVal sender As Object, ByVal e As EventArgs)
        Dim currentrow As GridViewRow = TryCast(DirectCast(sender, Control).Parent.NamingContainer, GridViewRow)

        CType(Me.Parent.Parent.FindControl("txtId"), TextBox).Text = currentrow.Cells(1).Text
        CType(Me.Parent.Parent.FindControl("txtName"), TextBox).Text = currentrow.Cells(2).Text

        CType(Me.Parent.Parent.FindControl("MPE"), AjaxControlToolkit.ModalPopupExtender).Hide()

    End Sub

Value successfully pass but txtName.TextChanged event didn't fire Yell

<asp:UpdatePanel runat="server" ID="UpdateFace" UpdateMode="Conditional"><ContentTemplate><asp:TextBox ID="txtName" runat="server" ReadOnly="True" AutoPostBack="true" /></ContentTemplate></asp:UpdatePanel>

//Nothing happen even on debug mode

 Protected Sub txtName_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtName.TextChanged
//Some Operation
Me.btnUpdate.Enabled = True End Sub


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>