controls

Better performance: OnDataBound or iterate on PreRender

I have a menu where I am setting the selected value dynamically. Will I have better performance doing setting the value on a DataBound event or iterating over the menu in the PreRender event? Would the performance characteristics be generalizable to all data bound controls (i.e. would it be different for a menu versus a gridview)? F...

Can I place ASP.NET user controls on pages without a control declaration?

I would like to put user controls on pages without registering the tag at the top of the page. For example: <p>some text</p> <myname:mycontrol runat="server" /> Is this possible? I've heard that tag declarations can be done in web.config... is this true? If so, any idea which .NET framework versions support this? Thanks ...

Does anyone know of a good asp.NET cascading droplist control with multi-select capabilites?

I've been looking for a good, preferably free, dropdownlist control. It should display a summarize the selected values in a comma seperated list. It should display the items as checkboxes, or be highlightable. The items should be able to populated from an AJAX type call. The only input submitted by the control should be the comma sepe...

Is there any way of denying .NET controls to style the final HTML element

I have a control that look something like this: <asp:DetailsView ID="dvUsers" runat="server" DataSourceID="odsData" DataKeyNames="Id"> ... </asp:DetailsView> Which in the end will create a <table> as the outer-most element. In my CSS I have: table tr { border-top: 0 ; border-left: 0 ; border-right: 0 ; border-bottom...

How to display labels in each point in ZedGraph?

How can I display labels for each point plotted in a ZedGraph chart? ...

ZedGraph labels

In ZedGraph how to show text labels for each point and in the XAxis all together? EDIT: If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i < myCurve.Points.Count; i++) { PointPair pt = myCurve.Points[i]; // Create ...

Text is getting selected when combobox style is drop down

I have a problem with windows combobox when the style is dropdown.the combox contains two values - "hello" and "Hi". I want to show the default value for my windows combobox is "Hello" when the page gets loaded. Now when the style is DropDown it selects the whole text("hello"), which creates confusion betweem first and third control(as f...

Disabling a control from receiving a event in C#

Hi, I have a dialog with loads of control in it. Each and evey control will be populated during the loading sequence and it might take a while for it to get completely filled. Mean while, I don't wanna allow the user to click on any of the controls. In other words, I wanna disable the control from receiving the events and I don't wanna...

ChildControl of a childcontrol is null when calling from Main control

Hello I built a webusercontrol in asp.net which contains a databound dropdown. When I directly put this control into a webform it runs well. But if I try to add this control as childcontrol to another control at runtime Childcontrol childcontrol = new Childcontrol (); maincontrol.controls.add(childcontrol) , the dropdown of the ch...

detecting gdi / user handler leaks in winforms

Hello again, I did nice winforms 2.0 application and it's working great and customers are still happy but unfortunatelly I cannot solve one issue. The problem is that after using app for a couple of hours, gdi user handles number is rising and rising and finally process cannot allocate more objects and app crashes... I'm not doing anyt...

entering values into database from 'unlimited' dynamic controls

there's a dropdown displaying 1-10 from where the user selects the number of textboxes he wants - if he chooses unlimited, it shows him a textbox wherein he enters the exact number of textboxes he'd like. if he enters 40, it shows him 40 textboxes which are created at runtime. my question is, how do i enter the data from 40 - or 'whatev...

Should dynamic asp.net controls be avoided

Should dynamic asp.net controls be avoided at all costs? In what situations should they be used? What do you use as their replacement? ...

Text is not getting Highlighted in Combobox when selectedindex changed through code

I am using combobox which contains three value-NSW,TIC,VIA. in page load i m setting selectedindex = 1 for the combobx , the value shown as TIC which is correct but it is not getting highlighted. I can see that when user selects different value (i mean the index gets change for combobox from UI) then the particular text gets highlighted,...

.net Page events firing order changing.

Ok this is a really annoying bug that I have been having issues with all morning!. I have a custom control that we have used on many project that has properties that are set and stored in Viewstate by the calling pages onload. the control sets up childcontrols with propertes on the CreateChildControls() method of the custom control. N...

Setting the TabIndex property of many form controls in Visual Studio?

What is the most efficient way to set/re-order the TabIndex properties of many form controls in Visual Studio? When I change the layout on a large form, or even on initial design, I often wonder if there's a faster way than clicking each individual control then setting the TabIndex in the properties window. ...

Rewrite standard controls like edit, combo, etc?

I have a custom control: it's managed code, which subclasses System.Windows.Forms.Control. I want to add things like edit boxes, selection lists, combo boxes, radio buttons and so on to places on this control. An easy way to do this is to simply add instances of these classes to the Controls collection, so that they become child control...

best way to display search results on the same page as the search control in ASP.Net

I have two controls on a page, one is a search entry and submission control the other is the search results control, they have to be separated due to the layout of the site. Im looking at different ways of having the search control submit displaying the search results in the results control, initially im not bother about postbacks, im mo...

Stacking Controls (Winforms C#) (Transparent)

I have been asked to write a GUI that will allow objects to be stacked inside a container. The user will be viewing the boxes from a top down view point. They also would like to be able to see what is stacked inside. My first thought to solve this was transparency. I have read some of the posts on transparency, however I didn't find any ...

Dynamic Controls, Update Panels and Events - Best Way To Achieve My Result

Been pulling my hair out and doing a bit of looking on the web to try and figure out an elegant solution to my issue. I have a ProductImages.aspx page. It shows all of the images associated with that product in a dynamically created list. Events are wired up to each picture to allow you to update it. This works fine. However, I have ...

Calendar control for cocoa touch

I'm want to create a CRM app for me just for fun and to learn more about Cocoa, because CRM application evolve based on a Calendar, I wonder where can I get that cool Calendar control that iCal has in the iPhone. I can't see it in my Library and I'm using SDK 3.0 beta 5. And by the way, where can I get a free/paid controls collection l...