ASP/VBScript Hex() Returns a string representing the hexadecimal value of a number.
ShotDev Focus:
- Using Asp and Hex() function.
Example
asp_hex.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write Hex(4)&"<br>" Response.write Hex(-4)&"<br>" Response.write Hex(10)&"<br>" Response.write Hex(-10)&"<br>" Response.write Hex(15)&"<br>" %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_hex.asp
Screenshot