Click here to Skip to main content
15,885,069 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have a page which lists stores,malls of individual cities.
I have used the list of cities in DropDownList.
I have added dynamic title to page as like
C#
Page.Title="Stores in"+DropDownList1.SelectedValue;

It works fine. But when I see that page in Google Search then its showing only one title like
"Stores in Delhi". Here 'Delhi' is in the default selected value in DropDownList1.
But as I have many cities in that DropDownList1, I want to show each value of DropDownList1 to be appear in search result as title according to search query.
For example if user types search query "Stores in Jaipur" then search result should show result with this title "Stores in Jaipur"
Remember that Dynamic title is working fine but question is that "How to show is in search result"
Posted
Updated 14-Feb-14 3:14am
v2

1 solution

Try to put this code on Page Init event instead of Page Load event
See this[^]..
 
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