.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

Setting language settings programmatically MUI?!

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
Is it possible to set the language settings programmatically ?? Site settings > site administration > language settings and next programmatically select the installed language packs?

View Complete Post

More Related Resource Links

Programmatically Hide Master Pages from Site Master Page Settings page?



I know there is a field you can check when you edit the properties of a Master Page in the Master Page Gallery to set a Master Page to hidden but ... can anyone think of a way to programmatically hide specific Master Pages from the Site Master Page Settings page?

Maybe this should be two questions:

  1. How do I programmatically access a Master Page in a Master Page Gallery?
  2. Is there a property that can be set that will hide the page from the Site Master Page Settings page?

problem on Page_PreRender with RangeValidator control and programmatically setting Maximum and Minim

I am new to the ASP.NET /C# dev. I run into a weird bug when using the RangeValidator Control inside a Formview. I have my DateTime field with validator and it work fine until I submit the page, it actually insert the row into the database but then when the page reload I get the following exception.Server Error in '/Budget' Application. The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [HttpException (0x80004005): The value '' of the MaximumValue property of 'RV_AjoutUtilisateurDate' cannot be converted to type 'Date'.] System.Web.UI.WebControls.RangeValidator.ValidateValues() +1077011 System.Web.UI.WebControls.RangeValidator.ControlPropertiesValid() +12

What lists and what column types allow for setting "column default value settings"

There is a new setting for lists in 2010 called "Column default value settings". What lists does this setting apply to (I think just lists with a base template of Document Library)? And for what column types is it available? It was available on a "Single line of text" column but not a lookup column. Thanks in advance!

Problem setting up approve/reject settings in Absence Request and Vacation Management Template

Hi I have recently installed and set up the absence request and vacation management template in SharePoint Services 3.0 and all seems to be going reasonably well apart from one hitch. I have edited the setup workflow so that manager is sent an email on request, employee is sent an email on approval/rejection and payroll are sent an email on approval for their records. However, even though the Personal Vacation option in the Absence Type list is set to Yes for Approval Required, the workflow is automatically sending out the email to say their annual leave has been approved as soon as they request it. Has anyone come across this before or know where I may be going wrong? Thanks for any help you can give. Jo

Programmatically remove IIS HTTP header settings

 Our IIS server (v7) has the following settings in [Custom HTTP Headers] for our whole site: Pragma: no-cacheCache-Control: private, no-cache, no-store, max-age=0, must-revalidate, post-check=0, pre-check=0X-Powered-By: ASP.NET Out of the whole site, there are some pages that require the "no cache" setting to be removed for them to work properly. This was done manually by our IIS Administrator until recently.  Now we were told that we need to do it programmatically on our end. The following were the code snippets (VB.NET) we have used with no luck in success. Advice is appreciated, Thanks! Method-1Response.Headers.Remove("Pragma")Response.Headers.Remove("Cache-Control")Response.Headers.Add("Cache-Control", "private")Response.CacheControl = System.Web.HttpCacheability.public Method-2Response.ClearHeaders()Response.Headers.Clear()Response.CacheControl = "Public"Response.Cache.SetCacheability(HttpCacheability.Public)Response.Cache.SetAllowResponseInBrowserHistory(True)

SQLSRV PHP returning "Changed language setting to us_english"

We are getting an intermittent error and I hoping someone can help determine the cause or a workaround. We are calling sqlsrv_query() to execute a stored procedure. Sometimes the function returns false and sqlsrv_errors() returns this message: [Microsoft][SQL Server Native Client 10.0][SQL Server]Changed language setting to us_english. In the last 5 months, this has happened 6 times when calling 3 different stored procedures. The web site that does the database access is fairly busy, so you can see that this is very intermittent. I have seen a number of Internet sites that say that this is just information and can be ignored. But how can I ignore? sqlsrv_query() returns false. We are using: Windows Server 2008 and IIS 7 Microsoft Drivers for PHP for SQL Server v1.1 PHP v5.3.3 (was 5.3.2) FastCGI (these errors did not appear before switching from standard CGI about 5 months ago)

Keyboard settings for Region and Language settings



Is there a way to change the keyboard settings for the selected region and culture settings through c# code?

Thanks in Advance!!!!

Best Regards,
Subalakshmi Vijayarajan.

Language settings in WPF application



Is there a way to change the keyboard layout for WPF applications according to the selected Region and Language settings of the system?

