Articles in this section
Category / Section

How to properly run the copied code copied properly in an ASP.NET Web Forms General sample?

2 mins read

How to properly run the copied code copied properly in an ASP sample?

 

Description:

When a piece of code or sample is copied from the Syncfusion sample browser or UG documentation, it cannot be expected to work properly unless certain prerequisites and conditions are met.

 

Solution:

Prerequisites:

 

  • An ASP WebForms application with Syncfusion assemblies installed. Make sure that the required assemblies are included in the project, for ex: (for e.g., Syncfusion.EJ and Syncfusion.EJ.WEB).

 

  • Scripts and Theme files that are required by Syncfusion controls are referred in the Site.Master page. For ex: (for e.g., jQuery v1.10 or higher, ej.web.all.min.js , and ej.web.all.min.css).

 

If the aboveprevious requirements are met, then the code copied from the documentation or demo site and pasted in to the application and will work flawless.

 

Starting from scratch…...

 

When creating a new application to try out the code, check out our Getting started section in UG documentation: https://help.syncfusion.com/aspnet/getting-started.

 

Hint: For a quicker way, the sample creator which that is included in the Syncfusion Dashboard or Syncfusion Project templates available in the Visual Studio can be used.

For more information, refer to the following documentation:

Sample Creator -: https://help.syncfusion.com/extension/aspnet-extension/sample-creator

Project Templates -: https://help.syncfusion.com/extension/aspnet-extension/syncfusion-project-templates

 

Already have an ASP application……

 

For existing applications, check out the manual integration of Syncfusion controls section in the UG documentation: https://help.syncfusion.com/aspnet/getting-started#for-existing-applications.

Hint: For a quicker way, the project conversion utility included in the Syncfusion Dashboard can be used.

For more information, refer to the following documentation:

Project Conversion -: https://help.syncfusion.com/extension/aspnet-extension/project-conversion

 

Special Ccases:

 

Most of the sample codes from the Demo site will work well in any sample that has met the requirements mentioned abovepreviously. In some case where sample requires SQL dataSource or has a separate handler for certain operations, . These samples requires the following additional steps in order to make it work as expected.

Case 1:

For instance, consider the UploadBox sample, here the save and remove handlers are required for to performing save and remove operation respectively. Refer to the following demo link: https://asp.syncfusion.com/demos/web/uploadbox/defaultfunctionalities.aspx

Now a new handler file is needed to be created in the application and the handler code has toshould be pasted there.

Case 2:

Consider the SQL data binding sample in Menu control. Refer to the following Demo link: https://asp.syncfusion.com/demos/web/menu/databinding-sql.aspx

The above previous Demo requires connection string to be registered in the Web.Config file, and also requires the Northwind.mdf database file for the Data.

 

Similar toLike the above previous cases, the requirements can be varied from control to control. The above previous steps can help with almost every demo sample. Still if you couldno’tcould not get the sample working or need further any help, then contact us by creating a support ticket.


Note:

A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions. The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.

The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.

You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied