ASP.NET Web server controls are objects on ASP.NET Web pages that run when the page is requested and that render markup to a browser. Many Web server controls resemble familiar HTML elements, such as buttons and text boxes. Other controls encompass complex behavior, such as a calendar controls, and controls that manage data connections.
Questions tagged [asp.net-controls]
174 questions
4
votes
2 answers
Asp.Net ViewState performance
I am new to Asp.Net. I have a question about a viewstate control. Msdn says that it as a client-side state management but suggest that it can be disabled if there is big data on the page because of performance issues.
So, if this is a client-side…

Omer
- 8,194
- 13
- 74
- 92
3
votes
1 answer
Advantages of not specifying control IDs?
Reading over TRULY UNDERSTANDING VIEWSTATE the author suggests:
When ASP.NET parses the form, and finds a tag with runat=server, it
creates an instance of the specified control. The variable name it
assigns the instance to is based on the ID…

JSuar
- 21,056
- 4
- 39
- 83
3
votes
2 answers
ASP.NET Server control with an additional bindable field
I have created a custom server control, deriving from System.Web.Contols.CheckBoxList to customize how a CheckBoxList is rendered. I also wanted to add another bindable field and get the value of the field within the CheckBoxList.RenderItem()…

sshow
- 8,820
- 4
- 51
- 82
3
votes
2 answers
Using SELECT DISTINCT on an already created DataTable object?
I have an already created DataTable object which i am using for my girdview (asp.net) i also need to bind a column of that object to a DropDownList. The datatable has the correct details in the column but the column contains more that 1 of the same…

Martin
- 23,844
- 55
- 201
- 327
3
votes
3 answers
how to assign a control property value from a global variable in page code?
Greetings,
I have a control and list of variables and I want in the control property to be assigned to the variable value directly in the page not from the back code, something like this
My global variables
public string Banana =…

Kronass
- 5,266
- 3
- 19
- 25
3
votes
1 answer
ASP.Net C# - Remove controls dynamically
I dynamically create a RadioButtonList or a CheckBoxList depending on a condition within a Button_Click event (which works).
protected void btnGetQuestion_Click(object sender, EventArgs e)
{
string connStr =…

Bhav
- 1,957
- 7
- 33
- 66
3
votes
1 answer
ASP.NET ListView Paging : Invalid viewstate
I have a ListView control as follows (for posting here I've removed the values from my ItemTemplate):
…

Ciaran Gallagher
- 3,895
- 9
- 53
- 97
3
votes
1 answer
Passing value to table from DataGridView by editing cells itself
I have DataGridView like this
s_code | s_name | t_result |
______________________________________
S2 | John | |
I used code below to display this
private void ViewStatus()
{
BindingSource bs1 =…

TheCatalySt
- 41
- 3
3
votes
1 answer
ScriptControl WebResource Loading Order
I am adding a new control to a project that has some ASP.Net controls. Each control essentially comprises of a .Net class (inheriting ScriptControl) and a javascript file. Each of the js files are added to the assembly as a WebResource
[assembly:…

Jeff LaFay
- 12,882
- 13
- 71
- 101
3
votes
2 answers
how to add buttons in content place holder at runtime in asp.net?
In my form i have added one content place holder and also added a button within th e content place holder manually.But now i want to add a button in the same content place holder at runtime. I tried the following code, but the button is not showing…

Saravanan
- 11,372
- 43
- 143
- 213
2
votes
1 answer
How to manage javascript Dependency for Ajax Extender controls
Does the Ajax Extender control base provide dependency management? I am creating a set of controls that uses a few base scripts used by the behaviors and from here Creating a Extender Control it sort of looks i will have to include my base script in…

Deeptechtons
- 10,945
- 27
- 96
- 178
2
votes
1 answer
Is it possible to append an Updatepanel control to a page using Javascript/Jquery?
I'm trying to develop a system where users can drag icons (which represent user controls) onto a web page.
However, the user controls need to be housed in an updatepanel (or similarly AJAX enabled frame) so that they can be updated without having to…

Andy F
- 1,517
- 2
- 20
- 35
2
votes
1 answer
how to write tag Name and ID for ASP.NET Server Controls
I am developing an asp.net server control
and in the
protected override void RenderContents(HtmlTextWriter output)
method
I just write something equivalent to this:
output.Write("

Omu
- 69,856
- 92
- 277
- 407
2
votes
1 answer
Object reference not set to an instance of an object
I am trying to assign values to the hiddenfields duting page_load..but its throwing System.NullReferenceException.. This is the code iam using in the page_load event..
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
…

Shijilal
- 2,175
- 10
- 32
- 55
2
votes
1 answer
How to add correctly a script to a control?
I have this code:
Dim script = New HtmlGenericControl("script")
script.Attributes.Add("type", "text/javascript")
script.InnerText = "var alohaInterval = setInterval(function() {if (typeof Aloha === ""undefined"") {return;}…

Lajos Arpad
- 64,414
- 37
- 100
- 175