Accessing elements in a Master file.

    Date: 10/12/05 (Asp Dot Net)    Keywords: asp

    I've got a master file containing label controls. I want to access these labels within the script files themselves. Can anyone help me with the correct approach? (I'm working with .NET 2.0)

    details:

    Layout.Master contains: lblHeader1 and lblHeader2 label contols.

    Script.aspx uses c# code-behind. I want Script.aspxc to be able to access the labels in Layout.master

    Thanks!

    UPDATE: I was mispelling my control name. Grrr, here's is an example of how to change the label within the masterfile :

    ((Label)Master.FindControl("lblHeader1")).Text = "LALA";

    Source: http://www.livejournal.com/community/aspdotnet/44184.html

« IIS anonymous logon woes || ASP.net and stylesheets »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home