Hi,
I have a situation where I have an asp:button inside of a tooltip. The OnClick event of the button fires a postback. how can I Ajaxify this not to postback?
ASPX
<telerik:RadToolTip ID="TrackerReminderOff" runat="server" TargetControlID="ReminderOff" Position="TopLeft" SkinID="Vista" ShowEvent="OnClick" Animation="Fade" Width="300" Height="200" ManualClose="true" Visible="true" Sticky="true" EnableViewState="false">
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="TrackerReminderOffCMSText" runat="server"></asp:Label><br />
<asp:Button ID="TrackerReminderOffButton" runat="server" Text="Turn Off" OnClick="TrackerReminderOffButton_Click" Visible="true"/>
</asp:Panel>
</telerik:RadToolTip>
Code Behind.
public void TrackerReminderOffButton_Click(Object sender, EventArgs e)
{
//The Profile.DailyTrackerReminder is a database field
Profile.DailyTrackerReminder = false;
ReminderOff.Visible = false;
EmailReminderLabel.Visible = false;
PleaseRemindMe.Visible = true;
}
Any thoughts are appreciated.
Thanks,
Rob
I have a situation where I have an asp:button inside of a tooltip. The OnClick event of the button fires a postback. how can I Ajaxify this not to postback?
ASPX
<telerik:RadToolTip ID="TrackerReminderOff" runat="server" TargetControlID="ReminderOff" Position="TopLeft" SkinID="Vista" ShowEvent="OnClick" Animation="Fade" Width="300" Height="200" ManualClose="true" Visible="true" Sticky="true" EnableViewState="false">
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="TrackerReminderOffCMSText" runat="server"></asp:Label><br />
<asp:Button ID="TrackerReminderOffButton" runat="server" Text="Turn Off" OnClick="TrackerReminderOffButton_Click" Visible="true"/>
</asp:Panel>
</telerik:RadToolTip>
Code Behind.
public void TrackerReminderOffButton_Click(Object sender, EventArgs e)
{
//The Profile.DailyTrackerReminder is a database field
Profile.DailyTrackerReminder = false;
ReminderOff.Visible = false;
EmailReminderLabel.Visible = false;
PleaseRemindMe.Visible = true;
}
Any thoughts are appreciated.
Thanks,
Rob