How to create MVC First simple application
It is very easy to make application in mvc follow some steps and create first application
STEP 1 - Click on Start menu and Open Visual studio.
STEP 2 - Open View folder click Home folder...
How To Create First Application in MVC.Follows Some Steps-
STEP 1. Firstly Go Start menu in Computer And Click on Installed Visual studio.
Ex.
Open This Window after processing next window open like-
Ex.
STEP...
Validate Email using Regular Expression In JavaScript-
1. Create Input type Text box and and onclick cal checkemail function of Javascriptusing .
2. Define Function in Script with regex expression .
<script>
function checkEmail()
{
email = $('#txtEmail');
filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
...
We use Validation for Email in Javascript
like in above example
<!DOCTYPE html>
<html>
<head>
<script>
function validateForm() {
var x = document.forms["myForm"]["email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos<1 || dotpos<atpos+2...
Defination
1. Collapse Means suddenly fall down.
2. Just add data-toggle="collapse" and a data-target to element to automatically assign control of a collapsible element. The data-target attribute accepts a CSS selector to apply the collapse to. Be sure to add the class collapse to the collapsible element. If you'd like...
How to install visual studio 2015 Step by Step Process like =>
Step (1) : Once downloading is complete, run the installer. The following dialog will be displayed.
Step (2): Click the ‘Install’ button and it will start the...
SQL server identity column values use in table
Steps-Firstly Open-> Sql Server Create Table -> First Field Like ID Usually Autoincrement=>
Table create then=>insert data in table=> then Select data show increment id.
The...
MVC Flow-
MVC application takes place when certain request comes from the client. The diagram below shows the flow:
Flow Steps
1. The client browser sends request to the MVC Application.
2. Global.ascx receives this...
Microsoft had introduced ASP.NET MVC in .Net 3.5,since then lots of new features have been added.The following table list brief history of ASP.NET MVC.
ASP.Net MVC 5.2 [Current]
1. MVC Version - Asp.Net MVC 5.2
2....
There are various positive points to Using MVC
1. TDD support out of the box as most of the design is based on interfaces.
2. SEO friendly URL by design (though now this is possible in ASP.NET 4 as well)
3. No ViewState...
There Are Many Advantage of MVC(Model view & Controller)
1. Faster development process.
2. Easier to manage complexity (divide and conquer).
3. It does not use server forms and view state.
4. Front Controller pattern (rich routing).
5. Better support for test-driven development.
6. Ideal for distributed...
Introduction
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern...
Validate Only Numeric Value Enter In TextBox Using JavaScript function
Firstly Write Java Script Function in <head tag> in Asp.Net
After That Call Function <OnKeyPress > on TextBox
Ex.
<head>
<script type="text/javascript">
...
We Use This Function and Get Values .Values split With Comma Operator and Get Split Values
Ex.
CREATE function [dbo].[SplitPra] ( @list varchar(8000) ) returns @t table ...
Basically We Use Split Function Thorugh Commma Sepertaed string value with Comma Means One Then more value through split function Enter and Fatch Single Values in A new Record
Ex.
Create procedure CommaSeperate
@st1...
We Count HowMany Words Present in This String Through Function in Sql Server
Then Use This Code
CREATE FUNCTION fnCountOccurences
(@ShortString VARCHAR(100),
...
We Want To Reset Identity Column Then Use Code.If We Delete column By Id Like We delete 5 no id and
After Than we Insert New then We get 6 no Id .We Show Data 1 to 4 id then 6 because 5 no id We Deleted Then Use Code and Get 5 id In Example-
Example-
SELECT...
MultiView and View controls allow you to divide the content of a page
into different groups, displaying only one group at a time. Each View
control manages one group of content and all the View controls are held
together in a MultiView...
Table Structure Get From Database in Sql Server
If We Want To get Any Table Structure from Database .
Show How Many Column Created and Datatype also Then Use This Code
Create Procedure in Sql Server
CREATE Procedure dbo.Gettable @tablename nvarchar(100) as ...