This line says server is not declared.
Dim DecodedString As String = server.UrlDecode(context.Request.Form("DeckName"))
I have imports system.web at the top. cannot seem to figure out why its not working.
This line says server is not declared.
Dim DecodedString As String = server.UrlDecode(context.Request.Form("DeckName"))
I have imports system.web at the top. cannot seem to figure out why its not working.
Use HttpUtility
instead.
Dim decodedUrl As String = HttpUtility.UrlDecode(encodedUrl)
More details here:
http://msdn.microsoft.com/en-us/library/system.web.httputility.urldecode.aspx
This is old and K3N already provided a great answer.. but I believe the 's' in 'server' should be capitalized in your code. That may have been the issue.
Imports System.Net
Dim DecodedString As String = WebUtility.UrlDecode(context.Request.Form("DeckName"))
This should work for vb.net. I tried the HttpUtility but it doesn't recognize even i imported System.Web.