Generate Page URL Name for CMS, Blogs Application
Hi All,
To give the Name to the Page can be handeled by many ways like
Using GUID (Issue- Cant identify exactly while browsing through pages)
Using Session (Issue-Same as above)
Using Page Title provided in Text Field (We will see this)
We are going to implement the scenario 3. We will first see what are our constraints for page url name.
It should be only Alphanumeric enabled like – About-Us.aspx
No other character should include in the page name like – %,@,$ etc
Its just about Regular Expression to identify the alphanumeric characters. The reqular expression is in System.Text.RegularExpressions namespace.
Regex.Replace(strInput, “[^\\w]“, “”);
If you give the page Title to – About % US #$ output will be AboutUs.aspx
Happy Coding


on April 30th, 2009 at 12:35 am
Thank you for sharing with us the different ways to give the Name to the Page.
on December 2nd, 2009 at 12:15 pm
winsome answers i like it
on December 20th, 2009 at 5:10 pm
I somehow dont agree with a few things, but its great anyways.
on December 30th, 2009 at 1:24 pm
Good Day!!! http://www.pritambaldota.com is one of the best informational websites of its kind. I take advantage of reading it every day. Keep it that way.
on January 2nd, 2010 at 5:29 pm
Thankz for the info!
on January 10th, 2010 at 2:50 pm
Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!
on January 12th, 2010 at 12:21 am
likeable answers i like it
on February 12th, 2010 at 5:30 am
I am to a great extent impressed with the article I have just read. I wish the author of http://www.pritambaldota.com can continue to provide so much useful information and unforgettable experience to http://www.pritambaldota.com readers. There is not much to tell except the following universal truth: triangular sandwiches always taste better I will be back.
on August 13th, 2010 at 12:36 am
Great article Thank
you so much!
on August 24th, 2010 at 5:07 am
I am just making a blog related to this. If you allow, I would like to use some of your content. And with full refernce of course. Thanks in advance.
- Andre
on September 7th, 2010 at 3:22 am
Hi Andre
As far as you are mentioning reference I dont have problem. Please reply your post where you mentioned the reference.
Thanks