TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Venkatesh Pettem
NA
343
9.6k
How to load data in view from controller of button click
Jan 10 2020 8:21 AM
in the below image when i clicked select button test id and test name data should be bind to code and name testbox respectively from controller. that means binding data to the same view.
from controller i'm passing it but, page not loading so data is not binding.
controller code:
public
async Task<ActionResult> TestMasterDetails(
string
TestID)
{
TestMasterModel _testMasterModel =
new
TestMasterModel();
TestMasterDetails _testMasterDetails =
new
TestMasterDetails();
_testMasterDetails = await GetTestMasterDetails(!
string
.IsNullOrEmpty(TestID) ? TestID : GetDefaultTestID());
_testMasterModel = _testMasterDetails.InformationModel;
return
View(
"TestMasterDetails"
,
"MstTestMaster"
);
}
i tried below return type also
return RedirectToAction("TestMasterDetails", "MstTestMaster");
Reply
Answers (
3
)
How can I make my autocomplete extender faster ?
Repeated sqlparameter's values not allowed. How to resolv?