Questions tagged [control-adapter]

12 questions
3
votes
1 answer

Why wouldn't the default Control Adapter mappings work on Chrome or Safari?

I have confirmed that my Control Adapters are not triggering in Chrome and Safari. I've debugged, and the breakpoints inside the adapters just don't get hit in Chrome/Safari, when they work perfectly find in Firefox/IE. So, for Chrome/Safari, IIS…
Deane
  • 8,269
  • 12
  • 58
  • 108
2
votes
1 answer

In ASP.NET 2.0 how do I remove the extra tabs and line breaks from the rendered page/control output?

I have been researching this one for awhile. I found several resources on the subject and they all tend to use the same approach - override Page.Render, use the HtmlTextWriter to convert the output into a string, and then use a series of compiled…
NightOwl888
  • 55,572
  • 24
  • 139
  • 212
1
vote
0 answers

custom form control adapter not firing

I have a web site that has a custom control adapter built to rewrite the action on forms. (This is a site we inherited from another agency) When running on localhost in debug mode everything works great. But as soon as I publish the site to the…
gduncan
  • 11
  • 2
1
vote
1 answer

C#.Net - RadioButton Control adapter and postback

I have a radio button control adaptor that attempts to render the radio button control with the CSS class as part of the input tag, rather than as a surrounding span. public class RadioButtonAdapter : WebControlAdapter { protected override void…
Spongeboy
  • 2,232
  • 3
  • 28
  • 37
1
vote
1 answer

Hiding a 3rd party control from search crawler using a browser file not working as expected

I'm using in asp.net application a 3 party web control that requires some browser features (javascript especially). The control is checking if the browser has the required capabilities or throw an exception if not. This is OK when navigating to a…
Steve B
  • 36,818
  • 21
  • 101
  • 174
0
votes
1 answer

CheckBox and RadioButton Control Adapter

I wrote a control adapter a while ago for a CheckBoxList to change the markup, all good. I then wrote an adapter for a CheckBox, again all good. I then noticed however that the RadioButton's on the site were using the render method in my Checkbox…
dan richardson
  • 3,871
  • 4
  • 31
  • 38
0
votes
1 answer

If not rendering for specific browsers, why use an adapter over extending the ASP.Net controls?

My understand of Control Adapters is that they're designed to allow different HTML rendering for different browsers (thus, you register them in the .browsers file...). However, it appears people are just registering adapters for the default browser…
Deane
  • 8,269
  • 12
  • 58
  • 108
0
votes
1 answer

Css Friendly Adapters stopped working

I used the Css Friendly Adapters on a site that ran for a few years successfully and after making some changes, the adapters silently fail - but only on the server. On my local copy, it still works fine. On the server, my treeview html renders as a…
robin
  • 53
  • 2
  • 5
0
votes
1 answer

How to build ImageButton Control Adapter (or more general, how to build a simple control adapter)?

My inspiration for this question was my discovery of the very annoying default style (border-width: 0px;) on the ImageButton web control. The simple solution is to override it by adding your own style to the control e.g. Style="border-width:…
Egil Hansen
  • 15,028
  • 8
  • 37
  • 54
0
votes
1 answer

Is there some formal way to update the browser detection files for ASP.Net?

I have an ASP.Net site on which we're using control adapters. We have the adapters mapped to a "refID" of "Default." These adapters are working fine on all browsers except Chrome and Safari. For those browsers, they do not execute. I've given up…
Deane
  • 8,269
  • 12
  • 58
  • 108
0
votes
1 answer

asp.net menu control adapter disable javascript

Hi im trying to write a control adapter for the menu control. But how do i stop it from loading a javascript? it renders the following line new Sys.WebForms.Menu({ element: 'menu1', disappearAfter: 500, orientation: 'vertical', tabIndex: 0,…
Peter
  • 37,042
  • 39
  • 142
  • 198
0
votes
1 answer

Creating a custom GridviewAdapter

I would like to make a simple adapter for the Gridview control that would render the cell contents inside a
tag. Instead of rendering as
Some Data Some Data
I would like it to render…
Jeremy A. West
  • 2,162
  • 4
  • 27
  • 40