asp.net-webcontrol

Can ASP.NET web controls take in anything in the constructor?

I want to have a secure control but also want to extend the existing button or textbox the asp.net framework provides. So my class dec would look something like: public class MyTextBox : System.Web.UI.WebControls.TextBox I was thinking something like a strategy pattern for doing it, but not sure how I could pass in a ISecureControl i...

Third Party Controls for Address Input

Can anyone recommend a third party control for an ASP.NET site that supports the entry and validation of address information for multiple countries? For instance, when "USA" is selected as the country a text/combo box for "State" is displayed/enabled and required, where as it's hidden/disabled and not required when "Canada" or other co...

Creating a collapsable area in ASP.NET

hi there! currently i've built a collapseControl which behaves similar to a label (associatedControlID) to control the collapse-state of a control. following control i'd like to build: i thought of something like: put my already build collapsableControl and some other control (eg. panel) together to get a collapsableArea. first t...

Membership Provider ChangePassword Method Return Type Problem

We have implemented a Custom Membership provider and have a change password control on a webpage that uses this provider. The ChangePassword method in this membership provider class checks some business logic about password strength and validity by connecting to an external webservice. The webservice has the ability to return exactly wha...

How can I include additional markup within a 'Content' inner property of an ASP.Net WebControl?

I've searched the site and I cannot find a solution for my problem, so apologies if it's already been answered (I'm sure someone must have asked this before). I have written a jQuery Popup window that I've packaged up as a WebControl and IScriptControl. The last step is to be able to write the markup within the tags of my control. I've...

How can I place one ASP.NET calendar control beside another?

Is there any way to put Two ASP.NET standard calendar controls on Webform, one beside the other? I have been trying for a while to design a WebForm with two calendars controls, but whatever I try they are standing one above the other. Here is how my aspx looks like: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JedanDoDruge.a...

ASP.NET two-way binding in user controls

I have a pretty simple control for user to choose a TimeSpan, which consists of a textbox and a drop-down list with time units (minutes, hours, days). I parse the value in LoadPostData method, but when the parent FormView is enclosed in, say, MultiView the TextBox's Text property is empty. When should I parse the value to make it work in...