html {
height: 100%;
}
body {
margin: 0;
padding: 0;
height: 100%;
}
.content {
width: 960px;
min-height: 100%;
}
if (Session.['User'] == "ADMIN") {то...}
protected void dvPurchase_DataBound(object sender, EventArgs e)
{
DropDownList ddl_Text = (DropDownList)dvPurchase.FindControl("ddl_Text");
if (dvPurchase.CurrentMode == DetailsViewMode.Insert)
{
loadCategoryList();
Label1.Text = "Insert";
}
if (dvPurchase.CurrentMode == DetailsViewMode.Edit)
{
loadCategoryList();
Label1.Text = "Edit";
}
if (dvPurchase.CurrentMode == DetailsViewMode.ReadOnly)
Label1.Text = "ReadOnly";
}
li:hover
{
background-color:#ff0000;
border-top: 2px solid blue;
border-bottom: 2px solid blue;
}
JOIN
SELECT COUNT(users_guests.id_user ) AS любое название
FROM `users `, 'users_guests'
WHERE 'users.gender' = "Мужской" AND 'users.active' = "Y"
AND 'users.id' = 'users_guests.id
if (Session[Role] == "READ") {
...
}
public static bool AuthorizedToEdit()
{
bool check = false;
if (HttpContext.Current.Session["ROLE"].ToString() == "WRITE")
{
check = true;
}
else
check = false;
return check;
}
btnDelete.Visible = Utilities.AuthorizedToEdit();