afrausto
Posts: 66
|
Posted: 11/20/2008, 11:37 AM |
|
Hello,
I know how to preform this in Classic ASP, but I'm not finding the CCS Help section useful using .NET. Can someone please tell me how to hide a Grid using VB.Net. I'm hiding the grid based on the user group of the logged in user.
Thanks for you help.
|
|
|
Tuong Do
|
Posted: 12/04/2008, 1:58 PM |
|
There are 2 ways to do this
The first way is the easiest
That is on the grid property, select Retricted to 'Yes' and select only the
group that you want to be able to see the grid.
The second way is, say for example the grid name is TASK
On the before show event of the TASK grid
'Grid TASK Event BeforeShow. Action Custom Code @68-73254650
' -------------------------
' Write your own code here.
If Session("GroupID") = "The group ID" Then
TASKRepeater.visible = false
End If
' -------------------------
'End Grid TASK Event BeforeShow. Action Custom Code
"afrausto" <afrausto@forum.codecharge> wrote in message
news:84925bc668c65e@news.codecharge.com...
> Hello,
>
> I know how to preform this in Classic ASP, but I'm not finding the CCS
> Help
> section useful using .NET. Can someone please tell me how to hide a Grid
> using
> VB.Net. I'm hiding the grid based on the user group of the logged in user.
>
> Thanks for you help.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>
|
|
|
|