property (8,140)


Best way to allow plugins for a PHP application

Best way to allow plugins for a PHP application

I am starting a new web application in PHP and this time around I want to create something that people can extend by using a plugin interface. How does one go about writing 'hooks' into their code so…


php - Using object property as default for method property

I'm trying to do this(which produces an unexpected T_VARIABLE error): public function createShipment($startZip, $endZip, $weight=$this->getDefaultWeight()){} I don't want to put a magic number in…


c# - How can I change the background of a masterpage from the code behind of a content page?

I specifically want to add the style of background-color to the<body> tag of a master page, from the code behind(C#) of a content page that uses that master page. I have different content pages t…


Why can't I have abstract static methods in C#?

I've been working with providers a fair bit lately, and I came across an interesting situation where I wanted to have an abstract class that had an abstract static method. I read a few posts on the to…


.net - What's the best way to find long-running code in a Windows Forms Application

I inherited a Windows Forms app written in VB.Net. Certain parts of the app run dreadfully slow. What's the easiest way to find which parts of the code are holding things up? I'm looking for a way…


c# - How to make a button appear as if it is pressed?

Using VS2008, C#,.Net 2 and Winforms how can I make a regular Button look "pressed"? Imagine this button is an on/off switch. ToolStripButton has the Checked property, but the regular Button does no…


javascript - How to set up a CSS switcher

I'm working on a website which will switch to a new style on a set date. The site's built in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a design…



c# - When to use an extension method with lambda over LINQtoObjects to filter a collection?

I am prototyping some C# 3 collection filters and came across this. I have a collection of products: public class MyProduct{public string Name{get; set;}public Double Price{get; set;…


Is there a real benefit of using J#?

I just saw a comment of suggesting J#, and it made me wonder... is there a real, beneficial use of J# over Java? So, my feeling is that the only reason you would even consider using J# is that manag…


How to access.Net element on Master page from a Content page?

Is it possible to access an element on a Master page from the page loaded within the ContentPlaceHolder for the master? I have a ListView that lists people's names in a navigation area on the Master…




object get example how not class value properties from set