Request. Form () ------------ get the value of the Form submission Element Request. querystring () --- get the element value submitted by the URL Request () ------------------ the above two sets In Asp.net, when a user refreshes the current page, the system prompts "whether to submit again ~" To avoid this prompt, you can handle the following: When you use document. Location. Reload (); or press F5, the following occurs: To display the web page again, Internet Explorer needs to resend the previously submitted information. If you are trading, click "cancel" to avoid repeated transactions. Otherwise, click "retry" to display the webpage again. JS Solution <SCRIPT type = "text/JavaScript"> Function jsmessagedelete (ID) { Filters. WCF. wcfclient. _ default. deletemessage (ID). value; Location. href = location. href; // use this to replace document. Location. Reload (); } </SCRIPT> CS Solution You can add a reload page at the end of the executed method. Response. Redirect (request. url. tostring ()); |