forum

home / developersection / forums / multiple textboxes for one field

multiple textboxes for one field

Anonymous User 2463 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 !


Message
Can you answer this question?

Answer

1 Answers

Liked By