{"id":1581,"date":"2013-09-06T17:39:56","date_gmt":"2013-09-06T17:39:56","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=1581"},"modified":"2013-09-06T17:40:10","modified_gmt":"2013-09-06T17:40:10","slug":"set-calendar-extenders-selecteddate-rss","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1581","title":{"rendered":"Set Calendar Extender&#8217;s SelectedDate=&#8221;<%=DateTime%>&#8221;"},"content":{"rendered":"<p>[html]<br \/>\n&lt;asp:TextBox ID=&quot;txtDate&quot; runat=&quot;server&quot; &gt;&lt;\/asp:TextBox&gt;<br \/>\n&lt;cc1:CalendarExtender ID=&quot;CalendarExtender1&quot; runat=&quot;server&quot; TargetControlID=&quot;txtDate&quot; Format=&quot;MM\/dd\/yyyy&quot; OnClientShowing=&quot;showDate&quot; &gt; &lt;\/cc1:CalendarExtender&gt;<br \/>\n&lt;script type=&quot;text\/javascript&quot; language=&quot;javascript&quot;&gt;<br \/>\nfunction showDate(sender,args)<br \/>\n{<br \/>\nif(sender._textbox.get_element().value == &quot;&quot;)<br \/>\n{<br \/>\nvar todayDate = new Date();<br \/>\nsender._selectedDate = todayDate;<br \/>\n}<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n[\/html]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[html] &lt;asp:TextBox ID=&quot;txtDate&quot; runat=&quot;server&quot; &gt;&lt;\/asp:TextBox&gt; &lt;cc1:CalendarExtender ID=&quot;CalendarExtender1&quot; runat=&quot;server&quot; TargetControlID=&quot;txtDate&quot; Format=&quot;MM\/dd\/yyyy&quot; OnClientShowing=&quot;showDate&quot; &gt; &lt;\/cc1:CalendarExtender&gt; &lt;script type=&quot;text\/javascript&quot; language=&quot;javascript&quot;&gt; function showDate(sender,args) { if(sender._textbox.get_element().value == &quot;&quot;) { var todayDate = new Date(); sender._selectedDate = todayDate; } } &lt;\/script&gt; [\/html]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,43,4],"tags":[],"class_list":["post-1581","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-netfx","category-aspnet","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1581"}],"version-history":[{"count":3,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1581\/revisions"}],"predecessor-version":[{"id":1584,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1581\/revisions\/1584"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1581"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}