how to decode a url in vb.net

前端 未结 3 1718
谎友^
谎友^ 2021-01-21 02:08

This line says server is not declared.

Dim DecodedString As String = server.UrlDecode(context.Request.Form(\"DeckName\"))

I have imports system

3条回答
  •  礼貌的吻别
    2021-01-21 02:25

    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.

提交回复
热议问题