Posts

Showing posts from 2012

Strongly Typed Views in MVC

Image
When you add a new View in MVC, you get an opportunity to create it strongly typed. In the image given below, when you check ‘Create a strongly-typed view’ and select the ‘Model class’ you get following code snippet on the view page.

HTML Encoding in MVC

Image
One of the best feature in Razor view engine that I like most is ‘HTML Encoding’. In many cases (like a comment form on blog) we receive the data from users and he may be trying to victimize us by sending some malicious scripts causes cross-site script injection attacks (aka XSS attack).

Deploying an ASP.NET MVC 4 Web Application on Windows Azure

Image
In this video you will learn how to deploy ASP.NET MVC 4 Web Application on Windows Azure environment. Sorry for the noisy video.

The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)

Image
Today I added a new user in my existing database for some web application experiments and when I tried to delete the user I received following error message.

Modernizr Library in MVC 4

Image
In this post you will learn how developers take the advantage of Modernizrin MVC 4 Applications.

Twitter RSS Feed Reader in MVC 4

Image
In this blog post you will learn how to setup the Twitter RSS Feed Reader in MVC 4. I’m using the same technique I used in my last post to read the Facebook feeds. Let’s look at the image that we will be creating using the given code.

Facebook RSS Feed Reader in MVC 4

Image
In this blog post you will learn how to setup the Facebook RSS Feed Reader in MVC 4. Let’s look at an image of what we will be creating in this post; see:

Adding Email, Details field in UserProfile DB Table in MVC

Image
In this post you will learn how to add Email and Details columns to an existing database. We get this database when running an application trying to create a new user account. As you know, we don’t see an email field in a user registration form as well as in the membership database. But we can enable this using some quick changes in the application. Read on.

Monthly Blogging Report: October 2012

Consolidating all blog posts monthly are very refreshing as it gives me chance to go back and see what I did in last month and for readers gives the chance to see what he not followed up.

Example on View to Controller (HttpPost) & warn on duplicate entry & delete duplicates in MVC

Image
This is a quick response post to the blog reader ‘V Patel’ who asked this question yesterday. Here is the question:

JQuery UI Datepicker in MVC 4

Image
Today, I spent couple of hours in finding solution to enable the use of Datepicker in MVC 4 Application.

Filter Records in MVC

Image
In this quick post you will learn various ways to filter records in MVC. Before starting let’s have a quick look at a controller and view page that I will use in this article. I will be using the SQL Server Northwind sample database in this article, you can download it from the Microsoft website and set up the same project to explore it.

Partial View in Razor MVC

Image
Partial View allow us to put HTML and C# code into a file that we can reuse across multiple other views. This is very useful when you work on a large application.

Html Helper for Image (@Html.Image): Developing Extension in MVC

Image
Today I worked on a project where I required to display image on the web page. As you know there is not a Html Helper for Images yet. Look at the screen, we can’t see an image here.

HandleErrorAttribute OR Error Handling in MVC 4

Image
HandleErrorAttribute in MVC is used to display friendly error pages to user when something goes wrong in the application. Let’s create a simple exception in the application to explore HandleErrorAttribute.

Various ways to pass data from Controller to View in MVC

Image
There are various ways to pass data from a Controller to a View. I'm going to discuss how Controllers interact with Views and specifically cover ways you can pass data from a Controller to a View to render a response back to a client. So, let's get started.

What happens when database doesn't match conventions / using OnModelCreating() feature?

Image
This is just basic article and I’m not going to say anything new here but I will say things in my way. The very well-known question newbies ask about MVC and Entity Framework is, how does a conceptual database model target the names?

MVC Bind Attribute like [Bind(Exclude = "Name")] or [Bind(Include = "Address, Payment, EmailID")]

Image
When we have an ASP.NET MVC View that accepts user input and posts those inputs to a server we have the option to use the built-in Model-binding features to provide more control and security, we can restrict the properties that are allowed to be bound automatically.

The name 'Scripts' does not exist in the current context

