.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Control Adapter

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :SharePoint

Our solution currently uses a WebControlAdapter to run various tasks before selected events like OnInit and OnLoad are processed.  On deployment, our solution creates a .browser file in the app_browser folder of the site and the adapter works as expected.  This has worked well up until converting the solution to SharePoint 2010.   The deployment appears to run fine and the .browser file is created, but when the site is first accessed by the browser, the adapter defined in the .browser file is not loaded (it does not show in the list of current adapters i.e. System.Web.HttpContext.current.Request.Browser.Adapters). 

The curious thing to point out here is that the adapter will start to work and the adapter will show as loaded (again in System.Web.HttpContext.current.Request.Browser.Adapters), if a Dll in the bin folder of the site is removed from the site then replaced with the same DLL.   Other tasks will also cause the adapter to start working, like running "UpgradeSolution" on the original solution.

I've tried just about everything imaginable, but the only change that seems to work is to place the .browser file in the SharePoint browser folder (Program files\common files\mic

View Complete Post

More Related Resource Links

How do I use the CSS Control Adapter in my project


Hi Friends,

I want to use the CSS control adapter in my project, I googled on using this control, everywhere it says  need to download the vsi file  and install it and it will be available ready to use with the project. But on codeplex i can only find a soyrce zip file, a dll file and a browser file. I have downloaded these, but I dont know how do I use them. I could not find any updated post on using this. Can somebody please help me with this.

Also I am using VS2008 and 3.5 framework, so will it work with this.



Wizard control adapter with sidebar on top


Hi all,

I want to move the sidebar to top in wizard control. How to do that??? I know control adapters can help but it is too tough to write those. Let me know how to do that. Any other solution is also welcome.


please help!


Css Control Adapter


Hi All,

We have developed an application and it is live. Application is developed in c# for net in VS2005.

Now, we want to implement CSS Control Adapter which is used to replace the Table Layout. 

What are teh complication in make this change in live site and how can we do it.

Any help will be appreciated.


How to install the Css Friendly Control Adapter Source Code


Hi guys really new to ASP.NET I was trying to install the CSS Friendly control adapter but for some reason the instructions on the website seems outdated. I downloaded all the files (Source Code, DLL, Browser) I believe I need to add the DLL file to my website's Bin folder and the Browser file to the APP_Browsers folder is this correct? After I place this files how to I get it working? what do I have to do?

Also if I want to create a new DLL file from the Source code how do I do these? I opened the web-site with Visual Studio 2008 and I can see all the files in the solution explorer? But how do I compile this to a DLL file? I tried doing a build solution but all I get is an .sln file???

Any help would be greatly appreciated

Thanks in advance




Pls can any one help me with the details on how to use css control adapter.

help with error when using css friendly control adapter

I have installed the CSS friendly control adapters for my menus and treeview because the designer did the entire job in with <div><ul><li> instead of tables   so to adapt I installed the CSS adapter. Tyat worked great for my menu and treeview. Really. The thing is that I dont need the adapter for anything else then my menu and treeview But when I navigate to a page that has a regular wizard control (not a create user wizard) then it gets stuck on 1 line of code and gives the following error:  Unable to cast object of type 'System.Web.UI.WebControls.WizardStep' to type 'System.Web.UI.WebControls.TemplatedWizardStep'. What can I do? can I dissable part of the adapters to not adapt my wizard? When I get the error It is normally stuck on that line opf code below which is underlined and bold. Protected Overrides Sub RenderContents(ByVal writer As HtmlTextWriter) If (Extender.AdapterEnabled) Then Dim wizard As CreateUserWizard = Control If (Not IsNothing(wizard)) Then Dim activeStep As TemplatedWizardStep = wizard.ActiveStep If (Not IsNothing(activeStep)) Then If (Not IsNothing(activeStep.ContentTemplate)) Then activeStep.RenderControl(writer) If (wizard.CreateUserStep.Equals(activeStep)) Then WriteCreateUserButtonPanel(writer, wizard) End If ' Might need to add logic here to render nav buttons for other kinds of ' steps (besides t

Urgent - CSS adapter for asp.wizard control

I need  urgently CSS adapter for asp.wizard control in asp.net 3.5. Please tell me how to add in MVC web application

Adapter Design Pattern in C#, VB.NET

Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces.

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Accessing the different controls inside a GridView control

how we can access a particular control which resides inside a GridView control. In this article I will show you how you can access different controls inside a GridView control. We will see how we can access a TextBox control, a DropDownList control and a ListBox control. If you are working with ASP.NET 1.X then you might want to check out my article Accessing Different Controls Inside a DataGrid.

In-Depth look at the GridView Control

In the last article we looked at few of the new controls available in Asp.net 2.0. We also talked about Grid View Control which has replaced the Asp.net 1.1 DataGrid control for good. In this article we will examine more features of the Grid View control. In this article we will see some of the common operations that can be performed using the GridView control. Apart from these operations there are many more functions that can be performed on the control and which we will see in the later articles

ASP.NET repeater control - databind with style

even used the inline editing features, which I at the time thought was the coolest way possible to write ASP.NET code ( I managed to write code to hide all other rows and only show the current one - the row being edited). With a nice looking EditTemplate it looked indeed very slick but it really turned into giant and hard to manage code behind files.

Creating Paging for a Repeater Control

A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Using TemplateFields in the GridView Control

The GridView is composed of a set of fields that indicate what properties from the DataSource are to be included in the rendered output along with how the data will be displayed. The simplest field type is the BoundField, which displays a data value as text. Other field types display the data using alternate HTML elements. The CheckBoxField, for example, renders as a checkbox whose checked state depends on the value of a specified data field; the ImageField renders an image whose image source is based upon a specified data field. Hyperlinks and buttons whose state depends on an underlying data field value can be rendered using the HyperLinkField and ButtonField field types.

How To Add calendar control inside a GridView

This article show hot to add calendar control inside a GridView with code in c#

Using ATLAS PopUp Control with Calendar inside the GridView Control

In this video tutorial Mohammad demonstrates how you can access the Calendar control which is displayed using the ATLAS PopUp control inside the GridView control.

GridView control to show master-child or master-slave data, written in c#, asp.net

I previously made a master slave datagrid using Visual Studio 2003 .Net (original article) that would allow users to show data to clients using collapse and expand features. These features however did not carry over to gridview for many users. This tutorial will explaing how to create a collapsable/expandable gridview in frameworks 2.0 and higher
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend