Tuesday 26 September 2017

How to use Video Control in html-5

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Video and audion controls</title>
<style>
body
{
margin:0 auto;
padding:0px;
background-color:#F00;

}
#wrapper
{
width:80%;
margin:0 auto;
height:900px;
background-color:#FFF;
border:1px solid black;

}
header
{
width:100%;
height:100px;
 background-color:#CCC;
 margin-bottom:100px;


}


</style>


</head>

<body>

<div id="wrapper">
<header>

<DIV style="WIDTH:300PX;HEIGHT:100%;">
<img style="width:200px;height:100%" src="img/you.png"/>
</DIV>

 </header>


<div style="WIDTH:100%;HEIGHT:500px; margin:0 auto;  border:1px solid black ">


<video controls style="width:100%;height:100%">

<source src="video/carvideo.mp4" type="video/mp4" >
 </video>

</div>


<div style="WIDTH:100%;HEIGHT:auto; margin:0 auto;  border:1px solid black ">
<video controls style="width:25%;height:200px">

<source src="video/carvideo.mp4" type="video/mp4">
 </video>

<video controls style="width:24%;height:200px">

<source src="video/carvideo.mp4" type="video/mp4">
 </video>

<video controls style="width:24%;height:200px">

<source src="video/carvideo.mp4" type="video/mp4">
 </video>
<video controls style="width:24%;height:200px">

<source src="video/carvideo.mp4" type="video/mp4">
 </video>


</div>



</div>



</body>
</html>

Quiz Application# 1 (Databse Design)

create table admin_athu
(
ad_id int primary key identity  ,
ad_user nvarchar(20) not null,
ad_password nvarchar(20) not null

)

create table student_record
(
std_id int primary key identity  ,
std_name nvarchar(20) not null,
std_batchcode nvarchar(20) not null,
std_password nvarchar(20) not null,
std_ad_id int foreign key references admin_athu(ad_id )
)


create table exams
(
ex_id int primary key identity  ,
exam_name nvarchar(20) not null
)

create table questions
(
q_id int primary key identity,
q_title   nvarchar(max) not null,
q_opa nvarchar(200) not null,
q_opb nvarchar(200) not null,
q_opc nvarchar(200) not null,
q_opd nvarchar(200) not null,
q_opcorrect nvarchar(200) not null,
q_addeddate nvarchar(20) not null,
q_fk_ad int foreign key references admin_athu(ad_id ),
q_fk_ex int foreign key references exams(ex_id)
)

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...