Top "Code-behind" questions

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

How to programmatically measure string pixel width in ASP.NET?

How do you get the size of a string? In Windows Forms it's easy, I just use graphics object and …

asp.net string code-behind
Can't access my class from code-behind. Class is App_Code folder

I have a very simple class that is located within my App_Code folder in my VS2008 web application project. …

vb.net class code-behind
How to get values from the currently selected row within a Ext.Net.GridPanel outside of the SelectionModel?

I have the following code within my .aspx file <ext:GridPanel runat="server" ID="GridPanel1" Height="450" Title="EmployeeList" Width = "850" …

c# extjs code-behind ext.net
PAGEMETHODS is not working from JS function

I am trying to call code behind method from JS function using pagemethods but its not calling and its not …

c# javascript ajax code-behind pagemethods
Converting CodeFile to CodeBehind

So I seem to have some difficulties with making my CodeFile reference into CodeBehind. Before you ask, I do not …

c# .net code-behind page-directives
ASP.NET Control not available in CodeBehind

I drag and drop a Label control on my ABC.ASPX page.It Compiles correctly. But the control (Label2) is …

c# asp.net webforms code-behind
How to get ListBox ItemsPanel in code behind

I have a ListBox with an ItemsPanel <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <…

c# .net wpf code-behind itemspanel
Add DataBinding for attached Property per Code Behind

I want to add a DataBinding per Codebehind for an attached Property and want to show the Canvas.Left property …

c# data-binding code-behind attached-properties
asp.net button event not firing

I have a problem. While I am adding an event handler from code behind to a button the event never …

asp.net events code-behind buttonclick
XAML without the .xaml.cs code behind files

I'm using WPF with the Model-View-ViewModel pattern. Thus, my code behind files (.xaml.cs) are all empty, except for the …

wpf xaml mvvm code-behind