Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

Why Child Control of CompositeControl not show design mode?

IDE: Visual Studio 2019 Framework: .net Framework 4.7.2 Hello everyone, for the work project, I made a CompositeControl, which will contain a TextBox, and a WebControl. My code as follows, and will ...
user7677082's user avatar
2 votes
1 answer
518 views

Saving ViewState in Nested DropDownList in a Custom Control

I created a custom control (called BoostrapDropDown) that essentially wraps a bunch of boostrap markup around a asp.net DropDownList. The resulting control hierarchy will look basically like the ...
Terry's user avatar
  • 1,952
1 vote
0 answers
155 views

ScrolledComposite showing two scrollbars each for vertical & horizontal scroll

My current application is a RCP application using eclipse framework. There is a view whose composite is given to a Scrolled Composite and then all the relevant composites are made with the ...
Hushedar Merwan's user avatar
1 vote
0 answers
207 views

How to create a forwarding bindable property in a composite control

I wonder if it is actually possible to create a composite control that has common attributes with child controls and declare bindable forwarding properties without having all the boilerplate? By ...
gfache's user avatar
  • 616
1 vote
1 answer
32 views

Problems with ViewState of CompositeControl

I built a CompositeControl in ASP.Net and now I'm having trouble maintaining the ViewState of 3 instances of the Control on the hosting page. My CompositeControl has a property "HeaderText" and all 3 ...
Gerrit Horeis's user avatar
0 votes
1 answer
120 views

C# Composite Control will lose name at design and run time

I developed a composite control using C# Windows Forms Control Library and code as follow: public partial class MyControl : UserControl { public event EventHandler NameChanged; protected ...
TwenteMaster's user avatar
0 votes
3 answers
1k views

How to detect C# control name changed?

I created a composite control using C# Windows Forms Control Library, when I use the new control in a test program, I want to find a way to detect when did the name of new control changed at design ...
TwenteMaster's user avatar
1 vote
1 answer
121 views

How can I assign a property value based on another property in a composite control?

Environment: Asp.net 4.5, Webforms I'm creating a composite control. I've exposed multiple public properties, but running into a slight problem. Let's say I have two properties: Public Property ...
user1447679's user avatar
  • 3,230
0 votes
0 answers
35 views

Correct Pattern for creating Server Controls?

I am creating a server control (inheriting from CompositeControl). The control comprises of several data bound drop down lists (and some textboxes etc). The drop down lists form a hierarchy, so are ...
Craig's user avatar
  • 879
0 votes
1 answer
39 views

composite control renders after i need to use one of the properties (control lifecycle)

I have created a composite control for a file upload input (using an HtmlInputFile control). My problema is that everything works fine until I try to save the file using HtmlInputFile's "SaveAs" in my ...
aplon's user avatar
  • 477
2 votes
1 answer
755 views

ASP.Net User Controls shared between multiple projects

All, My requirement is fairly simple. I have a asp.net page that I need to use in multiple projects. All the server controls and code behind needs to be the exact same on all projects. If I need to ...
Ron's user avatar
  • 918
2 votes
1 answer
168 views

DataBind on CompositeControls

I have a composite control that has a DropDownList inside. The problem i have is the next one: When i load the data on the Page_Load (the first time the page is loaded) everything works fine, but ...
ascherman's user avatar
  • 1,832
1 vote
1 answer
581 views

Altering the enabled state of an Android composite control while maintaining its style settings

I have a custom button which I've implemented as a composite control which is composed of: A FrameLayout at the root, which I've styled with @android:style/Widget.Holo.Button in order to look and act ...
Zecrates's user avatar
  • 2,982
1 vote
1 answer
177 views

Umbraco create macro of .NET Composite Control

Been struggling with this for a while now.. I'm perfectly able to create a working .NET Composite-control, which works fine in an aspx website. I'm able to create in umbraco a macro for a .net ...
Yosoyke's user avatar
  • 485
0 votes
1 answer
388 views

Update panel inside Server Control

I'm trying to update panel content by using __DePostBack call to the server, the HTTP server side is fired but the panel won't updates, The update panel is in custom server control and it unfamiliar ...
Shlomi Elbaz's user avatar
0 votes
1 answer
66 views

Prevent clearing of child controls in composite control

I have a custom server control that the markup looks like such: <myLib:MyControl id="myid" runat="server"> <controls> <asp:Textbox id="TxtTest" runat="server" /> ...
mrK's user avatar
  • 2,268
0 votes
1 answer
210 views

Getting data back from composite control added to placeholder on postback

