A common feature in applications is to export data in excel. With .NET it is pretty simple with the use of the Microsoft Excel Object Library. Sadly, in asp.net this is not available in medium trust. The alternative in a web application is to render the data in a HTML table and send it to […]
Archives for 2011
Detecting bots and mobile devices in asp.net
There are a lot of different entities crawling around your web applications in the wild, including web browsers, web crawlers, web spiders, web bots, and automated scripts. Determining the difference between a regular user visiting your site and an automated web bot can help aid you with more accurately recording statistics, customizing content, and optimizing […]
ASP.NET: jQuery and ClientID
Every ASP.NET control has the ID property, which is not the HTML id attribute. The HTML id attribute is automatically generated by the ASP.NET engine. Since javascript has become a must-use tool, this behavior in ASP.NET can cause some hassle to the developers. There are a couple of ways to handle this situation. The most […]
What if Visual Studio had Achievements?
What if Visual Studio supported achievements, just like games on Steam, Xbox or PS3? Bragging to your coworkers about which one you’ve just unlocked, imagine that! Here’s a little proposed list for some of them. .NET / C# flavored, of course
Backup the data from your Sql Server
An often requirement in a CMS is the user to be able to backup the database of its CMS installation. If you are using MS Sql Server there is a simple command that creates a .bak file of your database. BACKUP DATABASE [mydb] TO DISK = N'<bak_file_path>’ Restoring the database is also simple with the […]