Home > Forum > ASP.NET > Confliction due to validation and textchange method for same textbox

Confliction due to validation and textchange method for same textbox

by sudha   on Sep 25, 2014   Category: ASP.NET  |  Views: 727    |  Points: 5   |  Starter 
  Reply
Hi, I have textbox with regex validation and also I have ontextchanged method in that. so while runing my code before doing validation its jumping to do work for text change method... Can anybody tell why this happening?

Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :Confliction due to validation and textchange method for same textbox   
by Thamil
on Sep 26 2014 1:55AM
Points : 10
Gold 
Hi Sudha,

The OntextChanged event occurs/triggers when text changed in the textbox, here you have added regular expression validator for the textbox, regex would occur when you click on submit button.
Whats purpose of using regex & OntextChanged on textbox? So that I can provide the solution for this.

Recent Post

Latest Posts