با سلام.
مي خواهم تو هر رديف grid mvc يك text box قرار بدم و تو Action به مقادير اونها دسترسي داشته باشم.
لطفاً راهنمايي كنيد
میتونید هر خط را داخل یک Form قرار بدید و در کنار هز خط یک دکمه Submit قرار بدید
<form method="POST" action="/Retrieve/Twitter"> <table> <tr> <th> Consumer Key: </th> <td> <input id="ConsumerKey" name="ConsumerKey" type="text" value="" /> </td> </tr> <tr> <th> Consumer Secret Key: </th> <td> <input id="ConsumerSecretKey" name="ConsumerSecretKey" type="text" value="" /> </td> </tr> <td><input type="submit" id="Retrieve" value="Retreive Access Tokens" /></td> </tr> </table> </form>
public ActionResult Retrieve(string consumerKey, string consumerSecretKey) { //action method code here }
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)