Top "Code-behind" questions

Code-behind refers to code for your UI (Windows Forms, ASP.

ASP.NET Web Application Message Box

In an asp.net windows forms application, in the C# code behind you can use: MessageBox.Show("Here is my …

c# asp.net web-applications code-behind messagebox
The name 'controlname' does not exist in the current context

I have a web application that I'm working on (ASP.NET2.0 with C#, using VS2005). Everything was working fine, and …

c# asp.net visual-studio-2005 code-behind
How to call a C# function from JavaScript?

I want to call CsharpFunction, a C# function in code-behind, from JavaScript. I tried the code below but whether the …

javascript c# asp.net code-behind
Adding css class through aspx code behind

I am using aspx. If I have HTML as follows: <div id="classMe"></div> I am …

css class asp.net code-behind
how to access master page control from content page

I have a master page which contains a label for status messages. I need to set the status text from …

asp.net master-pages code-behind
How to programmatically set the Image source

When the Image's Source property is set the following way, the picture is taken from /Images/down.png. How would …

c# image silverlight code-behind
ASP.net page without a code behind

I have an ASP.Net page with a C# code behind. However, I've been asked to not use a code …

c# .net asp.net sharepoint code-behind
Set Text property of asp:label in Javascript PROPER way

I have a series of textboxes on a form. When the user inserts numbers into these textboxes, calculations are made …

javascript asp.net label code-behind
Passing arguments to JavaScript function from code-behind

I would like to call a javascript function from an aspx control. For instance, suppose I had: <html xmlns="…

c# javascript .net asp.net code-behind
Accessing a resource via codebehind in WPF

I have a custom collection defined in my window resources as follows (in a Sketchflow app so the window is …

c# wpf xaml resources code-behind