code-behind Questions

9

Solved

I would like to call a javascript function from an aspx control. For instance, suppose I had: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled P...
Disable asked 25/4, 2009 at 6:16

1

Solved

I want to copy a List of Objects, but i keep getting references between the objects. List<MyClass> copy = original; When i change the value in the copy List, the original List ends up modi...
Inveigh asked 11/3, 2013 at 3:25

3

Solved

How can I load a user control[s] in a window dynamically (using code at runtime)?
Gender asked 21/11, 2009 at 8:48

1

Solved

Do ASP inline expressions <% ... %> get run on the server before or after the code in the code-behind is executed?
Sherrisherrie asked 4/3, 2013 at 19:28

4

Solved

I am attempting to adapt a Windows Metro-style app sample slightly by binding the title text to a property defined in code-behind, but I can't seem to get it to work. Reading the blog post titled B...
Nary asked 26/12, 2011 at 14:40

1

Solved

So, I'm not sure what's going on. My boss wasn't pleased with me using MVC and Razor, so I'm being forced to code with this nasty webcontrol/codebehind style. =/ The error is: Only Content contro...
Counterbalance asked 22/1, 2013 at 20:44

1

Solved

I have a class in a file that's in the "App_Code" folder. I'm able to use this in an "aspx" file but not from a code-behind file. How do I make it visible to a code-behind? NOTE: This is ASP.Net o...
Mizell asked 7/1, 2013 at 22:14

3

Solved

I need to add code behind class to Resource Dictionary as described in this question. (I know that this is not a good practise but it should work based on the comments for linked question) .I'm ref...
Tampa asked 30/7, 2010 at 10:37

2

Solved

I'm trying to add a column to a GridView, in ASP.NET 2.0 gridViewPoco.Columns.Add(...) However, i cant find the right option. I'd like equivalents to the following: <asp:BoundField> <a...
Z asked 16/5, 2011 at 12:51

3

Solved

I have a checkbox and a panel inside of a FormView control, and I need to access them from the code behind in order to use the checkbox to determine whether or not the panel is visible. This is the...
Flick asked 18/12, 2010 at 1:49

1

Solved

I have an asp website with the following control: <span id="expTrainingShow" class="clsLink" style="margin-left: 20px;" onclick="GridChanger();"> + Show Expired Continuing Education</s...
Somersault asked 5/9, 2012 at 21:53

3

Solved

I wanted to bind to an ObservableCollection in XAML and also apply the grouping there. In principle, this worked fine. <UserControl.Resources> <CollectionViewSource x:Key="cvs" Source="{...
Carltoncarly asked 15/6, 2012 at 7:48

3

I want to hide html list item that is "li" tag using C#. But i can't do this. In earlier i just hide DIV tag using c#. But i can't hide "li" tag. Please help me to do this .If you can please send y...
Eogene asked 9/3, 2012 at 10:29

1

Solved

in my aspx page I have this div.. <div id="downloadableProducts" runat="server"><a href="#">Downloadedable Products</a></div> I am trying to change the css in the code beh...
Hoplite asked 4/6, 2012 at 19:53

1

Solved

So I seem to have some difficulties with making my CodeFile reference into CodeBehind. Before you ask, I do not have Visual Studio and I'm not on Windows. The code is being hosted on an IIS server ...
Philomenaphiloo asked 2/5, 2012 at 15:57

1

Solved

i am trying to binding a very simple property to a TextBlock, but I have to do all in code-behind (C#). What i am trying to do is: public string SomeText { get; set; } And after I try the Bindi...
Nathanaelnathanial asked 12/4, 2012 at 20:51

3

I have an aspx page where I need to check and display an error message on the page on page_load. The error message is below: <div class="errorMessage">The user ID or password you entered doe...
Opalescent asked 9/4, 2012 at 15:19

6

I'm in need of a way to force a postback or page reload in codebehind. Tried using some javascript but didn't get it to work. Browsing the net I see the first question is "why"? Circumstances are ...
Rheumatic asked 27/5, 2009 at 9:57

8

Solved

I am new at C#.Net and i have one question that i couldn't manage to find on the internet. When should i use a classic combination of html + javascript + css instead of using an aspx page with a co...
Modular asked 14/3, 2012 at 12:34

4

Solved

i am using a JavaScript and it have the below code: <script type="text/javascript"> var count = 0; jQuery('td').click(function () { if ($(this).hasClass('process')) { count = count+100; ...
Piano asked 1/3, 2012 at 12:30

2

Solved

I have a project that has a service reference to a web service. Is there a way from the codebehind to get the actual http address of the service reference? Thanks
Edana asked 24/2, 2012 at 15:7

4

I have a function that is responsible for populating an SSRS report. The user presses a button and I go out and check to see if there is data. If no data, I provide a NO DATA message. If there is d...
Porker asked 10/2, 2012 at 21:25

2

Solved

I have a few controls defined inside an update panel which are bound to repeater control. I need to hide and show the user name and country based on anonymous fields, but the problem is that I'm no...
Thynne asked 1/2, 2012 at 12:47

6

Solved

I have the following definition at the top of my .ASCX file: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleView.aspx.cs" Inherits="MyNameSpace.ArticleView" %> In that...

1

Solved

I’m learning C# and building a UI that reads and writes integers to an XML config file. The UI uses a variety of custom user controls. I have a 3 radiobutton user control that binds to a single int...
Tabbitha asked 7/10, 2011 at 0:33

© 2022 - 2024 — McMap. All rights reserved.