Skip to content

ErcanOPAK.com

  • ASP.Net WebForms
  • ASP.Net MVC
  • C#
  • SQL
  • MySQL
  • PHP
  • Devexpress
  • Reportviewer
  • About
ASP.Net MVC / ASP.Net WebForms / C#

Creating Multiline textbox using Html.Helper function in Asp.Net MVC

- 23.07.2023.07.20 - ErcanOPAK
@Html.TextArea("Body", null, new { cols = "55", rows = "10" })

or

@Html.TextAreaFor(x => x.Body, 10, 55, null)

or

@Html.TextAreaFor(x => x.Body, new { @id = "Body", @class = "form-control", rows = "50" })

Related posts:

Change format of the Day with Leading zero In DateTime
Javascript Refresh and CountDown Timer
Add RowNumber to Gridview
How to use Html.TextBox for Date in Asp.Net MVC
How to solve ASP.NET Validation of viewstate MAC failed
Post Views: 0

Post navigation

How to split string and get first (or n-th) value only
How to refresh a DIV content with Javascript

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Nov    

Most Viewed Posts

  • Get the First and Last Word from a String or Sentence in SQL (243)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (194)
  • How to make some specific word(s) Bold or Underline in ReportViewer (187)
  • How to solve “Response.Redirect cannot be called in a Page callback” for DevExpress Components (182)
  • Confirm before process with ASPxButton in Devexpress (170)
  • ASPxGridView – Disable CheckBox based on condition in GridViewCommandColumn (170)
  • Find numbers with more than two decimal places in SQL (168)
  • Devexpress ASPxGridview Column Grouping in Code (164)
  • DATEADD Function in SQL (163)
  • Tense Changes When Using Reported Speech (160)

Recent Posts

  • How to auto-scroll or manually to end of div when data is added
  • Filter Rows By Max Date in SQL
  • How to Validate a DateTime in C#?
  • Convert comma separated string into a List in C#
  • Converting a List to a comma separated string in C#
  • How to add placeholder to Multiple Selection DropDownList in Asp.Net MVC
  • How to use toFixed() for Float numbers in Javascript
  • Convert List to List in one line in C#
  • How to use column search in datatable when responsive is false
  • Checking multiple contains on one string

Recent Posts

  • How to auto-scroll or manually to end of div when data is added
  • Filter Rows By Max Date in SQL
  • How to Validate a DateTime in C#?
  • Convert comma separated string into a List in C#
  • Converting a List to a comma separated string in C#

Most Viewed Posts

  • Get the First and Last Word from a String or Sentence in SQL (243)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (194)
  • How to make some specific word(s) Bold or Underline in ReportViewer (187)
  • How to solve “Response.Redirect cannot be called in a Page callback” for DevExpress Components (182)
  • Confirm before process with ASPxButton in Devexpress (170)

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter

Copyright © 2021 ErcanOPAK.com | powered by XBlog Plus WordPress Theme