I'm new to MVC and I'm currently trying to create a Edit Profile page for my web application. In my form, I am using the text area (multi-line text box) for "Address" field and drop-down list for my "Country" field.
For the TextArea, I faced the issue of not being able to save what I keyed into the text area.
This is my code snippet:
<p>
<labelfor="useraddress">Mailing
Address:</label>
@Html.TextArea("@userAddress")
</p>
For the drop-down list, I need help to incoporate the ISO3166.dll for the list of countries.
By the way, I'm building my site on the Starter Site.
melvinsng
0 Points
3 Posts
Help needed: @Html.TextArea and @Html.DropDownList
Nov 25, 2012 01:34 PM|LINK
I'm new to MVC and I'm currently trying to create a Edit Profile page for my web application. In my form, I am using the text area (multi-line text box) for "Address" field and drop-down list for my "Country" field.
For the TextArea, I faced the issue of not being able to save what I keyed into the text area.
This is my code snippet:
<p>
<label for="useraddress">Mailing Address:</label>
@Html.TextArea("@userAddress")
</p>
For the drop-down list, I need help to incoporate the ISO3166.dll for the list of countries.
By the way, I'm building my site on the Starter Site.
Thanks in advance!
wavemaster
Participant
1293 Points
1129 Posts
Re: Help needed: @Html.TextArea and @Html.DropDownList
Nov 25, 2012 03:05 PM|LINK
Working through a tutorial has helped me to get going quickly.
I like this one the best: