[RESOLVED] [ASP.NET] Test submission of form data
Hi
I have a code that must be run ONLY IF a user posts data into a form. Posting data can be made aether by pressing submit button or pressing enter on keyboard, so here is the issue. So in short I need a translation of this php code if there is such translation in asp . net of course.
PHP Code:
if($_SERVER['REQUEST_METHOD'] == 'POST')
Re: [ASP.NET] Test submission of form data
For future reference, please post your ASP.NET questions in the ASP.NET forum.
As for the question, assuming that you're using Web Forms, each Page and UserControl has an IsPostBack property that you can test.
Re: [ASP.NET] Test submission of form data
Re: [ASP.NET] Test submission of form data
Quote:
Originally Posted by
jmcilhinney
For future reference, please post your ASP.NET questions in the ASP.NET forum.
As for the question, assuming that you're using Web Forms, each Page and UserControl has an IsPostBack property that you can test.
Great, you got it as reputation.
Re: [ASP.NET] Test submission of form data
Hello Bores,
If your question has been answered, can you please remember to go back and mark it as resolved? If you are not sure how to do this, you will find a link to help you in my signature.
Thanks
Gary