Questions tagged [dynamic-controls]

310 questions
3
votes
3 answers

Add dynamic controls in ASP.NET, is there a difference between 1.1 and 2.0?

I am pretty sure back in the days of ASP.NET 1.0/1.1, controls created during runtime needs to be added before Page_Load event of the Page Lifecycle (i.e. inside Page_Init). Here's one article by Microsoft on it (for .NET 1.0/1.1): HOW TO:…
o.k.w
  • 25,490
  • 6
  • 66
  • 63
3
votes
1 answer

how to generate dynamic
  • tag and hyperlink from C#
  • ok, so what i want to achieve is, generating li tag inside ul from C#, and put hyperlink button in that li tag, i have tried this : ulFiles.Attributes.Add("class", "files"); foreach (var item in checkdocument) …
    NomNomNom
    • 811
    • 3
    • 12
    • 37
    3
    votes
    2 answers

    How do I cast a dynamically loaded class to its interface?

    I am creating a home automation app that has allows plugin views. I have the following code as proof of concept: I have created an android library project with the interface for the plugin: package com.strutton.android.UIPlugInLib; import…
    cstrutton
    • 5,667
    • 3
    • 25
    • 32
    2
    votes
    1 answer

    Dynamically created widgets using json Data in listvew builder the TextFeild not working in flutter

    I have created a list of the widgets using JSON data, I have five types of widgets, and each widget is added to the list depending on the JSON data, but the issue is with the widget includes a text field, All widget displays ok but once I click on…
    2
    votes
    2 answers

    generating controls dynamically

    I have this scenario where I need to generate controls dynamically. I am running a website www.UserReviewCenter.com You can start a search from home page, type in some product type like "radar detector". The site will give you list of products…
    Mandeep Janjua
    • 15,583
    • 4
    • 29
    • 24
    2
    votes
    2 answers

    Dynamically add LinkButton on Panel

    I have ext:FileUploadField on the page. After file upload I need to show a link to this file. I dynamically create a LinkButton, add it on the Panel1, and I can't see the the LinkButton! I dunno why!
    Alexandre
    • 13,030
    • 35
    • 114
    • 173
    2
    votes
    3 answers

    Dynamically Created User Controls In C#

    I am working in a C# winforms project and I have a user control which gets loaded upon its selection from a tool-strip menu. I have a dictionary lookup set to occur upon form load of the user control for other functionality. Also, when I close the…
    THE DOCTOR
    • 4,399
    • 10
    • 43
    • 64
    2
    votes
    4 answers

    How to persist a dynamic control (c#)

    As per the title, I have created a custom control. On a certain button click event, this control is instantiated, then added to the page. It is a dynamic control, with it's own button events. In order for these button events to be triggered, the…
    maxp
    • 24,209
    • 39
    • 123
    • 201
    2
    votes
    2 answers

    how to reference dynamically created control in asp.net 3.5 with VB

    I'm writing a program that inserts controls onto a webform dynamically. Depending on a variable, I add either a textbox, a set of radio buttons, or a set of checkboxes. Later, after a user clicks a submit button I need to use the controls to…
    Simon
    • 21
    • 1
    • 3
    2
    votes
    2 answers

    Generate .aspx pages dynamically

    I have an .aspx page. It has some buttons and dropdown controls. Let's say I click on a particular button then it must redirect to the page which we have to generate dynamically. This dynamically generated page will have of course dynamic controls…
    Red Swan
    • 15,157
    • 43
    • 156
    • 238
    2
    votes
    6 answers

    Adding Dynamic Controls

    I have a page I need to build out where depending on the selection the user made on a form on the page prior it displays a different set of questions for them to answer. So say the user selects Reason A from the form on page edit, then it needs to…
    Mike Keller
    • 625
    • 2
    • 7
    • 17
    2
    votes
    1 answer

    Cannot access dynamic Textbox/DropDown controls in a dynamic table inside a Panel

    Okay so I have this panel inside a table's td. In this panel I'm creating a dynamic table with text box and drop down controls on a button click. Problem is that When trying to receive the controls, I FAIL. I've checked literally like more than 25…
    Edd Chang
    • 931
    • 1
    • 7
    • 16
    2
    votes
    1 answer

    Dynamically generated Controls ID returned as NULL

    I am able to create dynamic controls in Page_PreInit() function. 'How to retrieve the control and its ID' My C# code to create one of the DynamicControls var btn = new WebForms.Button(); btn.Text = "+"; btn.ID = "Addmore"; …
    Shrivatsan
    • 105
    • 1
    • 18
    2
    votes
    2 answers

    Dynamic data-entry forms in Silverlight

    We are investigating how to create data entry views from a dynamic list of pre-defined field definitions. By "pre-defined", I mean that there are only 8 basic field types. The Silverlight Toolkit's DataForm control is almost what want, but it…
    carlmon
    • 396
    • 6
    • 20
    2
    votes
    2 answers

    building dynamic controls on postback (asp.net)

    I'm sure this has been answered but I cannot find it...perhaps because the terms are used for so many differing questions...anyway. how is the best way to store information about building dynamic controls on postback etc in the init event... e.g.…
    davidsleeps
    • 9,393
    • 11
    • 59
    • 73
    1 2
    3
    20 21