How to Submit Form POST data in ASP.netThe classic ASP method for submitting form data via POST cannot be used in ASP.net. Instead, one way to to submit form data in ASP.net is using storing in Context and then Server.Transfer. You have to write your own method for the OnClick event of your form as follows: <%@ Page Language="VB" %> <script runat="server"> <!-- This example uses a hidden form field --> __ Then in the receiving page (in this case review-add.aspx), you collect the variable value as per below. Note we check that it's not a PostBack before collecting the variable so we don't get an error if the receiving page (review-add.aspx) has to get posted back to itself (quite likely in ASP.net): Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
|
|
All Content ©2020 WebRef.eu |