Aspx.cs
FieldsLogin fls = new FieldsLogin();
fls.EmailId =txtemail.Text;
fls.Password = txtpwd.Text;
if (fls.EmailId> 0) // Error':input string not in the correct formate
{
Response.Write("Sucess");
}
else
{
Response.Write("Error");
}
Model(Loginfields):
public class FieldsLogin
{
public string EmployeeName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string ConfirmPassword { get; set; }
public string EmailId { get; set; }
public string PhoneNo { get; set; }
public string Address { get; set; }
}
}
Loading
Sukesh MarlaPosted Aug 13, 2012, 11:40 AM
There were lots bugs in the solution u have provided.. That's why i was unable to point out individual ones. :)
PLease fild solved solution
And don't forget click this is correct answers if it helped :)
KRayudu VPosted Aug 12, 2012, 11:58 PM
so,please check the two solutions and please tell me how to write code for the login page in asp.net mvc pattern
KRayudu VPosted Aug 12, 2012, 11:54 PM
Actully,im trying login page in "ASP.Net MVC Pattren" im not able to able to get the "count".i tried in different ways(Code).but in not abel to get login in "asp.net mvc pattren".So,please check my project solution and let me know that how to write code for this
its helps me a lot
here is my attached file of login
Sukesh MarlaPosted Aug 12, 2012, 2:40 PM
Is it the new one if yes, Please elaborate the problem little bit more
If your last problem was solved please check this is currect answer.
KRayudu VPosted Aug 12, 2012, 2:09 PM
I'm trying login page in "asp.net mvc design patter",im unable to implement the code in mvc design pattern for login.so,could you help me how to write code for asp.net mvc design pattern.
Here is my attached login solution,please refer my code and let me know how can i do login in asp.net mvc design pattern
Sukesh MarlaPosted Aug 12, 2012, 9:29 AM
if (fls.EmailId!=string.Empty) // Error':input string not in the correct formate
{
Response.Write("Sucess");
}
else
{
Response.Write("Error");
}
OR
if (fls.EmailId.length> 0) // Error':input string not in the correct formate
{
Response.Write("Sucess");
}
else
{
Response.Write("Error");
}
both will work
Hope It Helped. Please Check This is Currect Answer.