Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- ViewBag.Title = "View";
- }
- <h2>Ingrese número</h2>
- <input type="text" id ="numero" name="fname">
- <p id="resultado"></p>
- <button onclick="verificar()">Enviar</button>
- <script>
- function verificar() {
- parametro = document.getElementById("numero").value;
- url = "http://localhost:60870/Cargas/Funcion?numero=" + parametro;
- var request = new XMLHttpRequest();
- request.open("GET", url, false); // false for synchronous request
- request.send(null);
- document.getElementById("resultado").innerHTML = request.responseText;
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment