Sql Server - .net Fullcalendar Example Using Web Forms?
Oct 16, 2010
I am planning to create a scheduler like application using Jquery FullCalendar plugin.Searched a bit, but there are examples using only asp.net mvc.Is there a good tutorial for creating scheduler using asp.net web forms plus using sql server for storing events?
View 1 Replies
Similar Messages:
Oct 6, 2010
I am trying to integrate the jQuery FullCalendar to a new Web forms application. I am new to jQuery so need a bit of help to set this up. Full Calendar link - [URL] I have found a tutorial using MVC - [URL] But i am using Web forms,
View 12 Replies
Apr 7, 2010
I am trying to figure out this fullcalendar and how to get events from database. I am using asp .net I am using a webservice that has something like this. I am just trying to put a test record first then I will tie it to the database once i get it working. Just trying to figure out how to tie my webservice.
Public Class WebService1
Inherits System.Web.Services.WebService
<WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=True)> _
Public Function Getcalendar() As String
Dim sb As New StringBuilder
Dim sw As New IO.StringWriter(sb)
Dim strOut As String = String.Empty
Using writer As New JsonTextWriter(sw)
writer.WriteStartObject()
writer.WritePropertyName("id")
writer.WriteValue("999")
writer.WritePropertyName("title")
writer.WriteValue("my test")
writer.WritePropertyName("allday")
writer.WriteValue("false")
writer.WritePropertyName("start")
writer.WriteValue("2010-04-14T11:00:00")
writer.WritePropertyName("end")
writer.WriteValue("2010-04-14T13:00:00")
writer.WriteEndObject()
strOut = sw.ToString
End Using
Return strOut
End Function
End Class
And my html goes like this
<script type="text/javascript">
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
events: RVCSC.WebService1.Getcalendar()
});
});
View 1 Replies
Mar 18, 2010
I've having difficulty in populating FullCalendar from MVC and would like a little assistance on the matter.
I have the following code for my controller:
Function GetEvents(ByVal [start] As Double, ByVal [end] As Double) As JsonResult
Dim sqlConnection As New SqlClient.SqlConnection
sqlConnection.ConnectionString = My.Settings.sqlConnection
Dim sqlCommand As New SqlClient.SqlCommand
[Code].....
View 4 Replies
Nov 19, 2010
I am integrating fullcalendar in mvc application. using json data to display in fullcalendar.Here i am using datepicker for start date and end date for filtering fullcalendar. data passing to fullcalendar but not displaying.May be due to format of start date and end date coming from controller.date format is in this form '1278042300'. I ams ending my j query code .
[Code]....
View 1 Replies
Dec 18, 2010
I am using Fullcalendar on my site and I have a button to print it. I am doing this with:
function print_calendar() {
$('#calendar').css('width', '6.5in');
$('.fc-content .fc-state-highlight').css('background', '#ccc');
$('#calendar').fullCalendar('render');
bdhtml = window.document.body.innerHTML;
sprnstr = "<!--startprint-->";
eprnstr = "<!--endprint-->";
prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
window.document.body.innerHTML = prnhtml;
window.print();
Now I also want to be able to hide the Previous Month, Next Month, Today, and Month Buttons. How can I do this via javascript? I do not want to change them in the fullcalendar code, just be able to hide them before printing but have them display the rest of the time.
View 2 Replies
Jun 7, 2010
I have been trying to add some events to the fullCalendar using a call to a ASHX page using the following code.
Page script:
<script type="text/javascript">
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
[Code]....
The ASHX page gets called and returnd the following data:
[{id: 0,title:'test 1',start: '2010-06-07',allDay: false},{id: 2,title:'test 2',start: '2010-06-07',allDay: false}]
The call to the ASHX page does not display any results, but if I paste the values returned directly into the events it displays correctly. I am I have been trying to get this code to work for a day now and I can't see why the events are not getting set.
View 3 Replies
May 28, 2010
I'm integrating jquery fullcalendar into my mvc application. basically i'm following the instructions on: [URL] My code is as follows: in Index.aspx:
[Code]....
Here is the code for Scheduler/CalendarData:
[Code]....
I also have the following code inside head tag in site.master:
[Code]....
When navigating to /scheduler/calendardata I get a prompt for saving the json data which contents are exactly what I created in the CalendarData function. Navigating to /scheduler/index/ I get the following runtime error in VS: Microsoft JScript runtime error: Object expect. VS Highlights the $(document).ready(function()...) code in the script tag.
View 16 Replies
May 31, 2010
I'm integrating Fullcalendar into my app. Consider a manager interface where he can select an employee and then view this employee's calendar. Now basically I'm using the following jquery code in my view:
<script type="text/javascript">
$(document).ready(function() {
$("#calendar").fullCalendar({
defaultView: 'agendaWeek',
isRTL: true,
axisFormat: 'HH:mm',
editable: true,
events: "/Scheduler/CalendarData"
});
});
</script>
Now I would like to have the controller function assigned to the events to retrieve the specific user selected by the manager: events: "/Scheduler/CalendarData/<current_user_name> Is there any way to retrieve the selected employee user name from the view (or rather pass it to the view from the controler) and then pass it onto the bound events function?
View 1 Replies
Dec 16, 2010
I am using fullcalendar in asp.net. I need to have it display the time and location on the month view. I have tried using:
cevent.title = cevent.title + "At: " + (string)reader["Location"] + "<br>";
but is is purifying the HTML and displaying <br /> rather then applying the line break. How can I force it to use the HTML? I have tried HTML encoding and decoding and using /n non of these work. Apparently cevent.description can accept HTML tags but not cevent.title Here is more of the code I am using.
public static List<CalendarEvent> getEvents(DateTime start, DateTime end)
{
List<CalendarEvent> events = new List<CalendarEvent>();
SqlConnection con = new SqlConnection(connectionString);
SqlCommand cmd = new SqlCommand("SELECT eventNumber, details, event, BeginDate, BeginTime, EndDate, EndTime, Location FROM events where BeginDate>=@start AND EndDate<=@end", con);
cmd.Parameters.AddWithValue("@start", start);
cmd.Parameters.AddWithValue("@end", end);
using (con)
{
con.Open();
SqlDataReader reader = cmd.ExecuteReader();
while (reader.Read())
{
CalendarEvent cevent = new CalendarEvent();
cevent.id = (int)reader["eventNumber"];
cevent.title = (string)reader["event"];
cevent.description = "<B>" + cevent.title + "</B><br/><br/>";
if (!string.IsNullOrEmpty((string)reader["BeginTime"]))
{
cevent.description = cevent.description + (string)reader["BeginTime"] + " - " + (string)reader["EndTime"] + "<br>";
}
if (!string.IsNullOrEmpty((string)reader["Location"]))
{
cevent.description = cevent.description + "At: " + (string)reader["Location"] + "<br>";
}
cevent.description = cevent.description + (string)reader["details"];
cevent.start = (DateTime)reader["BeginDate"];
cevent.end = (DateTime)reader["EndDate"];
events.Add(cevent);
}
}
return events;
}
cevent.description functions properly with the tages but cevent.title simply displays them.
View 2 Replies
Sep 9, 2010
I am using fullCalendar and I'm able to populate the calendar with events very easily. And I undertsand the best way to add events to the calendar is through the database. What I need now is to catch and populate an edit event form after the user clicks an event.
View 1 Replies
Feb 8, 2010
How can i get notified when the user click on 'next' (arrow) ? I'm using the calendar in month view and I want to load the next month data on demand. Also, do smbdy has an example of consuming data from ASP.NET (AJAX call)?
View 1 Replies
Dec 22, 2010
I have embed the fullcalender control in my asp.net mvc application. It is running fine locally. but when I uploads it to my domain server (third party) it showing me This Error: Uncaught TypeError: Object # has no method 'fullCalendar' in crome console (debugger). and not rendering the control. ** EDITED: My HTML code is this **
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
Index
<% var serializer = new System.Web.Script.Serialization.JavaScriptSerializer(); %>
< style type='text/css'>
body {
margin-top: 40px;
text-align: center;
font-size: 14px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}..............................................
View 1 Replies
Sep 30, 2010
I create a dynamic dropdownlist to select several values, in developer server it's everything ok but in production server, when the postback happens lost the selected value.
View 4 Replies
Dec 10, 2010
We had a website deployed on IIS server remotely say www.liveserver.com.
We recently decided to make a copy of the website internal to the organisation so we brought a server and copied all the code from live server and configured it and say it is http//archives-testserver.com
Everything seems to work fine but while navigating and clicking on certain module links within http//archives-testserver.com......the domain name is getting rewritten to www.liveserver.com and user is made to navigate on the live site. I wonder where this
configuration is with in IIS...
I looked under properties under website identification and everything is referring it as http://arhives-testserver.com. also thr is a file called securityRedirect.inc and ifor handling errors and all the references have been changed and couldn't find anything in web.config. where else to look for probable reference to live site?
View 3 Replies
Sep 30, 2010
Does anyone knows why HttpContext.Current.Server.MapPath within a server control works when I run the server control but gives and error whilst in Design mode?
View 2 Replies
Feb 4, 2011
I want to know: what are the basic differences between html server controls and web server control. As I have gone though lots of surfing but couldn't find the exact answer.
View 5 Replies
Feb 14, 2011
I need rft server control not HTML based server controls to display and store text as well as images, from which i can get rtf text and can save it as it is in DB.
View 1 Replies
Jan 25, 2011
I have deployed my site in Win 2003 server. In this, it copies file from Another server and copies it in local. It is working with my local computer, but not in the server i have deployed. I hope access credentials may be the first reason. But are there any other reasons for this.
View 1 Replies
Nov 18, 2010
I tried myrepot.printtoprinter(1,fales,1,1) but thats working only for development machine. Not working on Hosted server!!!
View 1 Replies
Mar 3, 2011
Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
View 5 Replies
Mar 30, 2010
How do I access a property of a web server control?
View 2 Replies
Nov 16, 2010
what is wrong with this line of code?
uploadFile.PostedFile.SaveAs("\ddg3584GraphicsWater lilies.jpg")
View 2 Replies
Jun 8, 2010
how to use Excel on the web server with out having Excell Software on the Server?
[Code]....
[Code]....
View 5 Replies
Apr 23, 2010
I need to copy a (WAV) file that I have just posted to the Web Server (successfully) over to the SMTP server for additional processing. I am confused about the process. Here is what I do now:
1. Post the file via "http POST" from the client to the web server.
Here is what I would like to accomplish:
1. Post the file to the web server
2. Copy the file from the web server to the SMTP server.
I am experiencing a "brain block" which I get too often and cannot visualize the processes. What should I write on the web server as a method to grab the newly received file and send a copy on over to a specific directory in the SMTP server (MailServer is the SMTP server and the physical directory is "c:/TempMessages". Do I need to run IIS on the SMTP server and create a virtual path??
View 3 Replies