Questions tagged [system.web.ui.webcontrols]
34 questions
11
votes
1 answer
Error: the type or namespace UI doesnt exist in the namespace
I need to use System.Web.UI in a class library project.
using System.Web.UI;
namespace OnlinePdViewer
{
public class DisplayPd
{
}
}
I get compile error when using System.Web.UI statement:
"The type or namespace name 'UI' does not…

perlynsparks
- 401
- 3
- 7
- 20
4
votes
1 answer
ASP.NET ApplicationInstance.CompleteRequest not working?
HttpContext.Current.ApplicationInstance.CompleteRequest appears to be doing nothing. What am I missing?
For example, despite the fact that CompleteRequest is called during every interesting event, all of the below events still run on a simple test…

David Eison
- 1,367
- 12
- 19
3
votes
2 answers
DataBinding asp.net DropDownList from a List of ListItems causing System.ArgumentOutOfRangeException Error
I am attempting to DataBind an asp:DropDownList with a Collections.Generic.List of System.Web.UI.WebControls.ListItems. The DataBind() is throwing this error.
System.ArgumentOutOfRangeException: 'ddlPlatinumOptions' has a SelectedValue which is…

Ryan O'Hara
- 311
- 1
- 10
2
votes
1 answer
Change the rendered html for the treeview control to create a label instead of span
I use a treeview control in my webform in ASP.NET and the rendered HTML is like this:

Mariam
- 533
- 2
- 12
- 22
2
votes
0 answers
Treenode convert Microsoft.Web.UI.WebControls to System.Web.UI.WebControls
I'm trying to convert treeview that uses the older htc tag< iewc:treeview> to use the newer asp treeview tag < asp:TreeView >. I noticed that the treeview object is different as in the older code uses the import Microsoft.Web.UI.WebControls…

usr4896260
- 1,427
- 3
- 27
- 50
1
vote
1 answer
How to use System.Web.UI.UserControl in .net core
I'm migrating MVC application to ASP.NET CORE.
In that I'm using web user control.
UserControl ctrl= oLogSite as UserControl;
Here oLogSite is object type.
Please let me know how to use in .Core

Lakshm
- 67
- 1
- 8
1
vote
1 answer
Dropdownlist with optgroup using WebControlAdapters
I need to do a dropdownlist with optgroup.
I found lots of guides and all foresee the use of WebControlAdapter
this is the guide that I'm fllowing
I've added the class to my App_Code folder project:
namespace admin.App_Code
{
public class…

Martina
- 1,852
- 8
- 41
- 78
1
vote
0 answers
Show asp:Panel stored in different file
I have an asp page (.aspx) page, and a asp:Panel in it. I use Telerik library but this is irrelevant, I think.
I now need to move the asp:Panel tag outside the main file, into another, stand-alone, .aspx due to file size and work organization.
I…

Nillus
- 1,131
- 1
- 14
- 32
1
vote
2 answers
How to enable ajax when deriving from System.Web.UI.WebControls.WebControl on controls that are created inside WebControl
I've built a class that derives from System.Web.UI.WebControl. It basically renders pagination links (same as what you see on top of GridView when enabled) for use above a repeater.
I'm creating some anchor tags explicitly inside my nav control…

Dave
- 281
- 4
- 10
1
vote
1 answer
Add row dynamically to table in ASP.NET?
I'm trying to add rows dynamically to a System.Web.UI.WebControls.Table control in ASP.NET. I found some sample code that does what I'm seeking, but it only adds a single row.
It seems like the table row count does not carry from one page load to…

jtherkel
- 139
- 1
- 1
- 11
1
vote
0 answers
_ServerClick event and Response.Redirect: wrong redirection
Perhaps this question is a bit too general, but I'll try to narrow it down by explaining my scenario.
I have a login page, with an html input button:
The button triggers the…

U r s u s
- 6,680
- 12
- 50
- 88
1
vote
0 answers
acceptsReturn set to True for WebControls TextBox
How can I impose similar behavior that acceptsReturn = "True" imposes on a System.Windows.Forms textbox on a System.Web.UI.WebControls textbox? If asp:TextBox cannot have this behavior, i.e., going to the next line when Enter is pressed what is the…

Dogahe
- 1,380
- 2
- 20
- 50
0
votes
1 answer
Alternative to System.Web.UI.WebControls.TableCell
I have a website which is code generating practically everything on the page. The home page consists of a right menu which is being built via code. It uses System.Web.UI.WebControls.TableCell class and creates a td for every new item.
Here is a…

SOLDIER-OF-FORTUNE
- 1,634
- 5
- 39
- 66
0
votes
1 answer
Listview reference in a class library
I'm trying to access the ListView class from System.Web.UI.WebControls in my class library.
So I added a reference to System.Web and expected it to then show up but unfortunately it didn't. Now I can only assume it is because the ListView is part of…

John_
- 2,931
- 3
- 32
- 49
0
votes
1 answer
How to dynamically set width of Checkbox list bounded to a data source in a table?
I have a checkbox list inside a table row. The Checkboxes are equally spaced out but i want to remove the spacing between each checkbox. is this possible ? Also is it possible to text wrap labels that are too long for example "Autism Spectrum…

Shafeel Mohammed
- 53
- 6