Questions tagged [system.web.ui.webcontrols]

34 questions
0
votes
1 answer
0
votes
0 answers

Is this err caused by trying to process too many controls on the web form?

I get this err page: Server Error in '/EMS/customerreportingnet' Application. Operation is not valid due to the current state of the object. Description: An unhandled exception occurred during the execution of the current web request. Please…
0
votes
2 answers

How to correctly create Page objects in asp.net behind code.

I am still fairy new to C# development and have a question about creating objects. I am working on a website and I want to pull form values in the behind code after submit. Ultimately I am trying to convert a page to a user control. Now I am trying…
Learn12
  • 206
  • 1
  • 3
  • 11
0
votes
2 answers

how to get list order when list is reordered by javascript at the client side

I have a list which the elements can be reordered or dragged out of the list by JQuery sortable function. When the user press save, raises a postback. I need to capture the list, get the ids still inside the list and by order they come int the…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
0
votes
2 answers

Why aren't my TextBoxes being counted?

I'm trying to change the Text in my TextBoxes in a form but I can't find out how to account for all of my TextBoxes without doing them individually... I've tried the following code; however, my int i returns 0. int i = 0; foreach (Control c in…
Jacob Johnson
  • 551
  • 1
  • 6
  • 20
0
votes
0 answers

override IsMultiSelectInternal property on ListControl

I've been struggling all day trying to figure out the following problem. I am creating a custom web control in ASP .NET so that I can render my CheckBoxList different than Microsoft. public class DefaultCheckBoxList : ListControl,…
0
votes
2 answers

Iterating over ControlCollection returns 0 results

I have the following method to return a List of WebControls in my helper class: public static List GetControls(ControlCollection cCol) where T : WebControl { List results = new List(); foreach (Control control in cCol) { …
Marco
  • 22,856
  • 9
  • 75
  • 124
0
votes
2 answers

System.Web.UI Reference In Visual C# 2010 Express

I am working on a project in Visual C# 2010 Express and need to use the following references: System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; When I go to Projects > Add eference > .Net and…
Bad Programmer
  • 3,642
  • 13
  • 46
  • 53
0
votes
1 answer

Alignment of ASP.NET Chart

Im using classic asp.net charting to present some data then placing it into a PDF. A problem I cant seem to solve is when I add the legends to the right hand side of the graph it gets pushed down. Can anyone see why? _chart.Height =…
user987723
  • 945
  • 3
  • 12
  • 33
0
votes
1 answer

Unable to resolve compiling error for .Net 4.0 website

I'm currently getting a compiling error when I try to access a page of my website. This error has only started happening. It's in the compiling code for a page that's having data bound to it. A snippet of the error is as follows: error BC30456:…
0
votes
1 answer

can't find a reference for LinqDataSource used in designer

When converting a website to a web app, the designer creates the code protected global::System.Web.UI.WebControls.LinqDataSource and I get the error namespace name 'LinqDataSource' does not exist in the namespace …
0
votes
1 answer

what is BaseDataList in ASP.NET

today I seen BaseDataList in MSDN Tutorial.But I am confuse about BaseDataLIst control / class. Is it concept or web form control ? or Is it base class for DataControls in asp.NET According to msdn they were showing its similar to DataList and…
Niks
  • 997
  • 2
  • 10
  • 28
0
votes
0 answers

GridView.DataBind() Out Of Memory Exception on Exporting Large Data Set to Excel

I have the "Export to Excel" button added to my jqGrid. It works fine until I linked the jqGrid to a large GridView with 20,000 records each having 200 fields (columns) I am getting the {"Exception of type 'System.OutOfMemoryException' was thrown."}…
0
votes
1 answer

WeForm texbox control. action related to ontextchanged event not happening

Web.UI.Controls.TextBox in my aspx page i have used- in my code behind : protected void…
user2074474
  • 23
  • 1
  • 6
0
votes
1 answer

How to set text property for any type of web controls from web page dynamically

I need to set text property for any type controls(Ex. Textbox,Label,HyperLink..etc) from my web page dynamically. Here is my code foreach (string id in List) { Control ctrl = (this.Page.FindControl(id)); // Control should be…
Suresh
  • 466
  • 2
  • 9
  • 26