CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 6/27/2007 1:35:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
bneises
Asp.Net User
changing CssClass of label in a masterpage with content page script.6/27/2007 1:35:34 PM

0/0

I'm trying to create a masterpage that can be changed by the content page that is loaded on the master through the C# script.

The problem is changing the CssClass of a Label located on the master through the content script.

I've tried calling it directly by LabelName.CssClass = "NewCssClass"; in the page_load event handler of the content page. I get the error "The name 'LabelName' does not exist in the current context"

Is there a way to do this? am I close?

-Brandan 

bneises
Asp.Net User
Re: changing CssClass of label in a masterpage with content page script.6/28/2007 12:18:34 PM

0/0

figured it out on another forum... I was missing the FindControl. (example below)

 Label LabelName = (Label)Master.FindControl("LabelName");
LabelName.CssClass = "NewCssClass";
 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
changing CssClass of label in a masterpage with content page ... changing CssClass of label in a masterpage with content page script. Last post 06-28-2007 8:18 AM by bneises. 1 replies. Sort Posts: ...
Problem with script and content pages from masterpage - ASP.NET Forums When you will create a page using masterpage, you will found that ContentPlaceHolder and then you can put your javascript there. ...
Login Control on Master Page Confusion - SitePoint Forums In the Page_Init of my master page, I attach some javascript to the .... However the page content should still be perfectly viewable in any ...
Content pages in master page control using C# hi all, i used calendar control and place it in Master page as Calendar.js. ... Text="Start Date" CssClass="graytextbold"> ...
Tips & Tricks - Minimum master page for MOSS 2007 Here, there is a sample master page with all content placeholders that MOSS 2007 uses: .... ...
ModalPopupExtender Javascript Error on Cancel : Microsoft, Visual ... I have an asp.net content web page in a master page. ... < asp:Label ID="lblSomething" runat="server" CssClass="bcm" Text="nothing has ...
View Differences Text %>" > NEED HELP!! Stuck on Master page - DevX.com Forums Also, since I set the title of the pages in the content pages do I have to .... Getting master page ClientID in Javascript, liliarum, ASP. ...
Show and Hide the Div in Content Page of Master Page, ASP.NET ... In the Master page the ID becomes. ctl00_divChangePassword. so changing your javascript to. onclick="showDiv('ctl00_divChangePassword');" ...
MSDN SharePoint - Design and Customization Master page error on ... Master page error on new archive link. ... View All Site Content -->




Search This Site:










capture domain

tabstrip ie webcontrol

deploying a cls sp

new add-on to vs 2005 is available: css properties window

object oriented basics

activex dll

odd behaviour in setting property

what happened to treeview.autopostback?

dnn on trust level=low + sqlclientpermission

referencing to subdirectory in menu structure?

assembly references in vs2005 web project pangs

sharing session variables across applications

problem installing dnn 3.0.9 in medium trust environment

treeview control is not available for asp.net

how to get treeview selectedindex at client side?? its urgent

geting connecting setting from web.config

problem in reading xml file

how to convert values into upper case before adding to db.

host password reminder all asterisks?

is there a way to hide price text box

how to call selectedindexchanged

does anyone have a good collection of small icon pics?

questions

using solpart menue in subfolders?

vs .net 2005

web.config bug/problem

problem loading .csproj file into vs.net2003

data access layer code complete

log out time

cant get event to fire

 
All Times Are GMT