Dot Net Solvents
Thursday, 8 July 2010
PAGENAMEFROMURL
private
string
PageNameFromURL
(
string
url
)
{
string
output
=
String
.
Empty
;
if
(
url.
Length
>
0
)
{
String
[
]
arrayURL
=
url.
Split
(
'/'
)
;
output
=
arrayURL
[
arrayURL.
Length
-
1
]
.
ToString
(
)
;
}
return
output;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment