try this code probably it will be helpful to you
<xhtmlConformance mode="Legacy"/>
set in your web.config, then client-side validation is disabled in firefox.
To see why, we have to jump down into the validation framework that ASP.Net sends to the web browser. The actual Javascript validation function looks like:
Code:
function ValidatorValidate(val) {
val.isvalid = true;
if (val.enabled != false) {
if (typeof(val.evaluationfunction) == "function") {
val.isvalid = val.evaluationfunction(val);
}
}
ValidatorUpdateDisplay(val);
}
This produces a block of Javascript just before the closing </form> tag like:
Code:
<script type="text/javascript">
<!--
var TextBox1 = document.all ? document.all["TextBox1"] : document.getElementById("TextBox1");
TextBox1.value = "";
// -->
</script>
Bookmarks