CodeVerge.Net Beta


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




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 8/17/2007 3:29:24 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 3 Views: 28 Favorited: 0 Favorite
4 Items, 1 Pages 1 |< << Go >> >|
janetb
Asp.Net User
Parent Child Selected Question8/17/2007 3:29:24 PM

0

Going through the walk-throughs and tutorials and have a question about the selected css style.  The example shows it posting to the same page and then reflecting the "path" through the menu with a different background color.  But, what happens when in real life it links to a new page?  Does the "path" still get reflected after the navigation?  As long as it's in a master page?  Sorry kids, I'm new to this and a bit slow.  Appreciate any explanation.

 Thanks,
Janet


Janet
Russ Helfand
Asp.Net User
Re: Parent Child Selected Question8/17/2007 8:44:49 PM

0

Hi Janet, you might want to study the sample at http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.menuitem.selected.aspx. Notice how the menu tag has a convenient attribute, onmenuitemdatabound, that lets you wire up a function that gets executed for each menu item in your menu as it gets databound. As the example shows, you can use that function to examine whatever properties you wish for the current menu item. Based on those properties (using whatever logic you think is correct for your situation) you can set the Selected property of one of the menu items.

The adapters will honor the Selected property however it gets set. There is logic within the adapters that facilitates that postback situation because, well, that's necessary in order for the adapters to work. When you are working in a situtation (like you described) where you are simply building a menu to do plain, old HTTP GET requests on your site, then you have to "manually" set the "selected" page using logic wired up to the onmenuitemdatabound event.

I believe if you wire your menu to a sitemap datasource the menu item gets selected automatically. If you are creating a menu more "manually" with asp:menuitem tags or binding to some other sort of data source you probably can simply add some logic in the onmenuitemdatabound event and things will work for you.

Best regards,


Russ Helfand
Groovybits.com
janetb
Asp.Net User
Re: Parent Child Selected Question8/20/2007 3:41:07 PM

0

Hey Groovey Russ,

Thanks for the reply.  I believe I could simply use the sitemap if you think that'd work.  I'll have 1-3 menus per page, but they'll have different names, so should work....

Let's just say I wasn't.  If the top menu is the same on every page and it's housed in the master also used on every page, would that not get the postback event in the master before the get is processed?

Janet


Janet
Russ Helfand
Asp.Net User
Re: Parent Child Selected Question8/20/2007 7:55:28 PM

0

If your menu is bound to a sitemapdatasource then when you use it to navigate from page to page there will be no postbacks. This sort of menu uses HTTP GET not HTTP POST to request pages. Still, the master page does get used whenever these pages are loaded. But everything should just work for you. Give it a shot.


Russ Helfand
Groovybits.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Protecting Children and Supporting Families: Promising Programs and Organizational Realities Authors: Gary Cameron, Jim Vanderwoerd, Leslea Peirson, Pages: 290, Published: 1997
Parent-child Interaction Therapy: A Step-by-Step Guide for Clinicians Authors: Toni L. Hembree-Kigin, Cheryl Bodiford McNeil, Pages: 169, Published: 1995
Surviving the Breakup: How Children and Parents Cope with Divorce Authors: Judith S. Wallerstein, Joan B. Kelly, Pages: 352, Published: 1996

