Ciao a tutti
Ho da poco iniziato ad usare visual studio .NET ed ho questo problema:
ho due file web form step_1.aspx e step_2.aspx, vorrei passare i dati inseriti in step_1.aspx a step_2.aspx tramite un pulsante submit, succede che step_1.aspx riposta se stessa anche se la action della form è uguale a step_2.aspx
ecco il codice:
STEP_1.ASPX
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Step_1.aspx.vb" Inherits="Curricula.Step_1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Step_1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" action=Step_2.aspx method="post" runat="server">
<INPUT type="text">
<INPUT type="submit" value="Submit">
</form>
</body>
</HTML>
STEP_2.ASPX
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Step_2.aspx.vb" Inherits="Curricula.Step_2"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Step_2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT type="text">
<INPUT type="submit" value="Submit">
</form>
</body>
</HTML>
se col tasto destro leggo l'html di step_1 noto che la action viene messa di default a step_1 ingnorando il fatto che io l'ho messa a step_2
Grazie a tutti
Michele