Hellow friends!

I am new to ASP.net.

I am developing my college major project in Asp.net 2008.

How should I use Ajax controls in my web project?

I added the ASP.NET Ajax Library 0911 Beta to my VWD. The controls are visible, but they dont work properly on runtime. Controls like "rounded corner", etc just dont show any change on the webpage.

I also have a Ajax control toolkit sample website. And all the controls work fine in it.

What do I need to do?

Please tell me detailed procedure as I am new to it.


Thanks! :)

Dani AI

Generated

Thread summary and a compact troubleshooting checklist that complements the replies from , and .

The toolbox showing controls but no runtime effect usually means scripts or embedded resources are not being loaded, or the toolkit version does not match the project runtime. Common root causes are: the AjaxControlToolkit assembly not present or mismatched, missing/incorrect ScriptManager placement, JavaScript errors preventing Microsoft AJAX from running, or resource handlers (WebResource.axd / ScriptResource.axd) being blocked.

Steps to verify and fix

  1. Confirm assembly and registration

    • The project's References should include the correct AjaxControlToolkit DLL and that DLL must be copied to the project's Bin for runtime. If page-level registration is used, confirm the <%@ Register %> directive or equivalent entries in web.config.
  2. Script manager and order

    • A ScriptManager (or ToolkitScriptManager when available) must appear on the page or master page before any toolkit controls. Place it at the top of the form so the Microsoft AJAX core loads first.
  3. Check client-side errors and resources

    • Use the browser developer tools (F12): Network tab for requests to WebResource.axd / ScriptResource.axd and Console for errors such as "Sys is undefined". 404/500 on those handlers or JS errors indicate the toolkit scripts did not load.
  4. Isolate the problem

    • Create a minimal test page with only ScriptManager + one extender/control. If the minimal page works, incrementally add other markup and scripts to find the conflict.
  5. Version and deployment checks

    • Match the toolkit build to the project's target .NET framework (older toolkits expect .NET 3.5/SP1). Prefer a stable toolkit release (install via NuGet when possible). Clear browser cache, delete Bin contents, rebuild and redeploy.

Quick example (minimal page)

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />

<asp:Panel ID="p1" runat="server">
  <ajaxToolkit:RoundedCornersExtender TargetControlID="p1" CornerRadius="8" runat="server" />
  <asp:Label ID="lbl1" runat="server" Text="Rounded panel"></asp:Label>
</asp:Panel>

Additional notes: compare the working sample site's Bin and web.config to the project to spot missing handlers or resources. For simple rounded corners, modern CSS (border-radius) is a lighter alternative to extenders.

Recommended Answers

All 2 Replies

>The controls are visible, but they dont work properly on runtime. Controls like "rounded corner", etc just dont show any change on the webpage.

You have to add some sort of graphics files.

>What do I need to do?

Read documentation.

You can start using ajax and the ajaxcontroltoolkit.
Juz add Script Manager(everytime your are using it) and the panel itself depend on what ajax function you need.

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.