{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Net 1 - CssClass="Datalist_ControlStyle"...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Adding Time Picker Control to Parent Page Copy the User Control Directory to the Web Project. Edit the Inherits line in the aspx page of the User Control to point to your projects root namespace. This is usually the name of your VB.NET project. Compile the project. Add the code to register the User control on the parent page. Drag the Ajax Script Manager control and Update Panel onto the parent page. Add a Textbox to the parent page. Add the Time Picker Extended control using the tag prefix. Intellisense should show the control if it was added correctly to the project. Set the Time Picker's TargetControlID to the Textbox ID. Set the properties for the Time Picker control. Compile and run the project. <asp:ImageButton ID="ibtnShowPicker" ImageUrl="btnTimeExtenderBlue.gif" OnClientClick="return false;" CssClass="btnTimeExtender_Style" runat="server" /> <asp:DataList ID="datalistTimes" RepeatDirection="Horizontal" RepeatColumns="4" OnItemDataBound="datalistTimes_OnItemDataBound"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CssClass="Datalist_ControlStyle" HeaderStyle-CssClass="Datalist_HeaderStyle" ItemStyle-CssClass="Datalist_ItemStyle" runat="server" > <HeaderTemplate> <div class="Datalist_HeaderLeft"> </div> <div class="Datalist_HeaderCenter"> <asp:LinkButton ID="lbtnHeaderTime" OnCommand="lbtnHeaderTime_OnCommand" ToolTip="click to select current time" runat="server" /> </div> <div class="Datalist_HeaderRight"> <asp:LinkButton ID="lbtnHeaderAM" Text="AM" OnCommand="lbtnHeaderAM_OnCommand" CommandArgument="am" runat="server" /> <asp:LinkButton ID="lbtnHeaderPM" Text="PM" OnCommand="lbtnHeaderPM_OnCommand" CommandArgument="pm" runat="server" /> </div> </HeaderTemplate> <ItemTemplate> <asp:LinkButton ID="lbtnTime" CommandName="second" OnCommand="lbtnTime_Onclick" CommandArgument='<%# Eval("Time") %>' Text='<%# Eval("Time") %>' runat="server"/> </ItemTemplate> </asp:DataList>...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online