ASP.NET - use ajax control in webform

Asked By Nitish Gupta
24-Jul-11 11:03 PM
hello..
i am working in a project in asp.net c# using visual studio 2008..

i want to use ajax controls in my webform ...i have install ajax control toolkit...all controls are added in toolkit..but the controls was not drag and drop..and also showing following  error...
This control cannot be displayed because its TagPrefix is not registered in this webform...

i am sure i was missing something..please tell me..to handle this problem..
thanx in advance..
  Vickey F replied to Nitish Gupta
24-Jul-11 11:25 PM

Just follow these-

1. Open you bin Folder in you project add paste AjaxControlToolkit dll to this folder.

2. Add this line in top of the page, where you are using Ajax controls-

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

3. Copy the assembly in the GAC.

location-

C:\WINDOWS\assembly

Hope this will help you.

  Web Star replied to Nitish Gupta
24-Jul-11 11:37 PM
you can use ajax control tool kit in two way one is just add referance of AjaxControlToolkit dll in your application and than register assembly on your webform where you want to use it
<%@ Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit" TagPrefix="ajaxControl" %>
and other way is you can install it and drag & drop from toolkit as follows
http://weblogs.asp.net/nannettethacker/archive/2008/02/07/ajax-control-tookit-installation-in-visual-web-developer.aspx
http://programming.top54u.com/post/How-to-install-AJAX-Control-Toolkit.aspx
  TSN ... replied to Nitish Gupta
25-Jul-11 12:10 AM
hi..
the problem is her you have not registered the controls in web page

take a look at the red colored lines and add those in your page..

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Using the AJAX Control Toolkit in ASP.NET 3.5</title>
</head>
<body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

Password: <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" /><br />
<cc1:PasswordStrength ID="TextBox1_PasswordStrength" runat="server"
Enabled="True" TargetControlID="TextBox1">
</cc1:PasswordStrength>
<cc1:DropShadowExtender ID="TextBox1_DropShadowExtender" runat="server"
Enabled="True" TargetControlID="TextBox1">
</cc1:DropShadowExtender>
<br />
<br />
<cc1:Accordion ID="Accordion1" runat="server" RequireOpenedPane="false">
<Panes>
<cc1:AccordionPane ID="AccPane1" runat="server">
<Header>This is Pane 1.</Header>
<Content><br />This is pane one content.</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccPane2" runat="server">
<Header>This is Pane 2.</Header>
<Content><br />This is pane two content.</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccPane3" runat="server">
<Header>This is Pane 3.</Header>
<Content><br />This is pane three content.</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
</form>

</body>
</html>


you have not added that red colored line in your page add that first...
  Bala Marish replied to Nitish Gupta
25-Jul-11 12:36 AM



refer the following site

http://www.mbrock.com/work/asp-net/44-installing-the-ajax-control-toolkit-in-visual-studio-2008
  Sreekumar P replied to Nitish Gupta
25-Jul-11 01:27 AM
The 2.0 project needs:
  1. <%@ Register %>'s on the pages using AJAX Control Toolkit controls or a Web.config entry in <configuration/system.web/pages/controls>.

    Example:

    <%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=1.0.20229.20821, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

    Example:

    <configuration>
      <system.web>
      <pages>
        <controls>
        <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=1.0.20229.20821, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
        </controls>
      </pages>
      </system.web>
    </configuration>

  2. A reference to the AjaxControlToolkit assembly if you're using a Web Application Project.

  Radhika roy replied to Nitish Gupta
25-Jul-11 09:58 AM
The error is occuring because you have not configure ajax in web.config file :

Add this lines in your web.config


<controls>
<add tagPrefix="cc1" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, 
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="cc1"/>


</controls>

Hope this will help you.
Create New Account
help
that host sites but which don't run the service applications) exist in relation to application servers? Are the SQL servers clustered (or mirrored)? Is the farm distributed across multiple boxes The following are the server and client recommendations for running PerformancePoint. Server Recommendations (WFE or Application Server) Hardware Software • Two, Dual-Core 64-bit CPUs (x64) • 4 GB RAM • 5 GB going to assume that SharePoint has been installed and that each web front end and application server (as well as any other server attached to the farm) has undergone the setup to the Central Administration default page and requires that the administrator create the default web application, the default site collection, and activate any service applications. For the sake of this deployment is already running but not quite deployed. SharePointConfigurationWizard_thumb_1_4B084905 SharePoint Configuration Wizard Creating a SharePoint Web Application After the SharePoint install has been run, but before you can really do anything with the product, you must create a default web application. ManageWebApplicationsinSharePointcrop_thumb_4B084905 Manage Web Applications in SharePoint This is the equivalent of creating a new IIS site. The first web application that you create on the farm will likely be the default web site on the instantiated by the secure claims service) and passed between the client, the WFE, and the application server, in order to authenticate the user. In this example, I will use classic mode
ajaxToolkit , AccordionPane i m using a jaxToolkit : AccordionPane with 5 pane. i want to preserve selected pane index on each post back . is it posible ?? i want this because i m using AccordionPane on master page and there are link buttons in each pane to navigate diff. contant page . now when i expand 3rd pane and click on any link than masterpage reloaded and selected index property of AccordionPane change currentPane.header.className = ( this ._headerSelectedCssClass = = '' ) ? this ._headerCssClass : this ._headerSelectedCssClass; } this ._selectedIndex = index; / / Save the selected pane to preserve on postbacks this .set_ClientState( this ._selectedIndex); / / Animate the pane changes if required if (animate) { this ._changePanes(lastIndex); } / / Raise the selectedIndexChanged event and the propertyChanged is / / not discoverable. this .raiseSelectedIndexChanged( new AjaxControlToolkit.AccordionSelectedIndexChangeEventArgs(lastIndex, index)); this .raisePropertyChanged( 'SelectedIndex' ); }, http: / / forums.asp.net / t / 1262353.aspx look below and ask your questions using System; using System.Data; using
Tapped Pane in asp.net How Can?? I Create Tabbed PAne in asp.net Help You can use Jquery Tabs. After adding jquery ui plugin you can use jquery TabControl.aspx Hello Friend, Here is simple and step by step process to create tab pane in your web application Step1 / / Here Dropped a Menu control onto my page < asp:Menu ID = " Menu1" Width = " 168px
error in ajax !! hi. everytime i am running my application, i am getting this error "Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll." how should i solve this problem??. . pls server"> < / asp:ScriptManager> to this: <asp:ToolkitScriptManager ID = "toolkitScriptMaster" runat = "server"> < / asp:ToolkitScriptManager> Hi Gautam, <ajax:ToolkitScriptManager ID = "somename" runat = "server" EnablePartialRendering = "true" CombineScripts = "false" > < / ajax:ToolkitScriptManager> Use the above code