I have an ASP.NET WebForm application that has several WebMethod'sin C # that gets called through jQuery ajax. Everything works fine, except that I notice that when I look at the source on the page, I see something like this:
<script type="text/javascript">
var PageMethods = function() {
PageMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PageMethods.prototype = {
_get_path:function() {
var p = this.get_path();
if (p) return p;
else return PageMethods._staticInstance.get_path();},
CreateNewFranchise:function(name,firstName,lastName,address1,address2,streetSuffixId,city,stateId,county,zip,mainPhoneAreaCode,mainPhoneTypeId,mainPhonePrefix,mainPhoneSuffix,storeCode,storeKey,merchantId,corporateShop,franchiseNumber,succeededCallback, failedCallback, userContext) {
...
...
...
I am wondering if these lines are needed ///, and if not, is there a way to get ASP.NET to suppress them? For me, they look as if they are just markups of XML documentation, which is not necessary. Having about 8 WebMethod'sin my C #, these lines add up and I would like to filter them out if possible.
source
share