composite-controls

ASP CompositeControl & ScriptManager

房东的猫 提交于 2019-12-24 10:36:26
问题 I'm really new to the WebControl / CompositeControl world, and I have a small test class I am playing with. It's just a LinkButton that updates when clicked. Things work great when I leave it out of UpdatePanel . But when I try to run it inside I still get a full page POST response. How can I make this class work inside a UpdatePanel ? Here's the class: public class Test2 : CompositeControl { private static readonly object testButtonEvent = new object(); public event EventHandler OnTestClick

Asp Composite control child control (radiobutton) losing checked value

孤者浪人 提交于 2019-12-17 19:37:22
问题 I am working on a quiz control in asp.net with dynamically created questions and options. The main control is basically a container to hold all of the questions. In design view users can add questions through a custom Collection Editor. Everytime i add a question to the collection editor list it generates a question tag for me. Inside each question object is a label and a n amount of Option objects that inherit the Radiobutton Control. Each of these Option objects in turn represent a option

Error Rendering control - [A] cannot be cast to [B] in the context LoadNeither

◇◆丶佛笑我妖孽 提交于 2019-12-01 06:31:09
I am working on a composite control and this requires me to open multiple Visual studio IDEs and add the control on pages. This causes Visual Studio to create multiple assemblies. So every time this happens I close all IDEs, and delete ProjectAssemblies folder. Can all this be avoided? It's very hard to work like that... UPDATE: The specific error is: An unhandled exception has occured. [A]VerySimpleEditor.Toolbars cannot be cast to [B]VerySimpleEditor.ToolBars. Type A originates from 'VerySimpleEditor, Version=1.0.0.0, Culture=neutral,PublicToken=null' in the context 'LoadNeither' at location

Error Rendering control - [A] cannot be cast to [B] in the context LoadNeither

大城市里の小女人 提交于 2019-12-01 03:18:46
问题 I am working on a composite control and this requires me to open multiple Visual studio IDEs and add the control on pages. This causes Visual Studio to create multiple assemblies. So every time this happens I close all IDEs, and delete ProjectAssemblies folder. Can all this be avoided? It's very hard to work like that... UPDATE: The specific error is: An unhandled exception has occured. [A]VerySimpleEditor.Toolbars cannot be cast to [B]VerySimpleEditor.ToolBars. Type A originates from

Asp Composite control child control (radiobutton) losing checked value

人盡茶涼 提交于 2019-11-28 10:36:46
I am working on a quiz control in asp.net with dynamically created questions and options. The main control is basically a container to hold all of the questions. In design view users can add questions through a custom Collection Editor. Everytime i add a question to the collection editor list it generates a question tag for me. Inside each question object is a label and a n amount of Option objects that inherit the Radiobutton Control. Each of these Option objects in turn represent a option the user can select for each question. This all works except i am now at the part where i want to be