Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ajax .net 2.0 isuue

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
Code:
    [Ajax.AjaxMethod()] //errors here
    public string GetStates()
    {
    //do something    
    }

Error 1 The type or namespace name 'Ajax' could not be found (are you missing a using directive or an assembly

I have the ajaxtoolkit and system.web.extensions in my bin.

I also have this



Code:
  <system.web>
    <httpHandlers>
      <!-- Register the ajax handler -->
      <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
    </httpHandlers>
  </system.web>
in my web config.

any ideas why I am getting this error and what I can do to alleviate the issue
 
You should ask this in the .Net forum - it's more of a question pertaining to the .Net component and its syntax rather than an AJAX question, I'd say.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Well I originally asked in the c# forum. They sent me to the asp.net forum. the .net forum sent me here.
 
From your description above, it really does look like the problem you have is a .net one, rather than anything that happens after the code is delivered to the broser (given that there's no HTML or JS in your code above). I'd ask again in the .net forum.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
are you including the dll in the file ie. using AjaxControlToolkit.

there also alot more needed in you web config than that 1 line you posted.



check this site..!( prob have already)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top