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

[Q] How to Update User Control Data inside modal popup without closing the popup ?

$
0
0

Hi can anyone tell me how can i search and Update my User control using textChenged event on a Modal popup without closing the Popup ?

I have this Dynamic User control that containts TextBox and GridView

The Master page ImageButton supplies the GridView Datasource and the shows the User Control which displays the data

Protected Sub imgBtn2_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles imgBtn2.Click
	Dim MyController As Control = LoadControl("~/UserControl/MyUserControl.ascx")

	Dim gv As New GridView
	gv = CType(UCBranch.FindControl("gvBranch"), GridView)
	gv.DataSource = MyDatatable
	gv.DataBind()
	LoadUserContrl.Controls.Add(MyController)
	MPEUC.Show()
End Sub

This is my MyUserControl.ascx

GridView

<div class="GVData"><asp:GridView ID="gvBranch" runat="server" AutoGenerateColumns="False" EnableViewState="false" ><Columns/><asp:BoundField DataField="BLoc" HeaderText="Location"/><asp:BoundField DataField="Bname" HeaderText="Name"/></Columns/></asp:GridView/></div/>

my TextBox for searching

<asp:UpdatePanel ID="UpdateP1" runat="server" UpdateMode="Conditional"><Triggers/><asp:AsyncPostBackTrigger ControlID="txtSearch" EventName="TextChanged" //></Triggers/><ContentTemplate><asp:TextBox ID="txtSearch" runat="server" EnableViewState="true" OnTextChanged="txtSearchBCode_TextChanged"/></asp:TextBox/></ContentTemplate/></asp:UpdatePanel>





Viewing all articles
Browse latest Browse all 5678

Trending Articles



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