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


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

Need help using control adapters at the machine level

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net
 
Hi guys!

Let me explain our situation. I do web development at a university at which we have to meet strict accessibility guidelines. I've specially modified the adapters (as well as extended CompositeDataBoundControlAdapter to include GridView) for use on our site and to use with our global stylesheets as well as compiled the control adapters into a DLL.

The control adapters now all reside in the WebServices.CssFriendlyAdapters DLL.  (For example, WebServices.CssFriendlyAdapters.GridViewAdapter).

Currently, when someone drops an App_Browsers folder in to their site with the adapters specified, the adapters work. However, we'd like to be able to specify this in the C:\WINDOWS\Microsoft.NET\Framework\(version number)\CONFIG\Browsers directory so that the adapters work automatically without anyone having to move anything into App_Browsers for every site. To ensure that someone can still use the "old way" or will not be confused by their controls being adapted, I've written in code that uses the base rendering methods unless xhtmlConformance is set to "Strict" in the site's web.config file.

Anyway, on to the problem. When trying to compile the controlAdapters into the C:\WINDOWS\Microsoft.NET\Framework\(version number)\CONFIG\Browsers directory using aspnet_regbrowsers.exe (see http://msdn2.microsoft.com/en-us/library/ms229858.a


View Complete Post


More Related Resource Links

are the "CSS Friendly Control Adapters" being used in ASP.NET 3.5 and above?

  

I am a long time ASP.NET developer, but have just encountered the issue of CSS vs Tables in a deep manner (so far I have just used the built-in controls or just created my own controls).

I bought a great book on this issue, but the book is reffering the ASP.NET 2.0 via VS2005.

I am using ASP.NET 3.5 and above via VS2008/2010.

My first question is: are the "CSS Friendly Control Adapters" still alive in 2010 or maybe there are a new techniques being used?

My second question is:  are the "CSS Friendly Control Adapters" being used in ASP.NET 3.5 and above via VS2008/VS2010?

I will appreciate your help and advise.

Regards

Yossi

 

 


Cant find vsi file for CSS Friendly Control Adapters

  

Hi guys

This is driving me crazy... I cant find the .vsi file for installing the CSS Friendly Control Adapters Project. Does anyone know where I can get this?

The following link: http://www.asp.net/cssadapters/ only leads to the CodePlex wiki where I can download the dll and a partial solution. Essentially, I'm looking for the source code to implement the Menu adapter.

Any help is much appreciated!


Extreme ASP.NET: Control Adapters

  

Control adapters let you provide alternate renderings of controls for mobile devices. But they can also be used to completely change the rendering of a con¬trol based on browser type, which can be useful in a number of situations.

Fritz Onion

MSDN Magazine October 2006


Addressing a specific node with CSS Friendly Control Adapters

  

Hello everybody,


I like the concept of the friendly control adapters, but I'm not sure if I can use them for my purpose.
My whole menu basically consist of one image, which itself contains the images for each menu item (is that understandable?).

Each menu item then displays only a certain part of the image.
I do this by shifting the background-position.

#navigation li#home a{
background-position:0px 0px;
}


/* Registration */
#navigation li#registration a:link, li#registration a:visited {
background-position:-106px -34px;
}

#navigation li#registration a:hover, li#registration a:focus {
background-position:-106px 0px;
}

/* Administration */
#navigation li#administration a:link, li#administration a:visited{
background-position:-212px -34px;
}

#navigation li#administration a:hover, li#administration a:focus{
background-position:-212px 0px;

}

