Hi,
I failed to manage roles by code and web confg. so I used the code easily I have a table Security of my database (login,password,profil) and a login.aspx page and I need to open pages in each service to the people of this service .is this correct? can I combine the files into folders?
I must change the file wb.config?
my code:
protected void Button7_Click(object sender, EventArgs e)
{
SqlConnection aCon = new SqlConnection(@"Data Source=.\SQLEXPRESS;UID=sa;Password=******;Initial Catalog=xxxxx");
aCon.Open();
String rqtr3 = " SELECT * FROM SECURITE WHERE LOGIN = '" + Textbox3.Text + "' AND PASSWORD='" + TextBox12.Text + "'";
SqlCommand cmr3 = new SqlCommand(rqtr3, aCon);
SqlDataReader drr3 = cmr3.ExecuteReader();
while (drr3.Read() == true)
{
TextBox2.Text = drr3["PROFIL" ...
Go to the complete details ...