Binpress components 2011-10-27T11:13:53+00:00 Zend_Feed_Writer http://www.binpress.com Binpress contact@binpress.com http://www.binpress.com <![CDATA[.Net calendar with advanced functionality - VB.NET]]> 2011-10-27T11:13:53+00:00 2011-10-27T11:13:53+00:00 http://www.binpress.com/app/net-calendar-with-advanced-functionality/605 Zvonimir Begić noreply@binpress.com http://www.binpress.comdev/profile/5457 Calendar user controls with advanced functionality for .Net projectsNiceCalendar is an ASP.net user control that can be easily integrated into websites and web applications. Written in VS2010 (.Net 4.0). Can be used with C# or VB.Net. Easy to integrate! Includes calendar, date / time calculator (diff, add, subtract), and a text input for adding event information. All can be enabled / disabled as needed. Many uses for calendars Use NiceCalendar if you want to have modern calendar control, you need to calculate dates (bussines needs), or if you want to give your users the ability to add information on a specific date. It's all integrated in NiceCalendar. Integration Include the NiceCalendar control in your project (NiceCalendar.ascx). Right click on web site in solution explorer-->Add existing item-->NiceCalendar.aspx Set desired properties of control If you want to enable user text input for selected date, then you need to run SQL script NiceCalendarTableCreate.sql, in order to create the needed table in your SQL server database. Properties Properties can be used for customizing control (mostly for changing colors). To see better description use intellisense. Examples of setting properties: NiceCalendar1._NavigationButtonsBackColor = "#999999" NiceCalendar1._NavigationBackColor = "#666666" NiceCalendar1._YearMonthBackColor = "#BABDBC" NiceCalendar1._CalendarBackColor = "#3C4645" NiceCalendar1._NiceCalendarWidth = 400 NiceCalendar1._DateCalculatorVisible = True NiceCalendar1._DateCalculatorBackColor = "#6D756E" NiceCalendar1._AccesorizeVisible = True NiceCalendar1._AccesorizeBackColor = "#586463" NiceCalendar1._TextAreaBackColor = "#AAA8B3" NiceCalendar1._SaveDeleteButtonsBackColor = "#BCC0C0" NiceCalendar1._SaveDeleteDivBackColor = "#8A9997" NiceCalendar1._CalendarDayBackColor = "#D3D2D3" NiceCalendar1._SelectedDateColor = "#E5E949" NiceCalendar1._ConnectionString = "Data source=zbegic\sqlexpress;initial catalog=calBase;integrated security=No;user id=zvone234;password=ribata" NiceCalendar1._UserSessionVariableName = "userSession" NiceCalendar1._DayWithTextInputBackColor = "#FE870E" And this is example how to use in C#: protected void Page_Load(object sender, EventArgs e) { NiceCalendar1._NavigationButtonsBackColor = "#000000"; NiceCalendar1._NavigationBackColor = "#666666"; NiceCalendar1._YearMonthBackColor = "#BABDBC"; NiceCalendar1._CalendarBackColor = "#3C4645"; NiceCalendar1._NiceCalendarWidth = 400; NiceCalendar1._DateCalculatorVisible = true; NiceCalendar1._DateCalculatorBackColor = "#6D756E"; NiceCalendar1._AccesorizeVisible = true; NiceCalendar1._AccesorizeBackColor = "#586463"; NiceCalendar1._TextAreaBackColor = "#AAA8B3"; NiceCalendar1._SaveDeleteButtonsBackColor = "#BCC0C0"; NiceCalendar1._SaveDeleteDivBackColor = "#8A9997"; NiceCalendar1._CalendarDayBackColor = "#D3D2D3"; NiceCalendar1._SelectedDateColor = "#E5E949"; NiceCalendar1.ChangeDate += new WebUserControl.OnDateChange(NiceCalendar1_ChangeDate); } void NiceCalendar1_ChangeDate(object sender, DateTime d) { Button1.Text = d.ToString(); } Explanation of NiceCalendar properties: ![alt text][1] Events ChangeDate is event with which you can capture date change. An example: Protected Sub NiceCalendar1_ChangeDate(ByVal sender As Object, ByVal e As Date) Handles NiceCalendar1.ChangeDate End Sub e is selected date(user selected) If you want to select some date programmatically use selectDateOnNiceCalendar sub Example of selectDateOnNiceCalendar: NiceCalendar1.selectDateOnNiceCalendar(New DateTime(2012, 7, 5)) Overview of NiceCalendar component parts All components: Calendar part only: Calendar with date calculator: Calendar with accecorize: [1]: http://i52.tinypic.com/34pn8dk.png "NiceCalendar properties" <![CDATA[Compile .Net code on the fly - VB.Net - VB.NET]]> 2011-02-02T13:17:31+00:00 2011-02-02T13:17:31+00:00 http://www.binpress.com/app/compile-net-code-on-the-fly-vbnet/58 Jamie Plenderleith noreply@binpress.com http://www.binpress.comdev/profile/153 Compile and execute .NET code on the flyThe CustomCompiler class in this component will compile and execute any .NET code passed to it as a string. Simply add the CustomCompiler class to any existing project for compile-on-the-fly functionality!