Overview - ASP.NET Core Form Demo (2024)

Material Light

Overview - ASP.NET Core Form Demo (1) Material Blue Light

Overview - ASP.NET Core Form Demo (2) Material Lime Light

Overview - ASP.NET Core Form Demo (3) Material Orange Light

Overview - ASP.NET Core Form Demo (4) Material Purple Light

Overview - ASP.NET Core Form Demo (5) Material Teal Light

Material Dark

Overview - ASP.NET Core Form Demo (6) Material Blue Dark

Overview - ASP.NET Core Form Demo (7) Material Lime Dark

Overview - ASP.NET Core Form Demo (8) Material Orange Dark

Overview - ASP.NET Core Form Demo (9) Material Purple Dark

Overview - ASP.NET Core Form Demo (10) Material Teal Dark

Material Light Compact

Overview - ASP.NET Core Form Demo (11) Material Blue Light Compact

Overview - ASP.NET Core Form Demo (12) Material Lime Light Compact

Overview - ASP.NET Core Form Demo (13) Material Orange Light Compact

Overview - ASP.NET Core Form Demo (14) Material Purple Light Compact

Overview - ASP.NET Core Form Demo (15) Material Teal Light Compact

Material Dark Compact

Overview - ASP.NET Core Form Demo (16) Material Blue Dark Compact

Overview - ASP.NET Core Form Demo (17) Material Lime Dark Compact

Overview - ASP.NET Core Form Demo (18) Material Orange Dark Compact

Overview - ASP.NET Core Form Demo (19) Material Purple Dark Compact

Overview - ASP.NET Core Form Demo (20) Material Teal Dark Compact

Generic Light

Overview - ASP.NET Core Form Demo (21) Generic Light

Overview - ASP.NET Core Form Demo (22) Carmine

Overview - ASP.NET Core Form Demo (23) Soft Blue

Overview - ASP.NET Core Form Demo (24) Green Mist

Generic Dark

Overview - ASP.NET Core Form Demo (25) Generic Dark

Overview - ASP.NET Core Form Demo (26) Contrast

Overview - ASP.NET Core Form Demo (27) Dark Violet

Overview - ASP.NET Core Form Demo (28) Dark Moon

Generic Light Compact

Overview - ASP.NET Core Form Demo (29) Generic Light Compact

Generic Dark Compact

Overview - ASP.NET Core Form Demo (30) Generic Dark Compact

Overview - ASP.NET Core Form Demo (31) Contrast Dark Compact

Fluent Light

Overview - ASP.NET Core Form Demo (32) Fluent Light

Overview - ASP.NET Core Form Demo (33) Fluent SaaS Light

Fluent Dark

Overview - ASP.NET Core Form Demo (34) Fluent Dark

Overview - ASP.NET Core Form Demo (35) Fluent SaaS Dark

Fluent Light Compact

Overview - ASP.NET Core Form Demo (36) Fluent Light Compact

Overview - ASP.NET Core Form Demo (37) Fluent SaaS Light Compact

Fluent Dark Compact

Overview - ASP.NET Core Form Demo (38) Fluent Dark Compact

Overview - ASP.NET Core Form Demo (39) Fluent SaaS Dark Compact

Backend API

