Jamil Hallal's Blog
I'm a .NET software architect, freelancer. I provide .NET development and consultancy services for the complete Microsoft .NET Ecosystem: ASP.NET(Webforms, MVC), Winforms & WPF , Microsoft Windows Azure, Azure Chatbot, WCF and Standard Web Services, EntityFramework, Database Design (MS SQL & Oracle), SharePoint, CRM. You can reach me through my email address: jamilhallal@hotmail.com
-
Avoid Case Sensitive in Silverlight QueryString
In Silverlight and when querying parameters from the query string on the current page's URL you will notice that the keys are case sensitive, to bypass this issue use the below code: var queryParams = new Dictionary<string, string>(HtmlPage.Document.QueryString, StringComparer.InvariantCultureIgnoreCase); if (queryParams.ContainsKey("svcid")) { //Your code here. }
-
System.InvalidOperationException: jsdebug Web Service method name is not valid
If you are getting a 'web service undefined' error when calling a web service from Javascript which is defined inside the ScriptManager tag like so:
-
Could not load type System.ServiceModel.Activation.HttpModule
If you install DotNet framework 4.0 on IIS server and then enable .NET 3.0 or 3.5 WCF features, you might see following error when browse your application site made of ASP.NET 4.0 (or run on ASP.NET 4.0 application pool).
-
Displaying Summary Information (sum or total) in the GridView's Footer
Challenge
-
Geospatial Data in SQL Server 2008
Introduction
-
jQuery Selectors
jquery selectors are the most important aspects of the jquery Library. On top of standard CSS selectors jquery introduces some custom selectors that makes your code even more simpler and easier to read. Below is a summary table of the jquery selectors
-
jQuery 101 – The Basics
What you should already know
-
The Style of the SP DateTimeControl is Corrupted
I'm using a SharePoint DateTimeControl on a custom SharePoint page, while implementing theomplete behavior of the page I found that the DateTimeControl is not rendered properly on the page, the picker is opening but with no styles. Note that the control is working properly on the default SharePoint pages.
-
Large ViewState & ViewState chunking (maxPageStateFieldLength)
The ViewState Chunking mechanism allow you to split the ViewState content into several chunks/hidden fields. The reason behind using this feature is that some proxies and firewalls will deny access to the aspx page that contains a huge ViewState size by enabling the chunking mechanism that will allow you to bypass this policy.
You can enable ViewState chunking by setting the MaxPageStateFieldLength property the web.config of your asp.net application, this property should be added to the "pages" section in the web.config and it will specify the maximum size of the ViewState in bytes.
If the ViewState size is larger than the value of the MaxPageStateFieldLength than it will be splitted automatically into several hidden fields.
Set the property in the web.config as per the following:
<pages maxPageStateFieldLength="5">
ViewState Example:
Note that you should reconsider the way you are using the ViewState (ViewState optimization, maybe disabling it in some cases) when it has large size.
Reference:
http://msdn.microsoft.com/en-us/library/ms178577%28v=vs.85%29.aspx -
SharePoint Navigation - Setting the Audience Property of an SPNavigationNode
In this tip/trick i will demonstrate a way of setting by code the target audience of an SP navigation node.
You might say setting this property in SharePoint UI is quite simple, but if you want to set it by code you will not find any straight forward property or method out of the box in SharePoint Object Model that does the job.