Saturday, 27 February 2021

 

Today I have get an Issue in .net mvc core regarding datatabl ajax call path .when it deploy on server its virtual path giving an issue to resolve it i have used this instead of path

"url": "@Url.Action("AjaxMethod", "Home")",

use this instead of "home/ajaxmethod".

 Date formate for mvc edit method in mvc

 [DataType(DataType.Date)]

        [DisplayFormat(DataFormatString = "{0:d}", ApplyFormatInEditMode = true)]

        public DateTime ScheduleDate { get; set; }

No comments:

Post a Comment

remove duplicates in an sorted array

  using System; public class HelloWorld {          public static void Main(string[] args)     {         int[] ar={2,2,3,3,4,6,6};          C...