Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
how to split element then bind inside view page ?
Mani Kandan
Apr 27 2017 4:44 AM
196
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
>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
job after a gap
Restrict browser not to show popup "do u want to save passwo