Top "Code-behind" questions

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

how to add a div to container div in c# code behind

ASP.NET, C# As the title suggests I was wondering if anyone knew how to programatically (c# code behind file) …

c# .net code-behind
Setting up font of TextBox from code behind

How do I set the font of a TextBox from a string in the code behind? // example txtEditor.FontFamily = "Consolas";

c# wpf code-behind
C# code behind for Button Click Event, ASP.NET

I'm working with HTML provided by coworker in .aspx and I need to program in .aspx.cs(C#) the functionality …

c# html asp.net button code-behind
Parser Error: Server Error in '/' Application

I got the following error: "An error occurred during the parsing of a resource required to service this request. Please …

asp.net-mvc-3 code-behind
Programmatically add a span tag, not a Label control?

How can I add a span tag from a code behind? Is there an equivalent HtmlControl? I am currently doing …

c# asp.net html code-behind
HyperLink with NavigateUrl with Eval(). Where is the mistake?

First I was changing HyperLink.NavigateUrl in code-behind on Page_Load(). But after I decided to do it in design …

c# .net asp.net eval code-behind
Request.Url.Host and ApplicationPath in one call

Is there any way to get HttpContext.Current.Request.Url.Host and HttpContext.Current.Request.ApplicationPath in one call? Something …

c# asp.net code-behind httpcontext
Adding Html from Code Behind in Asp.net

I want to add HTML structure and control like this from code behind into a panel <div class='Main'&…

html asp.net c#-4.0 dynamic code-behind
ASP.Net VB call JavaScript function from Code Behind

I have a function that is responsible for populating an SSRS report. The user presses a button and I go …

javascript asp.net vb.net code-behind
How to assign a dynamic resource style in code?

I want to produce in code the equivalent of this in XAML: <TextBlock Text="Title:" Width="{Binding FormLabelColumnWidth}" Style="{…

c# wpf xaml styles code-behind