I have an AJAX form, one will let user type their input. If user click "Send" button, a modal-box will appear as so user can confirm their input. I use RadToolTip to solve the problem. But after user click "Send" button, the tooltip apear without any information in it (which has been done in the button click Event).
Any suggestion? Here is my code:
THE FORM: |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<asp:UpdatePanel ID="UpdatePanel2" runat="server"> |
<ContentTemplate> |
<telerik:RadTextBox ID="txtInput" runat="server"></telerik:RadTextBox><br /> |
<asp:Button ID="bttnSend" runat="server" Onclick="bttnSend_Click"></asp:Button ><br /> |
</ContentTemplate> |
<Triggers> |
<asp:AsyncPostBackTrigger ControlID="bttnSend" EventName="Click" /> |
</Triggers> |
</asp:UpdatePanel> |
THE TOOLTIP: |
<telerik:RadToolTip ID="pAttack" runat="server" ShowEvent="OnClick" Skin="Office2007" |
TargetControlID="bttnAttack" Position="Center" RelativeTo="BrowserWindow" Title="Tấn công" |
Modal="True" ShowDelay="100" ShowCallout="False" ManualClose="true"> |
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> |
<ContentTemplate> |
<asp:Label ID="lblConfirm" runat="server"></asp:Label> |
</ContentTemplate> |
</asp:UpdatePanel> |
</telerik:RadToolTip> |
SEND BUTTON ONCLICK EVENT: |
protected void bttnSupport_Click(object sender, EventArgs e) |
{ |
this. lblConfirm.Text = this. txtInput.Text; |
} |
By the way, how did you make the Format Code Block? What RadControl are you using?