I would like to do the same now with CSS Friendly, but I don't see how I can address each individual menu item node.
In static HTML I can give each link an ID (i.e. #administration), but I don't see how to do this with the asp:Menu control and CSS Friendly.

Can someone help me?

Thanks a lot,
Thorsten



Setting trust level for windows.system.forms.browser control

  

Hi All,

I am using a browser control in my WPF application. The users of this application will be using this control for viewing content that could contain malicious scripts. I want to set the Trust Level so that none of the scripts should be executed. I have added the Attribute to the method that creates the Browser control. I dont think its working though. Any thoughts on how this can be done?

[

PermissionSet(SecurityAction.Assert, Name = "Nothing")]

 

public System.Windows.Forms.WebBrowser CreateBrowserControl(

Setting trust level for windows.system.forms.browser control

  

Hi All,

I am using a browser control in my WPF application. The users of this application will be using this control for viewing content that could contain malicious scripts. I want to set the Trust Level so that none of the scripts should be executed. I have added the Attribute to the method that creates the Browser control. I dont think its working though. Any thoughts on how this can be done?

[

PermissionSet ( SecurityAction .Assert, Name = "Nothing" )]

 

public System.Windows.Forms.

Setting trust level for windows.system.forms.browser control

  

Hi All,

I am using a browser control in my WPF application. The users of this application will be using this control for viewing content that could contain malicious scripts. I want to set the Trust Level so that none of the scripts should be executed. I have added the Attribute to the method that creates the Browser control. I dont think its working though. Any thoughts on how this can be done?

[

PermissionSet ( SecurityAction .Assert, Name = "Nothing" )]

 

public System.Windows.Forms.

transparent border around a submenu level in asp menu control..

  

i know this must be simple but not sure of how to get this done.

i need a border that is transparent around a level of submenu for a asp menu control(not around each of the sub menu item) similar to this.


and also the inside menu should have two layers of submenu if it is too long..


How can i do this.. Its really urgent..


Open Power point presentation in WebBrowser Control with out MS Office installation on the machine

  

I want to start a Microsoft Powerpoint presentation inside the WebBrowserControl. I followed the procedure in http://support.microsoft.com/kb/304662
The PC only has Microsoft Powerpoint Viewer  and there is no office installed. The client does not want office installed on the machine

If  Microsoft office is installed the change of  the File type settings under Folder Options the 'Browse in same window' to true works but without MS office installation this setting is not available.

Please let me know the alternative to have the power point open in WebBrowser Control without MS Office.

Newbie needs help to compile CSS Friendly Control Adapters

  

I use VB.NET and create Website Projects (not Web Application Projects). Up to now, I have had little need to understand much about the compilation processes in VS2010.

However, to make use of the CSS Friendly Control Adapters it would appear that I have to compile the source code into a CSSFriendly.dll file. I would appreciate some detailed guidance on how to achieve this.

David


CSS Friendly Control Adapters is not running with Update Panel of Atlas

  

Hello,

I am using Atlas and I want to use the CSS Friendly Menu Control Adapters beta 2.0.

All the events are running properly but cannot able to get the result due to the update panel control of Atlas.

Can anyone suggest me, how can I use CSS Friendly Menu Control Adapters beta 2.0 with Update Panel Control of Atlas ?

thanks..

Sandeep.

 


Newbie needs help to compile CSS Friendly Control Adapters

  

I use VB.NET and create Website Projects (not Web Application Projects). Up to now, I have had little need to understand much about the compilation processes in VS2010.

However, to make use of the CSS Friendly Control Adapters it would appear that I have to compile the source code into a CSSFriendly.dll file. I would appreciate some detailed guidance on how to achieve this.

David


Row level access control in sql server

  

Hi All,

I'm looking for some opinions on implementing row level access control to a SQL Server confidential data table.

Only certain rows can be accessed (select, update, delete....) by certain users.  

I've searched around and so far what I have found points to the following scheme:

- define users, groups of users, roles with actions, and row membership categories, in an access control table

- add a membership category column to the confidential data table, and populate it with content that specifies what access control membership category it belongs to

- allow users to use stored procedures (probably via a web front end) to access the data they are entitled to, using a view with a where clause.  The where clause would check the user id against the access control table to see what row membership categories that user was entitled to access, and use this to restrict the rows being returned.

So to summarise the requirement, there are many rows in the table.  There are many users.  Some users can access all rows.  Some users can only access rows that fall into a particular category.  The category is stored with each row.  

Any comments appreciated....

 

Regards,

Dave.

 


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.
Categories: 
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