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: 1/31/2006 5:19:42 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 43 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
Mincer
Asp.Net User
Passing parameter from one user control to another1/31/2006 5:19:42 PM

0/0

Hi

 

What would be the best way to pass a parameter from a user control in one part of a master page to another?

 

I have a mast file: site.master

 

I have a User Control: Navigation

 

I have a content page: Category / Product, that uses a user control to display the data.

 

What I want to be able to do is to change the content of the navigation, depending on what product / category is being displayed.

 

Do I pass the paremter to the master page and then pass it into the user control, or can I pass it over directly.

 

i.e.

 

Set a property in the master file?.

 

Master.Content = ?category?

 

Then?

 

Navigation.ContentType = Content

 

 

 

Or is there some way to access the UC directly without going through the Master Page.

 

Thansk

FireFox
Asp.Net User
Re: Passing parameter from one user control to another1/31/2006 11:36:22 PM

0/0

Hi,

Just add:

<%@ MasterType VirtualPath="~/site.master" %>

then to access a public method declared in site.master

Master.<Some Method>

to the content page and you will have access to all public methods / variables in the master page. If you want to access the uc methods you can create a wrapper class for the controls to expose them to the content page. I am not sure if you can access the uc controls directly, but it doesn't hurt to try Smile [:)].

If you need more info just lookup MSDN for master pages specifically "Exposing Properties and Methods from a Master Page."

Hope it helps.

Mincer
Asp.Net User
Re: Passing parameter from one user control to another2/2/2006 3:03:11 PM

0/0

Thanks, I have been struggling with this for two days and couldn't figure out why it wasn?t working. I set the AutoEventsWireUp to true and now its working.

 

I don?t think it was setting the values for  the properties in the master page form the page_load event in the content page.

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


Free Download:

Books:
ASP.NET for Web Designers Authors: Peter Ladka, Pages: 648, Published: 2002
VB & VBA in a Nutshell: The Language Authors: Lomax, Pages: 633, Published: 1998
JavaScript and DHTML Cookbook: Solutions and Example for Web Programmers Authors: Danny Goodman, Pages: 520, Published: 2003
Lab Course Turbo Pascal 2e Authors: Nell Dale, Dale, Pages: 392, Published: 1996
Microsoft Outlook Programming: Jumpstart for Administrators, Power Users, and Developers Authors: Sue Mosher, Pages: 619, Published: 2002
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004
SQL: a beginner's guide Authors: Robert Sheldon, Forrest Houlette, Pages: 560, Published: 2003
Knowledge Based Expert Systems in Transportation Authors: Louis Franklin Cohn, Roswell A. Harris, Pages: 52, Published: 1992
Visual Basic Game Programming with DirectX Authors: Jonathan S. Harbour, Pages: 900, Published: 2002
Digest of Papers: Intellectual Leverage Authors: Compcon, IEEE Computer Society, IEEE Computer Society, Pages: 644, Published: 1990

Web:
Passing parameter from one user control to another - ASP.NET Forums Passing parameter from one user control to another. Last post 02-02-2006 10:03 AM by Mincer. 2 replies. Sort Posts: ...
how to pass value from one usercontrol to ...... - ASP.NET Forums how to pass value from one usercontrol to ...... Last post 10-25-2008 7:22 AM by sharpeffect. 2 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Passing value from one user control to another user control - DevX ... I have two web user controls on the same web form. When I click a button from one user control, I want to pass a message to the second user ...
pass the control value from one web form to another form Talk about pass the control value from one web form to another form. ... form to another web form or a web user control. Could you ...
Passing value from one form to another form - ProgrammingTalk Passing value from one form to another form ASP. ... User Control Panel, Private Messages, Subscriptions, Who's Online, Search Forums, Forums Home ...
Passing value from one form to another form - Dev Shed Visit Dev Shed to discuss Passing value from one form to another form. ... Please select one, User Control Panel, Private Messages, Subscriptions ...
How to pass value from one form to another - Dev Articles How to pass value from one form to another- Microsoft SQL Server. ... Please select one, User Control Panel, Private Messages, Subscriptions ...
Passing value from one page to another Another problem is that user can actually see the passing ... Implementation is a matter of setting one property of control and you are done ...
pass textbox value from one form to another using c in the .NET ... How to pass value from ajax enabled base user control to client user control and to ... Passing parameters from one page to another [Source : 4GuysFromRolla ...
How do you pass parameters from one php page to another ... How do you pass parameters from one php page to another PHP. ... User Control Panel, Private Messages, Subscriptions, Who's Online ...

Videos:
The Italian unauthorized monopoly of VAS service 48XXX http://www.smsvas.com On the 28th of June at the Politecnico of Milan, during the congress organized for the presentation of the 2007 Research, the M...
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...
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 Design. P...
YouTube Player APIs and Tools Tutorial Stephanie Liu gives a short tutorial on the basic functionality available in the JavaScript and Flash player APIs, as well as the Chromeless Player. ...
Web Applications and the Ubiquitous Web Google TechTalks February 1, 2006 Dave Raggett Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal Interaction....
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 and C++ ...
Distributed continuous quality assurance Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Adam Porter
Affiliate Summit 2006 East -- Blogging Best Practices: Maximizing Your Success Blogging guru Dave Taylor will take you on a controversial and entertaining tour of blog technologies, explain which are considered "critical" by the...
Charlie Rose - Chambers, Hennessy, Schwartz, Sclavos, Doerr, Dyson Segment 1: A view from Silicon Valley with John Chambers, President & CEO of Cisco Systems, John Hennessy, President of Stanford University, Jonatha...
Randy Pausch - Really Achieving Your Childhood Dreams Randy Pausch's Last Lecture with English and German subtitles by Friederike Sophie Brand, Spanish subtitles by Carlos Velásquez and Ezequiel Aranda, ...




Search This Site:










add new item to scheduler

user name

redirecting user after logging into dnn (using 2.1.2)

length of the data to decrypt is invalid error

encrypt connection string using enterprise library - need help

2.1.2 solpart menu problems

container creation

skinning problems dnn 2.0

admin edit messages error

free tv listing module

dnn 4.0.2 internet explorer 6 users cannot log in

expanded menu problem in ie 7 only

single users profile and all users profiles list - how ?

upgrade problems

cannot connect to localhost/dotnetnuke while connected to internet

vs2005 menu control: display child items on mouse click

scheduler, c#, and creating an assembly

problem with a login page inside an iframe

asp.net configuration tool

membership & role providers with different authentication parameters

navigation menu does not show icons

how do you export a portal?

error: system.stackoverflowexception

webpart customization

cascade style sheet(css) of issue tracker starter kit interfering with dnn skin

can a masterpage and a content page have different css's

forum/blog 3.10.01support?

adding fields to user registration

how do i integrate ssl (https) into some of the tabs in the portal

parser error help plz for newbie

 
All Times Are GMT