Binpress components2011-10-27T11:13:53+00:00Zend_Feed_Writerhttp://www.binpress.comBinpresscontact@binpress.comhttp://www.binpress.com2011-10-27T11:13:53+00:002011-10-27T11:13:53+00:00http://www.binpress.com/app/net-calendar-with-advanced-functionality/605Zvonimir Begićnoreply@binpress.comhttp://www.binpress.comdev/profile/5457Calendar 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 calendarsUse 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.IntegrationInclude the NiceCalendar control in your project (NiceCalendar.ascx). Right click on web site in solution explorer-->Add existing item-->NiceCalendar.aspxSet desired properties of controlIf 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.PropertiesProperties 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]EventsChangeDate 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 subExample of selectDateOnNiceCalendar:NiceCalendar1.selectDateOnNiceCalendar(New DateTime(2012, 7, 5))
Overview of NiceCalendar component partsAll components:Calendar part only:Calendar with date calculator:Calendar with accecorize:[1]: http://i52.tinypic.com/34pn8dk.png "NiceCalendar properties"2011-02-02T13:17:31+00:002011-02-02T13:17:31+00:00http://www.binpress.com/app/compile-net-code-on-the-fly-vbnet/58Jamie Plenderleithnoreply@binpress.comhttp://www.binpress.comdev/profile/153Compile 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!