Search

You searched for the word(s): userid:845283

Matching Posts

  • Re: Limit the scope of control adapters

    Okay, it finally works. The last piece of the puzzle was the @Register directive. This page helped me figure that out: http://www.vbinfozine.com/a_aspnet_derived_ctl.shtml Here are the steps I took: 1. Create a new class that inherits the control you want (modeled after the menu class in the OrbitOne example posted above) I just included this as part of my CSSFriendly project, and within the CSSFriendly namespace. 2. Modify the *.browser file to point to the new class (i.e., CSSFriendly.Whatever
    Posted to CSS Friendly Control Adapters (Forum) by SippyCup on 6/16/2009
  • Re: Limit the scope of control adapters

    Ugh. Yeah, that could probably be done. I feel like there's an easier solution, but feelings aren't going to help. I've tried implementing the only solution I've come across--inheriting from the ASP .NET server controls and associating the adapters with the new controls. However, I must be doing something wrong, because I keep getting the error that my control " is not allowed here because it does not extend class 'System.Web.UI.UserControl'." I'm not sure what
    Posted to CSS Friendly Control Adapters (Forum) by SippyCup on 6/16/2009
  • Re: Limit the scope of control adapters

    Hey Murray. I've been searching for a way to do exactly the same thing. Judging from what I've found, the thought you had is exactly what you have to do. See the last post in this thread on CSS Friendly's CodePlex page: http://cssfriendly.codeplex.com/Thread/View.aspx?ThreadId=15361 It would be nice if we could have something as simple as a property for a base class like Adapted="True" or "False."
    Posted to CSS Friendly Control Adapters (Forum) by SippyCup on 6/12/2009
  • Re: Custom UserControl's properties are empty, even after being set in code-behind

    Unfortunately, that had no effect. The code I posted is a bit misleading--the testLabel inside the shopAllCategoriesButton is NOT the same testLabel from the above code. The value inside the testLabel in shopAllCategoriesButton gets set to shopAllCategoriesMenu.Items.Count.ToString(), and it comes through to Page correctly regardless of whether I call getMenuData() and buildMenu() from shopAllCategoriesButton's constructor or from its Page_Load. The testLabel which resides inside the Page is
    Posted to Web Forms (Forum) by SippyCup on 4/27/2009
  • Custom UserControl's properties are empty, even after being set in code-behind

    I've been building a UserControl menu, called shopAllCategoriesButton, based on the ASP Menu control with CSS Friendly Adapters. It's a dropdown, but on Index it needs to be static. Because of the design, I need to calculate its height and apply that value as a top margin for the column directly below it on the page. The structure of the site looks like this: MasterPage->ChildMasterPage->Page The shopAllCategoriesButton resides in MasterPage and the column that is being adjusted resides
    Posted to Web Forms (Forum) by SippyCup on 4/27/2009
  • Re: CS0012 when referencing controls on master page's master page.

    Well, the solution was stupidly easy: <%@ Reference VirtualPath= "~ParentMaster.master" %> At the top of ContentPage.aspx.
  • CS0012 when referencing controls on master page's master page.

    I'm working with a content page that has a master page (we'll call it ChildMaster). ChildMaster also has a master page (ParentMaster). There is a control on ParentMaster I need to access from the content page. The code looks like this: ControlType controlInstance = (ControlType) Master.Master.FindControl( "controlID" ); When I upload, I get CS0012 telling me that ParentMaster is defined in an assembly that is not referenced, and I need to add a reference to some assembly with a
  • Re: Not using the embedded css in the dll of css friendly control adaptors

    One more update.. I don't think placing the .cs files in App_Code actually recompiles the CSSFriendly.dll, it just compiles separately. To recompile CSSFriendly.dll, you need to open the CSSFriendly project in Visual Studio and "publish" the website.
  • Installing on a precompiled site

    I need to install CSS friendly adapters on a precompiled site. I thought all I had to do was drop the dll into my bin folder, but that doesn't appear to have done anything. It's an unfortunate situation, but the site is precompiled and I do not have access to all the source code. Is this possible? Thanks
    Posted to CSS Friendly Control Adapters (Forum) by SippyCup on 2/24/2009
  • Re: Applying style to a specific MenuItem when Menu is data driven.

    I forgot to mention earlier that I'm using the CSS Friendly adapters. I modified MenuAdapter.cs to check for first and last items in the for loop and add my custom classes in during the rendering process. For anyone who is curious or interested, I just put this in right before the call to writer.WriteAttribute: 1 // Add our custom CSS class to the list items. 2 if (item == Control.Items[0]) 3 { 4 theClass += " topItem" ; 5 } 6 else if (item == Control.Items[Control.Items.Count - 1]
    Posted to Getting Started (Forum) by SippyCup on 2/17/2009
Page 1 of 2 (20 items) 1 2 Next >