disable

Swap/disable ObjectDataSource

I have a GridView which selectively binds to one of two ObjectDataSources. I make the switch in the Page_Load by setting GridView.DataSourceID. One of the data sources has parameters which refer to ControlIDs which don't always exist. Even if it's not set as a DataSourceID, the data source tries to get the values for the ControlIDs, t...

What is with the Disable Profiling option button on the Compute Profiler?

Why is there a button for enabling and disabling profiling on the Compute Profiler? If I disable profiling, then I can't launch my application for profiling. So why does profiling need to be disabled at all? ...

Rails 3: Disable session cookies

I created a controller to serve dynamic stylesheets, so I can use the image_tag helper and add some cache control. The problem is that every time the css file is loaded at the browser, I can see 'Cookie xxx changed" message in firebug. I would like to disable or bypass session cookies for this controller. I read somewhere that using ...

Xcode - how to disable pagecontrol?

I have 2 views which the user can scroll between. I have page control working so I have the 2 dots at the bottom of the page which show the current page. I want to be able to disable this if the user changes a setting. I can't seem to find the code to do this? I guess it would be nice if the 2 dots remained but were greyed out, but this ...

C# - Disable buttons with image

Hey all, I'm using C# and WinForms. When using a button with a BackgroundImage property, when I enable/disable the button, the image doesn't get gray... Result : The user is unable to tell if the button is enabled or disabled without trying to click it. When using a button with a Image property, the image's behavior is correct but the...

Disable context menu on some DatGrid cells WPF

I have defined a datagrid like this :: <cc:PEDataGrid AutoGenerateColumns="False" ItemsSource="{Binding Rows}" Width="Auto" PreviewMouseRightButtonDown="PEGrid_PreviewMouseRightButtonDown" Loaded="CommonPEGrid_Loaded"> <wpfkit:DataGrid.Contex...

Turn off code contracts warning

I want to turn off a code contract warning, but only for specific code lines. How do I do that? For instance, I get: Warning 87 CodeContracts: requires unproven: key != null for: return HttpContext.Current.Items[typeof(T).AssemblyQualifiedName]; which will never happen in our applications. ...

Eclipse RCP app: How to disable specific extenstions?

I'm using Eclipse HELIOS to code a Rich Client app. The following entries are added automatically to my APP "PERSPECTIVES MENU": "Java, Java Browsing, Java Type Hierarchy, Team Synchronizing". I need to get rid of them. i'm using the extension point="org.eclipse.ui.activities" to disable unwanted extensions (like the editor and search o...

Is there a setting to make XCode give a prompt before running with warnings?

I make an effort never to allow warnings to stay in my code, so usually when they occur I don't actually want to run my application because I did something stupid. Therefore, I've tried to get in the habit of hitting Command-B to check warnings out before I run, but I slip a lot and hit Command-R instead. Is there a setting in XCode th...