Multiple Submit Buttons in Razor Pages not able to find handler pageName?handler=OnPostUploadImage
问题 I am trying to upload Image using Ajax method in asp.net core Razor pages, I am main form in will all input fields are kept and with the form for Fileupload i am also added addition button which is for file upload using Ajax, When i hit the <input type="submit" value="Upload Image" asp-page-handler="OnPostUploadImage" id="btnUploadImage" /> i want it to call OnPostUploadImage method in pageModel file but it alway goes to default OnPost method. when i rename the OnPost to OnPost2 nothing