Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<ul class="feildsmain">

               @*<li>
                   @Html.LabelFor(m => m.BussinessID) </li>*@
               <li>
                   @Html.HiddenFor(m => m.BussinessID)
                   @Html.ValidationMessageFor(m => m.BussinessID)
               </li>
               <li>
               <li>
                   @Html.LabelFor(m => m.Name)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.Name, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.Name)
               </li>
               <li>
                   @Html.Label("Street Address")
               </li>
               <li>
                   @Html.TextAreaFor(m => m.Address, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.Address)
               </li>
               <li>
                   @Html.Label("City")
               </li>
               <li>
                   @Html.TextAreaFor(m => m.City, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.City)
               </li>
               <li>
                   @Html.Label("State")
               </li>
               <li>
                   @Html.TextAreaFor(m => m.State, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.State)
               </li>
               <li>
                   @Html.Label("Country")
               </li>
               <li>
                   @Html.TextAreaFor(m => m.Country, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.Country)
               </li>
               <li>
                   @Html.LabelFor(m => m.ZipCode)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.ZipCode, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.ZipCode)
               </li>
               <li>
                   @Html.LabelFor(m => m.Description)
               </li>
               <li>
                   @Html.TextAreaFor(m => m.Description, new { @readonly = "readonly" })@*Dropbox type*@
                   @Html.ValidationMessageFor(m => m.Description)
               </li>
               <li>
                   @Html.LabelFor(m => m.VideoPath1)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.VideoPath1, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.VideoPath1)
               </li>
               <li>
                   @Html.LabelFor(m => m.VideoPath2)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.VideoPath2, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.VideoPath2)
               </li>
               <li>
                   @Html.LabelFor(m => m.VideoPath3)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.VideoPath3, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.VideoPath3)
               </li>
               <li>
                   @Html.LabelFor(m => m.VideoPath4)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.VideoPath4, new { @readonly = "readonly" })
                   @Html.ValidationMessageFor(m => m.VideoPath4)
               </li>
               <li>
                   @Html.LabelFor(m => m.GMap)
               </li>
               <li>
                   @Html.TextBoxFor(m => m.GMap)
                   @Html.ValidationMessageFor(m => m.GMap)
               </li>@using (Html.BeginForm())
               {
                   <li style="text-align:right">
                       <input type="submit" value="Delete" style="background-color:#3a95db;" />
                       <input type="button" value="Back to List" onclick="location.href='@Url.Action("Index","Admin")'"  style="background-color:#3a95db;" />
                   </li>}
               <li></li>

           </ul>
Posted
Comments
deepankarbhatnagar 17-Dec-15 6:08am    
Give same css classname to every li tag of textbox & textarea

1 solution

This is the concept.

CSS
<style>
.customStyle
{
 color:red; 
}
</style>


HTML
<input type="text" class="customStyle" value="I am a textbox">

<textarea rows="4" cols="40" class="customStyle"> 
I am a textarea


Now you will have the same style for both controls as you asked. You can implement this simple concept in your code.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900