I want its output as uppercase. This is what I get on Server.UrlEncode(\"http://\"):
Server.UrlEncode(\"http://\")
http%3a%2f%2f
but I need:
<
Assuming "http" is always the first four characters then you simply split the string after "http", UrlEncode that part and then call ToUpper() on it. Then join back together with "http" as your prefix.
UrlEncode
ToUpper()