Geeks With Blogs
Rohit Gupta Engaging talk on Microsoft Technologies ....My Resume
We just need to implement three concepts to build a prototype chain in Javascript. First we create the base class: function Animal(voice){ this.voice = voice || grunt; } //We update the Animal prototype so that it has a function that can be used by all its derived classes Animal.prototype.speak = function(){ console.log(this.voice); } //Next we create ......

Most of the times we end up using either $(‘#myform’).serialize() along with default contentType in ajax POST request, OR we use the JSON representation of the form using jquery helper methods, then call JSON.stringify(formData) and then set contentType = “'application/json; charset=utf-8’” inorder to submit form data to the MVC Controller. The JSON ......

Many a times we find a need to download a file on doing a AJAX POST request. Normally we would just use the Response.Write to write the fileStream to the MVC Output response, as follows: 1 [AcceptVerbs(HttpVerbs.Post)] 2 public FileContentResult FunctionA(string A, DateTime B) 3 { 4 try 5 { 6 string csv = "Make it downloadable "; 7 var filresult = File(new ......

Many a times there is a need to call a function after successfully uploading a file in MVC using form submit. Thus your HTML code will look something like the following for uploading a file: 1 <form class="item-add" action='@Url.Action("Upload... "Upload", new { area = "Masters" })' enctype="multipart/form-data" id="ImgForm" method="post" ......

NHibernate ISession has two methods on it : Load and Get. Load allows the entity to be loaded lazily, meaning the actual call to the database is made only when properties on the entity being loaded is first accessed. Additionally, if the entity has already been loaded into NHibernate Cache, then the entity is loaded directly from the cache instead of ......

For this we need to setup a AppFabric Cluster on-premise…. or setup a Caching Worker role (or colocated Caching) on Azure. The steps for the same are mentioned in this blog post: Configure MVC app to use onpremise AppFabric Cache or use Azure Caching. So once we have AppFabric Cache setup. to use this AppFabric Cache as the second level Cache in NHibernate ......

Here are the steps: I am using Windows Azure Caching preview on the cloud for caching purposes on Azure, which can be colocated Cache or a dedicated Cache Worker Role. Note we have not used the Azure AppFabric cache which is available as a separate service from Azure and comes at a high cost. I have an appSetting key that will be used to distinguish ......

If you see Nuget adding bindingRedirect to your app.config , when doing updates to existing assemblies, and if you feel this was not what you expected then read on. Here is an example of a bindingRedirect added to the web.config file: 1: <runtime> 2: <assemblyBinding xmlns="urn:schemas-microsof... 3: <dependentAssembly> ......

To use SQL Azure Federations with NHibernate we need to insure that we reuse the connection that was used for executing the USE Federation command. Secondly we need to insure that we don’t enlist the “use Federation” command in a transaction. For this purpose I have created a helper class named NHibernateSession which has a parameterized constructor ......

Policy injection block has been deprecated in Enterprise Library 5.0, however the ExceptionHandling application block contains ExceptionHandlingCallHandler which was usually found useful when used in conjunction with the Policy Injection App Block. The purpose of this CallHandler is to handle exceptions using the policies defined in app.config/web.config ......

When using the storage client library to access Azure Storage, it is recommended that we make use of the Async calls to execute queries against the Azure Tables/Blobs. TableClient and BlobClient expose methods to execute queries asynchronously, for e.g. blobClient.BeginListContain... : which retrieves the list of Blob Containers in our storage. ......

In Windows Azure, we have the DiagnosticMonitorTraceListener which can be used for writing diagnostics to Local resource (like a local storage in the Worker or Web Role) which can then be ultimately stored in Windows Azure Table/Blob storage (transferred automatically by the Diagnostics Monitor in Windows Azure based on config settings). We could either ......

While developing applications for Windows Azure, we are all aware that we need to create Web and Worker Roles and use the Azure Compute Emulator (previously known as the Development Fabric) for running and testing applications in the local IIS server. However to run unit tests against libraries that are being consumed from your web/worker roles we need ......

Consider the following: We have an account named MYDOMAIN\eholz. This accounts Active Directory Login Name changes to MYDOMAIN\eburrell Now this user was a active user in a Sharepoint 2010 team Site, and had a userProfile using the Account name MYDOMAIN\eholz. Since the AD LoginName changed to eburrell hence we need to update the Sharepoint User (SPUser ......

If you facing the issue that the web Analytics Reports in SharePoint 2010 Central Administration is not updating data. When you go to your site > site settings > Site Web Analytics reports or Site Collection Analytics reports You get old data as in the ribbon displayed "Data Last Updated: 12/13/2010 2:00:20 AM" Please insure that the following ......

Copyright © Rohit Gupta | Powered by: GeeksWithBlogs.net