2021年4月6日星期二

How to display Hello when a button is clicked

Requires method overloading, but I don't need to accept parameters, how can I make it work?

public IActionResult SlMas()              {                  return View();              }              [HttpPost]              public string SlMas()              {                      return "hello";              }                        @{          ViewData["Title"] = "SlMas";      }            <form method="post">          <p>              <input type="submit" value="Проверить" />          </p>      </form>  
https://stackoverflow.com/questions/66968649/how-to-display-hello-when-a-button-is-clicked April 06, 2021 at 08:27PM

没有评论:

发表评论