Yetkiye göre grid içerisindeki komutları kontrol etmek

Read Time:32 Second
               
               
               

if (Convert.ToInt32(HttpContext.Current.Session[“USERYetki”].ToString()) == 2)
            {
                if (e.Row.RowType == DataControlRowType.DataRow)
                {
                    e.Row.Cells[2].Enabled = false;
                    e.Row.Cells[2].Text = null;
                }
            }

About Post Author

Sayfa Yoneticisi

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Previous post penetrasyon testleri
Next post sql’de select sorgusunda koşul-if yapısı