DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 20:50:32 +0100,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Ganesh
          2    Peter Bromberg [C# MVP]
          3    Ganesh
          4    Lit


'Default_master' does not contain a definition for bHome   
I get this error Error 1 'Default_master' does not contain a definition for 
'bHome' . I cannot find out the error, someone can help me.


default.master

<%@ Master Language="C#" CodeFile="Default.master.cs" 
Inherits="Default_master" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head runat="server">
 <title></title>
</head>
<body>

 <form id="form1" runat="server">

  <div class="header"  style="left: 0px; top: 0px; height: 80px; width: 
1200px; background-color: #3ba30a;">
   <h1 style="left: 1px; top: 1px; background-color: #3ba30a;">
                <span style="color: #ffffff">PlusForAll.Com<span 
style="font-size: 10pt">(Simple way
                    to find property)<asp:TextBox ID="TextBox1" 
runat="server"></asp:TextBox><br />
                </span></span>
             <asp:Button ID="bHome" runat="server" Text="Home" 
Width="100px" OnClick="bHome_Click" />
           </div>

  <asp:contentplaceholder id="Main" runat="server" OnLoad="Main_Load" />

  <div class="footerbg">
   <div class="footer">
                 </div>
  </div>

 </form>

</body>
</html>


Default.master.cs



using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;



    public partial class Default_master : System.Web.UI.MasterPage
    {


        protected void Page_Load(object sender, EventArgs e)
        {
            this.bHome.Visible = true;

        }



    }
Date:Tue, 14 Aug 2007 20:50:32 +0100   Author:  

RE: 'Default_master' does not contain a definition for bHome   
You are correct. I didn't see "bHome" declared anywhere. So what's the 
question? If it's not there, you cannot expect to use it.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com



"Ganesh" wrote:


> I get this error Error 1 'Default_master' does not contain a definition for 
> 'bHome' . I cannot find out the error, someone can help me.
> 
> 
> default.master
> 
> <%@ Master Language="C#" CodeFile="Default.master.cs" 
> Inherits="Default_master" %>
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> 
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
> <head runat="server">
>  <title></title>
> </head>
> <body>
> 
>  <form id="form1" runat="server">
> 
>   <div class="header"  style="left: 0px; top: 0px; height: 80px; width: 
> 1200px; background-color: #3ba30a;">
>    <h1 style="left: 1px; top: 1px; background-color: #3ba30a;">
>                 <span style="color: #ffffff">PlusForAll.Com<span 
> style="font-size: 10pt">(Simple way
>                     to find property)<asp:TextBox ID="TextBox1" 
> runat="server"></asp:TextBox><br />
>                 </span></span>
>              <asp:Button ID="bHome" runat="server" Text="Home" 
> Width="100px" OnClick="bHome_Click" />
>            </div>
> 
>   <asp:contentplaceholder id="Main" runat="server" OnLoad="Main_Load" />
> 
>   <div class="footerbg">
>    <div class="footer">
>                  </div>
>   </div>
> 
>  </form>
> 
> </body>
> </html>
> 
> 
> Default.master.cs
> 
> 
> 
> using System;
> using System.Data;
> using System.Configuration;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
> 
> 
> 
>     public partial class Default_master : System.Web.UI.MasterPage
>     {
> 
> 
>         protected void Page_Load(object sender, EventArgs e)
>         {
>             this.bHome.Visible = true;
> 
>         }
> 
> 
> 
>     }
> 
> 
> 
Date:Tue, 14 Aug 2007 13:28:01 -0700   Author:  

Re: 'Default_master' does not contain a definition for bHome   
intellisense show when i type this. it comes with bHome but i cannot build.


"Peter Bromberg [C# MVP]"  wrote 
in message news:17C7A4D4-41C8-4C9B-AE27-350B5ED37353@microsoft.com...

> You are correct. I didn't see "bHome" declared anywhere. So what's the
> question? If it's not there, you cannot expect to use it.
> -- Peter
> Recursion: see Recursion
> site:  http://www.eggheadcafe.com
> unBlog:  http://petesbloggerama.blogspot.com
> BlogMetaFinder:    http://www.blogmetafinder.com
>
>
>
> "Ganesh" wrote:
>
>> I get this error Error 1 'Default_master' does not contain a definition 
>> for
>> 'bHome' . I cannot find out the error, someone can help me.
>>
>>
>> default.master
>>
>> <%@ Master Language="C#" CodeFile="Default.master.cs"
>> Inherits="Default_master" %>
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
>> <head runat="server">
>>  <title></title>
>> </head>
>> <body>
>>
>>  <form id="form1" runat="server">
>>
>>   <div class="header"  style="left: 0px; top: 0px; height: 80px; width:
>> 1200px; background-color: #3ba30a;">
>>    <h1 style="left: 1px; top: 1px; background-color: #3ba30a;">
>>                 <span style="color: #ffffff">PlusForAll.Com<span
>> style="font-size: 10pt">(Simple way
>>                     to find property)<asp:TextBox ID="TextBox1"
>> runat="server"></asp:TextBox><br />
>>                 </span></span>
>>              <asp:Button ID="bHome" runat="server" Text="Home"
>> Width="100px" OnClick="bHome_Click" />
>>            </div>
>>
>>   <asp:contentplaceholder id="Main" runat="server" OnLoad="Main_Load" />
>>
>>   <div class="footerbg">
>>    <div class="footer">
>>                  </div>
>>   </div>
>>
>>  </form>
>>
>> </body>
>> </html>
>>
>>
>> Default.master.cs
>>
>>
>>
>> using System;
>> using System.Data;
>> using System.Configuration;
>> using System.Web;
>> using System.Web.Security;
>> using System.Web.UI;
>> using System.Web.UI.WebControls;
>> using System.Web.UI.WebControls.WebParts;
>> using System.Web.UI.HtmlControls;
>>
>>
>>
>>     public partial class Default_master : System.Web.UI.MasterPage
>>     {
>>
>>
>>         protected void Page_Load(object sender, EventArgs e)
>>         {
>>             this.bHome.Visible = true;
>>
>>         }
>>
>>
>>
>>     }
>>
>>
>> 
Date:Tue, 14 Aug 2007 22:28:22 +0100   Author:  

Re: 'Default_master' does not contain a definition for bHome   
This is a feature,

try to delete it then recreate it.

Lit


"Ganesh"  wrote in message 
news:eq1%23Ror3HHA.464@TK2MSFTNGP02.phx.gbl...

> intellisense show when i type this. it comes with bHome but i cannot 
> build.
>
>
> "Peter Bromberg [C# MVP]"  
> wrote in message 
> news:17C7A4D4-41C8-4C9B-AE27-350B5ED37353@microsoft.com...
>> You are correct. I didn't see "bHome" declared anywhere. So what's the
>> question? If it's not there, you cannot expect to use it.
>> -- Peter
>> Recursion: see Recursion
>> site:  http://www.eggheadcafe.com
>> unBlog:  http://petesbloggerama.blogspot.com
>> BlogMetaFinder:    http://www.blogmetafinder.com
>>
>>
>>
>> "Ganesh" wrote:
>>
>>> I get this error Error 1 'Default_master' does not contain a definition 
>>> for
>>> 'bHome' . I cannot find out the error, someone can help me.
>>>
>>>
>>> default.master
>>>
>>> <%@ Master Language="C#" CodeFile="Default.master.cs"
>>> Inherits="Default_master" %>
>>>
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>
>>> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
>>> <head runat="server">
>>>  <title></title>
>>> </head>
>>> <body>
>>>
>>>  <form id="form1" runat="server">
>>>
>>>   <div class="header"  style="left: 0px; top: 0px; height: 80px; width:
>>> 1200px; background-color: #3ba30a;">
>>>    <h1 style="left: 1px; top: 1px; background-color: #3ba30a;">
>>>                 <span style="color: #ffffff">PlusForAll.Com<span
>>> style="font-size: 10pt">(Simple way
>>>                     to find property)<asp:TextBox ID="TextBox1"
>>> runat="server"></asp:TextBox><br />
>>>                 </span></span>
>>>              <asp:Button ID="bHome" runat="server" Text="Home"
>>> Width="100px" OnClick="bHome_Click" />
>>>            </div>
>>>
>>>   <asp:contentplaceholder id="Main" runat="server" OnLoad="Main_Load" />
>>>
>>>   <div class="footerbg">
>>>    <div class="footer">
>>>                  </div>
>>>   </div>
>>>
>>>  </form>
>>>
>>> </body>
>>> </html>
>>>
>>>
>>> Default.master.cs
>>>
>>>
>>>
>>> using System;
>>> using System.Data;
>>> using System.Configuration;
>>> using System.Web;
>>> using System.Web.Security;
>>> using System.Web.UI;
>>> using System.Web.UI.WebControls;
>>> using System.Web.UI.WebControls.WebParts;
>>> using System.Web.UI.HtmlControls;
>>>
>>>
>>>
>>>     public partial class Default_master : System.Web.UI.MasterPage
>>>     {
>>>
>>>
>>>         protected void Page_Load(object sender, EventArgs e)
>>>         {
>>>             this.bHome.Visible = true;
>>>
>>>         }
>>>
>>>
>>>
>>>     }
>>>
>>>
>>>
>
> 
Date:Tue, 14 Aug 2007 17:23:58 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us