CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/9/2007 8:17:37 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 6 Views: 70 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
7 Items, 1 Pages 1 |< << Go >> >|
imchaz
Asp.Net User
Using Multiple Master Pages?11/9/2007 8:17:37 PM

0/0

Is it possible to have a multiple master pages for a site?

 1. This LoginMaster.master controls login.aspx, forgetpassword.aspx, createaccount.aspx pages
 2. This DefaultMaster.master controls other pages withing the site  i.e. Default.aspx, profile.aspx, status.aspx etc...

I already have pages created using the master pages from DefaultMaster.master, but I want to give the login interface a different layout.
So, when I create a Login.aspx and use the LoginMaster.master and view it in the browser it gives me an error in my Login.aspx.vb

 
Line 1:
Line 2: Partial Class Login
Line 3:    Inherits System.Web.UI.Page
Line 4:

Source File: P:\Website\LNP.Net\Login.aspx.vb    Line:

 Can anyone provide me what I am doing wrong?

Thanks.

 

 

bpag
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 8:25:39 PM

0/0

Yes, this can be done. I do the same thing in my site. I have one master that is used for any page that does not require authentication (like the login page) and another master for the pages that can be viewed once authenticated. What error are you getting exactly?


If this post answered your question please remember to 'Mark as Answer'!
imchaz
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 8:30:28 PM

0/0

Thanks for your response.  The error is what I am getting above as I stated in my initial post.  It occurs in my Login.aspx.vb page.  All in that page is...

 
Partial Class Login
    Inherits System.Web.UI.Page

End Class

 

I just dont know why it gives me this.  I thought it should work fine. 

bpag
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 8:48:12 PM

0/0

