@Html.TextBox("txtNane", "Enter Your WaterMark", new
{
id = "txtId",
onfocus = "if(document.getElementById('txtId').value=='Enter Your WaterMark')document.getElementById('txtId').value='';",
onblur = "if(document.getElementById('txtId').value=='')document.getElementById('txtId').value='Enter Your WaterMark';"
})
if you want more statement in a function name on onfocus or onblur method of textbox like set forcolor gray etc.. you can make javascript function and call it.
for binding
@Html.TextBox('',Your Bind Object)(in above i have bind string 'Enter Your WaterMark'
dropdown for show only 5 record you have to take a dropdown under div tag and set height of div with autoscroll style
Bind Drop Down List with Datasource in my case i have List<string>
<pre> @Html.DropDownListFor(s => s.myFriendList, new SelectList(Model.myFriendList))