controls

Disabling all the Page Control through jQuery.

I am working on asp.net and c#. I am using lots of ASP and HTML controls on the page and in some cases all the controls gets disabled. Some of the used Controls are: RadioButton RadioButtonList CheckBox CheckBoxList TextBox DropDownList Button etc... I need a Simple and short method to disabled all the Controls when i call this jQuer...

binding html radio buttons

I have a list of input type radio buttons in formview (edit mode) and i want to bind data from datasource that is assigned to formview. Can i bind html radio buttons using sql datasource? ...

monthcalendar control selected range not drawing correctly

I have a monthcalendar control in my form and when I select a range, the range just whites out. I checked the titlebackcolor (Highlight) and titleforecolor (AliceBlue) and they are not set to white. Anyone know what I can do to correct this? ...

How to create new Control depending on SelectedValue in a DropDownList

I have a with dynamic values from an Enum like: String, Int, Double, Bool, DateTime. How do I create a new Control depending on what is the SelectedValue dynamically into the page? I want a CheckBox for Bool, TextBox for String, Calendar for DateTime etc. ...

Windows forms multi-band grid

Hi, Are there any free winforms multi-band grids like the Infragistics UltraGrid? Is it really a unique idea? :) Read-only one is good enough. Thanks in advance. ...

How can I detect if the design-time value of a web control property has been changed at runtime?

I'm creating a basic asp.net webcontrol that will have a property that can be set at design-time in the HTML and changed at runtime in the code. I'd like to only have the value of the property saved in ViewState if it is set at runtime and is different than the original value that was set at design-time. If the value is never changed at ...

MFC Dynamic Text Control?

What MFC control should I use and how should I use it to display constantly changing text (like progress text) on a dialog? For example, should I use the static text control? But can you change it programmatically? ...

Controls.Add(interface)

I have an interface that is implemented in a customcontrol: public interface IArrow{...} pulblic class Arrow1:UserControl, IArrow{....} pulblic class Arrow2:UserControl, IArrow{....} Then i have my form that shows the arrows doing: Arrow1 arr1=new Arrow1(); Arrow2 arr2=new Arrow1(); this.Controls.Add(arr1); this.Controls.Add(arr2); ...

How to move ASP.NET PlaceHolder control from Page controls collection to a custom Control's output?

I am writing an ASP.NET custom control. In my custom control code, I find a PlaceHolder control in the page like so: this.myPlaceholder = Page.FindControl("placeholder1") as PlaceHolder; Then, I render the placeholder as the output of the custom control: protected override void Render(HtmlTextWriter output) { if (this.myPlacehol...

Looking for a freeware tree/grid hybrid winform control for .NET

Has anyone seen one? ...

How to dynamically render asp.net controls from string?

Let's say I have a string that I retrieve from a DB like: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et {{Hyperlink|navigateurl='/foo.aspx'}} dolore magna aliquyam." This string may now get assigned to the Text-property of a label. What I want is to parse {{Hyperlink|navig...

WPF Enable Disable Controls.

Hi, When I disable a control in WPF, like say a Menu item, like MenuItem aMenuItem = ... aMenuItem.IsEnabled = false; the text in the MenuItem is still active, that is it is not grayed out as you would expect when items are disabled. Is there a simple way to do this not only for Menu items but for any WPF control? Thanks ...

Relate field control ID in the page layout

Hi, I am facing a problem while referencing the field control in the page layout. In this article there is a field control which id is "PGPageBottomLeftContent" which store the data in the column "PageBottomLeftContent". I am not able to know that how it stores the data in the perticular column however the column name is different. It...

Is it a problem to use the same IDs in different asp.net FormView templates?

I understand that only one FormView template is rendered at any given time, so is it ever a problem to reuse child control IDs? For example, the insert and edit templates are identical in this FormView, each has a TextBox in which a user may enter their name. Would it be a problem (or a bad idea) to give both text boxes the ID "NameTex...

In WPF how to create a textblock with copy text option (OR) a text box with text trimming option

In WPF how to create a textblock with copy text option (OR) a text box with text trimming option. Any control template needed? If yes, please let us know hpw to build it. Please help. Sukan ...

Restoring old value of a textbox (or any other control)

Probably a very basic beginner question. Imagine the following situation: I have an ASP.NET page with a textbox and a button. In the textbox I enter let's say a name "Laurel" and click the button. The textbox is related as a control parameter to a data source and this data source pulls the content "Laurel" from the textbox to build a q...

ToolStripStatusLabel DoubleClick does not work?

Does ToolStripStatusLabel DoubleClick ever work? Private Sub myToolStripStatusLabel_DoubleClick(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles myToolStripStatusLabel.DoubleClick MessageBox.Show("WORKING!") End Sub Only Click works. DoubleClick does not even if Click is present or not. ...

C# append to placeholder

So I am trying to make a dynamic form builder where people can add a new form and add fields to that form (the add field brings up several textboxes & dropdown options for that new field). Is there any way to append to a placeholder control when clicking 'add new field'? Also, what is the best way to get the values from those dynamical...

Control that allows dragging of form

Alright, so i built myself a control, and id like to make it so when somebody launchs my app, they can drag on my control just as if they were dragging on the title bar of the application. What is the best was to do this? My experiments so far: Ive played with the mousedown,up,move events, and tried to decifer when the mouse has been mo...

can we use ColorPicker Ajax Control in asp 2.0?

Use of ColorPickerExtender in asp 2.0 Provide Example ...