Questions tagged [asp.net-webcontrol]

asp.net WebControl is a control hosted on a webpage or in a UserControl. It consists of one or more classes, working in tandem, and is hosted on an aspx page or in a UserControl. WebControls don't have a UI "page" and must render their content directly. They can be reused in other applications by referencing their DLLs.

78 questions
1
vote
1 answer

RoadMap(?) UI in jQuery/ asp.net

Do we have any roadMap UI in jQuery or asp.net I am not sure about the UI name but the UI will look like I have seen the same kind of UI in SAP where every step will be highlightened in the complete process
Gopi
  • 5,656
  • 22
  • 80
  • 146
1
vote
3 answers

How to use a custom Parameter with SqlDataSource

I want to add a GridView control to one of my views that is backed by a SqlDataSource. The SelectCommand query is parametrized on the aspnet_Users.UserId GUID for the currently-logged-in user, so I need a way to pass the user ID as a parameter. I…
Daniel Trebbien
  • 38,421
  • 18
  • 121
  • 193
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
1 answer

How can I place one ASP.NET calendar control beside another?

Is there any way to put Two ASP.NET standard calendar controls on Webform, one beside the other? I have been trying for a while to design a WebForm with two calendars controls, but whatever I try they are standing one above the other. Here is how my…
adopilot
  • 4,340
  • 12
  • 65
  • 92
1
vote
2 answers

WebControl's constructor does not have correct attribute value

I want the constructor of my WebControl to be able to access the value of IsSpecial (from the HTML). However, it's always false. I assume that it's false in the constructor because it doesn't read the value until after the constructor method is…
1
vote
1 answer

Winforms WebControl - How can I prevent escaping of links?

I am developing in a Winforms .NET 4.0 project, using a WebControl as a WYSIWYG editor - working from the YARTE editor developed by Matt Groves. I am trying to add an anchor tag and set the href attribute to the following path: var path =…
Scott Baker
  • 10,013
  • 17
  • 56
  • 102
1
vote
1 answer

InstantiateIn a control with Container

I have a problem with my custom container. when i Instantiate a single control the count of Instantiated control become 3!!! it's little hard to explain so let me describe it in my code this my child Control Class Code : using System; using…
Pouya Samie
  • 3,718
  • 1
  • 21
  • 34
1
vote
1 answer

how to read value of style["display"] property of webcontrol using reflection

I have some user controls and some web controls on my page. To read the Visibility property of the each control using reflection I wrote below line : Object v; if (control.GetType().GetProperty("Visible") != null) v =…
Pratik Gaikwad
  • 1,526
  • 2
  • 21
  • 44
1
vote
1 answer

The error occurs when I use javascript to change a control what is created in code behind?

I'm a fresh of ASP.NET, I meet the problem in my work, please help. I want to dynamically add the options into a dropdownlist in ASP page. So I write a javascript function:
1
vote
1 answer

adding web methods to custom server control

I have created a server user control that I want it to be able to use a WebMethod. If the web method is in my main application (as an ASMX file), it works fine. The problem is that I want to include this method in the same project library as the…
jason
  • 3,821
  • 10
  • 63
  • 120
1
vote
2 answers

How to get value from System.Web.UI.Control (base class)?

Is there a way to access a control's value/text using the base class? Looking at TextBox and HiddenField, System.Web.UI.Control is the most specific base class they share. Seems like a good candidate, but I don't see an obvious way to access the…
David J
  • 659
  • 1
  • 9
  • 25
1
vote
0 answers

Find all user controls that derives a specific base class, regarding of typeparam?

I´ve a base class for all user controls: SiteUserControlBase. It also takes a typeparam: SiteUserControlBase. How do I best find all controls on the page that derives from SiteUserControlBase regarding of the typeparam? I use the extension…
Lunetics
  • 95
  • 7
1
vote
1 answer

ASP.net: Complex validation of dynamically created DropDownLists

I have a GridView with records of the database. I create two DropDown lists dynamically for each selected item. That means, if I click select, two DropDown lists appear, the first one defines a start position, the second one a stop position. Both…
Stefan
  • 1,253
  • 2
  • 12
  • 36
0
votes
1 answer

the height of aspxpopup control didn't change after aspxgridview perform filtering

put the aspxgridview into aspxpopup control. when peform filter on the aspxgridview the row will be decrease but the height of the aspxpopup 's window does not change and it will leave blank on the bottom. any solution here? or this is bug?
DevProve
  • 190
  • 1
  • 16
0
votes
1 answer

RichHtmlField not rendering properly inside sharepoint

Hey i have a sharepoint page where i let the user use edit mode to edit the content of the page. This is my Display panel where the content is shown
Dr.Denis McCracleJizz
  • 850
  • 2
  • 11
  • 26