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


Top 5 Contributors of the Month
david stephan

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

Applying style in master page

Posted By: Arul     Posted Date: November 02, 2011    Points:5   Category :ASP.Net
Hi,

I have a master page with multiple buttons. clicking the button will redirect to content pages. I want to highlight the button clicked in master page. Am setting the style on button click. But it is not reflecting in my page.

Kindly provide me ur suggestions.

Thanks,
Arul

Responses
Author: Amit Mehra             
Posted Date: November 09, 2011     Points: 20   

HI,

Try to set the style from the content page.Get the reference of the Master page button and set the style.

button1.Attribute.Add("class","Your style");

Let me know if you need the code for this

Hope this helps



Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: Maverick             
Posted Date: November 18, 2011     Points: 20   

Hello,

Set the master page style in page preinit event

Thanks,
Maverick


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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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