Latest Post on Blogers Hub

The .NET Framework comes to mind when talking about .NET. However, since the release of .NET Core 1.0 in 2016, we need to be more specific and distinguish between the .NET framework (also referred to as the full .NET framework) and the new .NET Core.

To understand the differences between the two, we first need to inspect the two main parts of the .NET framework: Common Language Runtime (CLR) and the Framework Class Library (FCL).

The Common Language Runtime is the virtual machine part of the .NET framework, responsible for running applications. It provides multiple services which make the following possible:

This post aims to describe, how we can access local package feed and download symbols to debug package. This post also explains how we have to step Visual studio to access package feed and symbol server. To see how you can create packages that can be debugged in Visual Studio 2017, please refer my last past "Create Nuget Package with source and symbol to debug in VS 2017

Setting up Visual Studio 2017

1. Open solution for the project in Visual Studio 2017. 

2. Click on Tools Options from top menu items in VS. 

3. Go to NuGet Package Manager Package Source. 

4. Click on the icon on the top right icons. Name it YourFeed (You can give a name as per your convenience) and put source http://yourservername:81/nuget/YourPackage/. Then click on update button. 

In this post, we will see the easiest way to create a package with all the symbols in Visual Studio 2017. So that once we install a symbol server and upload package to this symbol server then we can debug that package in Visual Studio 2017.  I will share steps to debug package in Visual Studio 2017 in "Setup and Debug NuGet packages in Visual Studio 2017". 

The process to Create a new package in Visual Studio 2017:

All process to create package will work as expected after these changes so you can use any of the processes to create new package i.e. msbuild, pack commands. Here I will explain default option to pack package with source and symbol. 

Introduction: In Today's Post I will explain how to do Validation with Jquery for Emailid, Phone number, numbers, Decimal and Required in single generic code. 

Post: Client side validation is the most common process in any web site. Even though we have jQuery form validation plugin also. But the issue we faced with this plugin is that We have to write separate code to validate every form. So I decided to something generic that I can write once and not need to think about client side validation part. Luckily jQuery provide us option to do this easily.

One single code will validate the complete site. In the current post, I will validation only for required, email, phone number, and decimal values. With a little code of jQuery and some CSS, we can do it.

In the Previous post, we learned about Validation with Jquery. In the Current post, we will learn a new feature of C sharp in .net framework 4.5. 

Introduction to Async and Await

Async and await are two new keywords that are introduced with .net framework 4.5 for supporting asynchronous programming. We can use Async feature which makes asynchronous programming straightforward as synchronous programming.

Async modifier specifies that method is an async method and returns a Task or Task. Task or Task return type hold information regarding ongoing work of methods i.e. Task contains information that the caller of the method can use status of Task, its unique ID and method's result.

async Task<int> DoSomeTasksAsync()

Await operator is used with return task in an await expression. This expression suspends execution of the method that contains it until the awaited task is complete. In mean time controls is returned to the caller of the suspended method.

Task<int> taskobject=  DoSomeTasksAsync()
int taskResult = await taskobject;

In the last post of jquery, we learn how to create a generic jquery code to validation complete site. Now will learn how to Delay function or Method execution for some time with SetTimOut Function after Jquery ready method.

Sometimes we have to delay execution of the method for some time or want to execute method continuously after a fix time interval using java script. i.e. want to create clock or do a service call. In any of these situations, we will user java script setTimeOut function.

Error Message: The property is part of the object's key information and cannot be modified

Introduction: Sometimes we get an error “The property is part of the object's key information and cannot be modified “ while trying to change the value of model class with entity framework whether you use MVC or ASP.NET. This issue comes when the property you are trying to update is in the list of object key collection of Entity model. To Resolve this we can follow below steps.

Error CS0117: NamespaceOuter does not contain a definition for NamespaceInner or The namespace in dll conflicts with the type in dll

In the last post regarding error will see how to resolve issue of Error Message: The property is part of the object's key information and cannot be modified

Sometimes we receive above error when trying to run our web site but does not show any error on the build and show build success. It is a strange situation when your solution builds successfully but show error when try to run the website and if you try to see namespace name in intelligence than we can see the name of the namespace.

Recently I got a task to upload heavy data to SQL server database. Data was in XML files and I am to upload that files in the database. Size of XML file was big. First I tried to fetch data and pull into my Data Base one by one. I faced performance issue due to continues inserting process. So decided to read XML file in the data table and upload this data table to SQL server database using SqlBulkCopy class. It was much better to copy data table to the database using bulk copy operation in c sharp.

The data table is being used to store SQL server data in memory for local use. So we can hold XML file data in Data table and bulk copy complete data of data table in the database with in seconds.

When requesting sensitive information from the end user such as passwords, credit card details, and transaction pin numbers used in Internet banking, etc. it is preferred that the web user keys in the characters manually rather than pasting from the clipboard.

You can disable cut, copy and paste by simply writing small peace of code by jQuery.

In previous post of jquery we see how can we validate complete website with a single code of jquery and how can we delay execution of methods with java script

Latest on posts

Blog Archive