I am using FullCalendar Is there any way that ban the user to enter another event to the same day if s/he already added an event to that day before ?
[System.Web.Services.WebMethod(true)]
public static void AllowEvents(DateTime start, DateTime end, int Resource_id)
{
//using the startdate enddate and resourceid to pick the events already in that cell
DataTable dt = new DataTable();
dt = EventDAO2.AllowEvents(start, end, user_id);
//get the eventid in dt.
if (dt.Rows.Count > 0)
{
//show a message"An event already exists in this cell"
}
//otherwise allow a popup window for entering event details,and add that values to the server.
}
Some mistakes,its not working correctly.i don't know how to show an alert message in c# code behind.