Browse by Tags

All Tags » Web » Custom Controls (RSS)
I've come up with some preliminary design specs of the initial functionality that I want in this control. I've included some of the interactions that can happen in the control, and the basic view (once I figure out how to attach an image, I'll...
I really like some of the components you see in computer magazines. They have a visually appealing, yet functional approach to being able to schedule work items and tasks, similar to what you can do in Outlook. I haven't done this yet; it's not...
I've been writing some custom controls and I have several controls in a composite controls that have links. Take this custom CompositeControl, for example, where I define a calendar: private Calendar _calendarControl =null; // properties to expose...
Posted by bmains | with no comments
Filed under: ,
http://www.codeplex.com is a great community site with many developers contributing various types of awesome applications. That is where I stored my Reminder.NET project, which was discussed on the Extreme Programming blog. One of them that I downloaded...
Posted by bmains | with no comments
Filed under: ,
The gridview and detailsview controls, which support using DataControlField classes for their columns, support the addition of any DataControlField custom fields you create. For instance, I created a RowField custom field that is hidden, but highlights...
Posted by bmains | with no comments
Filed under: ,
Recently, I've been seeing the value of application frameworks, like the Membership and Roles frameworks. Having the capabilities for your application, custom controls, and other objects to work together through a common API, components working together...
Posted by bmains | with no comments
In ASP.NET 2.0, there is an UrlProperty attribute that can be used to link a property to a specific file type. For instance, the property: [UrlProperty("*.aspx")] public property PostBackUrl {} This property restricts the file type to .aspx files. You...
Posted by bmains | with no comments
Filed under: ,
I was looking with Reflector at the GridView control the other day, realizing how it received click events for the buttons defined in the GridView. Whenever a button is clicked, it has a command associated with it. This command event argument is bubbled...
Posted by bmains | with no comments
Filed under: ,
I must admit some initial flaws in my control design. I originally thought that the custom control could work by having the child control that is repeated could build its own control collection and manage its own viewstate. I think I was wrong, and I...
Posted by bmains | 218 comment(s)
Filed under: ,
Previously, I posted that child controls of a composite data bound control can post back for certain events, and yet the child control can retain its viewstate. So what happens on the data bound control side? The data bound control taps into the child...
Posted by bmains | with no comments
Filed under: ,
I had a problem with a composite control I was building; I tried several ways to implement it, either through the CreateChildControls and Render methods, or through Render only. Neither approach worked. What I was trying to do it output a label or textbox...
Posted by bmains | with no comments
Filed under: ,
When creating custom controls, especially composite controls that can change their state from a readonly mode to an edit mode (switching controls that show the data from labels to text), the ITextControl interface comes in handy. It defines the Text property...
Posted by bmains | with no comments
Filed under: ,
If you are looking to create custom data-bound controls, the Microsoft documentation has a few examples, including this walkthrough: http://msdn2.microsoft.com/en-us/library/ms366539.aspx What I have a hard time understanding is the code they recommend...
Posted by bmains | with no comments
Filed under: ,
It is possible, in an assembly, to embed a javascript file. This can be useful to keep your javascript code with your .NET custom control code, which is the most frequent usage. To get a reference to it, you use the Page.ClientScript.GetWebResourceUrl...
Posted by bmains | with no comments
Filed under: ,
Here's an article I wrote on Custom EditorPart controls. These editor parts are cool, because they render like any other control, and work dynamically to edit the values of a class that inherits from the WebPart class. Classes that implement IWebPart...
Posted by bmains | with no comments
Filed under: ,
More Posts Next page »
The leading UI suite for ASP.NET - Telerik radControls
Outstanding performance. Full ASP.NET AJAX support. Nearly codeless development.