Questions tagged [code-behind]

Code-behind refers to code for your UI (Windows Forms, ASP.NET page, etc.) contained within a separate class file. This allows separation of the UI and the logic behind it.

Code-behind refers to code for your UI (Windows Forms, ASP.NET page, etc.) contained within a separate class file. This allows separation of the UI and the logic behind it.

1955 questions
0
votes
1 answer

Removing Row & All Controls in Same Row

Below I will attach the whole class I have for my window (this is wpf). I will comment what I believe to be issues/concerns/problems and afterwards I will explain my comments below in list order. Most helpful answer will be those who answer listed…
Ya Wang
  • 1,758
  • 1
  • 19
  • 41
0
votes
2 answers

How to add asp:TextBox dynamically on code behind ? (Not TextArea)

This is a sample of one asp:TextBox In the…
JAN
  • 21,236
  • 66
  • 181
  • 318
0
votes
1 answer

Referencing page class in another file

I'm not sure why this isn't working, but, when I build my ASP.NET WebSite, I get the following error when the referenced namespace is in a different file than the referencing class. When the two classes are in the same file, everything builds…
XyberICE
  • 525
  • 2
  • 7
  • 16
0
votes
1 answer

not able to load style from resource file in code behind during button creation

Im creating a few buttons in code behind. List
0
votes
1 answer

wpf resize image automatically

I've been banging my head for a few days trying to figure out why my controls don't want to resize. For instance below, I have background.png as the window background in a re-sizable window. The window successfully re-sizes and the background fills…
bassplayer142
  • 380
  • 2
  • 3
  • 15
0
votes
2 answers

HTML control not appearing in Code Behind with ASP.net Forms

On my site master page I have navigation code that has links that I want to restrict visibility for. Here is the HTML to the point where I am having issues: <%@ Master Language="C#" AutoEventWireup="True" CodeBehind="Site.master.cs"…
0
votes
0 answers

GridView CheckBox column in Web UI custom control

I'm updating a customer Web UI control to include a GridView. In this GridView I require a check box column. Normally this is an easy task but placing the declaration in the aspx page however I need to be able to do it in the code behind. Is this…
chrisblue13
  • 263
  • 3
  • 18
0
votes
1 answer

How can i set selected item property from the list using code behind?

My Teams