Saturday, August 24, 2013

Move line up down with Visual Studio 2013

This blog post will be a part of Visual Studio 2013 features series.

Visual Studio is a Great IDE and with the new launch of Visual Studio 2013 we are getting more and more new features. I have just discovered a new feature for Visual Studio 2013 and I thought it will be a good idea to write a blog post about it.

During writing code some times we required to move lines of code up and down the earlier we have to cut and paste the line. But with Visual Studio 2013 preview there a short cut to do that and it will be useful when we are refactoring our code and doing some changes. There is a short cut to move lines up with Alt + up arrow keys and same way for moving down Alt+ down keys.

For example I have following code there.

UpArrowKeyMoveLinesvisualStudio2013


Now I am pressing Alt+ Up arrow keys

UpArrowKeyMoveLinesvisualStudio20132

So you can see its now moved up. That’s it hope you like it. Stay tuned for more..
Share:
Sunday, August 11, 2013

Knockout.js Introduction

We all know about jQuery It makes Java Script developers life very easy. But in Some scenarios jQuery does not help. For example there is no way where UI and data communicates with each other without writing complex code.  Here JavaScript library knockout comes very handy.  Knockout.js implement Model-View-View-Model pattern to JavaScript. 

Knockout js basics

Key Features:


Declarative bindings: It provides an easy way to bind your data with UI declaratively. You can use knockout observables with some html attributes. Whenever data changes it will automatically updates UI.

Dependency Tracking:  With this features it will automatically updates the UI whenever data changes.

Extensibility: It can be easily extensible with new declarative bindings and it can recused every where.

Templating: Knockout.js has a built in template engine which you can use with declarative bindings. It also supports third party template engines like jQuery templates and UnderScore.

Share:
Friday, August 2, 2013

How to add a control to user control from a web page in asp.net

This post in a reply to a question on stackoverflow.com. Where the person who asked this question want to add control from the asp.net page dynamically. I decided to write a blog post here.

So let’s first create a user control for this.

MyUserControl

After creating a user control It’s try to put the user control in the aspx page like following.

Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews