controls

Other ways besides databindng to assign a value to a property declaratively

You can assign values to properties that are strings, numbers, etc. like this <asp:Control property="stringvalue" /> However when the property type is something complex(a class type) you must do this: <asp:Control property=<%#Value%> /> And then call the data binding command to set the value. In some scenarios calling the databind...

How can plain HTML controls be referenced from ASP.Net controls?

Here's my scenario, for which I guess there's a simple solution I'm missing: I want to add a confirm button for each delete link in a MVC app, so when I try this: <%= Html.ActionLink("Delete", "Delete", new { id = item.Id }, new { id = "_delete_" })%> <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID=...

.NET WinForms Control class

Do all the windows and controls (including active-x) displayed inside WinForms application are derived from System.Windows.Forms.Control class? ...

Extending a solution for simple binding to a 'Text property to multiple Controls to handle binding to any Type ?

My question is : how to move beyond writing a custom implementation of a technique for databinding multiple controls (controls without built-in DataSource properties), for each possible type of data, to simple properties ... as described and demonstrated in code that follows ... to achieve a more poweful solution that will be independent...

Delphi and prevent event handling

How do you prevent a new event handling to start when an event handling is already running? I press a button1 and event handler start e.g. slow printing job. There are several controls in form buttons, edits, combos and I want that a new event allowed only after running handler is finnished. I have used fRunning variable to lock h...

VB.NET dynamic use of form controls

I have 10 labels named lbl1, lbl2, ... lbl10 I'd like to change their propriety (using a cicle) with the cicle index for i as integer=1 to 10 step 1 lbl (i) = PROPRETY 'I know this is wrong but it's what I would do... end for I'm using a workaround, but I'm looking for a better way.. Dim exm(10) As Label exm(1)=lbl1 ...

Richtext editor control or component for winforms that looks/behaves like tiny MCE

I am looking for a free Richtext editor that functions like the TinyMCE editor but for a winforms app The most important part is that it must implement a editor toolbar so that the user does not need to learn a markup language ...

Is there a datetime control for the Zend framework?

Here I have a password field: /*********************PASSWORD**********************/ $password = new Zend_Form_Element_Password('password'); $alnumValidator = new Zend_Validate_Alnum(); $password ->setRequired(true) ->setLabel('Password:') ->addFilter('StringToLower') ...

Tree View / File View Control for C#

I have been looking for a C# tree control for displaying a file system that has the following capabilities: Select a starting directory. I don't always want to start at a "default" top directory level. The ability to grab an event when the user double clicks on a file in the tree. I want to handle opening the file within my applicati...

My MS Access control displays no text for appended items following an append query

Relevant Tables #One# +----------+ +--------------+ |Quotations| ---> |PurchaseOrders| +----------+ | +--------------+ <One> | <Many> | | v #Many# | +-----------+ +------------+ v |Quot...

Show NSSegmentedControl menu when segment clicked, despite having set action

My question is based on another question. Instead of repeating a bunch of stuff, I hope it's okay that I refer you to that other question instead: http://stackoverflow.com/questions/1203698/show-nssegmentedcontrol-menu-when-segment-clicked-despite-having-set-action/ My question is: How would the code within [self showGearMenu] look lik...

Get sequence of selection of items in listbox control in c#

I have the list box control (ASP.NET Control On aspx page, language C# ). It has collection of integers as Items: 100, 200, 300, 400, 500, 600, 700. ok ? I randomly select the list items at run time. as : 200, 500, 100, 300. Ok? I want this sequence of selected list in List collection. How can i do this ? Please guide me. ...

Replacing a window's control with another at runtime

I've got a handle to a window and its richEdit control. Would I be able to replace the said control with one of my own ? I'd like it to behave as the original one would, i.e., be a part of the window and suchlike. I'll elaborate the scenario further - I'm currently disassembling an application one of whose features is a text editor. My ...

Can I pass events like key strokes to another control in Silverlight?

Can I pass events like key strokes to another control in Silverlight? Imagine I'm in a custom control that contains a Textbox and a Treeview. I'm listening to a Key event for the TextBox. When the user pushes the Arrow Up or Arrow Down key, I want the Treeview to behave as if it's itself who received that event, i.e. it should move the...

ASP.NET Validator Controls Slowing Down Page

Hi all, I have an UpdatePanel that has user controls dynamically added to it. There can be a few dozen user controls at times. The page / UpdatePanel slows down big time on each postback as more user controls are added. After some digging, I was surprised to find the cause is the various CompareValidator, CustomValidator, RegularExpres...

User controls and Viewstate

I have a user control where I display a telerik radgrid and some textboxes and radcombo boxes. My radcombo boxes lose view state on postbacks. The text boxes and the grid maintain their state, but not the combo boxes. Any clues why? I read somewhere that databound controls on user controls don't maintan their state on postbacks. Thi...

How to unregister a Control from HelpProvider?

I'm having a user control (referred to as 'parent') which dynamically adds or removes other controls ('child'). The parent maintains a HelpProvider object that is supposed to be queried for help strings associated which controls contained in child ('subchild'). The subchild controls are not accessible directly, so I am planning to provi...

How can I limit asp.net control actions based on user role?

I have several pages or views in my application which are essentially the same for both authenticated users and anonymous users. I'd like to limit the insert/update/delete actions in formviews and gridviews to authenticated users only, and allow read access for both authed and anon users. I'm using the asp.net configuration system for ...

TabItem from external XAML is displayed in content area in TabControl. Why and what to do?

Basically this is the following to this: http://stackoverflow.com/questions/1226622/why-are-tab-headers-displayed-in-the-content-area-of-tabs-in-a-xaml-tabcontrol So, I have some TabControl: <Window x:Class="MyApp.HostTest" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.c...

Recommend Books for Developing ASP.NET User and Custom Controls

Please recommend books for developing ASP.NET User and Custom Controls ...