|
|
mberseth
Stories submitted by friends of mberseth
|
|
published 2 days, 5 hours ago, submitted by
janko
2 days, 17 hours ago
jankoatwarpspeed.com — Let's say you are browsing a CSS gallery and you want to check out some new and beautiful website designs. And you are of course interested in some details - for example, which category design belongs to, what's the rating or whatsoever. This information could be rendered below thumbnail, but there are other, more attractive ways of displaying additional data. In this article we'll see how to improve image gallery with a simple trick. read more...
1 comment
|
category: Other | Views: 260
|
|
tags:
jQuery, CSS | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
3 days, 8 hours ago
jankoatwarpspeed.com — Yesterday, Google launched a new browser, Google Chrome. I download it and tried it of course, but aside from my impressions there is a big question I asked myself. Will this be a headache for web developers? read more...
add a comment
|
category: Other | Views: 3
|
|
| tag it
Everyones tags: | Your tags: | |
No tags
|
|
|
|
|
submitted by
kayos
8 days, 10 hours ago
gridviewguy.com — Matt Berseth wrote a very interesting article on “Bulk Inserting Data Using the ListView Control". The idea is to give the user an Excel like interface where they can edit the rows with custom data and finally click the update button to persist the data in the database. Matt’s solution was great but lacks a very important detail. There was no way to know what rows were changed by the user. Matt took the road to update all the rows whether they were changed or not. In this article we are going to take a look at an alternative method of updating only the changed rows. read more...
add a comment
|
category: AJAX | Views: 6
|
|
tags:
GridView, ASP.NET, AJAX | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
9 days, 4 hours ago
jankoatwarpspeed.com — This is the second part of best summer 2008 articles, but this time focus is on web design. Again, there was a lot of great articles, tutorials and resources but I wanted to keep this list as short as possible. So these are the best of the best, at least by my opinion. read more...
add a comment
|
category: Other | Views: 9
|
|
| tag it
Everyones tags: | Your tags: | |
No tags
|
|
|
|
|
submitted by
janko
9 days, 4 hours ago
jankoatwarpspeed.com — The summer is near its end and I think it's a good time to see what was hot during past three months. There was enormous number of great articles which made me spend a lot of time selecting the best of the best. In this article I'll focus on web development, such as jQuery, ASP.NET, SEO and in the next article we'll see what was hot in web design.
read more...
add a comment
|
category: ASP.NET | Views: 9
|
|
tags:
ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
kayos
10 days, 13 hours ago
blog.reamped.net — In a recent situation I was trying to pull some aggregates out of a DataTable using LINQ. I needed to get the rows of the DataTable with a Distinct clause, but my aggregates would be on other columns of the row. read more...
add a comment
|
category: Linq | Views: 22
|
|
tags:
C#, LINQ | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 12 days, 6 hours ago, submitted by
janko
12 days, 13 hours ago
jankoatwarpspeed.com —
So, you hate such URLs
Or you'll hate it after you realize how easy it is to make it nicer. Besides all, URL rewriting will improve your rankings on search engines. Search engines like Google will easily index your "static" URLs, instead of dynamic URLs.
There are several ways to accomplish URL Rewriting. I'll explain how to do this by using HttpModule and how to overcome the postback bug that is the outcome of URL rewriting.
Suppose you have a content management system that stores entire pages in the database. So you can have a Home page, and Home page can have sections Products and Services, and each one of these can have their own child pages or sections, and so on.
So we want dynamic URL like this: Default.aspx?SectionID=5&ItemID=22 to look like /catalogue/furniture/chairs/chair5.aspx or whatever the business logic requirement is.
In the example in this article I will not use a database in order to keep it simple, but you imagine there is a database that keeps the URL for each page. I'll use hard-coded Dictionary that will keep some sample pages.
Note: You can download the full code in the attachment.
First, we'll make a data access object that will search the database for requested url and return its dynamic url. These are the methods in SampleDAO that will simulate the database and getting the url from there:
public string GetRealPath(string requestedUrl)
{
string path = "";
Dictionary<string, string> paths = GetPathsFromDatabase();
if (paths.ContainsKey(requestedUrl))
paths.TryGetValue(requestedUrl, out path);
return path;
}
private static Dictionary<string, string> GetPathsFromDatabase()
{
Dictionary<string, string> paths = new Dictionary<string, string>();
paths.Add("/URLRewrite/FirstSection/Default.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=1");
paths.Add("/URLRewrite/SecondSection/Default.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=2");
paths.Add("/URLRewrite/FirstSection/Page1.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=1&Item=1");
paths.Add("/URLRewrite/FirstSection/Page2.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=1&Item=2");
paths.Add("/URLRewrite/SecondSection/Page1.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=2&Item=1");
paths.Add("/URLRewrite/SecondSection/SubSection/AnotherOne/Page5.aspx".ToLower(), "/URLRewrite/Default.aspx?SectionID=2&Item=5");
paths.Add("/URLRewrite/Default.aspx".ToLo read more...
3 comments
|
category: ASP.NET | Views: 263
|
|
tags:
ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 17 days, 9 hours ago, submitted by
gt1329a
17 days, 12 hours ago
encosia.com — An in-depth example of using jQuery to build client-side paging, including progress indicators, to page into any server side data source that can be JSON serialized by ASP.NET AJAX. read more...
add a comment
|
category: AJAX | Views: 353
|
|
tags:
jQuery, JSON, Encosia, AJAX, Paging | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
18 days, 3 hours ago
jankoatwarpspeed.com — After four months of blogging Janko At Warp Speed broke the boundary of 1000 subscribers. Another milestone that this blog celebrates is 200,000+ visits! One thing is for sure - this couldn't be done without your comments, emails, constructive criticism and all your help. THANK YOU! read more...
add a comment
|
category: ASP.NET | Views: 10
|
|
tags:
ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|

Sponsored Link: www.carlist.ie
Ads via The Lounge
|