Take the 2-minute tour ×  Im struggling to get a web method to
work in VB. The javascript gets called but never seems to call
the web method. I am running in debug mode and get no errors.
Here is the code:     Public Shared Sub PasteEvent(EventID As
Integer,                                  startDate As DateTime,
endDate as DateTime,                                  newStart
As DateTime)        ' work out the diff between start and end
Dim difference As long =
DateDiff(DateInterval.Minute,startDate,endDate)        '
pasteStart  + minutes from the event start       ' this is
because we can only paste on the hour, but events may have
started after the hour       ' ie 10:15        ' new end =
pastestart + diff       Dim newEnd As DateTime =
newStart.AddMinutes(convert.ToDouble(difference))        ' call
database        Dim conn As New SqlConnection(ConfigurationManag
er.ConnectionStrings("Blueprint").ToString())        Dim cmd As
New SqlCommand       cmd.CommandType = Comma