Image
There is a very small bug in the MVC 4 Empty Template that can be seen when you create a new MVC 4 Application with an "Empty" template and start adding views for CRUD operations (using scaffolding). And when you run the application and try to navigate (to http://localhost:port/controller/Create or http://localhost:port/controller/Edit) in "Edit.cshtml" and "Create.cshtml" views, you get the following error:

Creating ASP.NET WebApplication/ASP.NET MVC Application Membership Database on SQL Server rather than LocalDb

Image
I was asked this question from one of my blog reader: How can a DB be created in SQL Server rather than locally (LocalDb) which is default?

Using image with HtmlHelpers or @Html.ActionLink

Image
Sometimes we need to serve image with the link and with the release of Razor syntaxes we have HtmlHelpers like Html.ActionLink() that has nothing like image.

Is it really necessary to remove our original accent (क्या वास्तव में अपने मूल लहजे/स्वर को दूर करने की आवश्यकता है)?

Image
Look, I’m not a speaker and even can’t guide anybody on such questions. Now, I would like to share complete chat with the great people when I asked a question about Bihari Accent on Facebook. I received really great amount of inputs/feedbacks from industry leading IT experts and they all have huge experience in the same. Once again, I would like to thank to all of them for their inputs/feedbacks. Actually, I’m bit shy and lack of self-confidence that causing all that but it will got out with the time, for sure. For example, I am writing this post in English and I learned this with the time. Now, let me share the screenshot of the question I asked and entire valuable replies.

Unable to retrieve metadata for 'MusicStore.Models.Album'. Using the same DbCompiledModel to create context against different types of database servers is not supported. Instead, create a separate DbCompiledModel for each type of server being used.

You will get this error in the step by step tutorial (on page here) provided by Microsoft that starts from here.

Entity Framework Console Applications with SQL Server Compact

Image
Microsoft SQL Server Compact Edition is an embedded database system that allows us to integrate it in our Web, Desktop and Mobile applications.

Entity Framework's Database Seed Method

Image
The Entity Framework can automatically create/update/drop databases when the application runs. We can specify that, this should be done every time application runs or only when the model is out of sync with the existing database or in other word it runs whenever model changes. You spent time to insert records in database and when you made any changes in model, Entity Framework deletes your database as well as records.

Mapping Table-Valued Functions (TVFs) using Entity Framework Database First

Image
Entity Framework 5 brings number of improvements and Mapping Table-Valued Functions (TVFs) Support is one of them.

Spatial Data Type Support in Entity Framework 5

Image
Entity Framework 5 brings number of improvements and Spatial Data Type Support is one of them.

Monthly Blogging Report: September 2012

Consolidating all blog posts monthly are very refreshing as it gives me chance to go back and see what I did in last month and for readers gives the chance to see what he not followed up.

TypeScript: JavaScript like Programming Language by Microsoft

Image
Okay, here is a great news, Microsoft has released a developer preview of TypeScript, a new programming language like JavaScript that is translated into JavaScript so that its apps can be run in any browser. In other words, TypeScript is a superset of JavaScript and you write it like you write JavaScript. And today, I explored it and I am sharing it with you.

Playing with Entity Framework's Code First Database Migration

Image
In this video you will learn how to use Entity Framework's Code First Database Migration. I'll create simple console application and will add 'Student' model and then a DbContext in the project.

Enum Support (EF Designer) in Entity Framework 5

Image
Entity Framework 5 brings number of improvements and Enum Support in EF Designer or Code First is one of them. In this post you will learn it by creating a simple console application then will add EF Designer and will sketch the Model on designer surface. Please note, EF Designer can also be used with the Database First workflow to map to an existing database.

Enum Support (Code First) in Entity Framework 5

Image
Entity Framework 5 brings number of improvements and Enum Support in Code First is one of them.

Normal LINQ Query to Compiled LINQ Query to Auto-Compiled LINQ Queries in Entity Framework 5

Entity Framework 5 brings number of improvements and query performance improvement is one of them. In this article I’ll be talking all on query performances (EF1 to EF5) so that you can understand the improvements better.

TCP is a STATEful protocol and HTTP is a STATEless protocol, why?

One question i was asked in MCA Class today by a smart guy is

Sir, I have a doubt, HTTP is based on TCP protocol and as we know TCP is a stateful protocol then why HTTP is stateless?

How to copy text from one textbox to another using jQuery blur

Here is a questing I received

Hi Help me on jquery blur event I need to copy data from one textbox to another textbox.

Code First Database Migrations in MVC: in Hindi

Image
In this video you will learn how to use Migration feature in MVC Apps. I will create a new MVC Project using Code First Approach and then I will make some changes in model to look at the errors and then will use the Migration feature to migrate/update the database. Video is in Hindi Language.

Using Stored Procedure & Entity Framework in MVC 4 to create CRUD Apps: in Hindi

Image
In this video you will learn how to create CRUD Apps in MVC 4 using Stored Procedure and Entity Framework.

HTTP Error 404.0 - Not Found in MVC

Image
The Resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

I saw this error today while working on a MVC Web Project, this is a common error we get while running website and performing any CRUD (Create, Read, Update, Delete) operation. Stackoverflow is full of such queries so I decided to post the fix here. You might not find it useful for your case but I think majority of requests can be satisfied.

Browse With Option (Set Multiple Defaults) in Visual Studio 2012

Image
In Visual Studio 2012 we got some really exciting new features. And setting multiple defaults to browse with option is one of them. So, watch the video and see how it really works.

Media Only Queries in CSS3 / @media only screen and (max-width: 900px) { attributes; }

Image
If you remember, CSS2 added support for the media="screen" way of defining which stylesheet to use for which representation of the data.

Now CSS3 added a new feature to this functionality, by adding media queries. Basically, this means you can change stylesheets or styles on the web page based on for instance the width and height of the viewport/browser.

The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Today, I was developing an web application, I got titled error. I decided to post the fix for this.

ASP.NET Session States in SQL Server Mode (Session State Story)

Image
A session is defined as the period of time that a unique user interacts with a Web application. Active Server Pages (ASP) developers who wish to retain data for unique user sessions can use an intrinsic feature known as session state.
Programmatically, session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.

Free ebook: Beginning LINQ

Image
A new fashion to write Queries and address the impedance mismatch between programming languages and database.
This e-book is based on my series of LINQ posts and I’m just consolidating all blog posts here.

Get it Now
PDF Version

Download Size: 1.10 MB Total Pages: 36




Written by Abhimanyu Kumar Vatsa (itorian.com) and Edited By: Deepak K Gupta.

LINQ Query Syntax and Method Syntax - Part 11

This is eleventh part of the ‘LINQ’ series posts that I have started from here. In the last post you learnt how to perform calculations in LINQ query. Now, in this post you will look at some differences between LINQ Query Syntax and Method Syntax used in LINQ.

Free ebook: Introducing Windows Server 2012 (RTM Edition)

Mitch Tulloch has updated his very popular free ebook on Windows Server 2012 based on the RTM version of the software. 
A key feature of this book is the inclusion of sidebars written by members of the Windows Server team, Microsoft Support engineers, Microsoft Consulting Services staff, and others who work at Microsoft. These sidebars provide an insider’s perspective that includes both “under-the-hood” information concerning how features work, and strategies, tips, and best practices from experts who have been working with the platform during product development. More Here

Performing Calculations in LINQ Query - Part 10

Image
This is tenth part of the ‘LINQ’ series posts that I have started from here. In the last post you learnt how to transform source data/object into XML file and in this post will go ahead and learn how to perform some calculations in LINQ query.

Transforming Data Source objects into XML using LINQ - Part 9

This is ninth part of the ‘LINQ’ series posts that I have started from here. In the last post we explored customizing the LINQ’s ‘select’ statement to select subset of each source element. Now, in this post you will learn how to transform data source objects into XML.

Customizing LINQ’s ‘select’ statement - Part 8

This is eighth part of the ‘LINQ’ series posts that I have started from here. In the last post we explored how to join data from multiple data sources using ‘concat’ key. Now, in this post you will learn how to customize the LINQ’s ‘select’ statement to select subset of each Source Element.


Joining Multiple Data-Sources using 'Concat' Key in LINQ - Part 7

This is seventh part of the ‘LINQ’ series posts that I have started from here. In the last post we explored how to filter, order, group and join in LINQ. Now, in this post we will take a look at concate key used LINQ query to do joins.

My Speaking or In-Person Events

Okay, great to see you on this page. Here, i will list upcoming/past events in which i will be speaking. Also, this page will allow you to access resources (on demand) that I have used in my session.

DateTopicEvent Details/URL1-April-2017Visual Studio 20th Anniversary & Visual Studio 2017 Launch Celebration, Microsoft, Gurgaonhttps://www.eventbrite.com/e/visual-studio-20th-anniversary-visual-studio-2017-launch-celebration-tickets-3246937276825-March-2017Getting started with IdentityServer, Microsoft, Gurgaonhttp://www.c-sharpcorner.com/events/learn-asp-net-web-api-2-nodejs-and-identity-server26-Feb-2017Azure CDN | Accelerated Availability & Performance, Microsoft, Gurgaonhttps://www.biztalk360.com/azure-day-gurgaon/19-Feb-2017Performance, tips and tricks for every web developers, C# Corner, Noidahttp://www.c-sharpcorner.com/events/learn-net-core-asp-net-core-and-mvc14-Jan-2017Performance, tips and tricks for every web developers, Microsoft, Gurgaonhttp://www.c-sharpcorner.com/…

Simple demo project on LINQ to SQL using Console Application

Image
In this video post, you will learn how to setup a simple project on LINQ to SQL using Console Application.

LINQ (Language Integrated Query) - Part 6

Image
This is sixth part of the ‘LINQ’ series posts that I have started from here. In the last post we explored selecting records using LINQ and its internals. Now in this post we will be looking at filtering, ordering, grouping and joining using LINQ.

LINQ (Language Integrated Query) - Part 5

Image
This is fifth part of the ‘LINQ’ series posts that I have started from here. In the last post we talked on how to setup a demo project to explore LINQ queries, I expect you too have a demo project with you, if not then visit Part 4 of this series and setup it. Let’s go ahead and explore selecting records using LINQ and explore internals.

LINQ (Language Integrated Query) - Part 4

Image
This is fourth part of the ‘LINQ’ series posts that I have started from here. And in this post, you will learn how to setup a demo project to explore LINQ queries. I will use my preinstalled ‘Northwind’ database that you can download from here and install it in SQL Server Management Studio.


Monthly Blogging Report: August 2012

Consolidating all blog posts monthly are very refreshing as it gives me chance to go back and see what I did in last month and for readers gives the chance to see what he not followed up.


LINQ (Language Integrated Query) - Part 3

Image
This is third part of the ‘LINQ’ series posts that I have started from here. And in this post, you will learn something on ‘Generic’ like what are generic types, why we need it in LINQ?


15 Most Useful Visual Studio Tips/Tricks by me

Image

ORA-01034: Oracle Not Available

It is a simple error meaning your database is down. To fix this, follow the steps given below:

SQL>connect sys/password as sysdba
SQL>startup
SQL>exit

SP2-0110: Cannot create save file "afiedt.buf"

Image
Any query/command (single line or multiple line) we execute resides in the buffer temporarily and it is lost when we execute new query/command because new one takes that place.

In case we try to edit that query/command which is in the buffer we get an error "SP2-0110: Cannot create save file "afiedt.buf"".

There are many ways to fix this, I'm going to show you three different ways.


1. Always run the SQL Command Line as administrator.



Once you start this way, you will not see said error.

2. Sometimes we get this error message because we don't have write permission on the current directory. Either start sqlplus from a different directory, or change the editfile entry in sqlplus:
SQL>set editfile d:/sqledit.sql

In above code, you can use any drive for this and any file name.

3. Create sqledit.sql file and save it in bin directory (sometimes this file misses cause this error) of oracle where sqlplus.exe is resides.Then run sql command line as administrator.

LINQ (Language Integrated Query) - Part 2

Image
This is second part of the ‘LINQ’ series posts that I have started from here. And in this post, you will see some quick examples on LINQ title.

As I said in previous post, with LINQ you just need to perform three distinct actions: Obtain the Data Source, Create the query and Execute the query, you will notice it in sample programs given below. We will create Console Apps and test various LINQ concepts. I will walk through very simple programs here and in coming part will dig in depth.

Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=*, Culture=neutral, PublicKeyToken=*'

Image
Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=*, Culture=neutral, PublicKeyToken=*'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.

LINQ (Language Integrated Query) - Part 1

Recently I had started exploring ‘LINQ to Entities’ new features. So, I thought to start a series of posts on ‘LINQ’ title and accumulate it on my blog for the beginner’s.

Hope, this series will be helpful to you to understand the ‘LINQ’ and before jump start to the application development let’s talk on basics something like: what is linq and its benefits.

Windows 8 RTM for MSDN/TechNet Subscribers & Visual Studio 2012 RTM for MSDN Subscribers now available

Image
So, it's 15th August 2012 (Independance Day of India) and as per the previous announcement by Microsoft, Windows 8 and Visual Studio 2012 is now available for downloads.

Model First Approach in Entity Framework

Image
Introduction

Read my previous two posts ‘Code First Approach in Entity Framework’ & ‘Database First Approach in Entity Framework’ for EF basics. In this post I’m directly going to jump on Model First Demo Project.

Learn .NET and C# in 60 Days Video Series : by Shivprasad Koirala

Friends, recently I subscribed a YouTube channel to boost-up my .NET and C# skills by just watching videos. These videos are being recorded by our start tech leader ‘Shivprasad Koirala’ sir (http://www.questpond.com). I recommend you to go and subscribe the channel to receive the upcoming videos in your inbox and even watch the uploaded videos that is already recorded. I watched all of the recordings and eagerly waiting for new alert in my inbox. 

LearnDotNet60days

Entity Framework Videos in Hindi Language

Image
Want to learn Entity Framework then I got some videos for you in HINDI Language, go ahead and watch it.

Database First Approach in Entity Framework

Image
Introduction

Read my last post ‘Code First Approach in Entity Framework’ for EF introduction even for the basic touch.

Code First Approach in Entity Framework

Image
Introduction

Entity Framework is the Microsoft preferred method of data access for .NET applications. It supports strongly-typed access through LINQ. Entity Framework also allows developers to program against a conceptual model that reflects application logic rather than a relational model that reflects the database structure. Entity Framework can be used from an ASP.NET Application, (using Entity Data Source) or in ASP.NET MVC etc. In this article we will be creating this using MVC App and we’ll be using Visual Studio 2012 for demo.

The procedure entry point_Atomic_fetch_sub_4 could not be located in the dynamic library: C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe

Image
After the installation of newly released Office 2013 Preview I noticed Visual Studio 2012 RC won’t running anymore. And it said error “The procedure entry point_Atomic_fetch_sub_4 could not be located in the dynamic library: C:\Program Files\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe.”

Best Practices for Speeding up Your Web Site

The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 35 best practices:

Monthly Blogging Report: July 2012

Consolidating all blog posts monthly are very refreshing as it gives me chance to go back and see what I did in last month and for readers gives the chance to see what he not followed up.

Bundling and Minification in Visual Studio 2012 or Migrate existing Website

Image
Bundling and minification are two new techniques introduced with ASP.NET 4.5 Beta to improve request load time.It improves load time by reducing the number of requests to the server and reducing the size of requested assets (such as CSS and JavaScript).

Set Startup Programs in Windows 8

Image
In previous versions of Windows, to set startup programs we just open Run > msconfig.exe and in appeared window find ‘Startup’ tab or click on Start > All Programs > Startup (and list the programs here by dragging icons) but in Windows 8 there is bit changes.

Windows Phone Development Step by Step Tutorial : by Karthikeyan

Image
My friend Karthikeyan (aka. @f5Debug) published a free e-Book on Windows Phone titled "Windows Phone Development Step by Step Tutorial". This eBook covers most of the topics of developing an application with Windows Phone with a step by step approach on using each of the components that are available with the Windows Phone framework. The eBook is targeted towards audience of level 100 to level 400 to get complete idea of application development from the scratch.

Properties in C# : How/Why we use this?

Image
Again, one of my follower on Facebook asked me a question, here it is.


Hello Sir
I'm new in C#, i tried lot to understand the get/set properties but still can't understand. Please help, why and how we use this? by Manish Kumar

And this blog post is my response to his ask. So, let’s get started.

5 Ways to send data between ASP.NET Pages

Image
How many ways do you know to send the data between ASP.NET Pages? In this post I’m going to list 5 different ways. First 2-3 ways are very well-known and last 2-3 ways are not much popular. You will find here mostly inline methods to receive the data on different pages. You can download the complete code here.

How to get Selected ListBox Item using JavaScript

This is a quick post in response to a question asked by my one of the follower on Facebook and the answer is pretty simple.

Here is the question I have been asked:-

Using 'Like' operator in parameterized queries

The main advantage of parameterized query is to protect the database from SQL Injection. Today I used this concept in my one of the project. Do you know using ‘Like’ operator in parameterized query is bit different?

Stop form Submission (Posting) on Enter Key Press

This is a quick hit post. If you are developing a form in ASP.NET you may be noticed that when we press enter key even without writing any information in textboxes, form gets post (submitted). So, how do you stop it?

Calling an ASP.NET C# Method (Web Method) using JavaScript

Image
Another title of this post would be “Say bye-bye to Postbacks”. Sometimes we need to stop annoying post-backs on ASP.NET Web Pages. For example, when one click the ASP.NET button on webpage, by default page gets post-back. So, how we stop this by keeping proper code-behind method calls. Let’s look at one case.

Setup Picture Password (Picture Logon) in Windows 8

Image
In Windows 8 we have three password options i) Live Account Password (works like normal password) ii) Picture Password and iii) PIN Password. In this post we will see how to setup Picture Password.

