Net 1 -...

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

This note was uploaded on 02/26/2012 for the course MBA IT DOM1 taught by Professor Kviswanathan during the Spring '12 term at Indian Institute of Technology, Chennai.

Ask a homework question - tutors are online