Sunday, 2 April 2017

play mp3 in mvc5

 
 
 
<video controls><source src="AUDIO FILE" type="audio/mp3"> 
Your browser does not support the video tag.</video>

Video Play in MVC 5 Using with HTML5 Video Tag



<video controls preload=metadata width=250 height=250 poster="~/images/Hydrangeas.jpg" style="border:solid #636363">
                                        <source src="@Url.Content(Model.Path)" type="video/mp4">
                                    </video>

Searching Functionality in MVC5

 
 
public class HomeController : Controller
{
    // GET: Home
    public ActionResult Index()
    {
        NorthwindEntities entities = new NorthwindEntities();
        return View(entities.SearchCustomers(""));
    }
 
    [HttpPost]
    public ActionResult Index(string customerName)
    {
        NorthwindEntities entities = new NorthwindEntities();
        return View(entities.SearchCustomers(customerName));
    }
}

string array of file extension

string array of file extension


Initialization 
public string[] ValidFileTypes = { "jpeg", "jpg", "png", "gif" };

User
 if (ValidFileTypes.Contains(imagetype[1].ToLower()))

AngularJs6 using with Asp.net Core Web API 2

AngularJs6 using with Asp.net Core Web API 2 Steps 1) Create project using with command 2) Create services 3) Create routing 4) Modif...