forum

Home / DeveloperSection / Forums / multiple textboxes for one field

multiple textboxes for one field

Anonymous User 2216 31-Jan-2014

If I have 3 text boxes for 3 field which need to be appended together, how would you go about doing this?

for example:

@Html.TextBoxFor(model => model.PhoneNumber, new { @id = "PhoneNumber1"})

@Html.TextBoxFor(model => model.PhoneNumber, new { @id = "PhoneNumber2"})

@Html.TextBoxFor(model => model.PhoneNumber, new { @id = "PhoneNumber3"})

but when I call model.PhoneNumber in the controller, I only get the first text box value.


Updated on 31-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By