Advertisement
Guest User

sumar con FormCollletion

a guest
Mar 29th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. @{
  2.     Layout = null;
  3. }
  4.  
  5. <!DOCTYPE html>
  6.  
  7. <html>
  8. <head>
  9.     <meta name="viewport" content="width=device-width" />
  10.     <title>sumar_ConFormCollection</title>
  11. </head>
  12. <body>
  13.     <div>
  14.         <form action="/calculadora/sumar_ConFormCollection" method="post">
  15.             <label for="op1">Numero 1</label>
  16.             <input type="text" name="op1" id="op1"/>
  17.             <br />
  18.             <label for="op2">Numero 2</label>
  19.             <input type="text" name="op2" id="op2"/>
  20.             <br />
  21.             <input type="submit" name="sumar" value="Sumar" />
  22.         </form>
  23.  
  24.         @if (ViewBag.TextoResultado != null)
  25.         {
  26.             <div>
  27.                 <h2>@ViewBag.TextoResultado</h2>
  28.             </div>
  29.         }
  30.  
  31.     </div>
  32. </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement