Search

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

Matching Posts

  • Templated databound controls - template property

    I have a templated databound control with several templates. I want to extend this with some new functionality. Ideally I want to do something like this: 1 <MyControl runat="server"> 2 < ClassTemplate ClassName= "Article" >template definition comes here </ TemplateClass > 3 < ClassTemplate ClassName= "News" >template definition comes here </ TemplateClass > 4 < ClassTemplate ClassName= "BlogPost" >template definition comes
    Posted to Custom Server Controls (Forum) by vlangber on 5/17/2009
  • Re: Open Web Site freezes VS2008

    I think that happens because it remembers the last folder you used. I don't remember exactly how I reset it, but it I think it as by deleting the Visual Studio 2008 folder(I didn't have anything important there) in Documents and restarting the computer, or by reinstalling Visual Studio.
    Posted to Visual Studio 2008 (Forum) by vlangber on 10/8/2008
  • Re: Open Web Site freezes VS2008

    I haven't fixed the issue, but I know how to prevent it from happening. It happens when I point the Open Website dialog at a folder with many large zip and rar files. When I copied my website away from that folder, everything is working again.
    Posted to Visual Studio 2008 (Forum) by vlangber on 10/8/2008
  • Re: Open Web Site freezes VS2008

    I have the same problem.. I just bought a new machine, and I've installed VS 2008 and SP1. I can create new websites etc, but as soon as I click on the "Open Website" on the File menu, it freezes. I've used VS 2008 on other machines in the past without any issues. I've tried reinstalling both VS 2008 and SP1, but it doesn't work. I'm using Windows Vista Enterprise x64.
    Posted to Visual Studio 2008 (Forum) by vlangber on 10/2/2008
  • Re: Templated controls, bubbled events and selecting what template to render

    I've been able to get another step further. I've created an EmptyMessageTemplate where I use the same content as the MessageTemplate, but without any of the databinding, but with the controls that can cause a postback. So now I get the events, but since the dataSource in the CreateChildControls(IEnumerable dataSource, bool dataBinding) method only contains null values in the postback, I can't set the CommandArgument of the buttons that cause the postback. Anyone have a suggestion on how
    Posted to Custom Server Controls (Forum) by vlangber on 5/22/2008
  • Re: Templated controls, bubbled events and selecting what template to render

    I've been able to narrow the problem down further. The problem is described here: http://www.michaelteper.com/archive/2006/02/14/5922.aspx The most relevant part: "The CreateChildControls method will be called under two distinct scenarios: when your control is databound (and a dataSource is supplied) and on postback (when a data source is NOT available). Under this second scenario, the dataSource value will be an array of null's of the length you returned when the control was first databound
    Posted to Custom Server Controls (Forum) by vlangber on 5/21/2008
  • Templated controls, bubbled events and selecting what template to render

    I've created a custom templated server control(inherits CompositeDataBoundControl) with 8 different templates, and depending on certain actions I want to render certain templates. The default template is a list of messages in a MessageTemplate. The MessageTemplate contains a button for adding a message. If I click the button, I want to render a "AddMessage" template. The problem is that the event from the button isn't bubbled up into my custom control unless I create the messagetemplates
    Posted to Custom Server Controls (Forum) by vlangber on 5/21/2008
  • MVC and App_Code

    Hi! I have a web application where I have a number of classes in the App_Code directory. When I try to use those classes with MVC, it fails because there isn't a reference to App_Code. Is there a way to add a reference to App_Code? Vidar
    Posted to ASP.NET MVC (Forum) by vlangber on 5/18/2008
  • Re: Mixing MVC and Webform in same web application

    Please correct me if I'm wrong, but the article from Hanselman is not about ASP.Net MVC, but using MVC in ASP.Net before ASP.Net MVC was launched. Anyone got suggestions on how to mix ASP.Net MVC and webforms in the same website?
    Posted to ASP.NET MVC (Forum) by vlangber on 5/7/2008
  • Mixing MVC and Webform in same web application

    Scott Guthrie mentioned in one of his MVC blog posts that it is possible to combine MVC and webforms in the same application. I've tried that, but I get lots of errors in the webforms. What I'm trying to do: I have a asp.net cms, with an edit part where I need to continue to use webforms. I want to use MVC for the website itself. I've copied all relevant files from the webforms application into an empty MVC application(it worked before I started copying files), and then I've added
    Posted to ASP.NET MVC (Forum) by vlangber on 5/4/2008
Page 1 of 5 (48 items) 1 2 3 4 5 Next >