Setup PIN Logon in Windows 8

Image
In Windows 8 we have three password options i) Live Account Password (works like normal password) ii) Picture Password and iii) PIN Password. In this post we will see how to setup PIN Password.

Free E-book: Time-Saving VS11 and ASP.NET 4.5 Features You Shouldn’t Miss

Last weak, two Telerikers Joshua Holt and Carl Bergenhem introduced a very nice free e-book for developer community to get job done quickly with less code. Very nice book, read it once.

Developing jQuery Plugins

Image
If you are from web technology and using jQuery then you might be knowing that jQuery third-party plugins provides a bevy of options for enhancing our application user experience but sometimes we need to reach a bit farther and write our code that could be reused by others by just placing it on servers or even want to package it up as a brand new plugin. So, this post will give you complete knowledge of jQuery Plugins Development.


Download the Project

Microsoft MVP: Proud to be an MVP (July 2012)

Image
I'm so delighted to see an email with subject "Congratulations Microsoft MVP" in my mailbox this morning. I'm honored to be recognized in Microsoft MVP Program, this is one of the most prestigious award and one of the great achievement of my life. I am feeling very proud because this time I got it from Microsoft and also got opportunity to join the experts in the Microsoft MVP Community.

Monthly Blogging Report: June 2012

Consolidating all blog posts monthly are very refreshing as it gives me chance to go back and see what I did in last month and for readers gives the chance to see what he not followed up.

