Search

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

Matching Posts

  • ViewState not persisting until control is added to the heirarchy

    I'm developing a new custom server control and after spending quite a while troubleshooting why the control wasn't working, I've noticed something quite peculiar. I'm hoping someone can help me understand why this is happening and how to work around it! When I create a new instance of my control in code, it appears that none of the property values that are set BEFORE the control is added to the parent's Controls collection are persisted to ViewState. I have a simple (standard
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/22/2009
  • Re: Inline script does not resolving for custom control

    In the hopes that someone else will jump in here, I'd like to point out again that the problem has NOTHING to do with JavaScript. Escaping the quotes in the previous post has nothing to do with whether or not the inline script is executed prior to setting the property on my custom class - which is the only issue I am having.
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/20/2008
  • Re: Inline script does not resolving for custom control

    Again, that is incorrect. The <%= %> construct is used for inline SERVER-SIDE script. It is used all over in ASP.NET, especially for data-binding syntax. A slight variation, <%$ %> is used when referencing a resource as in: Text="<%$ Resources:Strings, MyString %>" ALL of this is done in the markup code and has absolutely NOTHING to do with javascript. Forget the fact that the specific statement I am using has anything to do with javascript. The problem that I am trying
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/20/2008
  • Re: Inline script does not resolving for custom control

    I did say what it is doing: When I look at the page source on the client, I see: doSomething('&lt;% =MyGrid1.ClientID %&gt;') There is no problem working with the code behind but that is not the point of the thread. I am not looking for a work-around. I am looking for an explanation why something that is supposed to be working isn't so that the control can be fixed to work the way it is supposed to and is expected. Where the javascript function is located is also irrelevant to
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/20/2008
  • Inline script does not resolving for custom control

    I have a custom server control with two string properties that I am setting in my page markup as follows: < my:Control runat= "server" ID= "MyControl1" > < Children > < my:Child Caption= " <%$ Resources:Mine, Caption %> " OnClientClick= "doSomething(' <% =MyGrid1.ClientID %> ')" /> </ Children > </ my:Control > < asp:DataGrid runat= "server" ID= "MyGrid1" ... /> The Caption property
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/17/2008
  • Implementing a "StandardCommands" control

    I am looking for suggestions how to implement the concept of a "Standard Commands" type control. What I'd like to be able to accomplish is the following: <acme:StandardCommands ID="blah" runat="server" Command="Print" /> Under-the-hood, there is a PrintCommand server control that actually implements the necessary behaviro and rendering logic. Ideally, I'd like it is THAT was the object that was placed into the parent's Control heirarchy and
    Posted to Custom Server Controls (Forum) by SonOfPirate on 10/13/2008
  • Why not support post-backs?

    I am wondering what the rationale was to not support postbacks in the MVC Framework? One of the most common ways I've seen MVC implemented in ASP.NET was to create a Controller.aspx base page, or something similar, that routed the request to the appropriate page or controls, etc. I believe there are numerous web articles out there descibing this approach and I know all of them support using the built-in controls, postbacks, data-binding, view state, etc. I recently worked on a huge project developing
    Posted to ASP.NET MVC (Forum) by SonOfPirate on 3/17/2008
  • Re: Two-way data binding using FormView on TabPanel

    In my experience, the FormView control does not support having asp.net controls as child controls except for those used to render the form (labels, textboxes, dropdownlists, etc). For instance, you cannot use <asp:Table> for the form layout but have to use straight html (<table>) instead. I am certain that trying to embed the TabContainer control within a FormView is the victim of the same limitation. The correct way of resolving this is, as indicated earlier, to place the FormView within
  • ModalPopupExtender not rendering

    I have a web page that uses an ObjectDataSource and FormView to display an interactive form for entering and editing data. I'd like to be able to display a "sub-form" in the new modal popup provided by the AJAX Toolkit and have added the ModelPopupExtender to my LinkButton is EXACTLY the same way as the sample code provided along with Joe Stanger's How-To video. I'm even using the same CSS style settings to eliminate as many variables as I can. Unfortunately, when I click on
  • Master Pages and shared content across multiple sub-domains

    We are putting together a design concept for a new web site that will span multiple sub-domains but our desire is to maintain a consistent look-and-feel, with slight "section" changes across all of them, plus expose "shared" or common information between them. We've looked at various content management solutions but I would like to get a better understanding of what is possible out-of-the-box with ASP.NET 2.0. In a nutshell, we will have an ASP.NET 2.0 web application accessed
Page 1 of 5 (41 items) 1 2 3 4 5 Next >