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: 2/6/2008 10:47:58 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
alexasp
Asp.Net User
how to reference to the component, but it is in other form.2/6/2008 10:47:58 PM

0/0

hi,

I have a master page with this template ?header and side? in the side I have a menu. In the principal I put a component login, I access with sql but I would like to leave visible=false the component menu after that I access to the page. When I check if the user exists   I would like to put to the component menu visible=false. How can I reference to the component menu, because I can?t see it?

thanks....

HosamKamel
Asp.Net User
Re: how to reference to the component, but it is in other form.2/6/2008 11:13:29 PM

0/0

Expose a property to set the menu visibility for example ShowMenu  which will find the menu control and set it's visibility to true or false and use this in your content page by simply call

Page.Master.ShowMenu = true;


Hosam Kamel



Remember to click on Mark as answer on the post that helped you
alexasp
Asp.Net User
Re: how to reference to the component, but it is in other form.2/7/2008 1:04:47 AM

0/0

i cant see the component menu, i tried to do Page.Master.ShowMenu = true; but i couldnt.

somebody know other way, than you HosamKamel.

Amanda Wang - M
Asp.Net User
Re: how to reference to the component, but it is in other form.2/8/2008 4:22:03 AM

0/0

Hi,

If you expose component menu as public a property in the masrter page codebehind, the best way to use this property is to place a @ MasterType directive in our content page. When the ASP.NET compiler sees the @ MasterType directive, it creates a strongly typed Master property in our Page derived class.

So you can access the component menu in the  content page's codebehind like this: Page.Master.ShowMenu = true;

 

Hope it helps


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Yours sincerely,
Amanda Wang
Microsoft Online Community Support
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Understanding and Being: The Halifax Lectures on Insight Authors: Bernard Lonergan, Elizabeth A. Morelli, Frederick E. Crowe, Mark D. Morelli, Pages: 467, Published: 1990
Component Software: Beyond Object-oriented Programming Authors: Clemens Szyperski, Dominik Gruntz, Stephan Murer, Pages: 589, Published: 2002
Formal Theories of the Commonsense World Authors: Jerry R. Hobbs, Robert C. Moore, Pages: 455, Published: 1985

Web:
CodeProject: How to Get a Reference to Parent Form from a ... From inside the component, it is easy to get a reference to the container, but I could not get a reference to the parent form of the container? ...
Creating Custom Delphi Components, Part II - Page 1/5 These components often need to either reference other components, have custom ... It is possible to have our property point to components on other forms (or ...
STP/SCA Component/SCA Composite Meta Model - Eclipsepedia Two or more component references may be promoted by one composite reference, ... but if the constrainingType uses the qualified form, then the component or ...
Class vs. Component vs. Control The visual design surface is a container that hosts the form component (in Web Forms, ... Note Every control is a component, but the converse is not true. ...
Tapestry - Introduction Tapestry pages are themselves components, but are components with some special ... Other components, Form , and the form control components ( TextField ...
C# Tutorial #2 Developing a Windows Forms component (part 1 ... This tutorial shows how to develop a Windows Forms component that can be ... You now have the skeleton of the project, but there are two other things to do: ...
Federated content component form - content reference Federated content component form - content reference ... feature of Web Content Management, but to the version control feature of the federated data source. ...
Component Reference Other operators can be selected using dbfieldoperator in a search form. searchmodify, Works like modify but performs an automatic query search. ...
Tibial component for a replacement knee prosthesis - Patent 5080675 The other side of the bearing component 3 is provided with a groove 8 which ... is of substantially the same plan form as the component 3 but is made from a ...
JSF messes up form component id component id as a variable, but somehow the variable remains undefined .... or any other reference with a colon gives an error, ...

Videos:
Alchemy of Tui Shou For many people the art of Taijiquan has become an essential part of modern life, but more than ever we have such a wide variety of taiji forms and p...
Re: Beat Box Nouvelle star -Compilation with otha Beatboxers Compilation with: Kaleb Simmonds, Roxorloops, SHLOMO, Yuichi Nakamaru, Kenny Muhammad, Najib Amhali, Joel Turner (austrailian idol beat box), Hobbit ...
Beer Zach V DVLH http://www.lukehadley.com Beer is the world's oldest and most popular alcoholic beverage. Some of the earliest known writing refers to th...
Joseph Beuys ~ Lightning with Stag in its Glare Joseph Beuys ~ Lightning with Stag in its Glare: The wedge-shaped object entitled Blitzschlag, over six metres in height from top to bottom, came in...
Koran and the Islamic religion (amazing facts) 1 Keith L. Moore is a professor emeritus in the division of anatomy (department of surgery), former Chair of anatomy and associate dean for Basic Medic...
Core Patterns for Web Permissions Google TechTalks July 19, 2006 Tyler Close Visiting Scientist Hewlett-Packard Laboratories Mr. Close is a researcher and developer, working in the...
Glaucoma And The Myth of Medical Marijuana / Anti-Marijuana Video Glaucoma And The Myth of Medical Marijuana / Video. See references in the video. All text and images from Fair Use, public domain or referenced in th...
Purpose 3 "Discipleship: Created to Become Like Christ" One of the joys of being around children is watching them grow. You may have reached your full height…. but that doesn’t mean you’ve stopped growing....
Koran and the Islamic religion (amazing facts) 2 Keith L. Moore is a professor emeritus in the division of anatomy (department of surgery), former Chair of anatomy and associate dean for Basic Medic...
The Archimedes Palimpsest Google TechTalks March 7, 2006 Will Noel Roger L. Easton, Jr. Michael B. Toth ABSTRACT The Archimedes Palimpsest is a 10th Century medieval manuscr...




Search This Site:










how to add a swf animation on to asp.net page??

"type not supported" error for sqlconnection in .master file

make nav treeview visible only on mouseover

styles and masterpage

disable the hover effects for disabled menu items

master page question

trouble with xmlsitemapprovider

master pages design time support when configured at application level

problem with css validation ...

injecting html code using master pages

how to apply a proper look to a web forms page?

nested masterpage help...

web user controls

create fixed master page - content page with scrolling

how to invisible treeview node in treeview control????????

accessing properties of user control placed on master page

problem with themes and gridview

how to create sitemap in asp.net

regarding including xml file in asx page

dynamic content in <asp:content>

set the page title by looking at the web.sitemap?

putting an ampersand sign in an xml statement. how to? ==> <sitemapnode url="~/manage/quotient.aspx" title="brokers & fees" description="brokers"/>

asp:menu - current page style

masterpage css problem

master page with base href

forms in master pages

localization and themes

how to get the text of the selected menu item?

getting nowhere fast with database driven title and meta tags

descending into folders

  Privacy | Contact Us
All Times Are GMT