How we can remove wildcard charecters in asp.net
how we can remove wildcard charecters in asp.net through javascript
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Lakshmanan Sethu SankaranarayanRank #124 · 17.7K reputationPosted Apr 6, 2014, 10:05 PM EDT
Abhay ShankerRank #375 · 6.7K reputationPosted Apr 7, 2014, 12:36 AM EDT
function replaceWildcards(elem) {
var txt = (elem == null) ? ' ' : elem.value;
txt = txt.replace('@', '');
txt = txt.replace('^', '');
txt = txt.replace('$', '');
// etc...
if(txt != ' ')
elem.value = txt;
}
And below line onPage_Load
Textbox1.Attributes.Add("onblur", "replaceWildcards(this);")