A server control in classic ASP.NET is a component that dynamically renders a segment of markup to the client. Controls can be written in markup or coded, and can be bound to data and participate in different phases of the ASP.NET request-handling lifecycle. Out-of-box examples range from the simple (CheckBox which wraps the HTML input checkbox) and more complex (GridView which can be bound to various data sources and has built-in paging and sorting).
Questions tagged [servercontrols]
213 questions
0
votes
2 answers
Inject HTML to server control
How do you inject HTML to a server control?
I'm creating a calendar control and have some javascript/css that go with it.
In addition, I have some html code that gets generated with the proper ClientIDs that work with the JS/CSS and I would like to…
![](../../users/profiles/59035.webp)
LB.
- 12,272
- 21
- 60
- 99
-1
votes
2 answers
Attach RequiredValidator on custom server control rendering a TextBox
I don't know whether this is really possible, but I'm trying my best.
If I have a (complex) custom server control which (beside other controls) renders a TextBox on the UI. When placing the server control on a page, would it be possible to attach a…
![](../../users/profiles/50109.webp)
Juri
- 30,146
- 17
- 97
- 132
-2
votes
1 answer
Create customizing dropdownlist in asp.net / c #
I am beginner in asp.net and c # and I came across a request for creation of a component shown in the link. Really do not know how to do this, nor where to start. There is a component of this type existing in the standard suite of asp.net like a tip…
![](../../users/profiles/2696070.webp)
Elton da Costa
- 1,188
- 14
- 26