Browse by Tags

Related Posts

  • How do I disable/remove the ScriptManager from certain Pages?

    I want to be able to keep the Script Manager in my MasterPage, but the pages that I don't want it on, I want to disable it. It's just an extra 80K+ that I don't need the end user to download. I've tried this but didn't work: var sm = this.Page.Master.FindControl("ScriptManager1"...
    Posted to ASP.NET AJAX Discussion and Suggestions (Forum) by paulinstl on 05-18-2009, 12:00 AM
    Filed under: Scriptmanager, FindControl
  • FindControl from a Class

    I have a class for doing listings and I use various controls in the class such as labels so whenever I use the class I have to assign the a list of controls on the page to the variables inside the class. However as these controls are always the same ID is there a way to use FindControl from inside the...
    Posted to Web Forms (Forum) by testa on 05-16-2009, 12:00 AM
    Filed under: .net, class, class control attribute, Class file, class object, Classes, FindControl, Finding Controls
  • Re: saving data from a modalpopup to database from inside a repeater

    Since the control is inside a templated control with its own naming container, at some point you'll have to use the "FindControl" method to get a server-side reference to the textbox. A good place to do this is in the repeater's "ItemDataBound" event handler. Would you mind...
    Posted to Getting Started (Forum) by lividsquirrel on 04-17-2009, 12:00 AM
    Filed under: Repeater, FindControl
  • FindControl problem - a final (I hope) solution

    Hello Ev, a lot of people seem to have a problem in using the FindControl function. In many (or some) cases it can not find it. he problems could be separated into two categories: first : the components are not yes initialized - due to using ITemplate's. Then you have to wait until the component...
    Posted to Web Forms (Forum) by jahabdank on 10-21-2008, 12:00 AM
    Filed under: solution, FindControl, Init event
  • Re: How do I assign the value of a label to a variable?

    If the label is in a FormView, I'd start FindControl from there. If we call the FormView 'fv' : Session("WorkOrderID") = ((Label)fv.FindControl("lblWorkOrderID")).Text Of course, if you're sure that the FormView is the first Control in the collection, than it's...
    Posted to Web Forms (Forum) by pogo2346 on 10-09-2008, 12:00 AM
    Filed under: FindControl
  • Re: How do I reference a 'selection' made within a placeholder.control.dropdownlist?

    FindControl is not recursive meaning that it will not find controls buried on the page inside a particular parent control at some arbitrary depth. This is a performance consideration. Therefore, FindControl will only find controls within the "naming container" or containing control. So in your...
    Posted to Web Forms (Forum) by Matt-dot-net on 09-02-2008, 12:00 AM
    Filed under: FindControl
  • Findcontrol in neasted masterpages

    Hi, I have a problem to find a control in a neasted master page. Here is my scenario. I have a website with 2 master pages. The first is the Site.master that has some divs for the initial layout and a ScriptManager control. The second is the LeftMain.master that continue the layout with a left column...
    Posted to Master Pages, Themes and Navigation Controls (Forum) by SteliosM on 08-18-2008, 12:00 AM
    Filed under: "AJAX Toolkit" "Ajax Control Toolkit", Access Master Page controls from the Content Page, accordion menu c# sitemap, AJAX, ajax accordion menu, findcontrol, findcontrol in menu, .NET 2.0 master page contentpage, FindControl in masterpage problem
  • How to search nested controls on a page

    I had a problem where I couldn't find controls in my nested tab containers other than doing Root.FindControl(Child).FindControl(GrandChild).FindControl(etc). This is of course horrible if you've got some highly nested controls. Not to mention it makes maintenance disgusting because if one ID...
    Posted to Web Forms (Forum) by amaier on 07-01-2008, 12:00 AM
    Filed under: FindControl, nested controls, Page.FindControl
  • FindControl stops working

    I have developed a page class that dynamically loads content into a page. I have been testing an instance of this class on an aspx page with all the static page components and it works fine. We have now pulled a number of the static components into a master page and left the more dynamic components in...
    Posted to Master Pages, Themes and Navigation Controls (Forum) by pthalacker on 06-26-2008, 12:00 AM
    Filed under: findcontrol
  • ListView.EditItem.FindControl always returning null on 1st item and lots of ListView DropDownList issues

    FindControl now works as intended see post #5 in this thread for the solution. There are two unresolved issues, see post #6 in this thread: 1) Editing the first item still results in FindControl returning null instead of the correct control. This doesn't happen for all other entries (2nd and onwards...
    Posted to Data Presentation Controls (Forum) by ChristophS on 06-15-2008, 12:00 AM
    Filed under: findcontrol
Page 1 of 7 (69 items) 1 2 3 4 5 Next > ... Last »