Litium Docs
  • Documentation
    • Release notes
    • What's new
    • Upgrading to Litium 7
    • Architecture
    • Data modelling
    • Get started
    • Areas
    • Litium Accelerator
    • Add-ons
    • Previous versions
  • Download
  • Add-ons
  • Support
    • Request license
    • Litium policies
  • More
    • Best practices
    • Training
  • Log in
  • More
  • Best practices
    • Tips & tricks
      • Response.Redirect instead of Server.Transfer*
      • Style sheet and javascript bundling
      • Control panel pages
      • How to investigate memory dumps to debug .NET applications
      • Update the BaseTemplate.cs file for ajax requests
      • Restore DB from .mdf and .ldf files
    • Integrate
    • Deploy
  • Training

Tips & tricks

Here are some useful tips when developing on the Litium platform.

Response.Redirect instead of Server.Transfer*

Server.Transfer* is not allowed in the same request as login is executed, instead you should use Response.Redirect to redirect the user to the correct page.

Style sheet and javascript bundling

To improve performance for users it's important to optimize all possible requests to the site. In Litium Studio this is prepared with bundling for style sheet and javascript to avoid multiple requests to the server.

Control panel pages

Modify or adding your own sections with pages in the control panel menu is all done in web.config.

Copy .lic files to the bin catalog when building a site

When building a site the .lic files (for example ComponentArt files) are not always copied into the bin catalog. This is easily fixed by adding the following rows into your web.config (from Litium Studio 4.7 this is already added in the download package).

How to investigate memory dumps to debug .NET applications

Sometimes a website fails and there are no errors or event log posts that can help you understand why.

Update the BaseTemplate.cs file for ajax requests

When a page, for example the search result page, does an ajax request the javascript that triggers the request is adding new headers.

Restore DB from .mdf and .ldf files

Sql code script and reference to restore a database using .mdf and .ldf files.
Litium Docs


About Litium

Join the Litium team


Support

Contact us