In this article we will see how we can use the GridView control for this task. This approach still limits us to use a GridView, so after that we will see how we can make a Repeater (or any other control) that renders an HTML table to an excel file.
Clearing HTML tags and MS Word tags from text
It’s a pretty common need for web developers to get the plain text from HTML text. Also, there are cases where users paste text from MS Word. In this article I will post a few simple functions that help me manipulate text that contains HTML and MS Word tags.
ASP.NET and Ajax. All about update panels, web methods, page methods and jQuery
In this article, we will discuss what ASP.NET offers and a few tips on how to use them. Finally we will leave ASP.NET and see how we can achieve the same functionality with jQuery.
Handling server errors in asp.net
When we have a web application in production, there are times where some things go wrong and we have errors. By default we will get the “Yellow Screen of Death”. When the application runs in localhost, a lot of information comes up that is useful to find and squash the bug. But when our application […]
Detecting Client’s IP Address
It’s pretty common the need for a web application to be able to detect the I.P. address of a client. The I.P. address could be used either for statistic or authentication purposes. Knowing the IP address you could easily get information about the location of the client. Using Max Mind’s GeoIP Country and GeoIP City […]
Handling redirections, missing pages and server errors in asp.net
In this article we talk about the different HTTP status code and which of them are important SEO-wise. We also talk about a few features of the ASP.NET engine, so that we can make our website more SEO friendly by providing correct HTTP status codes to the search engines.
Export data to excel for non-latin characters
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 […]
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 […]