.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

How to show hyperlink, Linkbutton text on the tiltle bar of Internet explorer...

Posted By: susant     Posted Date: March 03, 2009    Points:2   Category :ASP.Net
Hello Frnds

I have several hyperlinks, Lnkbuttons, HyperlinkImageButton in my website..
My requirement like whenever user will click on those avove things the text should be displayed on the title of Internet Explorer..

example like.

In this site whenever u r clicking any qns the qns is displaying on the title bar so i wana implement the same..

Anybody help in this query


Author: Rahul             
Posted Date: March 03, 2009     Points: 5   

Hi Susant,
You can set the title like this. in Page load Event

this.Title = Lnkbuttons.Text;// For taking Text from Link Button.

Hope this helps

Author: susant             
Posted Date: March 03, 2009     Points: 5   

Hi Rahul

ThanX for ur rply but the code will work for a single link button

My requirement like suppose i have 100 link buttons,100 Hyperlink,100 Image button in one page then tell me how can i implement title text according to the user click??


Author: Rahul             
Posted Date: March 04, 2009     Points: 5   

Hi Susant,
But user will click one button at a time right? or might be i didnt get your question if yes than please expain your question in bit detail.

Author: susant             
Posted Date: March 04, 2009     Points: 5   

suppose i have link1,link2,link3 three link buttons present in my web-page..

so how u can set the page title when the userclick..?

I agree user will click at a time only one link button but how u can set the title...

according to u if i am writting

this.Title = link1.Text(here the title will be link1 but what about other link button if the user clicks on link2 then ??

u just take 2link button and 2hyperlink in webpage.. when the click on linkbutton1 it will show the title bar u click linkbutton1, when he click link2 it will display title bar u click link2 and so on.....


Author: Rahul             
Posted Date: March 04, 2009     Points: 5   

HI Susant,
If you have LinkButton1_Click event you can set the title similarly on LinkButton1_Click you can set the title like this

this.title = LinkButton1.Text;


this.title = LinkButton2.Text;

Author: susant             
Posted Date: March 04, 2009     Points: 5   

Rahul i think u r not geting what i want...

in the same site see below some hyperlinks are displaying click on any hyprlink and see the title.. how its chnging...

if u still in confuse with my requirement then here is my g-mail id add me i will calrify in detail...


Author: Pankaj Mishra             
Posted Date: March 05, 2009     Points: 5   

Hello Susant,

Rahul is right you can use the same code given by Rahul.

Your question is if you click the below link in this site all the data is loaded again with id associated with the below hyperlink at that moment you can assign the title also because one time you will load data having unique id.

Hope this will help you..


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend