CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 How to use a Code Charge component within Microsoft Visual Studio 2003

Print topic Send  topic

Author Message
rogersw

Posts: 16
Posted: 10/12/2006, 1:07 PM


This information applies to ASP.net in the Microsoft Visual Studio.

1. Build the appropriate page functionality within the CodeCharge Studio.

2. Within Visual Studio, set a reference to the Code Charge assembly.

3. Merge the application settings from the CodeCharge project into the Visual Studio project. This includes web.config elements such appSettings and configSections.

4. Merge Global.asax routines such as Application_Start and Application_BeginRequest.

5. Copy the markup from the CodeCharge project into the Visual Studio project. The CodeCharge functionality is typically defined by web controls, its programatic logic is in the associated assembly that we chose in step 1.

6. In the page directives add the appropriate values for Import namespace and Register Tagprefix. Add a page directive for Inherit. There will be no associated code behind file because it is compiled into the CodeCharge assembly. Page directive should also have the AutoEventWireUp = false.

7. It's a good idea to generate this page beforehand and then add it into the Visual Studio project. If you paste the markup into a page within Visual Studio, it may sometimes add invalid tag attributes which cause the CodeCharge assembly to throw a runtime error. For example, I pasted in some markup for a grid control that uses sort headers and page navigation. The Visual Studio arbitrarily inserted default ID and Name attributes that happen to be invalid for those web controls.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.