I have a situation where I want to use an ajax updatepanel within a formview. I am using the update panel within an ajax modalpopup control to allow a user to make a sub form selection. When the user clicks a linkbutton within the updatepanel the modal form is hidden and the value of a text box on the formview is set....
Only thing is, because of the update panel the server side code happily sets the text property of the textbox (once found using formview1.findcontrol) but the event is not processed and the actual value stays as it was.
I have been trying to use RaisePostBackEvent thinking the formview needs a postback event before the text change will be seen but this does not seem to work.
I was trying to avoid any client side script on this...
Anyone any ideas? I have attached a working dummy VS2005 ajax project to demonstrate the problem.
Thanks in advance
PS - ALL WORKS FINE IF I PUT THE FORMVIEW ITSELF WITHIN AN UPDATE PANEL AND CALL .Update on that panel. just seems a bit much...
<asp:FormView ID="FormView1" runat="server" DataSourceID="XmlDataSource1" DefaultMode="Edit">
id:<asp:TextBox ID="idTextBox" runat="server" Text='<%# Bind("id") %>'></asp:TextBox><br /><br />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Click Me..</asp:LinkButton>