Questions tagged [asp.net-customcontrol]
37 questions
26
votes
4 answers
How to register custom server control on ASP.NET page
I have a project and I am trying to register a custom server control (there is no .ascx file) on the page. I am currently using
Class Declaration
namespace MyApp.Controls{
public class CustomControl: WebControl{
public string Text
…

smartcaveman
- 41,281
- 29
- 127
- 212
4
votes
2 answers
Is there any limit to Hidden Field Length in ASP.net
I am experiencing a strange error (not very strange, i guess it is because of some maximum length restriction i might not know about). I am working on a Custom Server Control, which renders a Custom Search Service for employees. When the employees…

Taha Rehman Siddiqui
- 2,441
- 5
- 32
- 58
3
votes
1 answer
ASP.NET custom control control state
What is the advantage of using control state instead of view state when I create a custom control in ASP.NET?
Why use control state?
Does a good article about this exist?

Pranay Rana
- 175,020
- 35
- 237
- 263
2
votes
1 answer
Using javascript in ASP.NET Composite control
I have a custom asp.net server control to display images.What I need now is to draw a rectangle on the center of image and the rectangle should be re sizable by dragging on its edges.Is it possible to accomplish this using JavaScript ?. I need to…

Senan
- 411
- 2
- 6
- 16
2
votes
1 answer
ASP .NET web application memory leaks - profiler shows a lot of strings
My web application constantly hits the IIS limitation set on the virtual memory allocated to the application pool. This causes IIS to stop the application.
I've been trying to identify possible memory leaks in my app using .NET memory profiler and…

coding-dude.com
- 758
- 1
- 8
- 27
2
votes
1 answer
sharing web user control between various projects
Is there a way to share user controls between various projects ?
I have created user controls like login control, menu control, header control, lost password control and etc and they are all connected to sql database for data.
I would like to share…

feronovak
- 2,687
- 6
- 35
- 54
2
votes
3 answers
TextChanged or ContentChanged event in a custom control extending UserControl WPF
I have a custom control in an open source application that I want to change.
The XAML looks like this:

PeterOeClausen
- 370
- 3
- 15
2
votes
1 answer
ASP.NET UpdatePanel CustomControl and PopupControlExtender odd issue
I am trying to use UpdatePanels, PopupControlExtenders, and a custom control to create a dropdown list of checkboxes. It works for the most part except for 1 odd glitch I cant seem to find a way…

OriginalMoose
- 177
- 16
2
votes
0 answers
Nested markup inside custom control
I have created a custom control to implement a table we use all over the place. It has been working fine for a while and now I was asked to add a new column type that would allow any valid asp.net markup to be put in it and that markup will be…

Elad Lachmi
- 10,406
- 13
- 71
- 133
2
votes
1 answer
Custom Control: Scripts not loaded when control is hidden on pageload
I have a custom control, that is entirely dependent on jquery plugins. Everything is working fine as it is supposed to, but the problem arises when the control is set Visible = false or any of its parents is not Visible. Ideally, when an asp.net…

Taha Rehman Siddiqui
- 2,441
- 5
- 32
- 58
2
votes
3 answers
Inherit properties into custom control C#
I have a custom control that I have created with a bunch standard windows asp controls on it.
Question:
Is it possible to inherit the properties of the parent control into the custom control without re-inventing the wheel?
So for example I have a…

MrBronz
- 63
- 2
- 9
1
vote
1 answer
Apply Visualisation/style to a ASP.NET server control created by injecting JavaScript & HTML
I have created four ASP.NET Server controls that will inject a lot of JavaScript and HTML.
One control shows a html table.
One control is for showing a data entry form that have juery plugin validation.
One control is for creating a data entry…

Moons
- 3,833
- 4
- 49
- 82
1
vote
0 answers
Why Child Control of CompositeControl not show design mode?
IDE: Visual Studio 2019 Framework: .net Framework 4.7.2
Hello everyone, for the work project, I made a CompositeControl, which will contain a TextBox, and a WebControl.
My code as follows, and will explain my problem at the…

user7677082
- 11
- 3
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
2 answers
Can ASP.NET web controls take in anything in the constructor?
I want to have a secure control but also want to extend the existing button or textbox the asp.net framework provides. So my class dec would look something like:
public class MyTextBox : System.Web.UI.WebControls.TextBox
I was thinking something…

rball
- 6,925
- 7
- 49
- 77