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
Santhosh Subramaniam
NA
226
108.9k
ViewBag not working in MVC
Nov 19 2014 4:12 AM
Hi Frnds,
I am new to MVC application , in my application am using viewbag here is the code
if ('@ViewBag.DTTime' != null && '@ViewBag.DTTime' != "") {
$('#Containerdiv').val('@ViewBag.DTTime.ToString("yyyy-MM-dd HH:mm:ss.fff", System.Globalization.CultureInfo.InvariantCulture)');
}
in Controller not assigning the viewbag DTTime, it is error..
this if statement always true and the statement is executed,
how to stop,
Thanks in Advance.
Reply
Answers (
3
)
How to change tabletools property value dynamically?
Zoom Images