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
1 answer
get value of dynamically created textboxes
ASP.NET C#.
Inside UpdatePanel we have TextBox with OnTextChanged="text_changed" method and Panel.
if number 3 was typed at textbox, 3 textboxes below will appear inside Panel with different IDs.
However when button outside updatepanel clicks,…

Nurlan
- 2,860
- 19
- 47
- 64
0
votes
1 answer
Applying a theme in a composite control
I have a composite control that creates a datagrid and other components. The control has the Themeable attribute set to true:
[ToolboxData("<{0}:MyCompositeControl runat=server />")]
[Themeable(true)]
public class MyCompositeControl :…

Paolo Tedesco
- 55,237
- 33
- 144
- 193
0
votes
0 answers
New user event handler in ASP.NET Login Control
I have a login control in my asp.net web site. Each user has default data inserted to my DB when registered so i was thinking of an event handler when a new user is registered but i can only find OnLoggedIn and OnLoggingIn. I could check the DB…

Liron
- 1
0
votes
0 answers
Asp.Net:Why the "click event" do not fire in my custom server control?
The code of my custom control is below:
public class Panel : System.Web.UI.WebControls.WebControl
{
private System.Web.UI.WebControls.Panel _Buttons;
[PersistenceMode(InnerProperty)]
public System.Web.UI.WebControls.Panel Buttons
{
…

Sharp Kid
- 135
- 1
- 4
- 14
0
votes
1 answer
Place the Non Dynamically created controls below the Dynamically created ones
I have created a Table Dynamically in Asp.net
However all those controls that are already present are moved to the top what I want is to place them at the bottom of my dynamically created Table.

vini
- 4,657
- 24
- 82
- 170
0
votes
1 answer
ASP.Net Controls render same server reference multiple times
I have added a pager to the top and bottom of my custom Table server control in an inner child property namely Footer and Header
…

Darbio
- 11,286
- 12
- 60
- 100
0
votes
0 answers
ASP.Net custom server control and child control losing their state
I have build a custom server control. Basically, this custom control is providing a textbox and a browser button that help users to fill the textbox. Behind the scene, I have a complex data structure that is describing the context and the user…

Steve B
- 36,818
- 21
- 101
- 174
0
votes
1 answer
Can I encapsulate WCF or Web API within an Ajax Server Control?
I'm pretty new to services within .NET and not too experienced with .NET in general, so please excuse my ignorance.
I've been tasked with implementing a self-contained login control which could be used within a number of applications. I've done…

Ian
- 99
- 3
- 9
0
votes
1 answer
Pass server control value as jquery parameter
I'm trying to take a value from a drop down list and pass the selected value as parameters in an AJAX page method call via jquery. How do I reference the control's selected value in the data: parameter segment of the call? Do I just reference it by…

Chris V.
- 1,123
- 5
- 22
- 50
0
votes
1 answer
Get custom controls parent update panel
I am creating a custom serve control (extends composite control). I want this control to use update panels but I think it would be best to require the user to place my control within their own update panels, instead of me coding it into my control.…

jason
- 3,821
- 10
- 63
- 120
0
votes
2 answers
Multiple ASP.NET AJAX Progress Controls
Can someone explain how to resolve this?
Two update panels, two progress controls, two command buttons.
When I click first button I can see the progress for the first async update.
When I click the second command button - the first progress bar…

Serghei T
- 11
- 2
0
votes
2 answers
0
votes
2 answers
Why does adding children to composite server control enlarges view state?
I have composite web server control, which at the moment doesn't perform any actions. My aim is to place inside it child controls beginning with checkbox. I try to do it in the following…

Eadel
- 3,797
- 6
- 38
- 43
0
votes
1 answer
Server Control Render inside Server Control
I have 2 server control
One create Items
the other one create a List of items.
So i have a public Item with a viewstate in the first
in the page when i add the server control name (Server control name 1) to a panel it render (with a…

user1977936
- 31
- 2
- 13
0
votes
1 answer