<telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="SqlDataSourceHomeImages" FrameDuration="4000" RotatorType="AutomaticAdvance" >
<ItemTemplate>
<asp:ImageButton ID="btnHomePage" runat="server" ImageUrl='<%# "images/" & Eval("hpi_image")%>' AlternateText='<%# Eval("hpi_URL") %>' OnClick="btnHomePage_Click"/>
</ItemTemplate>
</telerik:RadRotator>
<asp:SqlDataSource ID="SqlDataSourceHomeImages" runat="server" ConnectionString="<%$ ConnectionStrings:WebDB_string.com%>"
SelectCommand="SELECT hpi_image, hpi_URL, hpi_external FROM tbl_HomeImages WHERE hpi_show_on_web = 'True' ORDER BY hpi_sort_order">
</asp:SqlDataSource>
And here is the Click event from the code-behind:
Protected Sub btnHomePage_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs)
Response.Redirect(sender.AlternateText)
End Sub
Very simple, and it should work. But it doesn't and it's driving me crazy !!
Thanks !
Bruce
function GetGenerationVersions(sender, eventArgs) { var filterString = eventArgs.get_text(); var rcbElement = sender.get_element(); // var parentRowID = $(rcbElement).parents("tr").first().prev("tr.rgRow, tr.rgAltRow")[0].id; var genID = sender.get_element().parentNode.parentNode.getDataKeyValue("ID");
//.get_parent().get_parent().get_masterTableView().get_dataItems()[0].getDataKeyValue("GenerationID"); alert(genID.toString()); var context = eventArgs.get_context(); context["FilterString"] = filterString; context["SiteID"] = document.getElementById("<%=lblSiteID.ClientID %>").innerText; context["ProductID"] = $find('<%=rcbProducts.ClientID %>').get_selectedItem().get_value(); context["GenerationName"] = genID; }if (e.Item is GridDataItem) { if (e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["DocTypes"].ToString() == "Multiple") { // Find Column and change colours GridDataItem item = (GridDataItem)e.Item; item["DocReferences"].BackColor = Color.Tomato; item["DocReferences"].ForeColor = Color.White; }}Hi,
I've a radTabStrip and a radMultiPage.
I need to update with AjaxManager the content of the PageView into my radMultiPage.
Each pageView creates on demand, during the OnPageViewCreated event each UserControl in the pageView.
My problem is the refresh of this control.
If I do an async postback into pageView and this adds a new pageView, on the client I never see the new pageView.
I'm able only to refresh the tabstrip, when i try to refresh the multipage, the first pageView (which called the postback) disappears, and the new pageView appears, if I select the previous pageView I receive ajax error message.
I tried also to add a custom event on my page which returns the PageViewID generated during the process and adds this to the AjaxControl, but it doesn't work, because the AjaxControl can update after the page was rendered and the user click on the button.
Can you help me?
Thanks in advance