@model DevExtreme.NETCore.Demos.Models.ActiveCompany<div id="form-demo"> <div class="widget-container"> <div id="companySelectText">Select company:</div> @(Html.DevExtreme().SelectBox() .ID("companySelectBox") .DisplayExpr("Name") .InputAttr("aria-label", "Company") .Label("Select company") .LabelMode(EditorLabelMode.Floating) .DataSource(d => d.Mvc().LoadAction("GetCompanies").Key("ID")) .Value(1) .OnValueChanged("selectBox_valueChanged") ) @(Html.DevExtreme().Form() .ID("form") .ColCount(2) .FormData(Model) .LabelMode(FormLabelMode.Floating) .LabelLocation(FormLabelLocation.Left) .MinColWidth(300) .ReadOnly(false) .ShowColonAfterLabel(true) ) </div> <div class="options"> <div class="caption">Options</div> <div class="option"> <span>Label mode:</span> @(Html.DevExtreme().SelectBox() .InputAttr("aria-label", "Label Mode") .DataSource(new[] { "outside", "static", "floating", "hidden" }) .Value("floating") .OnValueChanged("labelMode_changed") ) </div> <div class="option"> <span>Label location:</span> @(Html.DevExtreme().SelectBox() .DataSource(new[] { "left", "top" }) .Value("left") .InputAttr("aria-label", "Label Location") .OnValueChanged("labelLocation_changed") ) </div> <div class="option"> <span>Columns count:</span> @(Html.DevExtreme().SelectBox() .InputAttr("aria-label", "Column Count") .DataSource(new object[] { "auto", 1, 2, 3 }) .Value(2) .OnValueChanged("colCount_changed") ) </div> <div class="option"> <span>Min column width:</span> @(Html.DevExtreme().SelectBox() .DataSource(new[] { 150, 200, 300 }) .InputAttr("aria-label", "Min Column Width") .Value(300) .OnValueChanged("minColWidth_changed") ) </div> <div class="option"> <span>Form width:</span> @(Html.DevExtreme().NumberBox() .Value(null) .Max(550) .InputAttr("aria-label", "Width") .OnValueChanged("formWidth_changed") ) </div> <div class="option"> @(Html.DevExtreme().CheckBox() .Text("readOnly") .Value(false) .OnValueChanged("readOnly_changed") ) </div> <div class="option"> @(Html.DevExtreme().CheckBox() .Text("showColonAfterLabel") .Value(true) .OnValueChanged("showColonAfterLabel_changed") ) </div> </div></div><script> function getFormInstance() { return $("#form").dxForm("instance"); } function selectBox_valueChanged(data) { getFormInstance().option("formData", data.value); } function labelMode_changed(data) { getFormInstance().option("labelMode", data.value); const $companySelectText = $("#companySelectText"); const companySelectBox = $("#companySelectBox").dxSelectBox("instance"); if(data.value === "outside") { companySelectBox.option("labelMode", "hidden"); $companySelectText.show(); } else { companySelectBox.option("labelMode", data.value); $companySelectText.hide(); } } function labelLocation_changed(data) { getFormInstance().option("labelLocation", data.value); } function colCount_changed(data) { getFormInstance().option("colCount", data.value); } function minColWidth_changed(data) { getFormInstance().option("minColWidth", data.value); } function formWidth_changed(data) { getFormInstance().option("width", data.value); } function readOnly_changed(data) { getFormInstance().option("readOnly", data.value); } function showColonAfterLabel_changed(data) { getFormInstance().option("showColonAfterLabel", data.value); }</script>

using DevExtreme.AspNet.Data;using DevExtreme.AspNet.Mvc;using DevExtreme.NETCore.Demos.Models.SampleData;using DevExtreme.NETCore.Demos.ViewModels;using Microsoft.AspNetCore.Mvc;using System;using System.Collections.Generic;using System.Linq;namespace DevExtreme.NETCore.Demos.Controllers { public class FormController : Controller { public ActionResult Overview() { return View(SampleData.ActiveCompanies.First()); } [HttpGet] public object GetCompanies(DataSourceLoadOptions loadOptions) { return DataSourceLoader.Load(SampleData.ActiveCompanies, loadOptions); } }}

using System.Collections.Generic;namespace DevExtreme.NETCore.Demos.Models.SampleData { public partial class SampleData { public static readonly IEnumerable<ActiveCompany> ActiveCompanies = new[] { new ActiveCompany() { ID = 1, Name = "Super Mart of the West", Address = "702 SW 8th Street", City = "Bentonville", State = "Arkansas", ZipCode = 72716, Phone = "(800) 555-2797", Fax = "(800) 555-2171", Website = "", Active = true }, new ActiveCompany() { ID = 2, Name = "Electronics Depot", Address = "2455 Paces Ferry Road NW", City = "Atlanta", State = "Georgia", ZipCode = 30339, Phone = "(800) 595-3232", Fax = "(800) 595-3231", Website = "", Active = true }, new ActiveCompany() { ID = 3, Name = "K&S Music", Address = "1000 Nicllet Mall", City = "Minneapolis", State = "Minnesota", ZipCode = 55403, Phone = "(612) 304-6073", Fax = "(612) 304-6074", Website = "", Active = true }, new ActiveCompany() { ID = 4, Name = "Tom's Club", Address = "999 Lake Drive", City = "Issaquah", State = "Washington", ZipCode = 98027, Phone = "(800) 955-2292", Fax = "(800) 955-2293", Website = "", Active = true } }; }}

using System;using System.Collections.Generic;using System.Linq;namespace DevExtreme.NETCore.Demos.Models { public class ActiveCompany { public int ID { get; set; } public string Name { get; set; } public string Address { get; set; } public string City { get; set; } public string State { get; set; } public int ZipCode { get; set; } public string Phone { get; set; } public string Fax { get; set; } public string Website { get; set; } public bool Active { get; set; } }}

.widget-container { margin-right: 320px; padding: 20px; max-width: 550px; min-width: 300px;}#form { margin-top: 25px;}#companySelectText { display: none;}.options { padding: 20px; position: absolute; bottom: 0; right: 0; width: 260px; top: 0; background-color: rgba(191, 191, 191, 0.15);}.caption { font-size: 18px; font-weight: 500;}.option { margin-top: 10px;}

Overview - ASP.NET Core Form Demo (2024)

FAQs

