If i use the page classes for the Ajax methods what is the proper code for this configuration line. What is the namespace and the Assembly?
 
thx
 
On 9/18/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:

In type you have to put in the name of the class, see example:

namespace MyNamespace
{
   public class MyClass
   {
     [AjaxMethod()]
     public static bool IsTrue()
     {
       return true;
     }
   }
}

Now, if you put this C# file in App_Code folder you should add
following line in web.config :

<add type="MyNamespace.MyClass,App_Code" path="xyz"/>

"xyz" can be something you want to choose, it is a place holder for
the real type, it must be unique.

That's all...!

Let me know if you need further help.

Regards,
Michael







On 9/18/06, Henrik Stidsen <[EMAIL PROTECTED]> wrote:
>
> Michael Schwarz skrev:
>
> > in the download package you will find an example web.config. There you
> > will find urlNamespaceMappings, add there your class with a
> > personalized path.
>
> I am using the web.config from the installationpackage - the problem
> is, what to put in the type and path parameters of the
> urlNamespaceMappings...
>
> <add type="App_Code" path="/MyAjax"/> ?
> <add type="AjaxPro,App_Code" path="MyAjax"/> ?
>
> Tried different configurations, none worked...
>
>
> >
>


--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
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/

The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to