<form id="form1" runat="server" action="<%= AllowedURL() %>">
另一个变量没有=
<form id="form1" runat="server" action="<% AllowedURL() %>">
但两者都提出了400个不好的请求。
在页面的URL中,我看到了:
example.com/<%=%20AllowedURL()%20%>
有什么要修改的东西吗?预先感谢
<%...%>
构造的限制。在解决方案时,在页面加载事件中设置了值。
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
form1.Action = AllowedURL()
End If
End Sub