Questions tagged [servercontrols]

A server control in classic ASP.NET is a component that dynamically renders a segment of markup to the client. Controls can be written in markup or coded, and can be bound to data and participate in different phases of the ASP.NET request-handling lifecycle. Out-of-box examples range from the simple (CheckBox which wraps the HTML input checkbox) and more complex (GridView which can be bound to various data sources and has built-in paging and sorting).

213 questions
3
votes
2 answers

ASP .NET confusion - server controls

I have read through the information in this question: Controls versus standard HTML but am still rather confused. The situation was I was asked to do a web project where I made a wizard. When I was done with the project everyone asked why I had used…
Brandi
  • 1,449
  • 4
  • 23
  • 32
3
votes
4 answers

ASP.Net web server control that generates HTML and Excel

I am developing a web application that contains a great deal of reporting. The reports are fairly basic, but some have multiple datasets or embedded charts. One of the key requirements is that each report can be exported to Excel. The Excel…
James Sun
  • 1,461
  • 2
  • 19
  • 26
3
votes
1 answer

ASP.NET event wiring does not work correctly if the page has many controls in IE8 native mode

Well, it looks like IE8 in native mode doesn't like ASP.NET event wiring. I have few heavy pages developed in ASP.NET 2.0. By heavy I mean having lots of server controls and callback controls. The final actions are Apply and Cancel but user sets…
3
votes
3 answers

how to validate composite controls

Alright, this is a little bit complicated. I have a composite control that contains textbox, required field validator and a button. It is exposing a property called ValidationGroup. It applies the ValidationGroup property to textbox , required field…
Bilal Fazlani
  • 5,800
  • 6
  • 38
  • 73
3
votes
1 answer

Event Handling of Server Control for Dynamically created elements

I'm creating server control that inherits from GridVew. I have some image buttons that created dynamically inside the control, for each button I have event that suppose to do something. Everything looks nice but the event is never triggered. Here…
3
votes
2 answers

ASP.net Page object null when invoking it from within templated control

I created a control that uses an ITemplate internally in order to allow the user to add its own stuff. //some stuff in here The "Content" property is…
Juri
  • 30,146
  • 17
  • 97
  • 132
2
votes
3 answers

Grouping ASP.net server controls to modify properties without referencing them by name

I'm trying to dynamically set the Visible property of multiple boxes, panels, buttons etc. from my codebehind for an aspx page. I was wondering if there is a way to group server controls into some logical group so that you could do something like…
Arj
  • 1,714
  • 3
  • 22
  • 44
2
votes
6 answers

Unable to enable checkboxes in IE when using ASP.NET CheckBox controls

I have an HTML form with two disabled checkboxes and and image with an onclick event that needs to show a popup and enable the checkboxes:
Michael Itzoe
  • 1,911
  • 4
  • 28
  • 47
2
votes
2 answers

ASP.net render meta tag validly

HTML: Codebehind: MetaDescription.Attributes["content"] = ThisBlog.MetaDescription; This renders as:
Tom Gullen
  • 56,187
  • 79
  • 269
  • 433
2
votes
1 answer

Call Asp.Net webforms server control method using jQuery .ajax method

I'm trying to create a web forms server control and really wanted to leverage jQuery to handle the client side interaction. So far I've not found any examples to being able to directly call a server control using the jQuery .ajax functionality and…
Nathan
  • 871
  • 1
  • 11
  • 26
2
votes
3 answers

ASP.NET (webforms): Using with MINIMAL server controls and substituting with JQUERY?

I am currently working with ASP.NET and the person who designed the form has used all Server Controls for things like TextBoxes and Dropdowns etc when really they are not providing postbacks.. Some of the dropdowns and textboxes are values that I…
Martin
  • 22,234
  • 53
  • 190
  • 309
2
votes
2 answers

Add children controls within a ServerControl tags?

I'm working on a Navigation Menu. I've created below ServerControl and it works, but I want to allow users adding some standard ASP.NET controls within my ServerControl Tags like label, image and so on.
Mohammad Dayyan
  • 18,338
  • 35
  • 143
  • 207
2
votes
4 answers

Problems in the global namespace when I try to use my custom server control (in the App_Code directory)

Traditionally I use the regular asp.net website (created using the File > New Website). Recently, I opted to work off of a full fledged project (created using File > New Project > ASP.net Web Application). I've been using the same custom controls…
Steve French
  • 877
  • 3
  • 12
  • 36
2
votes
0 answers

How does ASP.Net ensure the correct binding order of internally-bound controls?

If I have something like this: ' Visible='<%# DataTime.Now.Days == 1 %>' runat="server"> How does .Net determine the order of binding? In that example, it needs to bind…
Deane
  • 7,649
  • 9
  • 51
  • 102
1 2
3
14 15