Is there any need to install Ajax extantion and toolkit for visual stdio 2008
Plz reply i m facing much trouble


thanx

Is there a need... NO.

But the toolkit and extension provides a lot of Ajax functionality to your web applications.

I utilize the functionality provided by the toolkit in just about every application that I develop in ASP.net. I highly recommend it is very easy to learn and enhances your users experience greatly.

Thanks for response.
If there is no need to install this then why there is no any Ajax enabled templet when i create new website.
And if i working with my old project then in this these controls are not working.
eg. there is no effect of rounded corner extender on panel.

thanks

For the AJAX Toolkit you do need to install the dll. You can drag the DLL into your toolbox and have it populate the items. In your project you will want to right click > references then browse to the appropriate .dll (ajaxtoolkit.dll) and then Visual Studio will load this into your APP_BIN folder for you.

For exitsting projects it is easy to add the functionality needed by simply adding a ToolkitScriptManager to the page, then encapsulating your ajax modules in an update panel (which is built into the visual studio AJAX section [asp:updatepanel]

ex:

<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Panel ID="roundMe" BackColor="Blue" runat="server">
          HELLO THERE ROUNDED CORNERS!
         </asp:Panel>

        <asp:RoundedCornersExtender ID="RoundedCornersExtender1" 
          Radius="6" Corners="All"   TargetControlID="roundMe" runat="server">
        </asp:RoundedCornersExtender>
    
    </ContentTemplate>
    </asp:UpdatePanel>

Thanks michael
but i getting an error in your code
"Update panel does not have a public property named Content templat"

Interesting.. Have you added references to the ajaxtoolkit? what version of .net are you running?

yup i have added references to the ajax toolkit. i am using .net framework3.5 an working on visual stdio2008

Make sure that your code is inside the ContentTemplate :

<contentTemplate>
CONTROLS GO HERE
</contentTemplate>

Thanks Michael
the code is inside the Contenttemplats i exactly used your code this time
if there is any need to configur web.config file then tell
thanks

I do not ever need to do anything inside of the web.config file for this. Looking through my files it seems as though you don't need any additional configuration but its possible that visual studio handles any additions needed once you create the reference from the IDE.

No you should not have to add anything to web.config. If there are additions required then visual studio has always taken care of them for me, but in reviewing a few config files from my past projects that use this there is nothing referencing the ajax frameworks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.