Top "Code-behind" questions

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

How to browse all session variables in debug mode?

I am using Microsoft Visual Studio 2010 Professional and developing an asp.net / C# app. While in debug mode I can …

c# visual-studio-2010 debugging session-variables code-behind
Execute ASP.NET Membership Login from codebehind in button click handler

I'm trying to seamlessly log in the user without prompting for credentials as part of a <asp:Wizard> …

asp.net asp.net-membership forms-authentication code-behind wizard
Accidentally deleted the code behind for an Xaml file. How do I add the code behind again?

Instead of excluding it, by mistake, I deleted the .cs code behind file for an Xaml file. Now, I don't …

wpf xaml code-behind c#
How to 'merge' a XAML file and its code-behind with Visual Studio

I have a template defined in a XAML file named 'MyTemplate.xaml'. This template is using a code-behind file named …

wpf visual-studio xaml code-behind
GridView - set width of column in code behind (AutoGenerateColumns="true")

My GridView : <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="true" DataKeyNames="Role_id"> </asp:…

asp.net gridview width code-behind autogeneratecolumn
Code behind database connection

I want to create a database connection in my code behind. The code behind will then take all values of …

asp.net multidimensional-array database-connection code-behind dbconnection
Set Server Side OnClick() event Programmatically

I am looking for a way to programmatically set the OnClick event handler for a TableCell object. The ASP equivalent …

onclick code-behind tablecell
How to insert <th> tag in the table in asp.net in code behind file?

I am adding table in code behind file. and i want to add tag in that. <table id="tbl" …

asp.net html-table code-behind tablerow
How can I get the x:Name of an object from code?

Given a reference to an object defined in XAML, is it possible to determine what (if any) x:Name the …

wpf xaml code-behind xname
ajaxToolKit autoCompleteExtender OnClientItemSelected

I am trying to implement an autoCompleteExtender into my project. Currently I am using the OnClientItemSelected property to call a …

javascript asp.net code-behind autocompleteextender