Dear All, i am very thankful to all of you and this platform as this forum is providing solutions in a very short time.
Here is my another question.
Background of Question: After authentication of user, system will fetch the user right against userid (one who is logg in) and on the basis of these rights the system will lock and unlock the list index
What I have tried:
the page where i have made menu work
<asp:content id="Content2" contentplaceholderid="MenuPlaceHolder" runat="Server">
Dashboard
Change Password Suggestions/Comments Logout<asp:content id="Content3" contentplaceholderid="TitleMenu" runat="Server">
Dashboard
<asp:content id="Content4" contentplaceholderid="ContentPlaceHolder2" runat="Server">
----------------------------------------
calling function
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Is_User_Currently_Log_In"] == null)
{
Response.Redirect("Login.aspx");
}
AssignUserRight();
return;
}
--------------------------------------------
function
public void AssignUserRight()
{
DataTable dt = new DataTable();
dt = (DataTable) Session["S_User_Rights"];
if (dt.Rows.Count>0)
{
int intTotalRecFound;
string strUserCanChangePassword;
string strUserCanComment;
string strUserCanHandleSetting;
strUserCanChangePassword = "No";
strUserCanComment = "No";
strUserCanHandleSetting = "No";
intTotalRecFound = dt.Rows.Count;
string strTempUsrRight;
strTempUsrRight = "";
for (int i = 0; i < intTotalRecFound; i++)
{
strTempUsrRight = dt.Rows[i][0].ToString();
if (strTempUsrRight=="User Can Change Password")
{
strUserCanChangePassword = "Yes";
}
if (strTempUsrRight == "User Can Handle Setting")
{
strUserCanHandleSetting = "Yes";
}
if (strTempUsrRight == "User Can Comments")
{
strUserCanComment = "Yes";
}
}
if (strUserCanHandleSetting=="Yes")
{
this.(here i want To know how to pick that List index)
Recordings
}
}
else
{
this.lblMonitoringError.Text = "Unable To Allocate User Rights, Contact Your Software Developer";
return;
}
}