Is it possible for asp.nt ascx controls to have their own client side load event, like a window.onload for each, so I can hide the loading divs and show the content div when http transfer is complete.
I have image menus and cycle galleries that seriously need some loading progress don't know how to implement them. The site is http://te...
Is it possible without encapsulating these controls in aspx files? The Register tag makes me think that it is not.
...
I've been working for a while with .net unit testing and stuff. Now I need to create tests for ascx and ascx.cs pages (but it aspx and aspx.cs references might also help). I'm not very familiar with webtests. Can anyone give hints or references that might help (tutorials, blog posts about best practices, etc.)?
It can be references abou...
I used this example and created a form within the ascx control.
http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/
the problem is, whenever i place a asp.net button or an update panel, the ascx doesn't load. what could be the problem?
...
I designed an ascx control (I refer to it in this question as customControl). The control is just a series of drop downs with text values in each drop down. The drop downs are inside a panel.
Here it is below:
I then place a few of them on a page that also has a textbox (I refer to it here as textbox)
Here it is below:
So what I ...
Greetings All,
I have two ascx's loaded in the page-init event of an aspx page. Control 1 has a radio button list that I want a dropdown list on control 2 to respond to it's selectedIndex change. So far I call RaiseBubbleEvent on the SelectedIndexChange handler and I pass on a control reference and commandArgs. Then in the aspx I overrid...
Because .ascx files are naturally rendered early in the page life cycle, if I want to update information on a form that is outside the .ascx part, how do I refresh the .ascx file to reflect the changes, say on button click (the same one that saves info)?
For instance (pseudocode):
Sub Page_load
'user control is naturally rendered h...
Hi All,
I'm trying to build an ASP.NET project and I have a control who's source page, currently, has no markup and just a control directive:
<%@Control language="C#" CodeFile="SummaryEventFeed.ascx.cs" Inherits="SummaryEventFeedControl"%>
When I build (using msbuild or Visual Studio) it points to that line and says:
Error 240 A ...
I have a custom ASCX control that is not visible in design mode in VS2008.
It used to be, I changed nothing and now when I switch back to design mode, it is not visible.
Has anyone ever face this situation?
...
Hi guys,
I wonder when do you consider to create a user control in .NET? Do you have some basic criteria to exclude your code from the page and introduce a new user control?
Usually I tend to follow those to decide whether I need a user control or not:
When the page seems to be more readable with a separate user control
When some par...
Are ASCXs still used in ASP.NET MVC or should we be using something else?
...
In other words is it possible to host aspx and ascx files inside the same IIS site running svc files?
...
I want to set a metadata attribute (parsechildren=false) in a custom control which I am writing.
I do not want to create a partial class in a code behind file.
How do I set metadata in the ascx file?
...
Will this run inside an ASCX file in my ASP.Net project?
I can't seem to get it to work, just wondered if there was some particular thing missing? Do i need to include "runat="server""?
<!--[if lte IE 6]>
<script type="text/javascript">
window.onload = function() {
var images = document.getElementById("GetQuote").getAttrib...
I have master page and my other pages like index, category etc in the same folder (root), and the root folder also has _images folder and _includes folder that contains some ascx controls.
Now, the images seem to be working fine for "img" tags, but it's working very oddly for ImageButtons. Apart from index page, it is usually unable to...
My site has a master page file and several pages. I have a ModalMessageBox user control located in a Controls folder (ascx and C# code behind). I have made an entry in the web.config file in the controls branch.
<add src="~\Controls\ModalMessageBox.ascx" tagName="ModalMessageBox" tagPrefix="hip"/>
In one page, works fine. When...
Hi,
I had a situation to call page load method when an ascx control loaded through modalpopupextender's popupcontrolid. In that ascx control's page load method i have assigned values to the textboxes. So when an ascx control popped up it will show the textboxes along with values.
Please anyone help me.
Thanks in advance.
...
I am loading a custom ascx control in page_load of the page that hosts it.
This creating all sorts of issues with postbacks. Mainly, control (textboxes, dropdowns,etc) states are getting reset before the event handlers can process them.
Does any one have any good examples of how I could handle this?
My site design can be seen here.
I'...
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 great, but what I really want is a way to have the servlet container automatically compile certain files (my view files) on request so I don't hav...
Is it possible to isolate an ascx controls in a separate project? I tried to create a project 'class library' and I can not add ascx component.
...