Creating PDF Files in ASP.NET using iTextSharp

Image
iText is a library that allows you to create and manipulate PDF documents. It enables developers looking to enhance web and other applications with dynamic PDF document generation and/or manipulation.

Image Map; Mouse Hover Effect on Area using jQuery

Image
Another easy but interesting stuff I found today on http://in.jagran.yahoo.com/epaper/ (Hindi Language e-News Paper) and decided to develop it on my PC. If you open Google and search by typing “Image Map in HTML” you will get huge response and you can start learning this from there but here I got something different for you. I will take the advantage of jQuery Library for this. I’ll start discussion from very basic. Wanna see how? Let’s begin.

How to format the arrangement of codes in Visual Studio IDE

Image
I know it is very easy for all, think of me as blogging addicted guy. Ehehe.

Shortcut Keys:-
Format Entire Document : Ctrl + K, Ctrl + D
Format Selection : Ctrl + K, Ctrl + F

Data Binding to DropDownList and ListBox in ASP.NET

Image
Introduction

In this quick post you are going to learn how to bind the data to DropDownList and ListBox controls in ASP.NET. I know this is very easy but today a novice ASP.NET guy who is my friend on Facebook asked this to me and I created this solution for him.

Merge the content of DataSets in ASP.NET

Image
Introduction

