In this tutorial I will show you how to upload a files in ASP.NET MVC 4.0. So how to do this?? Lets get start. Create a new MVC 4.0 application and add a new controller, name it as HomeController. We will use Index ActionMethod to write the code to upload the file.
We need two ActionMethod named Index, one is for HttpGet and another for HttpPost. Within the HttpGet ActionMethod we don't need to...
Monday, December 22, 2014
Tuesday, December 16, 2014
Starting with MVC4.0 Razor
In this post I will show you how to create a MVC4.0 project with Razor as a view engine. But before that lets see what is MVC.
MVC stands for Model View Controller.
Model
Responsible for storing and retrieving data
Maintenance of states.
Notification of observers of change in state.
Classes...
Wednesday, October 29, 2014
Show data from a database table content in MVC 4.0 razor
SyntaxHighlighter.all();
In this MVC tutorial post I will show you how to show a database content to a page in MVC 4.0. So for those who are not aware of MVC (Model View Controller) concept you can visit this post as a reference.
So first create a new MVC project. Select Razor as your...
Sunday, October 19, 2014
How to bind a HTML Drop Down List with Web Services in ASP.NET using C#

SyntaxHighlighter.all();
CodeProject
Introduction :
In this article I will show you how to bind a Drop Down List in ASP.NET site with a web services. Before starting we need to know what is a Web Services is. Then we will know how to bind the Drop Down List with the help of that Web Service.
Web...
Saturday, October 4, 2014
XML and .NET
SyntaxHighlighter.all();
XML - Extensible Markup Language is a markup language like HTML designed for describing data as a database.
Topics to discuss :
Definition
How to write tags XML
Create a XML file in .NET
Data read from XML using ASP.NET C#
Edit or Update data in XML using ASP.NET C#
Search in XML document (Where clause)
Definition of XML :
According to Wikipedia definition...
Friday, October 3, 2014
Print a DIV or Panel in ASP.NET C# JavaScript
SyntaxHighlighter.all();
Hello, today I will show you how to print a div or panel in your ASP.NET page using JavaScript and Jquery with the help of a button. Normally to print we use windows.print() option to print the whole page. but if we need to print a particular portion of a page then what to do? Solution is here.
Create a new page and add a div or ASP panel and after finishing the...
Sunday, September 21, 2014
GET POST Method in ASP.NET C#
SyntaxHighlighter.all();
Many of you are aware of the GTE, POST, PUT & DELETE methods in ASP.NET, these are the basic method to send the value form one Form to another Form. Lets see how these work in ASP.NET project using C#.
GET :
Using GET method you can send all the input (textbox,textarea,radio button, checkbox etc..) to another form or another page. So how to do this?
Take a...
AJAX UpdateProgress Image(GIF) and Text in ASP.NET C#

SyntaxHighlighter.all();
Hi, today I will show you how use AJAX Update Progress Bar to show loading process. You can show this with a loading GIF image or any text. Its better to use an image. You can download any one, as various kinds of GIF images are available in Google or you can create...
Friday, September 19, 2014
Required field and email verification using Angular JS
SyntaxHighlighter.all();
In my previous post I have shown how to use Angular JS in your project , now in this post I will show you how to valid a required field or an email field using Angular JS. You can do this using ASP validation process or using JavaScript or JQuery. But in this post I will show you how to use Angular JS to validate the HTML fields.
Username:
Username...
Show instantly as write into the TextBox using Angular JS
SyntaxHighlighter.all();
This is my first post about Angular JS. Here in this post I will show you how to show the text into <p> tag as you type into a TextBox. I will do it with the help of Angular JS. Before starting it is important to discuss some thing about Angular JS.
So, what is Angular JS actually?
AngularJS is a structural framework for dynamic web apps. It lets you...
Get HTML Select(Drop Down List) value in Code Behind (C#) in ASP.NET
SyntaxHighlighter.all();
Sometimes its very mush important to get the value of the HTML Drop Down List, Select value from the code behind (C#). So how to get the value of a HTML control value in the code behind. A very easy thing to do.
Create a new project and add a WebForm and add a new select tag with some value. Like this
ASP.NET
C#.NET
ADO.NET
AJAX
Now in the C# page write...
Thursday, September 18, 2014
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'
SyntaxHighlighter.all();
Sometime you found "WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'." in your ASP project when you are running the project.
As a remedy of the project "Please add a ScriptResourceMapping named jquery(case-sensitive)." What is this ? How to solve this? Very easy stuff to do.
If your project if there is no Global.asax added...
Saturday, September 13, 2014
SQL Split function to split an input string
SyntaxHighlighter.all();
This article I am starting with a real life example. In posting an article in a blog we have to define tags (Like C#.NET, AJAX, ASP.NET,HTML) upon the article. We usually take these tags in a TextBox with separated them by comma(,). To insert these into database we have two ways to do.
First Method using C# :
Using C# you can split the TextBox items and use...
Print Page in landscape mode in HTML CSS print media

SyntaxHighlighter.all();
Hi every one, today's topic is to print a HTML page into landscape mode. When we print a HTML page it takes by default portrait mode. But if we have to print it into landscape mode how to do it?
To do this s following...
@page { size: landscape; }
Create...
Printing Page size in A4 using CSS Paged media
SyntaxHighlighter.all();
When ever you are sizing a div in your HTML page you size it with width and height in style sheet. Suppose whenever you have to print that div into A4 page size will it work properly? Not necessary it will print in the same size. So what to do? Simple put the div size into A4. But question is HOW? Let me clarify you.
Create a new HTML page and write create a div...
Friday, September 12, 2014
Ajax Control toolkit ModalPopUp in ASP.NET C#
SyntaxHighlighter.all();
Here I am going to show how to create a modal pop up using AJAX control toolkit in ASP.NET and C#. Before I have show how to create a pop up using JQuery and CSS, but now its pure asp. For this you need to add AJAX Control toolkit into your project. You can download...
Polymorphism(Method Overloading and Overriding) in C#
SyntaxHighlighter.all();
Today's topic is a old one. Maximum among you are familiar with this topic. I am talking about one of the OOPs(Object Oriented Programming) feature polymorphism. In your college life you had come to know about polymorphism, but today I will discuss about this very known topic with the help of C#. As usual I have taken Find Area as an example like you did in your college.
Lets...
Subscribe to:
Posts (Atom)