Top "Code-behind" questions

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

Call javascript from vb.net code behind

How can I call a javascript function from code behind? The most popular response is "ScriptManager.RegisterStartupScript" however, that does …

javascript asp.net vb.net code-behind
Creating a Style in code behind

Does anyone know how to create a wpf Style in code behind, I can't find anything on the web or …

c# .net wpf styles code-behind
How do I load user controls dynamically?

How can I load a user control[s] in a window dynamically (using code at runtime)?

wpf user-controls code-behind
How do I access an element of a control template from within code-behind

I'm trying to access a user control which is inside the control template of a content control. Specifically: <ContentControl …

wpf syntax user-controls code-behind
Change Canvas.Left property in code behind?

I have a rectangle in my XAML and want to change its Canvas.Left property in code behind: <UserControl …

c# wpf code-behind attached-properties
Redirect to another page using Post method from Code behind

I want to implement a Payment service.I will create some values in code behind and then by using post …

asp.net code-behind
Set Grid Column/Row width/Height dynamically

I need to create a WPF grid dynamically from code behind. This is going okay and I can do it …

c# wpf grid code-behind
ASP.Net Open New Tab in Browser from CodeBehind

I need to open a browser tab from a link that is given to me by an asp.net code …

asp.net hyperlink code-behind
Binding String Property in Code-Behind TextBlock

i am trying to binding a very simple property to a TextBlock, but I have to do all in code-behind (…

wpf binding code-behind
How to set Table/TableRow/TabelCell width by percent in code behind in asp.net?

How do I set width with percent in code behind? The only option I can think of is taking the …

c# asp.net code-behind