Questions tagged [dynamic-controls]

310 questions
0
votes
1 answer

Crystal report: how to create text object in crystal report during runtime im using vb.net/VS2012

i want to create a dynamic text object in crystal report during runtime. i want to make it as a column or display horizontally (sample1. date range from 7/1/2013 - 7/31/2013 ) in crystal report the values is came from the rows count of a dataset and…
0
votes
1 answer

Modal Popup on Dynamic Button

In my Web application, I am dynamically adding a Button named as "Click Me !". At Stage 1 , when the Button is clicked, it has to show a alert box . At Stage 2, it has to show a Popup. I use ModalPopupExtender to achieve popup. The Problem is, the…
ognale88
  • 169
  • 3
  • 7
  • 19
0
votes
2 answers

How Do I Get a Dynamic Control's Value after Postback?

I have a listview that adds controls in the ItemDataBound Event. When the postback occurs, I cannot find the new controls. After a bit of research, I found that ASP .NET needs these controls created every time, even after postback. From there I…
Russ Bradberry
  • 10,705
  • 17
  • 69
  • 85
0
votes
1 answer

Retrieving ascx control value from a callback registered on master page. Control added to Repeater's PlaceHolder during OnItemCreated

This is my best attempt to simplify the code to ask the question well. Hopefully it helps. The short: I need to get the value of a dynamically created Control whose path is loaded from the database and added to a Repeater that contains a…
Tawnos
  • 1,877
  • 1
  • 17
  • 26
0
votes
1 answer

Dynamic Search Criteria in C# .net

I have to create a form in which the user can select fields from a listbox on which he wants the search criteria and then the controls are created according to the selection of the user from the listbox,for example if the listbox consist of fields…
Anuj
  • 1,496
  • 1
  • 18
  • 28
0
votes
2 answers

Dynamic control and its Event

We are creating dynamic text boxes and buttons inside a grid for each row. Now we want to create click event for each button. To create button inside the grid in using ITemplate. Code: ImageButton imbtnAdd = new ImageButton(); imbtnAdd.ID = "imbtn"…
Geetha
  • 199
  • 1
  • 8
  • 19
0
votes
3 answers

Show the picture from database to each usercontrol's picturebox?

Usercontrol Code: private string lastName; public string LastName { get { return lastName; } set { lastName = value; textBox1.Text = value; } } Form Code: using…
Karlx Swanovski
  • 2,869
  • 9
  • 34
  • 67
0
votes
1 answer

Dynamicaly created SerialPort stops responding with no error

I have multiple serial devices connected to my PC and I am working on a program that allows users select as many as ports they want and then the program will dynamically creates TabPage and adds them to TabControl. Each tab page will also have a…
Dumbo
  • 13,555
  • 54
  • 184
  • 288
0
votes
2 answers

Adding control dynamically on Form is different from FlowLayoutPanel

When adding usercontrol dynamically on the form i got a right ouput using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString)) { myDatabaseConnection.Open(); using (SqlCommand…
Karlx Swanovski
  • 2,869
  • 9
  • 34
  • 67
0
votes
1 answer

Show each record in each usercontrol's textbox

I create a usercontrol(usercontrol2) and add textBox on the usercontrol(usercontrol2). Form Code: using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString)) { …
Karlx Swanovski
  • 2,869
  • 9
  • 34
  • 67
0
votes
1 answer

Dynamic Control automatically removed from PlaceHolder on Button Click

I am adding the dynamically TextBox in the placeholder on the button click in that. When all the textboxes are loaded I am making changes in the values and again Press another Button to save the values to the SharePoint List. But when I press the…
Rahul Gokani
  • 1,688
  • 5
  • 25
  • 43
0
votes
2 answers

How to Change Position of a control depending on selected value of ComboEdit at runtime in WPF?

I have a ComboEdit which shows Country List in it. On the form their is an ADDRESS tab which is set to active on selection of ComboEdit value. The Position of Controls on ADDRESS tab must be change according to Layout Specified (can we use here…
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
0
votes
1 answer

Event handler function isn't firing up for created dynamically checkboxes

First of all, I have to mention that i'm a newbie at c#. I'm developing an windows 8 metro app with xaml and c#. I created an array of checkboxes dynamically and assigned a pointerpressed event to each of them. the weird problem is that the…
nj-ath
  • 3,028
  • 2
  • 25
  • 41
0
votes
2 answers

About dynamically created radio button in c#

I'm trying to develop a Windows 8 Metro app where i needed to create an arbitrary number of radio buttons, but the Checked event handler is not firing up. I read in some post that I've to enable AutoPostBack. Please let me know in which namespace it…
user1875119
  • 1
  • 1
  • 2
0
votes
2 answers

Making a Control to be runat=server

In my application I have created a button dynamically & its name is "Dynamic_Button". Is it possible to make the button to be runat=server. I just tried the code but it doesn't work. Dynamic_Button.Attributes.Add("runat","server"); Is there…
Elango_Thanumalayan
  • 105
  • 1
  • 2
  • 10