PageMethod Not Updating - Project update required to update

I am using the AJAX toolbox:

        <ajaxToolkit:CascadingDropDown ID="CategoryDDL_C" runat="server" TargetControlID="CategoryDDL"
        Category="Main"  PromptText="Please select a category"  LoadingText="[Loading...]"
        ServiceMethod="MainDDL" />

      

And for the Service method:

[WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static CascadingDropDownNameValue[] MainDDL(string knownCategoryValues, string category)
{
    CascadingDropDownNameValue[] CDDNV = new CascadingDropDownNameValue[1] ;
    CDDNV[0] = new CascadingDropDownNameValue(knownCategoryValues + "NO", "1");
    return CDDNV;
}

      

However, if I make code changes in the MainDDL method, this is not reflected in the page until I rebuild the website.

Any hints how I can update the page method without a complete rebuild?

0


source to share


2 answers


Web application projects need to be recompiled when the code files change, website projects don't. Who is yours?



+1


source


Not sure if this is some kind of bug or some weird caching issue, but I've encountered the same in the past. This isn't surprisingly convenient, but instead of rebuilding the site, try saving the web.config file (you don't need to change anything).



0


source







All Articles