Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends!

in master page concept when click the home page button and i want displaying a homepage image.
Posted
Comments
Shemeer NS 5-Jul-12 5:29am    
Please Improve your question with more details....
Sandeep Mewara 5-Jul-12 5:44am    
Not clear.

1 solution

C#
HyperLink HyperLink1 = (HyperLink)Master.FindControl("HyperLink1");
if (HyperLink1 != null)
{
HyperLink1.NavigateUrl = "http://www.google.com/";
HyperLink1.Text = "Changing Text From Child Page";
}

This code will find the hyperlink present in the master page and set the text of the hyperlink.

Similarly you can add change the image,which are present in the master page .
 
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