Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a url www.abc.com/blogs/11112012/blogtitle.aspx
from my xml file i am getting blogs/11112012/blogtitle.aspx

i want the blog date = 11112012 as the blogpostid because i want to use it as request.querystring . Anyone help me out
Posted

1 solution

try this
C#
string url = "blogs/11112012/blogtitle.aspx";
string blogdate = url.split('/')[1];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900