I want to search a specific record and fill textboxes of mvc3 by searched result...
I'm using MVC Razor view Engine and unable to fill textboxes of the MVC3 by searched result generated from the database(sql Server 2008)
Thank's
With Regards
Pradeep Patel (Pune)
Loading

Pradeep PatelPosted Mar 3, 2014, 4:19 AM
Pradeep PatelPosted Feb 27, 2014, 12:02 AM
This is my View
@model MvcApplication2.Models.EmpModel
@ViewBag.Message
My controller fetches records properly but I'm unable to fill fetched records in textbox es..
Please check above code ...
Jaganathan BantheswaranPosted Dec 12, 2013, 1:16 AM
$('#btnSearch').on('click', function(){
$.ajax({
url: "@(Url.Action("Action", "Controller"))",
type: "POST",
data: { id: $('#empID').val()},
cache: false,
async: true,
success: function (result) {
// fill text box here
}
});
});
Pradeep PatelPosted Dec 12, 2013, 12:33 AM
I've uploaded an image wherein Emp Id textbox have to enter an Eemp Id like Emp101 and if i click on search button It should search a record and if record is available then all textboxes of related record should be fill out.
Please view uploaded Image first..
I don't know how to code for searching in MVC3
Thanx And Regards
Pradeep Patel
8483094947
Jaganathan BantheswaranPosted Dec 11, 2013, 11:54 PM