or
| function startUpScripts() { |
| var newsTickerRotator = $find('<%= newsTickerRotator.ClientID %>'); |
| newsTickerRotator.repaint(); |
| newsTickerRotator.add_mouseOver(newsTickerMouseOver); |
| newsTickerRotator.add_mouseOut(newsTickerMouseOut); |
| startRotator(newsTickerRotator, Telerik.Web.UI.RotatorScrollDirection.Right); |
| } |
| function newsTickerMouseOver() { |
| stopRotator($find('<%= newsTickerRotator.ClientID %>')); |
| } |
| function newsTickerMouseOut() { |
| startRotator($find('<%= newsTickerRotator.ClientID %>'), Telerik.Web.UI.RotatorScrollDirection.Right); |
| } |
| function startRotator(rotator, direction) { |
| if (!rotator.autoIntervalID) { |
| rotator.autoIntervalID = window.setInterval(function() { |
| rotator.showNext(direction); |
| }, rotator.get_frameDuration()); |
| } |
| } |
| function stopRotator(rotator) { |
| if (rotator.autoIntervalID) { |
| window.clearInterval(rotator.autoIntervalID); |
| rotator.autoIntervalID = null; |
| } |
| } |
| function showNextItem(rotator, direction) { |
| rotator.showNext(direction); |
| } |
| <script language="javascript"> |
| var div_IE_Fix = document.getElementById('rrInTheSecondTabPanel'); |
| div_IE_Fix.style.visibility = 'visible'; |
| div_IE_Fix.className = 'RadRotator RadRotator_Default rrNoBorder'; |
| </script> |
| <style type="text/css"> |
| .rrRelativeWrapper |
| { |
| height: 143px; |
| width: 610px; |
| } |
| .rrClipRegion |
| { |
| overflow: hidden; |
| width: 610px; |
| height: 143px; |
| position: relative; |
| } |
| .rrItemsList |
| { |
| left: 0px; /* dynamicaly changed on 'MouseOver' */ |
| top: 0px; |
| width: 3660px; /* dynamicaly computed */ |
| height: 32px; /* dynamicaly computed */ |
| position: relative; |
| } |
| </style> |
| <ajaxToolkit:TabContainer ID="TabContainer" runat="server" ActiveTabIndex="0"> |
| <ajaxToolkit:TabPanel ID="tp_10" runat="server" HeaderText="TabPanel 1"> |
| <ContentTemplate> |
| <div class="SlideShow_Misc_Wrapper"> |
| <asp:Image ID="SSArrowLeft_tp_10" ImageUrl="~/images/SSArrowLeft_on.png" AlternateText="right" runat="server" CssClass="SSArrowLeft" /> |
| <div class="SlideShow_Misc_Content"> |
| <telerik:RadRotator ID="rr_tp_10" runat="server" DataSourceID="xdsTab1" Width="610" Height="143" FrameDuration="1" RotatorType="ButtonsOver"> |
| <ItemTemplate> |
| <div class="SlideShowElement"> |
| <div style="height:40px; overflow:hidden;"><%#XPath("Description")%></div> |
| </div> |
| </ItemTemplate> |
| <ControlButtons LeftButtonID="SSArrowLeft_tp_10" RightButtonID="SSArrowRight_tp_10" /> |
| </telerik:RadRotator> |
| <asp:XmlDataSource ID="xdsTab1" XPath="XML/stuff" runat="server"></asp:XmlDataSource> |
| </div> |
| <asp:Image ID="SSArrowRight_tp_10" ImageUrl="~/images/SSArrowRight_on.png" AlternateText="right" runat="server" CssClass="SSArrowRight" /> |
| </div> |
| </ContentTemplate> |
| </ajaxToolkit:TabPanel> |
| <ajaxToolkit:TabPanel ID="tp_11" runat="server" HeaderText="TabPanel 2"> |
| <ContentTemplate> |
| <div class="SlideShow_Misc_Wrapper"> |
| <asp:Image ID="SSArrowLeft_tp_11" ImageUrl="~/images/SSArrowLeft_on.png" AlternateText="right" runat="server" CssClass="SSArrowLeft" /> |
| <div class="SlideShow_Misc_Content"> |
| <telerik:RadRotator ID="rr_tp_11" runat="server" DataSourceID="xdsTab2" Width="610" Height="143" FrameDuration="1" RotatorType="ButtonsOver"> |
| <ItemTemplate> |
| <div class="SlideShowElement"> |
| <div style="height:40px; overflow:hidden;"><%#XPath("Description")%></div> |
| </div> |
| </ItemTemplate> |
| <ControlButtons LeftButtonID="SSArrowLeft_tp_11" RightButtonID="SSArrowRight_tp_11" /> |
| </telerik:RadRotator> |
| <asp:XmlDataSource ID="xdsTab2" XPath="XML/stuff" runat="server"></asp:XmlDataSource> |
| </div> |
| <asp:Image ID="SSArrowRight_tp_11" ImageUrl="~/images/SSArrowRight_on.png" AlternateText="right" runat="server" CssClass="SSArrowRight" /> |
| </div> |
| </ContentTemplate> |
| </ajaxToolkit:TabPanel> |

