Linked Questions

3 votes
1 answer
7k views

Possible Duplicate: How does StackOverflow generate its SEO-friendly URLs? I use Asp.net 4 and Routing I use this Route to create SEO friendly URLs for my website. Title url paramenter is a ...
GibboK's user avatar
  • 74.2k
0 votes
2 answers
2k views

Possible Duplicate: How does StackOverflow generate its SEO-friendly URLs? I made a simple form that contains the NAME and some other fields. When user submits form, the following route will be ...
šljaker's user avatar
  • 7,384
0 votes
1 answer
471 views

Possible Duplicate: How does StackOverflow generate its SEO-friendly URLs? I have an MVC3 site for which I would like to clean up the urls that contain spaces in the names of the products. ...
shuniar's user avatar
  • 2,632
226 votes
32 answers
392k views

I want to have a function to create slugs from Unicode strings, e.g. gen_slug('Andrés Cortez') should return andres-cortez. How should I do that?
Andres SK's user avatar
  • 11.1k
97 votes
5 answers
55k views

So I have searched and browsed through the slug tag on SO and only found two compelling solution: Slugify and Character Transliteration in C# How to convert super- or subscript to normal text in C# ...
chakrit's user avatar
  • 61.6k
32 votes
5 answers
12k views

How do you redirect a request in ASP.NET MVC to its correct canonical version if part of the URL is missing? Using Stack Overflow as an example, the site adds the question title to the end of its ...
wycleffsean's user avatar
  • 1,377
17 votes
12 answers
11k views

Take a string such as: In C#: How do I add "Quotes" around string in a comma delimited list of strings? and convert it to: in-c-how-do-i-add-quotes-around-string-in-a-comma-delimited-list-of-...
17 votes
2 answers
43k views

Possible Duplicate: How do I remove diacritics (accents) from a string in .NET? I have the following string áéíóú which I need to convert it to aeiou How can I achieve it? (I don't need to ...
BrunoLM's user avatar
  • 101k
8 votes
3 answers
25k views

I understand why this is happening but I need a work-around. I looked into some other questions on StackOverflow but none of them was helpful. I do not want disable input validation throughout the ...
Kassem's user avatar
  • 8,286
2 votes
4 answers
6k views

I am programming a blog and I want the URIs to be the title like the question title here in stackoverflow or like wordpress. What are the rules for sanitizing a URI? Is there an already made code in ...
the_drow's user avatar
  • 19.3k
3 votes
7 answers
5k views

What is the best way to clean a URL? I am looking for a URL like this what_is_the_best_headache_medication My current code public string CleanURL(string str) { str = str.Replace("!", ""); ...
user161433's user avatar
  • 4,539
9 votes
1 answer
8k views

I'm developing an ASP.NET MVC 3 blog application using VS10 and its asp.net development server, and today I encountered the "HTTP Error 400 - Bad Request" error when I request on a blog post with a ...
Ray's user avatar
  • 12.5k
3 votes
9 answers
3k views

Is there any .Net library to remove all problematic characters of a string and only leave alphanumeric, hyphen and underscore (or similar subset) in an intelligent way? This is for using in URLs, file ...
Pablo Fernandez's user avatar
7 votes
1 answer
3k views

The goal Create something that converts string to friendly string in Razor (I'm using C#/MVC4) The problem I have the following code: <li> <img src="~/Images/Products/@Model["...
Guilherme Oderdenge's user avatar
4 votes
1 answer
5k views

What is the proper way to encode URLs in anchor tags in an XHTML/Strict document: <a href="http://www.sit.com/page/<%= HttpUtility.UrlEncode("String that might contain unicode and dangerous ...
Darin Dimitrov's user avatar

15 30 50 per page