Search

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

Matching Posts

  • Re: Dynamic Javascript, Custom Control and Webresource

    Actually, I don't see how this could ever be a *must*. Creating a webresource is not really any different than creating a js file on your website. Do you create a PagePopUp.js file and expect to modify it in code? Would you expect to modify your css files dynamically from code? The difference is a webresource allows you to embed the javascript file in a dll so a developer only needs your dll, not the js as well. If you have unknown id's (or even if the id will be known ahead of time) it is
    Posted to Custom Server Controls (Forum) by scobrown on 9/13/2007
  • Re: Embedded resource, javascript, custom control

    Make sure that Symtech.Controls is the base namespace for your Controls project. Check that the scripts directory name and file name are lower case.
    Posted to Custom Server Controls (Forum) by scobrown on 7/17/2007
  • Re: Wrap Button Text

    I could be mistaken but I do not believe buttons accept inner html.
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: Need Help with Collection Properties and Designers

    You actually need a UITypeEditor. You should be able to inherit from the CollectionEditor. You will need to override some of the methods. Right now, the designer is using the default Collection Editor which does not know how to create items of your type. http://msdn2.microsoft.com/en-us/library/system.componentmodel.design.collectioneditor(vs.71).aspx http://msdn2.microsoft.com/en-us/library/system.drawing.design.uitypeeditor.aspx
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: How do you communicate two web user controls?

    There is another way that is fairly complicated - but really slick. If you have two controls that are "tightly coupled" you can add a property on one of the controls that references an instance of the other control. The beauty of this is that the "main" control gets an instance of the "secondary" control that it can work with. The ugly part is getting this to work nicely with the designer. You want the user to be able to select the secondary control from a property in
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: How do I debug a control designer / editor class?

    You need to attach a seperate debugger. If you want to debug code that is running in the designer you need to debug the designer itself. Open up a second instance of visual studio. Go to the debug menu and choose Attach to Process... Scroll down and find your instance of visual studio, the process is called devenv.exe and the Title should be your project name. Highlight the entry and click the Attach button. Now you will hit your breakpoints. Debugging design time elements can be very tricky. You'll
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: Dynamically Resizing Data Control Based on Content Size

    Caveat: My reply was assuming the images would always be the same size. If you want to resize the images... I think ajax is the way to go. When you resize images you have to keep aspect ratios, that is a pain. It is not a great idea to resize images by using the html img width and height; you will have terrible image quality. You would be a lot better off using the .net Image class to do the resizing (I could dig up some code if you need). This would however make a compelling argument for creating
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: Dynamically Resizing Data Control Based on Content Size

    Do the images have to line up in columns? Can one row have three images and one row have two? If you just place multiple dom objects with display:inline they will automatically fill the row and wrap to the next line. If you are looking for lined up columns it gets a little harder, but not much. You could a consistant size to each div and set all the divs inline inside of a container div. The initial width could be chosen like the example I used above, but store it to a javascript value on the page
    Posted to Custom Server Controls (Forum) by scobrown on 6/28/2007
  • Re: Proper method for rebuilding a CompositeControl after events fire?

    I cannot reproduce your problem... The following works fine for me public class CustomControl : CompositeControl { private bool _regen = false ; public void Regen() { _regen = true ; this .ChildControlsCreated = false ; } protected override void CreateChildControls() { this .Controls.Clear(); if (!_regen) { UpdatePanel pnl = new UpdatePanel(); this .Controls.Add(pnl); } else { TextBox txt = new TextBox(); this .Controls.Add(txt); } } }
    Posted to Custom Server Controls (Forum) by scobrown on 6/21/2007
  • Re: Cannot access sub class properties of child control that inherits from ArrayList/List<T>

    Make Column of type WebControl and remove the Column property from RowItem. That way the columns will be added to the Controls of RowItem. You will need to change the persist settings for RowItem. This will however allow the user to add anything to the RowItem, not just columns... probably not what you want. This is easily fixed by creating a ControlBuilder for the RowItem class. In the control builder you can check the type of the child object and throw an exception if it is not a Column. The ControlBuilder
    Posted to Custom Server Controls (Forum) by scobrown on 6/21/2007
Page 1 of 5 (49 items) 1 2 3 4 5 Next >