To explain more about the problem, please find the scenario below.

Normally, In English(US) culture, the decimal numbers are seperated by dot(.) seperator. But in Dutch(Netherlands), the decimal numbers are seperated by comma(,) seperator. After changing the Region and Culture settings to Dutch(Netherlands), if you open the excel sheet and type a number with number pad in the keyboard, when we you use dot(.) symbol in the number pad, it will be automatically replaced as comma(,) by the application. How can we achieve the same using our application in C#?

Thanks in Advance!!!!

Best Regards,
Subalakshmi Vijayarajan.

How programmatically change Additional Column Settings - Show field?


Hello. I use the SPFieldUser in my list. I can change Additional Column Settings - Show field: "Name with Presense" on the "Name (with Picture and details)" using the WSS Web interface. How do it programmatically, using Object Model WSS?

Setting Options Programmatically in Visio 2010 for Publishing to SharePoint Server 2010

Explore how to programmatically save Visio 2010 diagrams as web drawings for use with Visio Services in SharePoint Server 2010.

Programmatically changing the 'Activities I am following' under Newsfeed Settings

Hi, is it possible to programatically select/deselect activities I am following on the news feed preferences page under MySites? I want to be able switch on/off notifications for both custom events and those provided by Sharepoint 2010 out-of-the-box.

Programmatically setting Agent Autostart properties


I've written a service to replace the SQL Server Agent service to be independent of Agent when moving to Express versions of SQL Server which do not include Agent.  Obviously on older 2000 MSDE versions I don't want Agent and my service running at the same time so I need to turn off Agent but there are SQL Server Properties such as under the General tab, "Autostart policies when the operating system starts" section and I need to uncheck the "Autostart SQL Server Agent".  In SQL Server Enterprize Manager I can right click the server then select properties and general tab.

How do I change that property either via T-SQL or via VB.NET to uncheck it?



Language settings messed up in SharePoint 2010


In the last couple of days I've tried to refactor my code to be able to support multiple languages. Somehow I messed up my solution and still can't figure out the reason since the problem now appears seperately from my solution. Ok without anymore excuses here we go:

I've got an english SP2010 Server with a german language pack installed. If I create a new blank sitecollection (STS#1) with default language german (language code 1031) and open the url in my browser everything shows up in english (language code 1033). However if I navigate to "Libraries" afterwards everything switches back to german. So I only got english language on the RootWeb of my sitecoleection (at a point where I've only created a blank sitecollection without deploying any piece of code at all).

At Site settings -> language settings german is set to be the default language and english is not activated at all. I can't tell when this behaviour started, but if I would have to guess, I would say it started when I tried to activate alternate languages by code.

Setting to ignore IE proxy settings



I have a current WPF project, that makes use of web services. This application will however only run on one machine, and do not need to use a network. How do I tell my project to ignore IE proxy settings?


Many thanks,



Programmatically setting UpdateParameters for a SQLDataSource control


I need to provide defaults and sometimes overrides for items in SQLDataSource's UpdateParameters. I am attempting to do this in a FormView's ItemUpdating and ItemInserting events as follows:

    // FormView1_ItemUpdating:
    protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) {
        // not sure if this is the bets place to put this or not?
        dsDataSource.UpdateParameters["UpdatedTS"].DefaultValue = DateTime.Now.ToString();
        dsDataSource.UpdateParameters["UpdatedUserID"].DefaultValue = ((csi.UserInfo)Session["UserInfo"]).QuotaUserID;
In the example above I am attempting to set new values for the parameters which will replace the existing values. 
I have found that using the DefaultValue property works ONLY if there is no current value for the parameter.  Otherwise the values

Site Settings page empty-blank, Site Actions not clickable in custom site created programmatically f



We are migrating from MOSS 2007 to SharePoint 2010 and testing custom code used for creating sites. Sites were used to be created based on a site template, 'STP' file. In 2010, there are no more 'STP' files, instead 'WSP' solution packages are used, so we created a new WSP site template in Solutions gallery. The custom code uses that WSP for creating sites now.

But, when a site is created, and when you go to Site Settings from Site Actions menu, it load empty page - no any settings links or anything, just a blank page (/_layouts/settings.aspx). Also, Site Actions menu becomes unclickable.

Has anybody seen something like this?

Thanks a lot!


Regards, R.D.M.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:
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