Hello ! I am an undergraduate student , and working on my Final Year project these days. I have some queries related to Custom Controls as follows: I am designing a text box field which will have three or more functions as follows :
- Either it will allow numeric characters only
- Or it will allow an email address to be taken as input
- Or it will be a file Upload text box
I am using jQuery to validate this text box .for eg. for checking whether the user has entered numeric characters only or not!!
My Question is
- What is the better approach to build such custom controls ? Either make it pure client side or pure Server side or both?
- Also , I need to include AJAX functionality in file uploader. If the client browser doesnot support JavaScripting for some reason then how we can avoid this constraint ? Thank you very much for your time ! Kindly help me.