Visibility of added content to other users
I created a hyper link control with ID "H1". Its navigateUrl property and Text Property are set at run time, when user clicks ADD button.
The problem is that my application has roles. So user in role 'Instructor' will
set the url property and Text property of the hyperlink on "course.aspx" form and it is visible.
Following is the code:-
private void btnAdd_Click(object sender, System.EventArgs e)
{
H1.ID = nextID.ToString();
H1.Text = txtUrl.Text;
H1.NavigateUrl = txtUrl.Text;
H1.Visible = true;
//Panel1.Controls.Add(H1);
nextID += 1; // so the next one is plus 1, and so on
}
The problem is that when user in role "student" logins, the added url is not visible to him when he visits the same form "course.aspx".
Actually I created a datagrid with two columns "Courses" and "links"(hyperlink column).
example:
courses links
CRS235 Courses.aspx
both users, students and instructors can click on course link (Courses.aspx)
.Instructor is able to add new URL, but next time when instructor or student logins again/ re-visits "Course.aspx" , URL which is previously set is not visible. So, what should be done, so that added URL is visible?.
What I am trying to achieve in short is "when Instructor adds a URL of course documents. That should be visible to students as well as any other user who visits that page".
Any suggestions?
Thanks,
Srinivas

