Questions tagged [asp.net-customcontrol]

37 questions
25
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 …
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,201
  • 5
  • 27
  • 52
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
  • 164,177
  • 33
  • 228
  • 256
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
  • 351
  • 2
  • 5
  • 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
  • 526
  • 5
  • 18
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,456
  • 6
  • 32
  • 51
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…
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,140
  • 11
  • 69
  • 127
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…
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

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,796
  • 7
  • 45
  • 74
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,796
  • 7
  • 45
  • 74
1
vote
1 answer

Custom control's jquery loads before masterpage loads jQuery

I'm creating a custom control which utilizes the jQuery.UI autocomplete function. My application has a standard Webform Masterpage which includes a ScriptManager tag. I am embedding a javascript file which has the following…
1
vote
1 answer

Get click event from linkbutton in compositecontrol in Web Forms

I have created a composite control which houses a number of tiles (which are also custom controls). In my web page I want to catch the click-event of a tile, but I can't figure out how. This is the TileButton: (the components can be designed…
PinoTom
  • 11
  • 2
1
vote
2 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:
1
2 3