Vajad kellegagi rääkida?
Küsi julgelt abi LasteAbi
Logi sisse
Sulge

"throwonpopulatedrole" - 2 õppematerjali

Veebistuudium arendus ASP NET
212
docx

Veebistuudium arendus ASP.NET

cmd.CommandText = "CreateRole_proc"; cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionStri ng); cmd.Parameters.AddWithValue("@RoleName", roleName); cmd.Connection.Open(); cmd.ExecuteNonQuery(); cmd.Connection.Close(); } } public override bool DeleteRole(string roleName, bool throwOnPopulatedRole) { bool tulemus = false; if (HttpContext.Current.User.IsInRole("ADMINISTRATORS")) { SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionStri ng); cmd.Parameters.AddWithValue("@RoleName", roleName); cmd.Connection.Open(); if (throwOnPopulatedRole)

Informaatika → Veebiprogrammeerimine
26 allalaadimist
Nimetu
575
docx

Nimetu

cmd.CommandText = "CreateRole_proc"; cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionString); cmd.Parameters.AddWithValue("@RoleName", roleName); cmd.Connection.Open(); cmd.ExecuteNonQuery(); cmd.Connection.Close(); } } public override bool DeleteRole(string roleName, bool throwOnPopulatedRole) { bool tulemus = false; if (HttpContext.Current.User.IsInRole("ADMINISTRATORS")) { SqlCommand cmd = new SqlCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["yhendusTekst"].ConnectionString); cmd.Parameters.AddWithValue("@RoleName", roleName); cmd.Connection.Open(); if (throwOnPopulatedRole)

Informaatika → Informaatika
33 allalaadimist


Sellel veebilehel kasutatakse küpsiseid. Kasutamist jätkates nõustute küpsiste ja veebilehe üldtingimustega Nõustun