surojit


{ City } kolkata
< Country > india
* Profession * software developer
User No # 14165
Total Questions Posted # 0
Total Answers Posted # 3

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 12
Users Marked my Answers as Wrong # 2
Questions / { surojit }
Questions Answers Category Views Company eMail




Answers / { surojit }

Question { 4668 }

What?s the difference between and XML
documentation tag?


Answer

What’s the difference between and XML
documentation tag?
Single line code example and multiple-line code example.

Is This Answer Correct ?    7 Yes 1 No

Question { 5269 }

What?s the difference between the Debug class and Trace
class?


Answer

What’s the difference between the Debug class and Trace
class? Documentation looks the same. Use Debug class for
debug builds, use Trace class for both debug and release
builds.

Is This Answer Correct ?    2 Yes 1 No


Question { 3787 }

give suitable code for all login controls


Answer

protected void Login1_Authenticate(object sender,
AuthenticateEventArgs e)
{ string u_id=Login1.UserName;
string pwd=Login1.Password;

SqlConnection con = new
SqlConnection("uid=sa;pwd=nivt;server=.;database=jobportal");
try
{
con.Open();
SqlDataAdapter da = new SqlDataAdapter("select *
from rec_registration where rec_username='" + u_id + "'", con);
DataSet ds = new DataSet();
da.Fill(ds);
if (Login1.UserName ==
ds.Tables[0].Rows[0][0].ToString() && Login1.Password ==
ds.Tables[0].Rows[0][1].ToString())
{
Session["rec_uid"] = u_id;
Session["rec_uname"] =
ds.Tables[0].Rows[0][3].ToString();
Session["rec_type"] =
ds.Tables[0].Rows[0][5].ToString();

Response.Redirect("rec_home.aspx");

}
else
{
Label2.Text = "Invalid Username/Password:";

}
}
catch(Exception ex)
{
Label3.Text = ex.Message.ToString();
Label2.Text = "Invalid Username";

}
finally
{
if (con.State == ConnectionState.Open)
{
con.Close();
}
}

}

Is This Answer Correct ?    3 Yes 0 No