Gunnar Peipman's ASP.NET blog

Browse by Tags

All Tags » ASP.NET (RSS)
Avoiding exceptions using list controls
Avoiding excpetions is always a good practice because exceptions can hurt as when thay occure. They may cause also hard performance loss. Assigning selected value to list controls is one candidate for ArgumentOutOfRange exceptions. Often this problem...
Response.Redirect and Response.End
I discovered once myself automatically writing redirects like this: Response.Redirect( "otherpage.aspx" ); Response.End(); Well, what's the point writing code the way shown above if I can write same thing two ways as follows: Response.Redirect...
Posted: Jul 10 2008, 01:13 AM by DigiMortal | with 4 comment(s)
Filed under:
GridView and Invalid CurrentPageIndex Value Exception - .Net 3.5 Version
In my previous GridView entry titled as GridView and Invalid CurrentPageIndex Value Exception I made an example about how to corrigate paged GridView page index before grid is bound to data. Let's to id now .Net Framework 3.5 way. public static class...
Posted: Jun 12 2008, 09:12 AM by DigiMortal | with no comments
Filed under: ,
Basic ASP.NET SEO
SEO is popular topic nowadays and as ASP.NET is growing its popularity also as platform for public systems. Therefore SEO is going to be more important topic also for ASP.NET developers. The world of SEO is always in rapid change - can you imagine that...
Posted: Jun 10 2008, 02:41 PM by DigiMortal | with 7 comment(s)
Filed under: ,
GridView and Invalid CurrentPageIndex Value Exception
There are many developers who have faced the page index problems using GridView . Specially, if GridView supports deleting. Also one may face page index going out of range when there are multiple users managing same data. Here is my little advice about...
Using parent page properties in user control
There may be situations when we need to use parent page properties from user control. I know, this situations is a warning sign - there's something wrong with UI structure if user controls should know their parents. So, how to get correct reference to...
Filtering dropdown by value selected from another dropdown
This is the first posting of Beginners section of this blog. I will put here code samples that are not advanced enough to put them elsewhere in this blog. First example shows how to filter one dropdown list based on value selected from another. Let's...
ASP.NET Search Sitemaps - something for SEO
ASP.NET Futures introduced support for search engine sitemaps . This is content detection protocol introduced originally by Google and later accepted also by Microsoft and Yahoo! ASP.NET makes sitemaps generating easy for us and as a bonus their model...
Posted: May 13 2008, 02:29 AM by DigiMortal | with 7 comment(s)
Filed under: ,
Unity and singletons
I just putted up Unity behind my test project and had some troubles with singletons. There is some misleading information in documentation you should be aware of. I created one class and one interface, both in same project to save some time. namespace...
Posted: Apr 13 2008, 10:17 PM by DigiMortal | with no comments
Filed under: ,
SQL-DMO and searching from meta-data
Lately I faced the need to search for specified strings in all stored procedures in given database. I found SQL-DMO library very useful for it. So, ten minutes later I had a simple form that fits my needs perfectly. And some minutes later I had there...
More Posts Next page »