You can merge two or more DataSet objects that have largely similar schemas to present in the same Data Container. In my case, I have two different database tables and I am wishing to display all records from both tables in a single Data Container. For this we can take the advantage of Merge() method in C#.

System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

Image
System.Data.SqlClient.SqlException: Cannot open database "Northwind" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'.

In this quick post you will learn how to fix this issue.
Today in the morning when I was executing one of my web applications I fall in titled error and the same I’m sharing, that how I fixed this.

Advanced Web Debugging with Fiddler Videos

Image
Today I watched a very nice set of videos “Advanced Web Debugging with Fiddler Videos” captured at Microsoft MIX10 and the session by Eric Lawrence (Program Manager, Internet Explorer). I would like to share these videos with you.

Slow Keyboard Typing Response on Windows 8

Today when I uninstalled the Windows 8 Consumer Preview OS to install newly released Windows 8 Release Preview version OS and when I started using this OS I realized keyboard my responding very-very slow. I checked my keyboard connections and even replaced the keyboard by USB version but no use. After huge googling I found the solution that worked for me and the same I'm sharing this here.

jQuery Accordion Widget

Image
In this post you are going to learn all about jQuery Accordion Widget.

jQuery Accordion Widget is a jQuery based expandable and collapsable content holder that is broken into sections and probably looks like tabs. Look at the animated screen given below:

