{"id":971,"date":"2011-07-14T17:01:41","date_gmt":"2011-07-14T21:01:41","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=971"},"modified":"2011-07-20T11:19:36","modified_gmt":"2011-07-20T15:19:36","slug":"monthly-event-calendar-%e2%80%93-control-parameter-query","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2011\/07\/monthly-event-calendar-%e2%80%93-control-parameter-query\/","title":{"rendered":"Monthly Event Calendar \u2013 Control parameter query"},"content":{"rendered":"<p><strong>Description: <\/strong><\/p>\n<p>ASP.NET Toolbox calendar control which use <strong>control parameter<\/strong> to query db records and display event(s) on calander item selection change. This is suitable for deisplaying events on <strong><em>PostBack call on the same page<\/em><\/strong>.<\/p>\n<p><strong>Elements:<\/strong><\/p>\n<ol>\n<li>Events.mdb \/ or MS SQL<\/li>\n<li>Web.config<\/li>\n<li>Month-2.aspx<\/li>\n<li>Month-2.aspx.vb<\/li>\n<li>Dtgrid.css<\/li>\n<\/ol>\n<p><strong>Method:<\/strong><\/p>\n<ol>\n<li>Create table Events (Id [primary key \u2013 AutoNumber], Event [Text], DateFrom [Date\/Time], DateTo[Date\/Time].<\/li>\n<li>Enter some data in the table<\/li>\n<\/ol>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"319\" valign=\"top\"><a rel=\"attachment wp-att-973\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=973\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-973\" title=\"ScreenShot058\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot058.gif\" alt=\"\" width=\"218\" height=\"78\" srcset=\"https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot058.gif 442w, https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot058-300x107.gif 300w\" sizes=\"(max-width: 218px) 100vw, 218px\" \/><\/a><\/td>\n<td width=\"319\" valign=\"top\"><a rel=\"attachment wp-att-974\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=974\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-974\" title=\"ScreenShot059\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot059.gif\" alt=\"\" width=\"311\" height=\"80\" srcset=\"https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot059.gif 562w, https:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot059-300x77.gif 300w\" sizes=\"(max-width: 311px) 100vw, 311px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li>Create\/re-write web.config file (download web.config file here)<\/li>\n<li>Add New Item and name it Month-2.aspx or whatever you like<\/li>\n<li>Import dtgrig.css (downolad dtgrid.css file here)<\/li>\n<li>Drag calendar control from toolbox to designer<\/li>\n<li>Double click designer and in code behind create two subs: Page_Load and Calender1_SelectionChanged<\/li>\n<\/ol>\n<p><a rel=\"attachment wp-att-983\" href=\"http:\/\/www.iowawebnet.com\/ein\/?attachment_id=983\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-983\" title=\"ScreenShot060\" src=\"http:\/\/www.iowawebnet.com\/ein\/wp-content\/uploads\/2011\/07\/ScreenShot060.gif\" alt=\"\" width=\"600\" height=\"428\" \/><\/a><\/p>\n<ol>\n<li>Drag \u201cEvents\u201d table from Server Explorer to designer; Configure Data Source WHERE DateFrom = Control\u00a0 &#8211; Calendar1 and add it to a SQL expression.<\/li>\n<li>Configure css property for your calendar and grid view and you are good to go.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Description: ASP.NET Toolbox calendar control which use control parameter to query db records and display event(s) on calander item selection change. This is suitable for deisplaying events on PostBack call on the same page. Elements: Events.mdb \/ or MS SQL Web.config Month-2.aspx Month-2.aspx.vb Dtgrid.css Method: Create table Events (Id [primary key \u2013 AutoNumber], Event [Text], [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,17,16,32],"tags":[30,19,51,144],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-access","category-applications","category-net","category-ms-sql","tag-access-2","tag-asp-net","tag-calendar","tag-controls"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/971"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":19,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":1044,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/971\/revisions\/1044"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}