[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

AjaxPro beginner

HI,
I went to http://www.ajaxpro.info/ andf follow their instructions to use ajax.

I downloaded the the ajaxpro.dll & i added as a reference to my web project.
Then I added this part to my webconfig

<location path="ajaxpro">
            <system.web>
                  <httpHandlers>
                        <add verb="*" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro"/>
                  </httpHandlers>
                  
            </system.web>
</location>

Now when I tried to add   [AjaxPro.AjaxMethod]  before any method I get a "identifier expected" error from the compiler.
Anyone has an idea why I'm getting this error?
I'm using visual studio 2003 & coding in VB.

Thanks,
Chicho
0
chicho12
Asked:
chicho12
1 Solution
 
Bob LearnedCommented:
VB.NET attributes look like this:

< AjaxPro.AjaxMethod> _
Public Sub TestThis()
End Sub

That was a C# attribute.

Bob
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now