Home > Asp.net (Page 2)

Web Developer Pre-release Testing Checklist

When we talk about an emerging full-stack web developer, there are certain things that are bound to be missed owing to a developer background and a programmer mindset. A checklist with all things that should be considered before release to QA or launch will help a developer to deliver a not

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

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-67376f446534c171836766/] add following code in js file. (this code find all textbox/textarea in application and append div(charleft) to the textbox/textarea.) [crayon-67376f4465351520860524/]   and add following css [crayon-67376f4465354467396388/] :)  

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

A Cool New ‘Paste JSON As Classes’ Feature in ASP.NET Web Tools 2012.2 RC

Here’s a simple example:A) Copy to clipboard your JSON object.[crayon-67376f4465549045287272/] B) In VS2012, open edit menu, choose ‘Past Special’ and click on ‘Past JSON As Classes’.The result:[crayon-67376f446554e780542519/] Of course it also supports more complex objects like Multi-Dimensional Arrays etc.              

This Article is TAGGED in , . Read more