0
我有一個web用戶控件,用於Staff中角色的所有用戶。然而,用戶控件也有一些鏈接到其他頁面。問題是,當一個學生登錄。他可以看到一些管理頁面,我只需要他查看不同的超鏈接。如何添加項目,以便學生只能看到他們自己的鏈接比能夠查看管理頁面?將項目添加到Web用戶控件
下面是我的代碼
LoginView control = (LoginView)Master.FindControl("LoginView1");
var con= (StudentsPanel)control.FindControl("StudentsPanel");
if (con!= null)
{
//This is= where i need to load the new items and show them to a student
}
我需要改變,因爲它在StudentsPanel的鏈接在面板上,我不希望他們查看其上的聯繫,但啓動新links..Thanks