<form method="post">
<input type="number" name="ids" value="Enter ids here"/>
<input type="submit" value="Submit">
</form>
string name;
string comment;
if (Request.Method == "POST") {
name = Request.Form["name"];
comment = Request.Form["comment"];
<text>
You entered: <br/>
@name <br/>
@comment <br/>
</text>
}
<form asp-controller="home" asp-action="index" method="post">
<input type="number" name="ids" value="Enter ids here"/>
<input type="submit" value="Submit">
</form>