How long does it take to learn ASP.NET Core? ›

. NET programming is a versatile skill, used in gaming, web development, and mobile development. Learning . NET programming usually takes two to three months for one language, and most .

What is the basic of ASP.NET Core? ›

ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-enabled, Internet-connected apps. With ASP.NET Core, you can: Build web apps and services, Internet of Things (IoT) apps, and mobile backends. Use your favorite development tools on Windows, macOS, and Linux.

What is a request form in ASP? ›

Request.

Form command is used to collect values in a form with method="post".

How to create ASP.NET Core MVC web-application? ›

  1. Start Visual Studio and select Create a new project.
  2. In the Create a new project dialog, select ASP.NET Core Web App (Model-View-Controller) > Next.
  3. In the Configure your new project dialog, enter MvcMovie for Project name. ...
  4. Select Next.
  5. In the Additional information dialog: ...
  6. Select Create.
Mar 13, 2024

Is ASP.NET Core dead? ›

No, ASP.NET is not dead. While there may be newer technologies and frameworks available, ASP.NET continues to be widely used and supported by Microsoft. ASP.NET is a mature and robust framework for building web applications and has a large user base.

Can I learn ASP.NET in a week? ›

Its totally depends on your capability, on an average people takes 15–20 days to get rid of basic ASP. Net. I have seen few junior developers who have learn basic ASP. Net within one week or so and I also know some developers who takes almost 3–4 months to learn basic ASP.

What should I learn first ASP.NET or ASP.NET Core? ›

For creating web-based applications in . NET platform, it is necessary to learn ASP.NET Core. This is because it is cross-platform and a future technology for the web. Usually, ASP.NET developers can work on WebAPI and MVC based web applications.

Is ASP.NET Core full stack? ›

. NET is a full-stack development platform that enables you to build, deploy, and manage applications and services. It provides a comprehensive and flexible technology stack for developing modern web applications and services. ASP.NET Core is a new open-source and cross-platform version of .

Is ASP.NET Core worth it? ›

ASP.NET Core offers benefits such as improved performance, modularity, and cross-platform support, making it an attractive choice for modern web development.

What are the different types of forms in asp? ›

ASP.NET has web forms that can be used for making HTML elements. These are of two types: client-based and server-based. Used for displaying text on an HTML page. Used for creating a text input in the form.

How to pass form data in C#? ›

Introduction
  1. In Visual Studio, select "File" -> "New" -> "Project..." then select C# Windows Forms Application, then click OK.
  2. Drag and drop a Label and a TextBox from the Toolbox. ...
  3. I have a Name, Name, and Address Label on the form. ...
  4. Add another Windows Forms form using Project --> Add Windows Form, then click on Add.
Oct 16, 2023

How to pass form data in HTTP request? ›

Sending the form data using the 'POST' HTTP method: The POST method is used to send data to a server to create and update a resource. The requested data using the POST method is appended to the body of the HTTP request rather than the page URL. Its request has no restrictions on data length.

How to master ASP.NET Core? ›

Section 6: Building a Simple Web Application
  1. Step 1: Create a New ASP.NET Core Project. ...
  2. Step 2: Set Up Entity Framework Core for Database. ...
  3. Step 3: Create a Model for User Data. ...
  4. Step 4: Implement User Authentication. ...
  5. Step 5: Create a Controller with Views. ...
  6. Step 6: Implement Forms and Validation. ...
  7. Step 7: Implement Validation.
Nov 12, 2023

What is the difference between ASP.NET Core and MVC? ›

ASP.NET Core is supported by Windows, Linux, macOS, and Docker containers. At the same time, ASP.NET MVC is only supported by the Windows operating system. ASP.NET Core helps you save money and time and also leverages to maintain your service availability across all significant OS platforms.

What is middleware in .NET Core? ›

Middleware is software that's assembled into an app pipeline to handle requests and responses. Each component: Chooses whether to pass the request to the next component in the pipeline. Can perform work before and after the next component in the pipeline.

Is it hard to learn .NET Core? ›

NET Core language. Learning . NET programming can be quite challenging due to the sheer volume of information and diversity of languages. However, starting with C#, F#, and Visual Basic can lay a solid foundation.

Do I need to learn C# before ASP.NET Core? ›

Important skills ASP.NET Developers should learn: C# programming language. .

Is ASP.NET Core in demand? ›

In recent years, . NET has constantly increased its demand due to the following reasons: It supports the development of cross-platform compatible applications. Microsoft support helps organizations align quickly with industry standards and regulations.

Can I learn ASP.NET Core without C#? ›

Since ASP.NET is tightly integrated with C#, you will need to have at least a basic understanding of C# syntax and concepts in order to work with ASP. NET effectively. If you are new to programming, it may be a good idea to start by learning C# before diving into ASP. NET.

References

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6472

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.