controls

[ASP.NET] What are the differences between User Controls, Server Controls & Custom Controls?

I thought I had reasonable answers for this question at a recent interview, but I bombed it. :( What are the major differences between the three? If not obvious by the answer to the previous bullet, when would you choose one over the other? ...

ASP.NET login controls modifying source file locations

I have login control on a page that is automatically redirected to if the user requests a page that he/she does not have access to. The page paths to scripts are rendering fine, however, firebug is reporting 3 errors. Hovering the mouse over the errors reveals problems with the link. http://localhost:1535/testingproject/loginregister....

adding a control to tabs generated dynamically in tabcontrol in C# .net

Hi everyone, i am new to C# .net. Can some one help me out with the below prblm: I have a tabcontrol in my windows form application, where the tab pages are generated dynamically. the content to be displayed on each tab wud be fetched from my database. i need some kind of control(which can display the fetched data) that i can add on eac...

Model View Presenter - Handling more complex UI controls

Hi all, I'm investigating the Model View Presenter pattern. So far I like what I see, however pretty much all of the articles, webcasts, podcasts etc. I've seen, read or heard tend to deal with setting and retrieving simple types from textboxes and I'm struggling to understand how to deal with more complicated UI controls. For example,...

Vb6 “Tag” property equivalent in ASP.Net, BUT...available at design time within the aspx file??

I have an extension to this question: http://stackoverflow.com/questions/183093/vb6-tag-property-equivalent-in-asp-net The solution to that is excellent, but I want to be able to set the Tag property at design time within the aspx file, ie: <asp:TextBox id="myTextBox" Tag="thisIsMyTag" ..... Note: I do not want to inherit and exte...

Alternative to ComponentOne 3D Surface Map Chart

We are investigating alterntive control libraries for a new project we are working on. One of the requirements is to display data in the form of a surface map, as per the ComponentOne Chart below. We've used the C1 control in the past but are not entirely happy with it - so wondered if anyone can recommoned some alternatives. Having...

Tool (Control) for Rule Engine GUI.

After evaluating off-the-shelf products (MSBRE, Drools etc) we are writing our own rules engine (this decision has been made, please don't suggest other rules engines - but parts of them that will do the specifics I want are most welcome). What I would like is to give the users a simple GUI that would allow them to take one of our domai...

Interactive chart with timeline for WinForms .NET

Hi, I'm looking for WinForms .NET interactive chart control that will support timeline. By interactive I mean - something that will allow user to grab a top of a bar and change the value just by dragging it up and down. In some way the bar will behave like a horizontal slider By timeline I mean something that will allow user to scro...

WPF - Best Practice for the run-of-the-mill [Label:Input] Control

Hi, I am wondering, which is the best and quickest way to get the well known Label Input [or output, doesn't matter] combination in WPF. Its a simple Task, just think of a quick output of the "object" ME: Name - Christian Age - 28 Mood - Good I know, I can use a Grid with TextBlocks. But to be honest, the "short" XAML for this i...

tabbed document interface in WPF using only on-board means?

I've seen two threads here about TDI & C#. Both of them didn't really answer the questions I have ... Since TDIs are pretty much like a standard nowadays, I can hardly imagine, that I have to buy a special control (like AvalonDock or SandDock). This must be possible with built in the tab-control(?) somehow! I don't need special feature...

Toggling between WPF controls

Is there an easy way in WPF/XAML to toggle between two types of controls in the same position in a panel? I'm wondering if there are alternatives to toggling visibilities. In my application I have several checkboxes that are used to configure a bit field (the checkboxes toggle individual bits on or off). Sometimes it is easier for the u...

Using a class to dynamically load user controls

I am makign extensive use of user controls. I am dynamically populating them. My plan was to use a single class to decide which controls should be loaded into place holders on a given page. This class would then passback each control. The page itself would only load the control. However, i can't seem to access my user controls from class...

ASP.NET Control Render Pipeline

I have an issue with a pager control i am building. My code is the following protected override void CreateChildControls() { base.CreateChildControls(); pnl = new Panel { ID = "NewsPager", CssClass = "NewsPager" }; Controls.Add(ddl); AddPagerControls(); } AddPagerControls adds a bunch of LinkButtons that use the same event h...

How do I implement a databound custom control with JQuery

I need to implement a custom control with checkboxlist and each item on clicked will open a div next to the item . my output would be checkboxmy items The td is a reaped items and is bound to a datasource. and onclick of the checkbox show the div1 . How do i Start? Do i implement a template control or a databound control ? in AS...

WinForms control for image map editing

In a WinForms application, I need to be able to interactively edit "hot" areas on top of an image, later to be used as a sort of image map. I tried to rig together an UserControl with some floating rectangles (Microsoft.VisualBasic.PowerPacks ftw) on top of a PictureBox, but the result wasn't all that pretty, especially with flickering...

utility class vs subclassing .net controls

I want to reuse some code I wrote to add some functionality to a datagridview. I want the default datagridview properties and events to be exposed, so I didn't want to create a new custom component. so I tried writing a subclass, which works fine. but it also occurred to me that I could write a standalone utility class that takes a datag...

Disabling Vista-Style controls in Application

So I'm trying to recompile an application to add some minor features. All is well, except for one thing. The old version has all the windows-vista-style dialog buttons. The corners are rounded, the radio buttons look different, etc. Example How do I turn those things on? I want it to look/feel like the original. EDIT: If anyo...

Creating controls in a non-UI thread

I have a sort of plug-in model in which various complex user controls are stored in DLLs and loaded and instantiated at run time using Activator.CreateInstanceFrom(dllpath, classname). Since I'm loading quite a few of these I wanted to do it in the background, keeping my UI responsive, by creating a new thread to do the loading. The ...

JQuery output a dynamic control in a div

How do I handle the click of a checkbox to show another control preferrably a user conrtrol (ASP.NET ) dynamically. ...

How can i create custom controls in android?

Hello, I would like to create a custom Control in my Android App. It will be a circular control with some smaller moveable circles that will indicate a specific value. Is there a way to realize this? Are there at least some nice Tutorials where i can read how to create a custom control? Thanks, Gushi ...