vendredi 26 juin 2015

Get value of an input c# mvc

hello i have input boxes which i need to get a value of cause later i will redirect them to a specific controller and i dont know how to access there values

 <form action="@Url.Action("AddSpecific", "Comment", new { AuthorT ="1", WebSiteT = "1", postIdT = 1, TextT = "1",TitleT = "1" })" method="post">

<h1>
    <label for="Title">Title</label>
    <input name="Title" id="Title" type="text"  required />
</h1>
<h1>
    <label for="Text">Text</label>
    <input name="Text" id="Text" type="text" required />
</h1>
<h1>
    <label for="AuthorSite">AuthorSite</label>
    <input name="AuthorSite" id="AuthorSite" required />
</h1>
<h1>
    <label for="Author">Author</label>
    <input name="Author" id="Author" type="text" required />
</h1>
<h1>a
    <label for="IdOfPost">IdOfPost</label>
    <input name="IdOfPost" id="IdOfPost" type="number" required />
</h1>

<input type="submit" value="Post comment" />

Thank you very much

Aucun commentaire:

Enregistrer un commentaire