by Yogesh | Mar 23, 2019 | Asp .net MVC
Remote attribute in asp.net MVC What is Remote Attribute make a remote server call to validate specific data without posting the entire form to the server Remote is an attribute of data annotation Used for validation at model class in MVC. Implemented with the use of...
by Yogesh | Jan 27, 2019 | Asp .net MVC
asp.net registration form with built in type html helpers | example Example 3: In this example we will create a form and submit and show data Action public ActionResult BuiltInTypehelpers() { return View(); } View @{ ViewBag.Title = "BuiltInTypehelpers"; }...
by Yogesh | Jan 27, 2019 | Asp .net MVC
Inline HTML Helper at Advanced Level Example1: Simple Example of Inline HTML Helper Controller Action public ActionResult InlineHTMLHelper() { return View(); } View: @helper mylist(string[] arr) { foreach (string data in arr) { @data } } @mylist(new string[] {...
by Yogesh | Jan 27, 2019 | Asp .net MVC
Ajax.BeginForm In ASP.NET MVC Two Example , First for Simple Ajax form and second for ajax form with loading gif file. Controller Action public ActionResult AjaxFormExample() { return View(); } Note: To implement ajax.begin form to jquery and jquery .ajax.unbrustive...
by Yogesh | Apr 14, 2018 | Asp .net MVC, Entity Framework Tutorial
Database : -- Login Table CREATE TABLE [dbo].[login]( [id] [int] IDENTITY(1,1) NOT NULL, [username] [varchar](50) NULL, [password] [nvarchar](50) NULL, [lastlogin] [datetime] NULL ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO -- Stored Procedure -- Stored Procedure to...
by Yogesh | Apr 10, 2018 | Asp .net MVC, Entity Framework Tutorial
As we know that whenever we want to pass dropdown text from view to controller using the model object, the value of dropdown is transferred but in some cases, we required text of the drop-down. in this article I discuss that how we can perform this. Step1: Create New...