public enum BranchCode
{
Branch1=1,
Branch2,
Branch3
}
Console.Write(((int)BranchCode.Branch2));
public enum BranchCode
{
Branch1=1,
Branch2,
Branch3
}
Console.Write(((int)BranchCode.Branch2));
<input type="date" name="DOB" id="dob" placeholder="Date of Birth " >
Input type date takes date in format of yyyy-mm-dd. But it will show you as per your local clock setting.var dt = new Date($("#ddob").val().split("/").reverse().join("/"));
var td = dt.getFullYear() + "-";
month = (dt.getMonth() + 1);
if (month < 10)
td += "0" + month;
else
td += month;
td += "-";
day = dt.getDate();
if (day < 10)
td += "0" + day;
else
td += day;
$("#dob").val(td);
Form Post is a simple process to submit data to the server. C# works the same as other languages like PHP works. Problems arise with the radio button and checkbox. These controls are different from the textbox. So we need different ways to detect user selection. This is post will help you to learn checkbox and radio button selection using form POST.
<form method="post" >
<input type="radio" name="SalaryPerson" value="1"
checked/> Salary Person
<input type="radio"
name="SalaryPerson"
value="0" /> Self Empployee
<input type="submit" value="Save"
>
</form>