code-behind Questions
2
Solved
I have a listView that I construct at run-time, i.e. the columns are not known at compile-time.
I would like to apply a DataTemplate to the cells such that the TextAlignment property is TextAlignm...
Tale asked 14/6, 2011 at 20:31
2
Solved
How can I call a javascript function from code behind?
The most popular response is "ScriptManager.RegisterStartupScript" however, that does not work in my situation.
I have a vb class that is do...
Follansbee asked 6/10, 2011 at 11:46
3
Solved
I have a ListBox with an ItemsPanel
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<StackPanel x:Name="ThumbListStack" Orientation="Horizontal" />
&...
Enzymology asked 6/9, 2011 at 12:30
2
Solved
I just thought I already know how WPF and XAML Syntax works....
wrooong.
I got the message:
'WithEvents' variables can only be typed as classes, interfaces or type parameters with class constrai...
Underexpose asked 3/9, 2011 at 10:21
4
Solved
I like to Monkey patch a ASPX website so that I can add stuff to the Page_Load method within a compiled assembly.
My first thought was to add a script tag containing a second Page_Load method to t...
Procreate asked 7/7, 2011 at 14:40
8
Solved
It is often specified in the various tutorials of MVVM, that the goal of MVVM is not to eliminate the code-behind and that some event-handling may still be necessary in the code-behind.
What are t...
Petrillo asked 26/5, 2011 at 11:31
2
Solved
I have a situation where I need to create View box with one button. The xaml for this is as below: Please observe Width property of viewbox. The Width should be increased/decreased according to a s...
Atom asked 16/5, 2011 at 20:14
1
Solved
How can I add a template field with a checkbox to my DetailsView object through C# code-behind? I'm having trouble figuring it out from reading the asp.net code.
I already have the TemplateField a...
Marieann asked 26/4, 2011 at 4:24
4
Solved
Pretty simple question, but can't seem to find a complete answer on here...
I need to databind in xaml to a property of a class member in codebehind.
<Window x:Class="Main">
<customcont...
Paulsen asked 2/3, 2010 at 21:33
2
Solved
I need to open a browser tab from a link that is given to me by an asp.net code behind.
Normally I would have a link and target="_blank", but the link that I need is dynamic, so I must have the beh...
Festival asked 3/4, 2011 at 14:47
6
Solved
First I was changing HyperLink.NavigateUrl in code-behind on Page_Load().
But after I decided to do it in design using Eval() method.
<asp:HyperLink runat="server"
NavigateUrl='<%# String....
Henson asked 22/11, 2009 at 18:16
1
Solved
I'm having trouble understanding my error
Method:
public List<Task> GetAllTasks()
{
var AllTasks = from t in tasks
where t.Status.ToString() == "Completed" || t.Status.ToString() == "Pend...
Ferreous asked 10/2, 2011 at 5:36
3
Solved
I have a bunch of controls on my window. One of them is a refresh button that performs a cumbersome task on a background thread.
When the user clicks the refresh button, I put the cursor in a wait...
Sandler asked 7/11, 2008 at 22:11
2
I'm creating one html table. I want to hide the table row. I'm putting the attributes runat=server and id for the particular row, but the row has client side code in it similar to the following cod...
Predicative asked 1/2, 2011 at 15:3
5
Solved
I thought I would ask this question to see why many examples and people prefer to use inline databinding in the aspx code vs implementing an OnDataBinding event when using WebForms.
For any databo...
Renteria asked 31/3, 2009 at 18:8
5
I have an asp.net page where I have the below markup. Basically this markup is generated from codebehind by reading records from a table and looping through them. For each record in table, there wi...
Dacy asked 28/12, 2010 at 13:12
1
Solved
I have several GUI control elements of which some are supposed to generate the same action (code-behind function call) on mouse interaction (MouseEnter, MouseLeave).
[edit] I am performing some non...
Randolph asked 16/12, 2010 at 11:19
4
Solved
I have a TextBox in my WPF app. I have defined a ControlTemplate for validation error as follows:
<ControlTemplate x:Key="validationTemplate">
<DockPanel LastChildFill="True">
<T...
Sheley asked 25/11, 2010 at 5:3
6
Solved
In RC1 the behavior of the template for creating a view changed.
As explained by Scott Gu's post about the release candidate a newly created aspx view doesn't have a code-behind file by default an...
Demagogue asked 28/1, 2009 at 21:15
6
Solved
I'm about to create WPF application. So far at uni the only way we have ever done GUIs is to have one main window with one code-behind file for handling its button clicks etc..
My issue is that a...
Glabrous asked 14/9, 2010 at 23:54
4
Solved
I'm just starting out learning ASP.NET. From what I understand, ASP.NET differs from old school ASP in that the logic code for a page exists in as separate file rather then being embedded in the AS...
Dimaggio asked 4/9, 2010 at 20:58
4
Solved
What is difference between page_load and onLoad functions in ASP.NET codebehind?
Clearway asked 12/8, 2010 at 5:12
2
Solved
I seem to have run into a strange issue whereby a string reference is not loading an updated value.
In short, I've replaced a DLL file (App_Code.dll) that contains a bunch of page titles (think HT...
Chinch asked 19/8, 2010 at 15:13
3
Solved
I have a rectangle in my XAML and want to change its Canvas.Left property in code behind:
<UserControl x:Class="Second90.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...
Krell asked 12/2, 2009 at 14:18
5
Solved
I am using ASP.NET 3.5.
When the user click on say btnSubmit I want to first execute some JavaScript code and then execute some C#/VB.NET code.
Is this possible? If so how would one do it?
Thank...
Fairspoken asked 5/8, 2010 at 13:39
© 2022 - 2024 — McMap. All rights reserved.