I'm trying to create a factory pattern based on the CompositeControl class. Everything is working fine. Except as I understand it I have to add the control back onto the placeholder control on my ...
cr1t's user avatar
  • 103
2 votes
1 answer
596 views

ASP.NET CompositeControl: Firing 2 (or more) events after postback

I'm fairly new to asp.net CompositeControls... I have a task which requires me to add a 1 button on load, then when the user clicks it, another button gets added, and when the second button is clicked ...
Reyno's user avatar
  • 583
0 votes
1 answer
119 views

Applying a theme in a composite control

I have a composite control that creates a datagrid and other components. The control has the Themeable attribute set to true: [ToolboxData("<{0}:MyCompositeControl runat=server />")] [Themeable(...
Paolo Tedesco's user avatar
0 votes
2 answers
6k views

Setting TabIndex on TextBox within ASP.NET Dynamically Generated Controls?

I have a CompositeControl that each contain a TextBox (TextBoxA) and three Buttons (ButtonA, ButtonB, and ButtonC). My page generates n of these CompositeControls dynamically depending on the state of ...
Nick Orlando's user avatar
1 vote
2 answers
1k views

Repeater ItemCommand does not fire when clicking a button inside composite control

I have a Repeater containing nested custom CompositeControl controls in the following way: Wrapper Head Body <asp:UpdatePanel ID="noteArea" UpdateMode="Conditional" ChildrenAsTriggers="false"...
Alexandar Živkovič's user avatar
0 votes
1 answer
325 views

Recreate child controls and ViewState

Lets explain the problem with a simple case: Lets CC be a composite control. CC has a variable called filter (string) stored in viewState. CC has 2 static child controls: searchBox: Textbox ...
fso's user avatar
  • 154
1 vote
0 answers
611 views

Dynamically wire up Button Click event in Composite Control

I have a custom composite control NoteHeaderDiv, containing a Button: //NoteHeaderControl snippet public event EventHandler OnEditClick; protected void btnEdit_Click(object sender, EventArgs e) { ...
Alexandar Živkovič's user avatar
1 vote
2 answers
2k views

CreateChildControls called twice

I have a composite server control, where I implement CreateChildControls. This control is a grid, which also includes paging and sorting controls. When a sort link is clicked, CreateChildControls is ...
Elad Lachmi's user avatar
  • 10.5k
2 votes
2 answers
789 views

Custom Validator in a Composite Control not firing

I am badly stuck in middle of project with this issue. Googled a lot but not getting a solution. My objective is to create a composite control with a label, textbox, two required field validator and ...
Sameer's user avatar
  • 21
1 vote
1 answer
347 views

Allow GridView sorting in Composite Control

I can't figure out, how to enable sorting in dynamically created GridView placed in my Composite Control. Of course, I try to set property AllowSorting of GridView to "true", but it does not allow ...
sad47's user avatar
  • 53
1 vote
2 answers
2k views

How to create a templated composite control with a behavior

I'm trying to create a templated composite control that would work in a similar fashion as the "PasswordRecovery" control of ASP.Net. By that, I mean that the user can define its own template but, ...
Gimly's user avatar
  • 6,175
0 votes
0 answers
309 views

user controls VB2010 express

I am creating an application, which displays data from 4 or more stations. The data to be displayed is text and it can have variable number of sub-stations in it. So I plan to create 2 levels of User ...
Embedded User's user avatar
0 votes
2 answers
827 views

Design time issues with Composite Control with Devexpress control

i am creating a composite control class with several devexpress aspx control within it. However there is a issues in design time that is: whenever i change the child controls properties that i expose, ...
SakaiE's user avatar
  • 33
0 votes
1 answer
352 views

Calling javascript function after composite control rendering

Is there any way to call a javascript function after composite control rendering.I need to place four movable anchors on top of the image control. I am planning to implement the anchors using html Img ...
Senan's user avatar
  • 411
0 votes
2 answers
1k views

Control HTML rendered by CompositeControl Templated Server Controls

I'm building my first custom server control which inherits from CompositeControl The reason for the control is to be able to have a consistent content area (HTML elements) for multiple online ...
Jacques's user avatar
  • 7,125
2 votes
1 answer
1k views

Using javascript in ASP.NET Composite control

I have a custom asp.net server control to display images.What I need now is to draw a rectangle on the center of image and the rectangle should be re sizable by dragging on its edges.Is it possible to ...
Senan's user avatar
  • 411
0 votes
1 answer
317 views

ASP.NET Composite control with Image control

I have created an asp.net composite control that consist of a Label, Text box and an Image control.I need to display the image in Image control without loosing aspect ratio.Maximum width and height of ...
Senan's user avatar
  • 411
0 votes
2 answers
3k views

Multi level drop down menu without css hover effects asp.net jquery

I am looking to create a multi level drop down menu in asp.net using c# for a composite control. Does anyone know, or know any pointers on how to create it? I've looked at system.ui.webcontrols.menu, ...
user avatar
3 votes
1 answer
2k views

jQuery draggable image, stop dragging when mouse out of bounds(div)

I have a draggable image within a div functioning. However I would like to make it so if while the user has the mouse down and is dragging the element / div, when the mouse goes outside of the div ...
user avatar
0 votes
1 answer
275 views

passing values between composite controls

I have a control : composite control that defines a button. The button calls a Command event and sets the value of another control's property, before making the control visible. Both of these ...
JadedEric's user avatar
  • 2,073
0 votes
1 answer
203 views

Composite Controls JQuery and Apostrophes being encoded

I am having an issue where composite child controls are encoding strings to HTML. I have a child control button that is set like so: b.OnClientClick = "$('#pic').rotateRight();"; the trouble with ...
user avatar
0 votes
1 answer
526 views

GWT CellBrowser with CompositeCell

I am trying to build a CellBrowser as given below. Week 1 -> Mathematics Week 2 [] Algebra Week 3 [] Trigonometry Science [] Physics [] Chemistry The ...
Jag's user avatar
  • 89
0 votes
2 answers
406 views

asp.net webforms - composite controls interacting with page controls

I am writing a composite control in c# asp.net as an experiment and would like to have all the instances of my composite control interact with one external control. Is this possible? Things I have ...
Evert's user avatar
  • 8,531
2 votes
1 answer
425 views

Can't cause client side validation within a composite control

I have a custom composite control that contains a text box, some validators, as well as several UI components. I am unable to get the client side validation to work at all. The server side ...
Devin's user avatar
  • 569
1 vote
1 answer
927 views

Postback From Controls inside Composite Web Control

Let's say we have a composite web control with a combobox and a textbox. Is it possible to build into the control functionality such that when the text in the textbox changes, it posts back and adds ...
Dave's user avatar
  • 61
0 votes
1 answer
80 views

compositecontrol - user control - different approaches

I have seen this code to create a Login control, I guess instead of writing this code, we can use an .ascx file to create this control. Can someone explains the difference of these two approaches. ...
dotnetrocks's user avatar
  • 2,717
2 votes
1 answer
477 views

Databinding controls inside CompositeControl

I have created a CompositeControl that is essentially a wrapper for a MultiView, but if I try to use any databound controls such as GridView or FormView inside the View, I get the error: Databinding ...
RossJ's user avatar
  • 615
0 votes
2 answers
213 views

CMS content editor / viewer

One of our users has decided that they need to be able to edit sections of content on our main website and I've been given the task of implementing it. The underlying model is that one or more divs in ...
Dave's user avatar
  • 3,621
0 votes
1 answer
261 views

Panel in composite control ignores visibility

I'm building a composite control that renders HTML on a page based on a specified state. If I set up the control, and add it to the ControlCollection for composite, and set the visibility of the ...
JadedEric's user avatar
  • 2,073
0 votes
1 answer
202 views

Custom Composite Control

I've Creted Composite control which has FormView and two custom server control. The Control renders correctly. now when i add control to page from toolbox i want to edit Composite Control's FormView ...
r.zarei's user avatar
  • 1,261
0 votes
1 answer
593 views

Which control to choose? WebControl or CompositeControl that is the question

I'm looking forward to create some customs controls like AutoCompletes, TagClouds and others. To use in my projects as tools without need to worry every time that i need one of them. i saw in This ...
Michel Ayres's user avatar
  • 5,975
1 vote
1 answer
704 views

ASP.NET composite control doesn't bubble event but template does

I am developing a composite control for an ASP.NET application and just by chance initially developed the control to use an ITemplate to create its child controls. There will be a series of buttons ...
SonOfPirate's user avatar
  • 5,494
3 votes
3 answers
9k views

Inheriting from a System.Web.UI.UserControl base class

First off, I am wondering if this is possible. I read slight grumblings around the internet about this, but I was not entirely sure. My scenario: I have a base chart class which has some methods ...
Sean Anderson's user avatar
1 vote
1 answer
765 views

MSDN example of Composite Control

I'm reading through some MSDN example code on Composite controls and finding that there is one thing I don't understand. Using the code here I've created the LabelTextBox control in my project and ...
Hc5kphUXpR's user avatar