code-behind Questions
7
Solved
I have a master page which contains a label for status messages. I need to set the status text from different .aspx pages. How can this be done from the content page?
public partial class Site : S...
Debility asked 22/3, 2013 at 14:59
3
I need change color in code behind for part of text string..
My exaple:
textblock1.Text = string1 + string2 + string3;
String have dynamic values, and i want to string2 display after running t...
Inconsolable asked 13/11, 2014 at 10:52
4
Solved
This might be a simple question, but I've been looking around and can't find the answer. Is there any code to show the context menu on Android from a code, instead of pressing the menu button? E.g....
Quahog asked 12/9, 2010 at 17:40
1
Solved
I can't access a label defined in the xaml file from the code behind C# code.
I tried the x:name="l" property but it tells me that "'l' is not defined":
Could anyone help me how to access cont...
Katricekatrina asked 2/6, 2018 at 0:52
5
Binding to a Dependency Property is easy in code-behind. You just create a new System.Windows.Data.Binding object, and then call the target dependency object's SetBinding method.
But how do you do ...
Finland asked 7/10, 2010 at 4:20
2
Solved
I've got ~30 SpecFlow feature files, and I recently removed the Foo.feature.cs files from source control because I got sick of resolving merge conflicts in Designer Generated code.
I did not excl...
Sofa asked 22/9, 2014 at 13:34
8
Solved
How do you get the size of a string? In Windows Forms it's easy, I just use graphics object and then MeasureString function. In ASP.NET I'm not sure how to do this.
Egan asked 5/4, 2011 at 14:58
1
Solved
I use an <Frame> in my xaml page like this:
<StackLayout>
<Frame>
<StackLayout>
<Button></Button>
<Label></Label>
</StackLayout>
<Sta...
Radicle asked 17/10, 2017 at 6:41
4
Solved
I want to read and display WPF application publish version number in splash windows, In project properties in publish tab there is publish version, how can I get this and display it in WPF windows....
Vernacularize asked 4/5, 2014 at 18:12
5
Solved
I want to add HTML structure and control like this from code behind into a panel
<div class='Main'>
<div class='cst'>
First Name
</div>
<div class='csc'>
<asp:Label...
Touchback asked 31/12, 2013 at 8:45
4
Solved
In my page I have a CheckBoxList control and I have 7 items on it. I would like to set those 7 items as checked in my Page_load codebihind.
my page:
<asp:CheckBoxList ID="WeeklyCondition" runa...
Disvalue asked 27/7, 2014 at 6:11
6
Solved
I have an ASP.Net page with a C# code behind.
However, I've been asked to not use a code behind - so that it will be easier to deploy in SharePoint.
Is there a way to include the C# code in the ...
Telling asked 19/2, 2009 at 1:29
1
Solved
I have to do a Master/Detail in UWP
1- If you're in Laptop:
The responsible GridView of show the data of this person appear.
So when you select a item is binded to ViewModel.
<ScrollViewer x:...
Derogatory asked 3/1, 2017 at 22:58
3
Solved
I want to add a folder containing xaml and cs files plus other directories to a different project on VS. For some reason when I drag the folder from windows explorer to the project where I will lik...
Interceptor asked 14/11, 2012 at 21:20
5
ASP.NET, C#
As the title suggests I was wondering if anyone knew how to programatically (c# code behind file) add a div to another a container div (in the aspx page).
Thanks in advance
Shogunate asked 22/7, 2009 at 14:7
4
Solved
I notice with the latest version of ASP.NET MVC that a View no longer defaults to having code-behind classes.
How do I go about adding a code-behind class now to a View or Partial View??
Cellulous asked 25/3, 2009 at 6:37
4
Solved
I have a textbox with a Css class called 'required'. When a user click a button, I'd like to add additional Css Class to the textbox called 'error' without removing the 'required' class. I want to ...
Neoclassic asked 27/6, 2011 at 19:32
3
Solved
In xaml it is :
<View:BaseWindow.Icon>
/VBDAdvertisement;component/Images/logoVBD.png
</View:BaseWindow.Icon>
I want to convert it into code behind.
Thanks
Maudiemaudlin asked 24/11, 2011 at 8:50
4
Solved
Instead of excluding it, by mistake, I deleted the .cs code behind file for an Xaml file. Now, I don't know how to add the code behind.
This Window is empty with no UI controls on it. "View Code"...
Retharethink asked 11/6, 2010 at 14:15
2
Solved
I want to access the actual viewmodel that is currently used from within the view (code-behind). In the bootstrapper I have the viewmodel set to perrequest so I cannot use IoC.Get<..ViewModel>()...
Alanaalanah asked 3/10, 2014 at 13:33
2
Solved
There are several examples of how to populate a tree view from a collection of file paths such as this or this other example. I cannot seem to find such example for WPF. I know I can integrate wind...
Docilla asked 20/6, 2011 at 17:24
2
Solved
Is there any other way to display alert message from back end in asp.net web application rather than this.
ScriptManager.RegisterStartupScript(this, GetType(), "alertMessage","alert('Called from c...
Uptown asked 27/6, 2016 at 8:14
5
I drag and drop a Label control on my ABC.ASPX page.It Compiles correctly.
But the control (Label2) is not available in code-behind ABC.ASPX.cs for value assignment.
What is the resolution?
<%...
Pincus asked 9/4, 2012 at 22:56
1
Solved
I generate objects of framework Rectangle class (which is sealed) and programmatically add them to Canvas. I want to add some information to that objects. Is there such a possibility? I can get and...
Gummy asked 16/2, 2016 at 17:8
6
Solved
How can I add a span tag from a code behind? Is there an equivalent HtmlControl? I am currently doing it this way. I am building out rows to a table in an Itemplate implementation.
var headerCell ...
Sonya asked 25/11, 2009 at 18:51
© 2022 - 2024 — McMap. All rights reserved.