When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a WinForms user control which ends up being a hosted IE control. What is the proper way to go about doing something like this?
...
Like many others on this site I am considering a move to ASP.NET MVC for future projects. Currently my sites are running the traditional ASP.NET 2.0 Web Forms, and it works Ok for us, so my other option is just to stick with what I know and make the move to ASP.NET 3.5 with the integrated AJAX stuff.
I'm wondering about how user contro...
I am adding some user controls dynamically to a PlaceHolder server control. My user control consists of some labels and some textbox controls.
When I submit the form and try to view the contents of the textboxes (within each user control) on the server, they are empty.
When the postback completes, the textboxes have the data that I ...
I have several forms in a .net windows app that have a common set of textboxes and other user input controls,each form has the same look and feel, but each form needs to load and save to different database tables.
Would it be better to place the controls on a base form, and inherit from it or to create a user control to drop on each f...
Hello world.
I am developing a small application which lists the contents from files of a given format. The file format acts as a template for describing binary data (think binary xml). This allows the clients that produces these files to store data in any way they want, so the interpretion of all types contained are not known. What I w...
I know how to create a custom user control in WPF but how can I make it so that someone can provide an ItemTemplate?
I have a user control that is a mixture of several other WPF controls, one of them being a ListBox. I'd like to let the user of the control specify the content of the list box but I'm not sure how to pass that information...
I understand that you can now create MVC-specific user controls, but will my existing standard ASCX user controls work in an MVC view?
I understand that MVC pages have a completely different lifecycle but will, for example, a Page_Load method be invoked as normal when the control is sitting in a view?
...
Distributing ASP.NET user controls across different projects can be really useful when you want to create a library of controls that can be used by different projects.
Unfortunately, to my knowledge, ASP.NET (2.0 at least) doesn't support this very cleanly.
The only technique I know of is to add the control to another project, then cop...
In ASP.NET 2.0 it is my understanding that although the API existed for loading a user control by type, it didn't actually work.
Or at least I never managed to get it to work, and I know from blogs that others have had similar issues.
So I use a wrapper type that provides the functionality I need, invoking the relevant control constru...
I have a user control that will be used in several pages (as is the custom with user controls) that contains a form.
I was thinking on how to guarantee its functionality.
First I wanted to have a single controller with a single method accept the values for this form. The only thing blocking me there is that after this method is done wit...
OK I'm redoing this since I messed it up. :) here's the xaml.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ucWaitIndicator.Window1"
x:Name="Window"
Title="Window1"
Width="640" Height="480">
<Window.Resources>
<St...
I have an ASP.NET user control that contains a text box control and a button control. This user control will be added to my web-page many times. I need to have a piece of JavaScript that will run whenever the text box changes, and disable the button if the value of the text box is invalid. My question is this: how do I put JavaScript ...
I have an ASP.NET web form which I am adding a variable number User Controls to. I have two problems:
The User Controls are added to a PlaceHolder on the form in the first PageLoad event (I only add them when "(!this.IsPostback)", but then when the form is posted back, the controls are gone. Is this normal? Since other controls on t...
I have an order page that is being rendered from a Model object (Order) with a few properties. One of the properties of the Order object is
public List<OrderItem> Items { get; set; };
and the other is
public List<OrderComment> Comments { get; set; };
My main page is declared like this:
public class OrderView : ViewPage<Order>
I...
I'm developing a Desktop Search Engine in VB.NET and I'm looking for a powerful, flexible and feature-rich control for displaying the search results i.e. list of files.
...
I have a user control that has multiple update panels
On Page Load, I load a child user control dynamically onto the PlaceHolder (I do this everytime and don't check for postback)
I want to be able to maintain the state of the changes that a user makes in the Child user control. (The ch...
So here is a project outline, I need to make a web application with its core components encapsulated in Web User Controls. The reason for this is that the company will be using MOSS extensively by early next year, and we want to use these components later on as web parts. I think these web user controls will need to be flexible in terms ...
how can i call a VB function - deleteevent() in usercontrol.ascx.vb from a javascript function in clickhandler(e) in usercontrol.ascx. The call should cause a postback because i need the usercontrol to display the changes.
i am currently trying to do it by using a linkbutton with style display:none, and calling its click event from the ...
Is there a way to obtain a list of User Controls (an/or instances of user contols) that have been cached? The Cache object's collection doesn't seem to include OutputCached items. Thank you.
...
I'm currently building a user control that displays a message when a Repeater is empty.
The idea is simple, provide the user control with the ID of the Repeater. When the user control is rendered look up the Repeater and check Items.Count. If it's zero then display the message.
I would like to add one more feature though. I want to be ...