Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
how to split element then bind inside view page ?
Mani Kandan
7y
231
1
Reply
Hello,
I am working on mvc, there is model object have comma contain string. Then,
return
View(
"PartnerProfile"
, ProfileModel);
how can split and show 1st element in the below <h3> and others ?
string
obj =
"A,b,c,d"
;
View,
<
ul
class
=
"sev-list"
>
<
h3
>
A
</
h3
>
<
li
>
b
</
li
>
<
li
>
c
</
li
>
<
li
>
d
</
li
>
</
ul
>
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
job after a gap
Restrict browser not to show popup "do u want to save passwo