I will post the question again and try to be more clear this time.
I currently use an HTML form (Login Form) to go to an ASP.NET page which is also a login Form. I need to change this because I am currently working inside an asp.net page and embedded forms won't do it.
The current HTML version is
I have ported this to asp.net
But.... I am unsure how to get this to behave like the HTML version so that it will pass the three text fields to the login.aspx form.
Any help would be great.
I currently use an HTML form (Login Form) to go to an ASP.NET page which is also a login Form. I need to change this because I am currently working inside an asp.net page and embedded forms won't do it.
The current HTML version is
Code:
<form name="Form1" id="Form1" action="http://98.141.202.213/ccweb/login.aspx" method="post">
<input type ="hidden" value="1" name="Flag"/>
<div class="login-field">
<label>Account No.</label>
<input name="AccNo" id="AccNo" type="text" />
<br />
<label>User Id</label>
<input name="UserID" id="UserID" type="text" />
<label>Password</label>
<input id="Passwd" name="Passwd"" type="password" />
</div>
<div class="login-button">
<label>
<input type="submit" name="button" id="button" value="" />
</label>
</div> </form>
Code:
private string PostUrl = "http://98.175.26.137/ccweb/Login.aspx"; // you shouldn't need to change this
private void LoadSettings()
{
Title1.Visible = !this.RenderInWebPartMode;
if (this.ModuleConfiguration != null)
{
this.Title = this.ModuleConfiguration.ModuleTitle;
this.Description = this.ModuleConfiguration.FeatureName;
}
btnLoginButton.PostBackUrl = PostUrl;
}
<asp:Panel ID="Login" runat="server" CssClass="modulecontent">
<p></p>
Account No: <asp:TextBox ID="AccNo" runat="server" name="AccNo"></asp:TextBox>
User ID: <asp:TextBox ID="UserID" runat="server" name="UserID"></asp:TextBox>
Password:   <asp:TextBox id="Passwd" TextMode="password" runat="server" name="Passwd"/>
<asp:Button ID="btnLoginButton" runat="server" Text="Submit" />
</asp:Panel>
Any help would be great.
Comment