ASP.NET interview questions and answers

Which is the parent class of the Web server control? The System.Web.Ul.Control class is the parent class for all Web server controls. In which event are the controls fully loaded? Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is … Continue reading ASP.NET interview questions and answers

Html Form validation using one function of javascript

<script type="text/javascript"> function validateform() { var txtcontrols = document.getElementsByTagName("input"); for (var count = 0; count &lt; txtcontrols.length; count++) { if (txtcontrols[count].value == '') { errmsg.innerHTML = "Please Enter " + txtcontrols[count].name; return false; } if (txtcontrols[count].getAttribute('type') == 'radio') { var counter = 0; var radiobuttons = document.getElementsByName(txtcontrols[count].name); for (var radio = 0; radio &lt; radiobuttons.length; … Continue reading Html Form validation using one function of javascript