Using META Tags to Refresh Pages

If you think of current web application development trend then this solution will not fit for you, because this scenario post-backs complete web page. Today, we have many controls that update any defined section of website (web page) instead of whole web page gets post-back.

Facebook Groups for Technical Discussions by Abhimanyu Kumar Vatsa

Friends, I am running 3 Facebook Groups for all our technical discussions. You can share the blog links or ask your technical difficulties or even share your views about technology etc. Please join the group and start exploring technologies.

Windows Phone (WP)
ASP.NET MVC
C#
Thanks.

Archive

Top 500 Only, use search box (top-right corner) or post list or technology cloud to find more.

Site is under maintenance App_offline.htm : by Shivprasad Koirala (questpond.com)

Image
Today I watched a very nice video “How to put website is under maintenance by using App_offline.htm” by Shivprasad Koirala and the same I am sharing this with you.

How to open IIS Manager in Windows 8

Image
To open “IIS Manager” on Windows 7 or earlier OS, we were typed “inetmgr” in run window. But for a while I got confused that how I open “IIS Manager” in my Windows 8 PC? Here is the step.



How to implement windows authentication in ASP.NET MVC 3 : by Shivprasad Koirala

Image
Yesterday I watched a very nice video on title “How to implement windows authentication in ASP.NET MVC 3” by Shivprasad Koirala and the same I am sharing this with you. I hope you will learn many things in this video like Deploying MVP App, Setting-up MVC App in IIS etc.

jQuery UI: Interaction Plugins

Image
In this post you will learn all about jQuery UI’s Interaction Plugins. You can find all the available plugins on the official website here http://jqueryui.com/. For now, there is only 5 Plugins available in Interaction section that is Draggable, Droppable, Resizable, Selectable and Sortable. Interaction Plugins handles complex behaviors like drag and drop, resizing, selection and sorting.

Graphical representation of jQuery UI subordinates:

In the above image, I have highlighted the jQuery UI Interaction Plugins in rectangular region and in this post we will cover all of them.
You need to setup a demo project to learn Interaction Plugins, please read this post as this post will guide you how to setup the demo project for jQuery UI.
Draggable
It enables draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.
Let’s create a demonstration page:

In above code, I have a <div> by id ‘draggableDIV’ and…

Popular posts from this blog

5 Ways to send data between ASP.NET Pages