Override MasterPage

G

Guest

I've "converted" the code at http://www.eggheadcafe.com/articles/20040613.asp
to VB.NET as I'd like to implement this as my application uses quite complex
GridViews and various other controls on some pages (viewstate alone was
110Kb+ on some pages!!).

Anyway, I've setup the classes required and created a test page which
inherits from the new BasePage class. It works well. How can I now use this
in an environment that uses mostly Master Pages?

I've tried to create a new MasterPage class which inherits the custom
BasePage class. I've then used this custom MasterPage class in my master page
but I get an error about ContentPlaceholders not being a member of the master
page.

MasterPage.vb
--------------------
Imports Microsoft.VisualBasic

Namespace ServerSideViewstate
Public Class MasterPage
Inherits ServerSideViewstate.BasePage
End Class
End Namespace

layout.master.vb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top