Hi,
I am supporting a project which is using WebMethods.
The code is very simple:
default.aspx web form has 2 methods:
[PageMethod(true)]
protected void SearchCompany()
{
.....some code here
}
[PageMethod]
protected void SearchThirdPartyCompany([ParamRequired]
[ParamName("CompanyID")] long companyID)
{
.....some code here
}
There is a web user control on this page with several links.
- One link is using url to redirect to SearchThirdPartyCompany method.
- Other links are posting back the page (which I expected to go to
SearchCompany method by default).
Everything is working fine (means SearchCompany method is executed)
before the link with the url to SearchThirdPartyCompany is used. After
that I never was able to get to SearchCompany default method - it
always redirects to SearchThirdPartyCompany.
I'll be very thankful if you can give me an idea of what I am doing
worng and how that can be fixed.
Regards,
Katerina