In my C# (webform), i have implemented a sql query. The UPC field (varchar type) only contains numbers. My textboxUPC.Text is passed into this UPC field in SQL of my SELECT query.
i.e.
SELECT UPC
WHERE (convert(bigint, UPC) BETWEEN '2529300168' AND '5529300168')
If letters are inputted in the textboxUPC instead of numbers, then this error will occur:
Can I just use some if statement maybe in JavaScript that says IF textboxUPC.Text is not number, Then a popup message alerts the user have to enter only numbers?