How to call javascript function from serverside?
for example, a webform has one textbox control named 'txtCity' which accepts only alphabets.For this validation one javascript function is written named acceptChar.How to call acceptchar javascript function from serverside
Select Answer:
controlname.Attributes.Add("("onkeypress", "acceptChar(' ')")
txtCity.Attributes.Add("("onkeypress", "acceptChar(' ')")
Attributes.Add("("onkeypress", "acceptChar")
Attributes.Add("(onkeypress(),"acceptChar")
|