ascx

How to find the Web User Control (i.e. .ascx) used on the page layout in sharepoint site

Hi, I need the list of all the user controls(i.e. .ascx) used through out the site in sharepoint. This can be done in Site Content and Structure by selecting any page layout in the Master Page Gallery and by clicking on the Show Related Resources link. I want to know whether there is any sharepoint API available for this functionality...

ASP.NET Controls from different assembly

Hi, I've got some controls in my 'GeneralControls' assembly (classic DLL), those consists of .ascx file (and codebehind for them). I'm referencing that DLL, and using the controls as: <%@ Register Tagprefix="g" Assembly="GeneralControls" Namespace="GeneralControls.UI" %> <g:FooterControl ID="Footer" runat="server" /> but, FooterC...

DotNetNuke, Ajax and jQuery: Hiding a table row.

Hello everybody, I have written a DotNetNuke module for a customer that allows them to "delete" a coupon from a table. When they click the link, an Ajax POST is created, using jQuery, and upon success the row should be deleted (or at the very least, hidden) and a success message displayed with a CssClass attached. Everything is workin...

ASP.Net Client-callback not working from ASCX control

I need to call ASP.Net server side code from the client. Because I'm in an ascx user control I can't use [webmethod] + PageMethods as this only works on ASPX pages. The next option that I thought would work was manually creating a client-callback. Using this method the client will successfully call the server code but the client will no...

Linking to ascx file

I am utilizing controls in my asp.net application. I have a register tag the source of which needs to be dynamic. I am using the line below which functions correctly when the full path is specified but when I change it to the variable I get a parser error. Any idea how I can go about doing this? Thanks <%@ Register TagPrefix="leftNav" ...

How do I add a custom attribute to a templated ascx file?

I would like to decorate my ascx with an attribute so that when I search for types that have that attribute it will appear. The issue is that it seems like I can only add it to the base class which means that when I do a LoadControl on the type I don't get the ascx file, I get base class. I'm trying to avoid having controls require being...

In ASCX-control not doing IF/ELSE condition

There ASCX-controls that the program-loaded onto the page. In a Repeater control in which, depending on the conditions displayed a different set of COLUMNS and DataTable with a different set of columns. So, on the ASPX-page, this construction work Good. <ItemTemplate> <tr class="objectrow" href="<%# GetCompleteViewObjectLin...

Embed an ASPX page into an ASCX Control ?

Is it possible to embed an ASPX page into an ASCX control? ...

Can we make an ajax request to a usercontrol (.ascx)?

I have a page that contains a user control. Can i make an ajax request directly to the control? I know I can make an ajax request to .aspx or .ashx; however, is it possible to go direct to the .ascx? ...

dynamically create metatag in ascx file

I've added the following code before the html opening tag on a .ascx file which is used as a master page for the site. Can anyone see any reason why this isn't working? When I view the page source, the robot metatag does not exist: <script language = "vb" runat = "server"> Public Sub Page_Load(Sender As Object, E As EventArgs) ...

Adding a .ASCX item to the Sitemap...

Is there a way to add .ascx files to a sitemap such that it will load/unload the controls based on the last ones visited? The problem is i have a page that contains a few controls that get placed under one another, and i'd like to just be able to jump between them with the sitemap instead of creating a new page for them... this is what i...

JSON push not working from ascx

Hi I have a json object that i have declared in the master page. I want to push few elements in it from the ascx controls that are loaded For. e.g. Master page em = { d: [ { ID: "txt_Username", HelpID: "1" } ] } em.d.push({ ID: "txt_StatusUpdate", HelpID: "3" }); em.d.push({ ID: "txt_textarea", HelpID: "4" }); This...

Why ASCx disappear if clicking button to Save?

i added ascx control in tab control with C# codes. if you click any tabs. ASCX control load. tab control in update pane. Alos ASCX control includes button if you click button you can add some value to database but ASCX disappear. i think that it is reloaded. How can i solve it? i loaded ascx control if i click tab control. i have a butt...

Deploying an ascx control

I have a fix done for my user control. The changes are there both in the .ascx file and the .ascx.cs file. Now, post-build...is there any way I can deploy just my...assembly for this control container...and avoid the deployment of the .ascx file? ...

Accessing ascx controls from a codebehind ascx.cs file

This one should be pretty simple. I am making a non-MVC ASP.NET 2.0 site. VS2008 seems to generate controls with a <script> area -- I want the code in a codebehind, so I've manually hooked that up. I have the following: widget.ascx: <%@ Control Language="C#" ClassName="widget" Codebehind="widget.ascx.cs" Inherits="widget"%> <asp:Labe...

MVC, ascx and Javascript best practice(s) - how to create self-containing controls? NerdDinner does it wrong.

Hi, The question is how to create controls/partial views/edittemplates (ascx files) in ASP.Net MVC2 so that they are "self-containing". Self-containing means here that if some Javascript code should be applied on the control, that's not included in the page (aspx), but in the control itself. Specific example: NerdDinner's DateTime.ascx....

How to use javascript in .ascx pages

How to use javascript in .ascx pages ...

How can I register a css page from an ascx control?

How can I register a css code block inside an ascx control? Can I just have <head id="head" runat="server"> <style type="text/css"> .customClass { background-color: Lime; } </style> </head> Anywhere in ascx page? I doesn't seem to work? ...

iframe reload issue firefox file upload

My ascx does support postback(dont ask why), I do an ajax call to save all the data on page, but I have to do a file upload as well so I am using an iframe for it. Everything works well expect for in the firefox. In the firefox it all works well for the first time not the 2nd time. i.e. if the form filled and files uploaded and submitte...

Control Layout Template

I need a way to layout controls in a page. Let me ask you by example. I have four different action buttons (Edit, Delete, etc..) that do the same actions on any page, but sometimes I want them laid out horizontally and some other times vertically, depending on which page is displaying them. So I thought of placing all four buttons in a u...