Prerequisites:

Web Server: Windows XP/Vista/Windows 7/Windows Server 2003/2008 with ASP.NET 2.0 or newer and IIS 6.0 or newer
Database Server: SQL Server 2005/2008

Check you have the host name and credentials with DBO access to the database.


Installation:

Remeber IIS has to have Full Control permissions. On the Security tab check that the appropriate account has Full Control permissions to your site folder (for Windows XP is the ASPNET account and for other Windows editions is the NETWORK SERVICE account).


Download the AllNewsManager control INSTALL package (the zip file) from the Download page on AllNewsManager.NET. Extract the contents of the ZIP file to your site folder (C:\sitefolder).


Now you need to configure AllNewsManager so it can connect to your database. Open C:\sitefolder\web.config and add a new connection string (find in web.config <connectionStrings>).

If you are using SQLExpress:
<add name="anmcs" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=dbname;Integrated Security=True" providerName="System.Data.SqlClient"/>

If you are using SqlServer:
<add name="anmcs" connectionString="Server=servername;Database=dbname;uid=dbpsw;pwd=dbpsw;" providerName="System.Data.SqlClient"/>



in web.config <controls> section add this:
<add src="~/Controls/Default.ascx" tagName="allnewsmanager" tagPrefix="anm" />

example:
<pages>
  <controls>
     <add src="~/Controls/Default.ascx" tagName="allnewsmanager" tagPrefix="anm" />
  </controls>
</pages>



The final step is to launch the AllNewsManager wizard. Launch your preferred web browser and navigate to http://localhost/yoursite/anminstall.aspx (adjust the URL if you named the Virtual Directory in a different way).



Now to add the control in a page of your website, you need to add on top of the page:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


and in the page (where you want to insert the control):
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <anm:allnewsmanager ID="anm1" runat="server" /> 

Last edited Jun 23, 2010 at 7:41 PM by Max979, version 1

Comments

No comments yet.