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

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

Can I disable "Convert to XHTML" in the ribbon editing tools tab?

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Is there a way to disable the "Convert to XHTML" button in the ribbon editing tools tab? 

This page only specifies how to disable source editing: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.richhtmlfield_members.aspx


View Complete Post

More Related Resource Links

Question about List Tools ribbon

Hi, is it possible to set by default to visible the "List Tools" upon the ribbon. When I go to Task list, the List Tools is visible by default but not with my custom lists.

how to disable Editing of word documents in browser



sharepoint 2010
installed Office Web app

i installed office word apps and integrated it with sharepoint 2010 and all the office documents now open in the browser. but this also give the qualified users permissions to edit the word document in the browser, something that i dont want to do right now. can someone tell me how i can disable the "Edit in Browser" button that shows up on the word documents after it open in the browser.



webbrwoser disable scrollbars without editing html?

I'm aware the surefire way to turn off the scrollbars in the WebBrowser control is by having the body tag of the html set to <body scrol="no">.
Is there any way to disable the scroll bars it in XAML or code?

Disable Ribbon menu


Hi, i want to disable the ribbon menú in my application. Its posible? or i need to delete it in the master page?



Ribbon enable disable when the listelement is opened



at the moment the ribbon is enabled / disabled if an item is selected or not

but i want to enable to ribbon, too if u clicked an item and opened this one item


but therefor i have to check, if im in the listview or in the itemview


but how can i check this?


right now i en/disable the button that way:


    var items = SP.ListOperation.Selection.getSelectedItems();
    var count = CountDictionary(items);

    return (count == 1);


but i need an if/else, if im in the list or in the item

SP2010: Ribbon: Editing multiple selected items


Hi there, we're using the Issues Tracking lists for a number of projects in SP2010.  I've created a solution that adds a few buttons to the ribbon that allows the user to select a few items, and then click the button to do something that affects all of those items, for example, set the "Assigned To" field to a specific value.  Using the EnabledScript tag for CommandUIHandler for the button, I'm able to disable/enable the button so that it only works if at least one item is used.

Two questions:

1) I've read that it may be better to use a "delegate control" for this instead of using a CommandUIHandler since it's just intended to work on a list and not a site - is that the case (and if so, how is that accomplished?)

2) More importantly, how would I actually post back changes to each item that the user selected?  I was thinking of popping up a model dialog that had an Assigned To People Picker box in it with an OK/Cancel, but I'm not sure what to use to post back changes to each item.

Any help would be appreciated - thanks,


Enable/Disable "New Folder" ribbon menu in document library in sharepoint 2010


I am new to sharepoint 2010. I want to disable "New Folder" server ribbon menu under document library only if I am at level greater than 2 in document library. If level is <=2 "New Folder" ribbon menu should be enabled. How I should achive this enable/disable feature of existing "New Folder" menu item?    

Enable/Disable "Edit" and "Check In" buttons in Ribbon

We want to enable or disable "Edit" or "check in" buttons in ribbon depending upon code run in C#. We have visited a lot of resource but mostly describes for custom buttons. We need to do this for buttons provided out of the box. Any help?

Disable sharepotin ribbon button programatically


I am able to hide ribbon button using following code




ribbon = SPRibbon.GetCurrent(this

Architecture Tools in VSTS 2010

Designing new functionality on existing applications can be daunting. There are always differences between the original design and the current implementation.

The new Architecture tools within Visual Studio Team System 2010 help you understand the application you have, design new functionality you need, and validate that your design and your implementation do not deviate.

Editing the Data in a GridView

In addition to deleting a GridView's underlying data, another common need is to allow end users to edit the data displayed in a GridView. With ASP.NET 1.x's DataGrid control, editing the data is certainly possible, but requires creating three event handlers and writing a dozen or so lines of code. With the GridView and ASP.NET 2.0, it is possible to create an editable GridView without writing a single line of code! All of the necessary functionality is encapsulated within the GridView.

The GridView allows editing on a row-by-row basis. An editable GridView contains an additional column with an Edit button in each row. When the end user clicks on an Edit button that row becomes editable, causing the Edit button to change to Update and Cancel buttons and the other columns to become TextBoxes. The end user can then update one or more column values and click Update to save their changes.

How Do I Enable Inline GridView Editing?

Now that you have created a site with Edit and Details views, how do you enable inline editing in a GridView control? This video shows you how, and also touches on routing.

ASP.NET 2.0 (III) Architecture and Tools

In this third article we'll take a look at the changes to the architecture of ASP.NET v2.0. In particular we'll look at the changes to the compilation and deployment model.

Custom Editing Behavior for DataGridView TextBox Columns

For various reasons I'm using a DataGridView instead of a ListView, and while configuring the DataGridView to look like a ListView wasn't much of a problem, there's one thing that got on my nerves, which is the behavior of textbox cells in edit mode: It is much too easy to leave the edit mode accidentally, simply by pressing the cursor keys at the wrong time. For example when the text caret is positioned behind the last character of the textbox cell content, and you press the right arrow key

Creating Dialogs and Ribbon Controls for SharePoint 2010

SharePoint 2010 provides new user interface components, such as server ribbons, and the new dialog platform. As a developer, you can create controls for the server ribbon and dialog boxes for the dialog platform.

Gridview with a dropdown list for editing


Hello. I am working through Scott Mitchell's ASP.Net in 24 hours book. I am finishing the photo album project.

I have a GridView that retrieves a list of uploaded photo rows for the logged-in user.
The GridView is for editing and deleting rows.

The photo Category field in the Gridview is a dropdown list. The text entry field was deleted after converting this field to a Template.

Like the uploaded photos, these Categories are user-specific. They are created in another web page.

Users also have the option to select "none" for the category when they upload an image.

For the GridView:  The Category ID field's ItemTemplate and EditItemTemplate both have a " - None - " choice added to them.

I am getting this error:

'pictureReadOnlyCategories' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value


Note: The ID for the ItemTemplate for that dropdown list is the ID listed above in the error: "pictureReadOnlyCategories".


Am I missing some step in this process of changing a GridViews text field to a dropdown that can be used for editing? I went through the book's instructions three times.

Here is my code for the dropdown list and a screenshot of the Design

Use Membership but bypass / disable password usage for users


I have an application that does LDAP authentication. The authentication is done on the code behind page of my Login.aspx page. Once the user passes LDAP authentication, a cookie is set and I redirect:

FormsAuthentication.RedirectFromLoginPage(UserName.Text, False)

I would like to setup membership in my application and keep track of some user information. But due to company security requirements, I cannot store user passwords on my application. That must stay on the LDAP server only.

Is there a way to store users but disable password storage on the aspnet_membership table?

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