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
karthik v
NA
109
70.6k
MVC compare
Apr 12 2012 4:13 PM
hi experts i am trying to compare two validation messages on my view in mvc2 framework.
this is what i am trying to use ....
<%if( Html.ValidationMessageFor(xx => xx.prefix)!= Html.ValidationMessageFor(xx => xx.Number))
{ %>
<%= Html.ValidationMessageFor(xx => xx.Number)%>
<%}%>
The above code need to perform when the two validation messages are same but it does not do so in the above comparison..
The above code works when i convert both the html.validationmessagefor(xx=>xx.prefix).tostring()
But it breaks when the user inputs the expected value because there will not be any validation error..
Any ideas?
Your help is greatly appreciated...
Reply
Answers (
0
)
How to add video presentation?
I need about MVC Details Following This