for this you need to download knockout js
Example 1
using System;
function Employee()
@model Knockout2.Models.Employee
Example 1
My MVC Application
[ Log On ]
if (document.forms[0].checkValidity()) {
e.preventDefault();
$.ajax({
type: "POST",
url: Person.SaveUrl,
data: ko.toJSON(Person.ViewModel),
contentType: 'application/json',
async: true,
beforeSend: function () {
// Display loading image
},
success: function (result) {
// Handle the response here.
},
complete: function () {
// Hide loading image.
},
error: function (jqXHR, textStatus, errorThrown) {
// Handle error.
}
});
}
"Kelly","Reynold","kelly@reynold.com" "John","Smith","bill@smith.com" "Sara","Parker","sara@parker.com"FileType=2 (TxtFile2.txt)
Kelly,Reynold,kelly@reynold.com John,Smith,bill@smith.com Sara,Parker,sara@parker.com- See more at: http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file#sthash.K2zFx1ZA.dpuf
"Kelly","Reynold","kelly@reynold.com" "John","Smith","bill@smith.com" "Sara","Parker","sara@parker.com"FileType=2 (TxtFile2.txt)
Kelly,Reynold,kelly@reynold.com John,Smith,bill@smith.com Sara,Parker,sara@parker.com- See more at: http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file#sthash.K2zFx1ZA.dpuf
"Kelly","Reynold","kelly@reynold.com" "John","Smith","bill@smith.com" "Sara","Parker","sara@parker.com"FileType=2 (TxtFile2.txt)
Kelly,Reynold,kelly@reynold.com John,Smith,bill@smith.com Sara,Parker,sara@parker.com- See more at: http://www.sqlteam.com/article/using-bulk-insert-to-load-a-text-file#sthash.K2zFx1ZA.dpuf
Binding dropdown list in gridview:
|
name
|
age
|
id
|
mukesh
|
12
| |
mukesh1
|
13
| |
mukesh2
|
14
|