Hi Friends


URL: http://localhost/sitename/page=name

i want to print name in my page. like

You Are Here: Home » name

Please can any one help me.

Recommended Answers

All 2 Replies

I was going to say you could save yourself some time with a SiteMapPath control but I'm not 100% sure the SiteMap will differentiate between parameterised URLs, you could always give it a go though and see. Click Here for the microsoft page on the SiteMapPath control

I'm sure you're storing the name of your sites in a variable called "page" so echo its value. That is the first solution.

The second solution is to get the URL and break it down and get whatever name appears after "name=" then echo it or optionally, store its value in a variable then echo it.

I hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.