Search

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

Matching Posts

  • Re: Bug is apparently in CheckBox, not CheckBoxField (assuming that CheckBoxField generates CheckBox as needed).

    I'd say this is a bug and I'm surprised it still hasn't been fixed. One solution is to derive your own control from CheckBoxField and always set the text: public class MyCheckBoxField : CheckBoxField { public MyCheckBoxField () : base() { } protected override DataControlField CreateField() { return new MyCheckBoxField (); } protected CheckBox FindCheckBox(DataControlFieldCell cell) { foreach (Control c in cell.Controls) { if (c is CheckBox) return c as CheckBox; } return null; } protected
    Posted to Data Presentation Controls (Forum) by richhollis on 12/16/2009
  • Re: User control with nested GridView stops intellisense from working

    I finally found the answer to this problem. I should of looked at the metadata for the existing Gridview control. When I did I saw this: // // Summary: // Gets a collection of System.Web.UI.WebControls.DataControlField objects that // represent the column fields in a System.Web.UI.WebControls.GridView control. // // Returns: // A System.Web.UI.WebControls.DataControlFieldCollection that contains all // the column fields in the System.Web.UI.WebControls.GridView control. [MergableProperty(false)]
    Posted to Custom Server Controls (Forum) by richhollis on 11/22/2009
  • Catching usage of "undefined" properties on User Controls

    I just discovered that User Controls seem to let you set a value for any property name for anything in the markup even if that property doesn't exist in the user control class definition. The page doesn't error or do anything to let you know a potentially invalid property has been assigned. It seems that User Control will accept any property. Now, I guess this may be by-design, but is there anyway you can enforce property assignments to ensure they exist? I'd really like to throw an exception
    Posted to Custom Server Controls (Forum) by richhollis on 10/31/2009
    Filed under: user control property assignments not defined
  • User control with nested GridView stops intellisense from working

    I asked this question a while ago, but I probably didn't describe it well enough, so here goes again! I have a user control that wraps a gridview. The user control exposes the Columns property in its class definition. Any page that uses this user control can still use the familiar GridView Columns tag in the markup (as roughly illustrated below) and the page works as expected. The wrapped gridview user control renders fine with the columns specified. The problem with this is that intellisense
    Posted to Custom Server Controls (Forum) by richhollis on 10/31/2009
    Filed under: user control intellisense nested controls
  • Re: Duplicate class from Web deployment project output

    Hey Hongping Good call - for some reason this page had both a CodeFile and CodeBehind attribute. Once I removed the CodeFile attribute and recompiled the problem is resolved. Thanks so much for posting the solution. Very much appreciated.
    Posted to VS Web Deployment Projects (Forum) by richhollis on 6/15/2009
  • Re: Duplicate class from Web deployment project output

    Thanks for your reply. The problem I have is that the web deployment project is creating its own Dll but duplicating a class inside it when that class already exists from the compilation of the web application project. Nothing leads me to believe that I cannot use a web deployment project with VS2008 and a web application project, as this excert from ScottGus blog suggests: Web Deployment projects can be used with either the "ASP.NET Web Site" or "ASP.NET Web Application Project"
    Posted to VS Web Deployment Projects (Forum) by richhollis on 6/13/2009
  • Duplicate class from Web deployment project output

    I've got a weird problem with my Web deployment project - I have one class name (from web form code behind class) that appears in both the original web application dll and also the web deployment assembly dll that gets generated. The web application compiles first and generates its main dll file and then the web deployment project runs and this also generates a dll file. Everything in the release build of the site works fine apart from one page - it complains of "The type 'MyNameSpace
    Posted to VS Web Deployment Projects (Forum) by richhollis on 6/12/2009
    Filed under: web deployment project duplicate class name
  • Struggling with default button, focus and panels

    Hi folks I have a problem which I've spent many hours looking at and just cannot seem to figure out what is causing the problem or how to resolve. I have a modal popup which has two panels (each panel has slightly different search options) and an UpdateProgress control. Depending on the option type (selected by a radio button) one or the other panel is shown to the user. Now for the problem: The modal popup is shown. One of the panels is by shown by default. On this panel there is a textbox,
    Posted to ASP.NET AJAX UI (Forum) by richhollis on 1/17/2009
    Filed under: Modal popup Panel TextBox Focus DefaultButton
  • Re: Make TreeView (in async UpdatePanel) do full postback just for node selection operation

    I've resolved this problem by using NavigateUrl with a "javascript:" call and then a postback with a non-control (made up) event. This now works ok and using client javascript I can show/hide a refreshing message.
    Posted to ASP.NET AJAX UI (Forum) by richhollis on 11/25/2008
  • Make TreeView (in async UpdatePanel) do full postback just for node selection operation

    I'm trying to do the following: TreeView control inside a modal popup and UpdatePanel that should show a "Refreshing" message during all expand/collapse operations, but full postback on selection. When an item is selected (and a fullpostback is going to happen) another message "Loading..." ideally should be shown. I can't use Triggers->PostbackTrigger because it will make a node expansion/collapse do a full postback and I don't want to use the Client scripting option
    Posted to ASP.NET AJAX UI (Forum) by richhollis on 11/24/2008
Page 1 of 2 (19 items) 1 2 Next >