change the font of master page control
-
hi all :) i want to change font-weight of the hyperlink which is in masterpage i want to change from the content page thanks in advance thanks n regard srinandan
-
Use the Page.Master property to get a reference to the master page. Cast it to the exact class of your master page to access it's members.
--- b { font-weight: normal; }
-
srinandan.. wrote:
hi i have to change it font at runtime when the content page is load
The content page is never loaded separately from the master page. Together they form the finished (x)html document that is sent to the browser.
--- b { font-weight: normal; }
-
Inside the content page Dim HyperLink1 as HyperLink HyperLink1=CType(Master.FindControl('HyperLink1'),HyperLink) HyperLink1 now contains the reference of HyperLink1 control placed in the master page Use Hyperlink1 to manipulate as you would do on a normal page.
-
Inside the content page Dim HyperLink1 as HyperLink HyperLink1=CType(Master.FindControl('HyperLink1'),HyperLink) HyperLink1 now contains the reference of HyperLink1 control placed in the master page Use Hyperlink1 to manipulate as you would do on a normal page.