troubleshooting Question

Why web control placed inside UpdatePanel not functional?

Avatar of tangteng78
tangteng78Flag for Malaysia asked on
ASP.NETVisual Basic.NET
7 Comments1 Solution436 ViewsLast Modified:
Hi,
I'm trying to put in some ajax capability in my website. However, i noticed that my web control (in this case button) put inside UpdatePanel is not functioning. Even a simple value assignment to other textbox is not working (no error prompt).

I do not want to put the button outside of updatepanel because, the button is enabled when the ajax function is updated.

Please help
'==================================================
'DEFAULT.ASPX
'==================================================
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                        <asp:TextBox ID="txtSearchResult" runat="server" Width="219px" ReadOnly="True"></asp:TextBox>
                        <asp:Button ID="btnAdd" runat="server" Text="Add" Enabled="False" />
                        </ContentTemplate>
                        <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnSearch" />
                        </Triggers>
                        </asp:UpdatePanel>
 
'==================================================
'DEFAULT.ASPX.VB
'==================================================
 
    Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAdd.Click
        txtSearchInput.Text = "I do not see any value updated in the textbox"
    End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros