|
|
janko
janko
 |
|
Stories submitted by janko
|
|
published 14 days, 17 hours ago, submitted by
janko
15 days ago
jankoatwarpspeed.com — Did you ever think about it? Someone types the message, clicks on send and gets the error message like "Something went wrong. Sorry...". Ok, what now? How TF can I send you a message? Read in this article. read more...
1 comment
|
category: Tips & Tricks | Views: 246
|
|
tags:
Tips | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
23 days, 14 hours ago
jankoatwarpspeed.com — You know how it goes. Designer creates the design templates or whatever and then developers have their say. Sometimes, it happens that they mess up something. Among many design issues caused by developers, one in particular really drives me me nuts - incorrect usage of <br/> element. I often find that <br/> element is being used to create layout. And this is simply - incorrect. read more...
add a comment
|
category: Other | Views: 10
|
|
| tag it
Everyones tags: | Your tags: | |
No tags
|
|
|
|
|
published 28 days, 19 hours ago, submitted by
janko
1 month ago
jankoatwarpspeed.com — There were a lot of high quality articles dawned in my Google Reader last month. Chris Spooner (Blog.SpoonGraphics) posted two awesome tutorials on how to create a modern blog design. Angie and Robert Bowen (Arbenitng) launched Social Media Directory for Designers. Dave Ward (Encosia) shared & of his favorite jQuery plugins for use with ASAP.NET. I published Handycons, free hand-drawn social media icon set, and I'm working on Handycons II. read more...
add a comment
|
category: Other | Views: 501
|
|
tags:
Tips | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
1 month, 4 days ago
jankoatwarpspeed.com — Flag icons are pretty (especially fam-fam-fam icon set). But flag represents a country, not a language. Isn't it obvious? No, it's obviously not! While I surfed the web yesterday I found several websites that use flags for language choice. Here are a few reasons why you'll never want to do that. read more...
add a comment
|
category: Other | Views: 10
|
|
| tag it
Everyones tags: | Your tags: | |
No tags
|
|
|
|
|
published 2 months, 27 days ago, submitted by
janko
2 months, 28 days 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: 350
|
|
tags:
CSS, jQuery | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
2 months, 28 days 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
janko
3 months, 3 days 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: 10
|
|
| tag it
Everyones tags: | Your tags: | |
No tags
|
|
|
|
|
submitted by
janko
3 months, 3 days 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: | |
|
|
|
|
|
published 3 months, 6 days ago, submitted by
janko
3 months, 6 days 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: 274
|
|
tags:
ReadIt, ASP.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
3 months, 12 days 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: | |
|
|
|
|
|
published 3 months, 12 days ago, submitted by
janko
3 months, 13 days ago
jankoatwarpspeed.com — As you probably know by now I use BlogEngine.NET as my blogging platform. In order to become more powerful engine I suggest thirteen (more or less) common features, like ability to unsubscribe from comment notifications, group comments&trackbacks and much more. read more...
add a comment
|
category: Open Source | Views: 235
|
|
tags:
ASP.NET, BlogEngine.NET, OpenSource | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 3 months, 26 days ago, submitted by
janko
3 months, 27 days ago
jankoatwarpspeed.com — If you have wild spirit and you like nature then this might be a right theme for your blog. Wild Nature reflects pure, untouched nature washed in rain. Shades of green dominate the theme, but a touch of yellow and light brown make it looks more live. Take a look at the screenshots and download it for your blog. read more...
add a comment
|
category: Other | Views: 232
|
|
tags:
BlogEngine.NET, Theme | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 4 months, 3 days ago, submitted by
janko
4 months, 4 days ago
jankoatwarpspeed.com — We're all trying to build an effective and good looking web forms. But there are always a new challenges. If you read my previous articles on how to build a better web forms, you could have noticed there are so many details about it. This article will show you how you can make a usual, boring web forms more effective and exciting with just a few simple CSS tricks. read more...
add a comment
|
category: Other | Views: 635
|
|
tags:
jQuery, CSS | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
published 4 months, 9 days ago, submitted by
janko
4 months, 13 days ago
jankoatwarpspeed.com — Continuous scrolling is very interesting pattern. If I would have to describe it in short I would say that new items are being loaded while you scroll down the content. It is a completely opposite pattern to a pagination. In this article, you will learn about this pattern and see how it can be implemented using JavaScript and ASP.NET. read more...
add a comment
|
category: AJAX | Views: 242
|
|
tags:
JavaScript, ASP.NET, AJAX | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
4 months, 22 days ago
jankoatwarpspeed.com — When creating a web form you have to make a functional and visually aligned layout. The simplest way to do this is to place elements in a table or by fixing width of labels. But what if you don't want to use tables? Or what if you don't know how long labels could be because you are developing an application that has many localized strings? This article will show you how to justify elements with a simple jQuery function. read more...
add a comment
|
category: Other | Views: 41
|
|
tags:
CSS, jQuery | tag it
Everyones tags: | Your tags: | |
|
|
|
|
|
submitted by
janko
4 months, 24 days ago
jankoatwarpspeed.com — Few days ago, I published a Newspaper theme for BlogEngine.NET which can be applied to all BlogEngine.NET versions below 1.4. This update has a support for widgets - a new feature in BlogEngine.NET version 1.4. read more...
add a comment
|
category: Other | Views: 14
|
|
tags:
Themes, BlogEngine.NET | tag it
Everyones tags: | Your tags: | |
|
|
|
|

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