Hi there.
I need insert the values of this form (printed in the asp Label) in the database MySQL.
Can u help me?
Code:<%@ Page Language="C#" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.Odbc" %> <%@ Import Namespace="System.Configuration" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> public void Page_Load (Object sender, EventArgs e) { OdbcConnection myConnectionString = new OdbcConnection(ConfigurationManager.ConnectionStrings ["ConnMySQL"].ConnectionString); myConnectionString.Open(); myConnectionString.Close(); } protected void WizardStep3_Activate(object sender, EventArgs e) { Label1.Text = fname.Text.ToString() + "<br>" + lname.Text.ToString() + "<br>" + email.Text.ToString(); } </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" StartNextButtonImageUrl = "/_aspx/styles/yellow/next-48.png" StartNextButtonType="Image" StepNextButtonType="Image" StepNextButtonImageUrl="/_aspx/styles/yellow/next-48.png" StepPreviousButtonType="Image" StepPreviousButtonImageUrl="/_aspx/styles/yellow/prev-48.png" FinishPreviousButtonImageUrl="/_aspx/styles/yellow/prev-48.png" FinishPreviousButtonType="Image" FinishCompleteButtonImageUrl="/_aspx/styles/yellow/subscribe.png" FinishCompleteButtonType="Image" CancelButtonType="Image" CancelButtonImageUrl="/_aspx/styles/yellow/prev-48.png" DisplaySideBar="false"> <WizardSteps> <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">fname <asp:TextBox ID="fname" runat="server"></asp:TextBox> <br /><br />lname<asp:TextBox ID="lname" runat="server"></asp:TextBox> </asp:WizardStep> <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">Email <asp:TextBox ID="email" runat="server"></asp:TextBox> </asp:WizardStep> <asp:WizardStep ID="WizardStep4" runat="server" Title="The End" StepType="Complete" OnActivate="WizardStep3_Activate"> Thank You!<br /><br /> <asp:Label ID="Label1" runat="server"> </asp:Label> </asp:WizardStep> </WizardSteps> </asp:Wizard> </form> </body> </html>



Reply With Quote
Bookmarks