Intentando crear un formulario para una aplicación web ASP

I am creating a ASP Web Application and one of the things I need to do is use the data that the user filled out. There is one text field and multiple radio buttons.

I'm new to ASP so I am doing one piece at a time...the text field.


<form method="post"  action="/es/Scripts/checklistForm.asp"> <%-- TODO: Enter variables    into checklistForm.vbs --%>
  <td class="label">
    FQDN: </td>
    <input type="text" name="FQDN" style="width: 250px" />
 <td> <input type="radio" name="TestScript" /></td>
 <td class="label">Test Script</td>

<br />
<div id="Button">
<asp:Button ID="cancelButton" runat="server" Text="Cancel" Width="58px" />
<asp:Button ID="runButton" UseSubmitBehavior="true" runat="server" Text="Run" Width="58px" />  

I want to use the two buttons at the bottom. 1) I want the "Run" button to be the submit button. 2) I want to use the "cancel" button to close the browser window.

I am testing this form just using a simple script checklistForm.asp is simply a msgbox popup


but it simply isn't working.

Go easy on me, I am still new to ASP.

Also, I am editing it in Visual Studio. Is this the best editor for this? I am a software developer and this is a work project.

preguntado el 03 de julio de 12 a las 02:07

No hay MsgBox in classic asp. This is VBScript. You need to use javascript alert() box. -

also there is no <asp:Button in classic asp you are mixing and classic asp -

Bah, I am confusing ASP and Should I be using, I would prefer to stick to VBScript. -

On that note, my boss said this was to be an ASP application. Should I move over to and learn that real quick? -

1 Respuestas

I suggest you follow this simple tutorial which will help you understand ASP forms.

Respondido 03 Jul 12, 09:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.