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: 3/11/2008 11:00:34 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
karlmcauley
Asp.Net User
Reference MasterPage From VB Class Object3/11/2008 11:00:34 AM

0/0

Hello,

 If i have a VB class and wished to access a control listed in my masterpage (i only have one masterpage in my whole site) to determine visibility of things i.e. menucontrol items, how would i do it.

Everything i have found is all about accessing the masterpage controls from the content page but this is not what i want. I have a class file which checks the database against the user logged on (intranet site using windows authentication) and i want to determine what they see based on their userid, within the masterpage.

I have tried importing system.web.UI.mastpage but no methods appear that permit me to reference the masterpage.

Any ideas on how i could do this?

Thanks in advance.

DarthSwian
Asp.Net User
Re: Reference MasterPage From VB Class Object3/11/2008 11:51:20 AM

0/0

 I don't know if this will help but I did this:

 My project is called RapidRelay

My masterpage is called Main

on a new class I did this

Imports RapidRelay.Main

 

Is this what you're looking for?
 


"Hokey religions and ancient weapons are no match for a good blaster at your side."
karlmcauley
Asp.Net User
Re: Reference MasterPage From VB Class Object3/11/2008 12:29:43 PM

0/0

Hello darthswain,

 Thanks for your reply but when i try to import my project name in the class it says that either there are no public methods in the namespace or it cannot be found. Therefore i cannot link to the masterpage.

Anyother suggestions?

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


Free Download:

Books:
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Expert VB 2005 Business Objects Authors: Rockford Lhotka, Pages: 670, Published: 2006
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2006
Visual Basic 2005 Jumpstart: Pocket Guide Authors: Wei Meng Lee, Pages: 197, Published: 2005
ASP.NET 2.0 All-In-One Desk Reference For Dummies: all-in-one desk reference for dummies Authors: Doug Lowe, Jeff Cogswell, Ken Cox, Pages: 910, Published: 2006
Beginning ASP.NET 3.5 in VB 9.0: From Novice to Professional Authors: Matthew MacDonald, Pages: 1149, Published: 2007

Web:
MasterPage Class (System.Web.UI) The MasterPage class is associated with files that have a .master extension. These files are compiled at run time as MasterPage objects and are cached in ...
MasterPage Class (System.Web.UI) Visual Basic (Declaration). Public Class MasterPage Inherits UserControl ... These files are compiled at run time as MasterPage objects and cached in server ...
Reference Object from Master Page : Microsoft, Visual Studio 2008, C# 'VB.NET Partial Class Project1 Inherits System.Web.UI.MasterPage Public Shared ... Keywords: Reference Object from Master Page .... public class myclass1 ...
Master Pages 101: Using VB 2005 to Access Master Page ASP.NET ... Why not just use the Master object to reference items on the current master page ? Left by Jim Duffy at 6/6/2007 3:27 PM. # re: Master Pages 101: Using VB ...
Reference master page property on user control - ASP.NET Forums myControl.ascx.vb Partial Class myControl Inherits System.Web.UI.UserControl Protected Sub Page_Load(ByVal sender As Object, ByVal e As ...
Master page events You can reference controls on the master page independently of .... Visual Basic Public Class BaseMaster Inherits MasterPage Public ...
UpdatePanel controls not accessible in MasterPage programmatically ... Tags: Visual Basic .NET, Object reference not set to an instance of an object. .... if it's on the masterpage at design time, try adding the @mastertype ...
ASP.NET: How To Easily Reference MasterPage Members « .NET Discussion How can i reference an item on a MasterPage from another Form using VS 2005. .... NET: How To Customize Your Blog With New Class Objects ...
.NET ASP.NET Re: Response Object not working in Master Page CheckResponseObject() End With End Sub End Class DebugMaster.Master.Vb Protected Sub Page_Load(ByVal sender As Object, ByVal e As System. ...
Using FindControl with a MasterPage in ASP.NET & VB Because such things as a MasterPage are naming containers, we have to reference these as well, when trying to reference a control within in. ...




Search This Site:










designing a data entry screen

contact management system

custom personalization provider error

.net website using vb6 com object

discountasp.net down?

adding time form was submitted to sql

user control, bubble event to page

developer resources?

cast a string to a method

asp.net 2.0 login component

trying to follow dnn jungle's module tutorial

strange caching on tabs

asp.net to excel

my godaddy upload almost there need help with sql

dynamic questions

build order question

using of vb.net 2003 to insert a dataset

getting total rows from a table

efficionconsulting articles module installation problem

error job: expanding resource file

do i need a global variable ?

is there a place to log to

web page template + authorization?

create website without refreshing

how do i get aspx page html source?

how would you display a selected module in a number of pages

changepasswordquestionandanswer not updating membership table

dnn 2.04 - problem with phpdupe skin

need help with dynamic loading of treeview

suggestion: post the code of the changes in the gcn

 
All Times Are GMT