Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: "Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 18:55:45 -0000
"ABHIJIT B" <abhijitbavdhankar@xxxxxxxxx> wrote in message news:c5788987-0ba3-4f10-880c-4557897d23e3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Mark
Can you suggest mistake I am making in below code,
I certainly can...
<label id="lblHeader" class="ApplicationLabelStyle" style="font-weight:normal" >DC Application</label>
That's an HTMLControl, not a WebControl, so it won't run server-side. Change it to an <asp:Label> WebControl, or add runat="server"...
Label lblMasterHeader = (Label)Master.FindControl("lblHeader");
That will only work if you change the <label> to an <asp:Label> - otherwise it will be an HTMLGenericControl, so the cast won't work...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: ABHIJIT B
- Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- References:
- ASP.NET 2.0 Modal Dialog Window & Master Page
- From: ABHIJIT B
- RE: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: bruce barker
- Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: ABHIJIT B
- Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: Mark Rae [MVP]
- Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- From: ABHIJIT B
- ASP.NET 2.0 Modal Dialog Window & Master Page
- Prev by Date: Re: Basic AJAX Question
- Next by Date: Re: Will .NET 2.0 Windows Services run under Windows 2000?
- Previous by thread: Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- Next by thread: Re: ASP.NET 2.0 Modal Dialog Window & Master Page
- Index(es):