This is what I have in my code.... of course, the code in
GetCountOfProducts is temporary, just to see if the code works.  I
still get the same JS error "AjaxWebPartLibrary is undefined".  I would
appreciate any help you could offer.

namespace AjaxWebPartLibrary
{
    [ToolboxData("<{0}:WPProductCount
runat=server></{0}:WPProductCount>"),
            XmlRoot(Namespace="AjaxWebPartLibrary"),
            AjaxPro.AjaxNamespace("AjaxWebPartLibrary")]
    public class WPProductCount :
Microsoft.SharePoint.WebPartPages.WebPart
    {
        ...               ...               ...
        ...               ...               ...

        [AjaxPro.AjaxMethod()]
        public int GetCountOfProducts(string strProdType)
        {
            int mCountStn = 0;
            mCountStn = (new Random(10).Next(100));

            return mCountStn;
        }
        ...               ...               ...
        ...               ...               ...
        ...               ...               ...
        ...               ...               ...
    }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to