ascx Questions
8
Is it possible to place a WebMethod in an ascx.cs file (for a UserControl) and then call it from client-side jQuery code?
For some reasons I can't place the WebMethod code in an .asmx or .aspx fil...
6
Solved
I have a QuestionControl.ascx and a QuestionControl.ascx.cs code behind file I copied to a new project. When I build the project any references in the code behind file to controls declared in the a...
3
Solved
Here's the source of a blank .acsx file I created called LogOnBox.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LogOnBox.ascx.cs" Inherits="ECommerce.Views.Shared.LogOnBox" %>...
Hautbois asked 27/6, 2010 at 16:55
4
Solved
I have a user control where if a certain action is performed I want to redirect to the page the user was on with some additional query string parameters.
So, if UserControl.ascx was on Home.aspx,...
Osseous asked 12/8, 2011 at 13:43
3
Solved
I'm aware this question has been asked many times before but I suspect I have a unique scenario.
I'm loading a Child Control (ASCX) and setting a Property on that Control. This works perfectly fin...
2
Solved
I have a custom control in ASP.NET (VB.NET in code behind), defined with an ASCX:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="MyControl.ascx.vb" Inherits="Mynamespace.Controls...
Phocine asked 14/12, 2015 at 22:25
3
I am trying to implement a MVC Razor _Layout.cshtml page that uses a WebForm ascx User Control (non-MVC). I am doing this based off the "Yes" section of this Scott Hansleman article "Mixing Razor V...
Diastyle asked 28/10, 2011 at 20:5
3
Solved
I was asked a question in an interview, weather we can access a publically declared variable which is been declared in aspx.cs or ascx.cs page in aspx or ascx page respectively.
2
Solved
I have a ListView that includes an EditItemTemplate and an InsertItemTemplate. The two forms share almost all of their markup. For example:
<asp:listview runat="server" ... >
<layouttemp...
Boarder asked 2/2, 2010 at 14:34
8
Solved
Is there a way to use "<%= someObject.ClientID %>" in an external javascript file?
If I use the code
<%= someObject.ClientID %>
in a script tag inside my as(c/p)x page, it works fine....
Herbivore asked 30/6, 2011 at 23:8
5
Solved
Is there any way that I can use C# to load and then "render" an ascx control?
Essentially I am trying to replace inline ASP with a C# function which will return the same HTML. This would then let...
2
Solved
In an ascx file I'm presenting data from a databound field like this:
<%# Eval("Description")%>
The data source is bound from code behind.
Sometimes Description has some characters in it ...
1
Solved
I am still unsure the best way to go about it.
I've read alsorts of resources, yet still no closer to a working solution.
I created a partial ASCX file. Added Report viewer to it, then rendered ...
Laevo asked 16/1, 2013 at 12:47
2
Solved
I've made a Umbraco site, and ive got some members that i need to display information about in a usercontrol(ascx) page.
But the only thing i can find is the old umbraco api, with the m.GetProperty...
Burra asked 21/12, 2012 at 8:24
2
Solved
With the Razor view engine in MVC3,
Is it possible to render a legacy ascx?
I was expecting to be able to do something like:
@Html.RenderPartial("Footer.ascx")
Inextricable asked 30/6, 2011 at 17:43
3
Solved
Hi, I want to use if condition in .ascx file. As shown below:
<%= if (value.equals("xyz")) {} %>
as shown above, if i use like that. then i am getting error of "invalid expression if".
pl...
Lubow asked 28/7, 2011 at 11:10
2
Solved
If I register user control in ASP.NET page, the control will be loaded to the page or not?
<%@ Register Src=".." TagName="tag" TagPrefix="pre" %>
even if I not call it in the page using?
<...
Gentianella asked 30/1, 2012 at 11:51
2
Solved
I am getting the error below when trying to build the web site project in Visual Studio 2010:
The page '/WebSite/controls/C2.ascx' cannot use the user control '/WebSite/controls/C1.ascx', because ...
Bombacaceous asked 15/8, 2011 at 12:47
1
Solved
i have a issue that i dont know if it can be done.
i have an in an aspx page ,
that loads dedpends on user activity a user control (ascx).
the user control has a gridview which one of my columns...
Bega asked 24/6, 2011 at 14:22
2
How to use javascript in .ascx pages
Carrie asked 24/9, 2010 at 9:36
6
Is it possible without encapsulating these controls in aspx files? The Register tag makes me think that it is not.
Oarlock asked 31/7, 2009 at 13:46
3
Solved
I'm working on a small MVC "framework" (it's really very small) in Scala. I'd like to be able to write my view files as Scala code so I can get lots of help from the compiler. Pre-compiling is grea...
6
Solved
I'm developing an ASP.NET application with C# and Ajax.
I have a page that holds user controls loaded dynamically. I need to pass some data (integer values and some strings) to the user control th...
Dolliedolloff asked 4/2, 2010 at 16:29
2
Solved
I currently have a dropdown inside an ascx control. I need to "find" it from within the code behind on another ascx that is on the same page. It's value is used as a param to an ObjectDataSource on...
Bestow asked 31/12, 2009 at 23:2
2
Solved
I am trying to implement a custom control using a RowClickableGridView class provided on this Stack Overflow post. This is the first time I have tried to create a custom server control and followed...
Pignus asked 3/12, 2009 at 14:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.