| k:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" |
| AllowAutomaticUpdates="True" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True" |
| AutoGenerateEditColumn="True" DataSourceID="LinqDataSource1" OnItemDataBound="RadGrid1_ItemDataBound" |
| GridLines="None" AllowSorting="True" Skin="Vista" OnItemCreated="RadGrid1_ItemCreated" |
| OnItemUpdated="RadGrid1_ItemUpdated" EnableLinqExpressions="false" ShowFooter="True" |
| DataKeyNames="ProductID"> |
| <MasterTableView DataKeyNames="CartID,ProductID" DataSourceID="LinqDataSource1"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="CartID" HeaderText="CartID" ReadOnly="True" SortExpression="CartID" |
| UniqueName="CartID" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridHyperLinkColumn HeaderText="Name" UniqueName="Name" DataTextField="Name" |
| DataType="System.String" DataNavigateUrlFields="ProductID" DataNavigateUrlFormatString="/Product.aspx?ProductID={0}"> |
| </telerik:GridHyperLinkColumn> |
| <telerik:GridDropDownColumn DataField="ProductID" DataSourceID="LinqDataSource2" |
| HeaderText="Name" ListTextField="Name" ListValueField="ProductID" ReadOnly="True" |
| UniqueName="column"> |
| </telerik:GridDropDownColumn> |
| <telerik:GridDropDownColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity1"> |
| </telerik:GridDropDownColumn> |
| <telerik:GridBoundColumn DataField="DateAdded" DataType="System.DateTime" HeaderText="DateAdded" |
| ReadOnly="True" SortExpression="DateAdded" UniqueName="DateAdded" Visible="False"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Price" DataFormatString="{0:c}" DataType="System.Double" |
| HeaderText="Price" ReadOnly="True" SortExpression="Price" UniqueName="Price" |
| Visible="True" /> |
| <telerik:GridCalculatedColumn HeaderText="Subtotal" DataFormatString="{0:c}" UniqueName="TotalPrice" |
| DataType="System.Double" DataFields="Quantity, Price" Expression="{0}*{1}" FooterText="Total : " |
| Aggregate="Sum" /> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings EnableRowHoverStyle="True"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| <asp:LinqDataSource ID="ShippingDataSource" runat="server" ContextTypeName="LinqCommerceDataContext" |
| TableName="lc_RegionShippingTables"> |
| </asp:LinqDataSource> |
| <br /> |
| <asp:Label ID="statusLabel" ForeColor="Red" runat="server" CssClass="style1" /><br /> |
| <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="LinqCommerceDataContext" |
| EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="lc_ShoppingCarts" |
| Where="CartID == @CartID" OnDeleted="LinqDataSource1_Deleted" OnUpdated="LinqDataSource1_Updated"> |
| <WhereParameters> |
| <asp:CookieParameter CookieName="BalloonShop_CartID" Name="CartID" Type="String" /> |
| </WhereParameters> |
| </asp:LinqDataSource> |
| <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="LinqCommerceDataContext" |
| Select="new (ProductID, Name)" TableName="lc_Products"> |
| </asp:LinqDataSource> |
| <asp:LinqDataSource ID="LinqDataSource3" runat="server" EnableUpdate="True" TableName="lc_ProductInventory" |
| Where="ProductID == @ProductID" ContextTypeName="LinqCommerceDataContext" Select="new (ProductID, Name)"> |
| </asp:LinqDataSource> |
