Search

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

Matching Posts

  • Re: Simple Question. How do I get my control to drop into Visual Studio with a single, empty tag in source mode.

    Yeah, I noticed that too. That was a mistake when I entered the code into this forum, that typo doesn't exist in my code itself. Good eyes though, Klaus! Thanks for being thorough! Unfortunately, that wasn't the cause of my problem.
    Posted to Custom Server Controls (Forum) by rrahlf on 3/6/2007
  • Simple Question. How do I get my control to drop into Visual Studio with a single, empty tag in source mode.

    I've got my custom server control added to the toolbox in VS2005. I drop it onto my page, check design mode, and the tag for my control shows up on two lines with a begining and ending tag. What I want is a single empty tag, or if I can't have that, then the begining and ending tag on one line. I've used the ToolboxData attribute on my class, but VS seems to be ignoring the fact that it only has one tag. Anyone have any suggestions? This seems like there should be a simple solution...I'm probably
    Posted to Custom Server Controls (Forum) by rrahlf on 3/5/2007
    Filed under: ToolboxData, custom control
  • Re: CompositeControls, the properties pane, and passthrough properties; Design-Time question

    Talking to myself again. This blog has a good discussion about this issue. http://www.blogger.com/comment.g?blogID=7078755&postID=113997129263973948 The suggestion in the above blog of overriding RecreateChildControls to call EnsureChildControls will work in many cases, but not all. For instance, if a property change changes the control tree for this control (different rendering), EnsureChildControls would be insufficient to recreate the tree and render the new controls. I experimented with creating
    Posted to Custom Server Controls (Forum) by rrahlf on 10/19/2006
  • Re: RegisterClientScriptResource and VBScript

    Thanks for the reply Giridhar. BrowserHawk actually does exactly what I'm trying to do, only I think the .NET version may just be a COM wrapper. Anyway, BrowserHawk does NOT do Flash detection on the server (which would be impossible). BrowserHawk sends the client a non-visual detection page which performs the Flash detection on the client and then uses JavaScript to force the client browser to request the page from the server again, this time posting the Flash version number and a hashed key
    Posted to Client Side Web Development (Forum) by rrahlf on 10/2/2006
  • RegisterClientScriptResource and VBScript

    Adobe's Flash Plugin detection script uses a VBScript helper function in IE when detecting the client's Flash Plugin version. I'm trying to put that function in a .vbs file and embed it into an ASP.NET dll as a web resource. However, the <script> tag insists on being "text/javascript" rather than "text/vbscript". I have the .vbs file set to "embed as resource" I have an assembly level WebResource attribute that exposes that file as a resource and sets
    Posted to Client Side Web Development (Forum) by rrahlf on 9/29/2006
    Filed under: RegisterClientScriptResource, Client Script
  • Re: Composite Control Design Time Behavior

    Here's a list of common design-time attributes: http://msdn2.microsoft.com/en-us/library/a19191fh.aspx http://msdn2.microsoft.com/en-us/library/tk67c2t8.aspx and the whole namespace: http://msdn2.microsoft.com/en-us/library/system.componentmodel.aspx RefreshProperties is particularly interesting in relation to CompositeControl, but I don't think it's the entire solution.
    Posted to Hosting Open Forum (Forum) by rrahlf on 9/13/2006
  • Re: Composite Control Design Time Behavior

    Just after writing the post above, I came across a blog post very much in the same discussion by Dave Reed [Infinity88]. I'm going to call "store the property value to the viewstate and set the child control property in CreateChildControls" method the "ViewState Method". The "expose child control properties directly and use EnsureChildControls in Init or in each property accessor" method the "Expose Method". Dave seems to be thinking along the same lines
    Posted to Hosting Open Forum (Forum) by rrahlf on 9/13/2006
  • Re: Composite Control Design Time Behavior

    I realize this post is over a year behind the conversation, but I'll give it a shot anyway. I've also recently run into this issue, and found the same solution thanks in part to an article by Dino Esposito . However, in all the examples I've seen on the web and in Dino's source code, I notice that the view state of the child controls is never disabled. Wouldn't this create dupicate entries for properties in the viewstate? It seems to me that directly exposing the properties of
    Posted to Hosting Open Forum (Forum) by rrahlf on 9/13/2006
  • Re: CompositeControls, the properties pane, and passthrough properties; Design-Time question

    Ah, I've found my problem. You have to love Dino Esposito, don't you? Thanks to Dino's article, " A Crash Course on ASP.NET Control Development: Building Composite Controls " I learned what I needed to know about the new CompositeControl and CompositeControlDesigner classes to make this work. With the class I initially posted, I omitted that I was calling EnsureChildControls() on Init() to insure that my label existed before anyone tried to access any properties or the ShowLabel
    Posted to Custom Server Controls (Forum) by rrahlf on 9/13/2006
    Filed under: CompositeControl, ControlDesigner, "design-time"
  • Re: Custom Config Section, .NET 2.0

    Well, I did finaly get this working. I'll post some links and some advice here for anyone else who is looking. One of my major problems with implementing a custom config section in .NET 2.0 was the lack of solid documentation. It's there, but not very deep, and the "example below" examples all seem to be missing at the time I'm writing this. I was able to piece things together thanks to some tenacious people with blogs. Here's a list of links that helped me out, in no particular
    Posted to Configuration and Deployment (Forum) by rrahlf on 9/12/2006
    Filed under: ConfigurationElement, ConfigurationElementCollection, ConfigurationSection, "Custom Config Section"
Page 1 of 2 (14 items) 1 2 Next >