Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET jQuery VB.NET
Hello
 
I have developed a website in VS2008 using 2.0 framework.
Now I have uploaded it on live server which has VS2005, but it's not working.
 
Can anyone please tell me, does WebMethod works in VS2005?
 
Thanks in Advance.
 
Regards,
Aman
Posted 10-Dec-12 1:39am
Comments
ryanb31 at 10-Dec-12 8:52am
   
If it is on a live server then VS2005 has nothing to do with it because it gets hosted in IIS. We need a lot more details.
Member 9207317 at 12-Dec-12 0:02am
   
Hello
 
Thanks for your help.
 
Actually I'm working on client's machine using Remote Desktop connection and developing the website on his machine using VS2005.
ryanb31 at 12-Dec-12 7:56am
   
So, what isn't working?
Member 9207317 at 12-Dec-12 8:38am
   
I'm calling a WebMethod using Jquery.Ajax.
 
Jquery code:
function Testok(values) {
 

alert(location.protocol + "//" + location.host + "//" );
$.ajax({
type: "POST",
url: "NotificationsPage.aspx/UpdateEmailStatus",
data: "{'IDs':'" + values.toString() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json"
});
dgNotificatons.Refresh();
}
 
VB.Net code:
 
_
Public Shared Function UpdateEmailStatus(ByVal IDs As String) As Boolean
My code
End Function
 
it's working fine on my machine which have VS2010 but not on Client Machine that has VS2005.
ryanb31 at 12-Dec-12 8:49am
   
First off, if it's a webmethod in my experience you put that in an ASMX file, a web service, not in a page (aspx). But have you stepped through the code? What exactly is it doing and what is it not doing?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 248
1 Maciej Los 210
2 Sergey Alexandrovich Kryukov 160
3 Peter Leow 155
4 George Jonsson 135


Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid