Home > Asp.net MVC (Page 3)

Convert XML to JSON in MS SQL SERVER

JSON is a data-interchange format that is both Human and Machine readable. It is easy for developers to interpret and pinpoint the issues, if any, during debugging when working with JSON. If the data is sent from our database to the application in JSON format. It will definitely make developers life

This Article is TAGGED in , , , , , , , , , . Read more

Simple way to generate connection string from text file

Common issue generally every developer faces in his initial days of development is how to generate connection string that connects my application to the database. Especially when we don't have sql management studio installed or if we are facing licensing issues.Well, a text file can come to a rescue.  To overcome such

This Article is TAGGED in , , , , , , . Read more

What is Null Conditional Operator?

"The null conditional operator prevents the execution of a method if the caller object is null."Explaination:Whether you are novice or experienced developer you must be familiar with null reference exceptions. You must be tired of writing null checking code to make sure your application handles null references correctly. The null-conditional

This Article is TAGGED in , . Read more

Testing Routing and URL Generation in ASP.NET MVC

In ASP.NET MVC, getting your routes setup properly can be tricky if you have a lot of routes. Whenever something is tricky, and might be touched often, having a set of unit tests around it can very helpful to ensure you aren't breaking it when you make changes. Lots of

This Article is TAGGED in , , , , , . Read more

How to Generate Machine Key in IIS7

Open your IIS Manager from Administrative tool -> Internet Information Services Manager. In Connection pane on left side of window, click on the website. Double click on Machine Key icon as shown below. You will see Machine key page, default encryption method is SHA1, you can change it from dropdown list as shown. Click

This Article is TAGGED in , . Read more

set maxlength to all textbox/textarea in application using jquery.

Add a textbox with id and maxlength attributes like [crayon-67680fefaa6fa580049683/] add following code in js file. (this code find all textbox/textarea in application and append div(charleft) to the textbox/textarea.) [crayon-67680fefaa6fd913028137/]   and add following css [crayon-67680fefaa700547642754/] :)  

This Article is TAGGED in , , , , , . Read more

Difference between build, Rebuild and Clean Solution.

Build solution menu: - This will perform an incremental build. In other words it will only build code files which have changed. If they have not changed those files will not touched.  Rebuild solution menu: - This will delete all current compiled files (i.e. exe and dll's) and will build everything

This Article is TAGGED in , . Read more