I meant is there an error message in addition to the code dump. That shows us what line the error is on (I don't see anything wrong with it) but it doesn't show the error message itself. Also what does your login.aspx look like?


If this post answered your question please remember to 'Mark as Answer'!
imchaz
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 9:01:49 PM

0/0

Thanks for assisting  so far.

Login.aspx 

1    <%@ Page Language="VB" MasterPageFile="~/lnpLogin.master" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" title="Untitled Page" %>
2 <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
3 <asp:Login ID="Login1" runat="server" BorderColor="Blue" BorderStyle="Ridge" TitleText="User Log In" PasswordRecoveryText="Forget Password?" PasswordRecoveryUrl="Forget.aspx" BorderPadding="10">
4 </asp:Login>
5 </asp:Content>
 
Okay, I think this is what you meant by error message:
 
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_global.asax.qn9jkrt2.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_qcd5qjsr.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.dll" /D:DEBUG=1 /debug+ /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.2.vb"


Microsoft (R) Visual Basic Compiler version 8.0.50727.832
for Microsoft (R) .NET Framework version 2.0.50727.832
Copyright (c) Microsoft Corporation.  All rights reserved.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(54) : error BC30554: 'Login' is ambiguous.

        Inherits Global.Login
~~~~~~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(55) : error BC30154: Class 'login_aspx' must implement 'ReadOnly Property IsReusable() As Boolean' for interface 'System.Web.IHttpHandler'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. Implements System.Web.IHttpHandler
~~~~~~~~~~~~~~~~~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(55) : error BC30149: Class 'login_aspx' must implement 'Sub ProcessRequest(context As HttpContext)' for interface 'System.Web.IHttpHandler'. Implements System.Web.IHttpHandler
~~~~~~~~~~~~~~~~~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(75) : error BC30456: 'GetWrappedFileDependencies' is not a member of 'ASP.login_aspx'. Global.ASP.login_aspx.__fileDependencies = Me.GetWrappedFileDependencies(dependencies)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(78) : error BC30456: 'Server' is not a member of 'ASP.login_aspx'. Me.Server.ScriptTimeout = 30000000
~~~~~~~~~
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(81) : error BC30284: property 'SupportAutoEvents' cannot be declared 'Overrides' because it does not override a property in a base class. Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean ~~~~~~~~~~~~~~~~~ C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(141) : error BC30284: function 'GetTypeHashCode' cannot be declared 'Overrides' because it does not override a function in a base class. Public Overrides Function GetTypeHashCode() As Integer ~~~~~~~~~~~~~~~ C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\lnp.net\9b9677ea\be0d3d71\App_Web_trpwvbs2.0.vb(145) : error BC30284: sub 'ProcessRequest' cannot be declared 'Overrides' because it does not override a sub in a base class. Public Overrides Sub ProcessRequest(ByVal context As System.Web.HttpContext)
~~~~~~~~~~~~~~
P:\Website\LNP.Net\Login.aspx(1) : error BC30456: 'Theme' is not a member of 'ASP.login_aspx'. __ctrl.Theme = "Blue" ~~~~~~~~~~~~ P:\Website\LNP.Net\Login.aspx(1) : error BC30456: 'Title' is not a member of 'ASP.login_aspx'. __ctrl.Title = "Untitled Page" ~~~~~~~~~~~~ P:\Website\LNP.Net\Login.aspx(1) : error BC30456: 'InitializeCulture' is not a member of 'ASP.login_aspx'. Me.InitializeCulture
~~~~~~~~~~~~~~~~~~~~
P:\Website\LNP.Net\Login.aspx(1) : error BC30456: 'MasterPageFile' is not a member of 'ASP.login_aspx'. __ctrl.MasterPageFile = "~/lnpLogin.master" ~~~~~~~~~~~~~~~~~~~~~ P:\Website\LNP.Net\Login.aspx(2) : error BC30456: 'AddContentTemplate' is not a member of 'ASP.login_aspx'. Me.AddContentTemplate("ContentPlaceHolder1", New System.Web.UI.CompiledTemplateBuilder(AddressOf Me.__BuildControlContent1))
~~~~~~~~~~~~~~~~~~~~~
P:\Website\LNP.Net\Login.aspx.vb(912304) : error BC30311: Value of type 'ASP.login_aspx' cannot be converted to 'System.Web.UI.Page'. CType(Me,System.Web.UI.Page).AppRelativeVirtualPath = "~/Login.aspx" ~~ P:\Website\LNP.Net\Login.aspx.vb(912304) : error BC30284: sub 'FrameworkInitialize' cannot be declared 'Overrides' because it does not override a sub in a base class. Protected Overrides Sub FrameworkInitialize()
~~~~~~~~~~~~~~~~~~~
P:\Website\LNP.Net\Login.aspx.vb(912307) : error BC30456: 'AddWrappedFileDependencies' is not a member of 'ASP.login_aspx'. Me.AddWrappedFileDependencies(Global.ASP.login_aspx.__fileDependencies)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
P:\Website\LNP.Net\Login.aspx.vb(912308) : error BC30456: 'Request' is not a member of 'ASP.login_aspx'. Me.Request.ValidateInput
~~~~~~~~~~
  
  
MorningZ
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 9:04:29 PM

0/0

 "Login" is already a class in the framework (the "Login Control" in fact)

Change the partial class name to something like "LoginPage", and then in the aspx page make the change to match in the "inherits" parameter


"If you make it idiot proof, they'll build a better idiot"
imchaz
Asp.Net User
Re: Using Multiple Master Pages?11/9/2007 9:11:19 PM

0/0

 MorningZ, Awesome, that was it.  Thanks that worked.

 Bpag, thanks for trying to help too.  I do appreciate it.
 

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


Free Download:

Books:
Mastering Web Development with Microsoft Visual Studio 2005 Authors: John Mueller, Pages: 822, Published: 2005
Using QuarkXPress 5 Authors: Suzanne Sayegh Thomas, Pages: 505, Published: 2002
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, Pages: 788, Published: 2007
Introduction to Digital Publishing Authors: David Bergsland, Pages: 413, Published: 2002
Microsoft Publisher 2007 for Dummies Authors: Jim McCarter, Jacqui Salerno Mabin, Pages: 366, Published: 2007
ASP.Net 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normen, Dan Wahlin, J. Ambrose Little, Jonathan D. Goodyear, Pages: 400, Published: 2006
Professional ASP.NET 3.5 in C and VB: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1704, Published: 2008
Microsoft Office 2007 in Depth Authors: Ed Bott, Woody Leonhard, Pages: 1056, Published: 2008
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Essential ASP .NET 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2007

Web:
Master Pages in ASP.Net 2.0 - An Advanced Look Using Master Pages we can create a consistent look and feel for our .... Furthermore, if you have the need, you can even nest multiple Master Pages. ...
Ground Up: Master Pages in ASP.NET 2.0 Jul 24, 2006 ... You can create multiple master pages and use each one for a different purpose. ... At the page-level using the @Page dierective (as I did ...
Flare Tip: Using Multiple Master Pages in a Help Target Flare Tip: Using Multiple Master Pages in a Help Target. Following is a brief article I wrote for the Madcap Software knowledge base in November 2006. ...
Get the most out of multiple master pages - Publisher - Microsoft ... Publisher 2003 now has a great solution to that problem: multiple master pages. Using multiple master pages is a smart and flexible way to incorporate ...
Master Pages In ASP.NET 2.0 Jul 18, 2005 ... The attribute points to the .master file you’ve selected (you can have multiple master pages in a web project). The source code below is for ...
How to use multiple master pages - ng.asp-net-forum ... How to use multiple master pages, > ROOT > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls, Date: 12/19/2007 2: 30:55 ...
Multiple Master Pages in one site - SharePoint University Is it possible in Sharepoint to have multiple master pages in one site? ... two page layouts template , one page layout is using master page ...
Trouble with Multiple Master Pages in ASP.NET 2.0 The error appears for each page built using Freedom2.master. ... My problem is that I have multiple master pages, e.g. Freedom1. All inherit ...
ASP.NET Master Pages Overview You can create multiple master pages to define different layouts for different parts of your .... This is especially usefull if you are using MasterPages. ...
InDesign CS3: Using Master Pages, UWEC Aug 1, 2008 ... Using Master Pages. Master pages act as a foundation for your document .... If you have multiple master pages, you will have to repeat these ...

Videos:
Raymond Lohengrin Guitar Performance DVD DVD Demo of Guitar Performances of works by Tarrega, R. Lohengrin, Sanz, Romanza anonymous, flute and guitar duets and more! Scenes of gardens ...
Using ROSE to Mitigate Performance Trade-offs Google TechTalks April 03, 2006 Daniel Quinlan ROSE is a tool for building source-to-source transformation tools for the optimization of C ...
The Tao of Kung Fu #22 - "Look beyond the letter of the law". Learn more about this philosophy here..... This video is from the "Empty Pages of a Dead Book" episode, from the 1970's TV series "Kung Fu ...
Knife Sharpening -- Getting a knife scary sharp! This clip is from our "Advanced Blade Sharpening" DVD, which is a sequel to our "Introduction to Knife Sharpening." These two DVDs offer a ...
Shaving with a camping knife! This shaving clip is from our "Advanced Blade Sharpening" DVD, which is a sequel to our "Introduction to Knife Sharpening." These two DVDs offer a ...
4 Quick and Easy Wats To Track Your Web Results "4 Quick & Easy Steps To Tracking Your Web Results" I've been using Google's "Analytics" service for some time now to monitor the performance ...
Imaging: Irfanview - Selection Tools Episode 23 (of a 25-part series) This Nortel LearniT tutorial reviews the process for using the selection tools on Irfanview.
Franz Bardon This Video is dedicated to Master Franz Bardon. He gave us the greatest books on Hermetics and Mysticism available to the public in any language ...
A New Way to look at Networking Google Tech Talks August 30, 2006 Van Jacobson is a Research Fellow at PARC. Prior to that he was Chief Scientist and co-founder of Packet ...
WCN # 151 - World Chess News - ( Mitt i Schack ) This episode contains: * Raymond Keene writes about Kasparov's and Kramnik's opinions about Putin's Russia * Deep Junior won the match against ...




Search This Site:










font stuck, surveys

email sending problem.......

having problem deleting files

alternate imageurl if picture doesnt exist?

difference between debug mode vs release mode

server-side printing?

threads and objects scope

?how to access db in shared function?

get desktop directory

what should be held in components and classes?

format dates, in dd/mm/yyyy form

asp:menu... item, image margin possible?

what's the difference between trace mode and debug mode?

how to convert from uppercase to title case(propercase) of a gridview value....

can some body please help me bind simple textbox so they can communicate with the database

using collections in a class

new to oop and classes

regex validator question

problem with a reference to com objects

table problem

using 2 values in a linkbutton

transfering to another page

how to create a page at runtime

sending email from an asp.net web page

excel automation template

dynamic control events best practice

textbox change by clientside code doesn't persist to server side

file open problem

differences

email send problem

  Privacy | Contact Us
All Times Are GMT