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
Tay Rich
NA
48
5.8k
MVC - Send Info From Modal Popup to Controller
Apr 7 2020 7:34 AM
Hi so I am new to MVC.
So in my View I have a button that brings up a modal, in that model I have a textbox. I would like that data from the textbox to be sent to the controller via the submit button in the modal. That data must then be sent into a .txt file via the controller.
Using the @using (Html.BeginForm("Controller", "Function", FormMethod.Post)) method.
If I use a textbox directly from the view and send the data to the controller it works, but it just won't work from the modal.
Also trying to avoid using AJAX as I have never used it before.
Please help!
Thanks so much
Reply
Answers (
2
)
how to prevent loading querystring parameter again
File Upload Through JQuery AJAX In ASP.NET