Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I do not know whether to use action or asp-page or what. I used any of these did not work

<form method="post" action="http://localhost:51111/Identity/Account/Lockout"  > 


What I have tried:

I searched the internet a lot but I could not find the solution. Please help me. Thank you very much.
Posted
Updated 30-Nov-20 21:55pm

1 solution

If it's in a different project, you'll need to use action. The asp-page directive only works for pages within the current project.

Beyond that, you haven't told us what "doesn't work" means. You need to make sure you have the correct URL, and that the page you're posting to can handle the data you're sending to it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900