38 questions
0
votes
1
answer
84
views
In a WebForms application, newly added control is null at runtime on published site but not in local debugging
I just added a new control in an existing page aspx file, assuring the validity of the markup and code itself by running it locally in debug shows correctly the new control and behaviors in page.
But ...
0
votes
1
answer
103
views
Replacement for ListViewGroups and ListViewItem.DataItemIndex from NET 4.5.1 to NET 8.0
I am migrating an .NET application from .NET 4.5.1 to .NET 8.0 and I found out that these two things do not exist anymore. Are there any replacements for the ListViewGroups and ListViewItem....
0
votes
0
answers
127
views
Inheriting System.Web.UI.Page
All:
I'm new at C#, lifelong VB coder. I'm trying to do something in ASP.NET that I commonly do: Inherit System.Web.UI.Page.
I've created the class for the 'InheritedPage', and now I'm pointing my web ...
0
votes
1
answer
3k
views
System.Web.UI not supported in .Net 8.0
I have upgraded my project from .Net 4.8 to .Net8, after upgrading I am getting errors related to System.Web.UI. Can someone suggest how I can resolve this or what is the alternative of System.Web.UI ...
-1
votes
1
answer
46
views
SiteMapPath Populated
How on earth is this SiteMapPath1 being populated? I have checked everywhere. I don't expect an exact answer just some ideas how it could be getting populated.
Front end
Back end
After page is ...
0
votes
1
answer
216
views
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 ...
1
vote
1
answer
7k
views
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
2
votes
1
answer
453
views
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:
<td class="SingleCheckbox ctl00_ContentPlaceHolder1_FormView1_TreeView1_2" style="white-space:nowrap;">
&...
0
votes
1
answer
358
views
Unable to resolve ASP.NET error when starting web app
Here is my code:
<ajaxToolKit:TabPanel ID="mainTabMedicaidData" runat="server" HeaderText="Medicaid Data">
<ContentTemplate>
<ajaxToolKit:TabContainer ID="...
1
vote
1
answer
1k
views
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:
...
0
votes
0
answers
93
views
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 ...
0
votes
2
answers
2k
views
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 ...
1
vote
0
answers
264
views
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, ....
0
votes
2
answers
1k
views
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 ...
2
votes
0
answers
1k
views
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 ...
0
votes
2
answers
90
views
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 ...
0
votes
0
answers
58
views
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 ...
3
votes
2
answers
3k
views
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: '...
0
votes
2
answers
79
views
Iterating over ControlCollection returns 0 results
I have the following method to return a List of WebControls in my helper class:
public static List<T> GetControls<T>(ControlCollection cCol) where T : WebControl
{
List<T> ...
0
votes
2
answers
340
views
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;
...
0
votes
1
answer
1k
views
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 ...
11
votes
1
answer
31k
views
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 ...
0
votes
1
answer
125
views
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 ...
-1
votes
1
answer
10k
views
ASP.NET auto width control
I have an ASP.NET control, for example a DropDownList. I want to set the width of the control to auto. How do I achieve this? The Width property in ASP.NET control does not seem to accept auto, but it ...
0
votes
1
answer
287
views
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 ...
1
vote
0
answers
117
views
_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:
<input runat="server" id="btnLogin" type="...
0
votes
1
answer
54
views
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 ...
1
vote
0
answers
2k
views
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 ...
0
votes
1
answer
93
views
WeForm texbox control. action related to ontextchanged event not happening
Web.UI.Controls.TextBox
in my aspx page i have used-
<asp:TextBox ID="TextBox1" runat="server" OnTextChanged="tmaintextchanged" ></asp:TextBox>
in my code behind :
<asp:Label ID="...
0
votes
1
answer
1k
views
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<IdCollection>)
{
Control ctrl = (...
0
votes
1
answer
184
views
How to serve System.Web.UI.DataVisualization chart images from different domain?
I have a set of System.Web.UI.DataVisualization charts (ASP.NET 4.0) working great and saving the files to disk. No problems and works great.
The challenge is that I am serving all of my static ...
0
votes
2
answers
4k
views
How can I deselect the node or set the myTreeView.SelectedNode to null?
I am working on an online web application written in C# and I am using System.Web.UI.WebControls.TreeView
The treeview is represented by an asp:TreeView tag embedded on the webpage.
its weird, I'm ...
4
votes
1
answer
6k
views
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, ...
1
vote
0
answers
117
views
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 ...
0
votes
1
answer
585
views
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 ...
1
vote
2
answers
759
views
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 ...
1
vote
1
answer
15k
views
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 ...
0
votes
1
answer
773
views
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 ...