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
Balaji Palani
NA
364
63.5k
File input should hold the file name even after click button
Jun 3 2016 7:56 AM
I tried Razor view viewbag and html input file uploade below code
View:
<input type="file" class="form-control" name="FileUpload" id="fileupload1" value="@ViewBag.uploaded"/>
Controller:
[HttpPost]
public ActionResult ExtendFiles(HttpPostedFileBase FileUpload, string submitButton)
{
ViewBag.uploaded = Request.Files["FileUpload"].FileName;
if (submitButton == "Next")
{
}
else if (submitButton == "GO")
{
}
else if (submitButton == "Back")
{
}
}
After click Go button, display the file uploaded name
Reply
Answers (
2
)
Difference between diff c# version ?
draw polyline on mouseup event and how to move and resize it