Skip to content
Loading
Trying to convert an asp.net login page in Asp.net mvc with class="footer text-center"> class="btn btn-primary" ID="btn_Login" runat="server" Text="Login" OnClick="btn_Login_Click"> href="Home.aspx" class="btn btn-primary">Back Login.aspx.cs
protected void btn_Login_Click(object sender, EventArgs e) { Service1 objAd = new Service1(); dynamic newResult = string.Empty; try {             newResult = objAd.IsAuthenticatedWithMessage("mbs", txtUserName.Text.ToString(), txtPswd.Text.ToString()); if (newResult.Equals("Authenticated")) {                 createSessionForUser(txtUserName.Text.ToString());                 lblError.Visible = false; } else {                 lblError.Visible = true;                 lblError.Text = "Invalid Username and Password.."; } } catch (Exception ex) { Response.Redirect("ErrorPage.aspx"); } }
How to convert this structure in react js and asp.net mvc any idea would be appreciated.I had completed the setup for react js with asp.net mvc in visual studio 

1 Reply

Know the answer? Post it — somebody with the same question will find it here.