skip to Main Content

How to get checkbox value in ASP.NET

<div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input" ID="customSwitches" /> <label class="custom-control-label" for="customSwitches">Are You Admin?</label> </div> The above code is from aspx file protected void Button1_Click(object sender, EventArgs e) { try { string username = txtUsername.Text; string password = txtPassword.Text; bool isAdmin…

VIEW QUESTION
Back To Top
Search