Web:
Parent Child Selected Question - ASP.NET Forums Re: Parent Child Selected Question. 08-17-2007, 4:44 PM. Contact ... Re: Parent Child Selected Question. 08-20-2007, 11:41 AM. Contact ...
Parent Child Selected Question - ASP.NET Forums Parent Child Selected Question. Last post 08-20-2007 3:55 PM by Russ Helfand. 3 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Child and Family WebGuide: Parent Info on Child Development Research Topics are selected on the basis of parent recommendations; they cover all ... areas of child development and to view answers to common parent questions. ...
CodeProject: Parent-Child ComboBoxes. Free source code and ... Jun 19, 2006 ... 3) After the parent one is fired(selected value changed), child combo .... News Question Question Answer Answer Joke Joke Rant Rant Admin ...
Find Common Ancestor of Multi-Selected Attributes in Parent-Child ... Find Common Ancestor of Multi-Selected Attributes in Parent-Child Dimension ... although your question seams simple, the solution is not. ...
Selected Child Development and Health Care Outcomes of the CEDEN ... Title: Selected Child Development and Health Care Outcomes of the CEDEN Parent- Child Program: Interim Report. Authors: Davis, Paul F.; And Others ...
Difference between jQuery selectors "ancestor descendant" and ... So all and any ul.posts will be selected, whatever their nesting level is as long as ... Browse other questions tagged jquery or ask your own question. ...
Frequently Asked Questions (FAQs) on parent/child servers of Trend ... Apr 10, 2006 ... Frequently Asked Questions (FAQs) on parent/child servers of Trend ... it will use the deployment plan selected to deploy to the entities. ...
Parent Child Relationships and Adolescent Obesity: Data from the ... The purpose of this study is to examine the role that parent-child relationships play in the rise of adolescent obesity. 7798 adolescents were selected from ...
how to pass selected value from dropdownlist of child page to ... how to pass selected value from dropdownlist of child page to parent page. Get answers to your questions in our Javascript / DHTML / Ajax ...

Videos:
Joe Barton Autism Parent Meeting - TURNED AWAY BY POLICE! Apparently Joe's meeting "With Parents of Autistic Children" was only for hand selected people (most of which were not parents but rather god parents...
Pottstown Early Action for Kindergarten Readiness/United Way Pottstown Early Action for Kindergarten Readiness (PEAK) About PEAK The Pottstown Early Action for Kindergarten Readiness (PEAK) initiative was cre...
The Vickie Winans National Teen Talent Search Is On!!! CONTEST RULES & INSTRUCTIONS Vickie Winans is gearing up for what will be the country's hottest new teen singing sensation! She is searching for 4 t...
Hear and Say Centre The Hear and Say Centre is one of the leading Paediatric Auditory-Verbal and cochlear implant centres in the world, teaching children who are deaf or...
www.moldytoaster.com erbum sat_. I would have you be careful to _sort_ your pleasantries. Your soup jokes (never hazard that one about Marshal _Turenne_, it is really _t...
vandemataram foundation vandemataram foundation Working for the betterment of literacy and child rights. www.vandemataramfoundation.in http://vandemataramfoundation.blogspo...
Vol. 13 Teaser-Father & Daughter. 3 Misses, Fm the 104th Flr www.Filmporium.com The Animation Show of Shows Volume 13 Since 1998, The Animation Show of Shows has selected the best in animated short films from ...
Hear and Say WorldWide The Hear and Say Centre is one of the leading Paediatric Auditory-Verbal and cochlear implant centres in the world, teaching children who are deaf or...
Dylan's AFN spot Our family was selected to be interviewed about what it is like to send your child off to kindergarten when a parent is deployed to Iraq
BR_2.mov Tokyo, a dirty orange-red late afternoon. Suddenly Shinjuku's skyscrapers all tremble and collapser. Japan has fallen victim to terrorism, and the pe...






ajax controls toolkit - dragpanelextender and css friendly

panel using css adapters

two menus on the page- with css adapters and without

partial install success

pre-compiled css friendly adapters posted to codeplex

expanded menu problem in ie 7 only

can't get onadaptedselectednodechanged to work with usercontrol and master page

mix css / non-css controls in same web app?

phantom menus

cssselectorclass not showing

exception has been thrown by the target of an invocation.

creating a vertical scrollable menu dynamically.

using cssfca in custom web controls

please help my menu :-(

radio buttons?

adaptor for login control

menuadapter - menu items not visible if beyond bottom of page

gridview. header style. please, help me out. this is driving me nuts.

menuadapter childs appear behind content in ie

troubles using in existing application

staticitemtemplate and dynamicitemtemplate

menu css adapter and postback

loginstatusadapter requires membershipprovider

working detailsview breaks when converted to css friendly (index out of range error)

treeview onadaptedselectednodechanged

cssadapters

installation error

ie6 and menu top level width

enable/disable cssfriendly via property

loginadapter

   
  Privacy | Contact Us
All Times Are GMT