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
1
vote
2 answers
What is the correct ASP.NET Control event/method in which to add nested controls?
What is the correct event/method in the ASP.NET life cycle to dynamically add Child Controls ?
My objective is to ensure that all the input controls on a User Control have the correct associated Validator and Label controls, based on configuration…

smartcaveman
- 41,281
- 29
- 127
- 212
1
vote
1 answer
recreate the textbox asp.net server control
I am trying to recreate the TextBox control,
the problem is that after the postback the value in the textbox returns to it's initial state.
Anybody knows how to make it persist the value after postbacks ?
[DefaultProperty("Text")]
…

Omu
- 69,856
- 92
- 277
- 407
1
vote
1 answer
Is there a way to programmatically set the current node of a SiteMapPath control?
My site has a few pages that point to the same child page. I'm using a xml site map that will not allow me to duplicate a SiteMapNode with the same Url. My idea was then to give my SiteMapPath control a parent node to populate itself from, and…

rball
- 6,925
- 7
- 49
- 77
1
vote
2 answers
CommandName="Delete" doesn't call any method
I've got a Repeater-controller that looks something like this:
<%#Eval("posttitle") %>
<%#Eval("posttext") %>

Marcus Olsson
- 2,485
- 19
- 35
1
vote
1 answer
Possible to have a inner control on a custom server control?
I would like to be able to do something like:
With Text or Something
but also be able to do:

rball
- 6,925
- 7
- 49
- 77
1
vote
0 answers
asynccontrols asp.net Error Creating Control " Object reference not set to an instance of an object"
here is my sample form.
I'm using asynccontrols
. Site compiles fine, loads fine, works fine. Can't view anything in designer. Halp?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Calendar2.aspx.cs" Inherits="txssaAuction.Calendar2" %>
…

Arian
- 325
- 1
- 15
1
vote
2 answers
Set image control image dynamically from server side asp.NET
I have a webforms site where users upload files, the file name etc is saved to DB. These files are then displayed in a datalist. I'm trying to get this datalist to show different images (icons) to represent the file types.
This is my code behind.…

Khalid Rahaman
- 2,292
- 3
- 28
- 40
1
vote
1 answer
LoadControl(string) in different assembly?
I'm developing a stand-alone ASP .NET component for dropping in to various sites we create.
Part of the application is a CompositeControl, which needs to load a UserControl.
However, CompositeControl has no LoadControl() method - in stead, I must…

Fafnr
- 247
- 1
- 3
- 18
1
vote
3 answers
How to create web controls in php
in asp.net there are controls like grideview, menus, .....
how to develop a web control in php like an editor [html, jscript, ajax calls to server] it is used repeatedly and the improvement of control will be better if we can separate it?

ahmedsafan86
- 1,776
- 1
- 26
- 49
1
vote
4 answers
Simple WYSIWYG editor for ASP.NET that supports images
I need just a basic functions:
bold text
header text
list (numbered)
undo and redo
insert image
change background of editor
I don't need to let the user directly change html code.
There I have found some editors that supports all those functions…

Rasto
- 17,204
- 47
- 154
- 245
1
vote
3 answers
Is it safe to rely on an ASPX file being valid XML?
If an aspx file compiles, is it safe to assume that it is valid XML?
Does ASP.NET work by parsing the server controls as XML?

smartcaveman
- 41,281
- 29
- 127
- 212
1
vote
0 answers
Create horizontal Treeview Control in ASP.NET
Hi all of you knowledgeable folk,
I am a Jr developer, so bear with me as I try to make sense.
I recently received a client requirement that requires a sort of "menu", if you will, of items with checkboxes.
3 of the 4 master tree nodes would have…

AspiringNetDev
- 11
- 2
1
vote
1 answer
asp:Content still visible when using Visible="False"
I have a master page with couple ContentPlaceHolder inside it and added some content page of this master page.
I would like to set Visible="False" on one asp:Content in some page but it's not working as I'm still able to view data of both…

Surya
- 168
- 4
- 19
1
vote
1 answer
How to get HTML code of a .NET control
I have a .net panel, and I want to send this panel via outlook to other recipients. For this I think I have to find the html code of this element. How to do that ?
Thanks.

stckvrflw
- 1,489
- 3
- 22
- 37
1
vote
0 answers
Control Names on QueryString different in IIS-8 Classic Mode
We have moved an application from Windows Server 2003 with IIS-6 to a new Windows 2012 Server with IIS-8 and setup the App Pool for "Classic". My problem is that the existing code pulls a value off the query string in a controller method using the…

Tim Daniels
- 21
- 1
- 4