lycanhunter
Posts: 11
|
Posted: 04/22/2010, 1:55 PM |
|
Fairly straight forward. adding panel.
<!-- BEGIN Panel mypanel-->
<input id="editvalue" style="WIDTH: 33px; HEIGHT: 22px" onclick="open_win('newsedit.asp?Newsletter_ID={Newsletter_ID}')" type="button" size="4" value="Edit" name="{Newsletter_ID_Name}" />
<!-- END Panel mypanel --></td>
ASP code is simple enough
Function Grid1_mypanel_BeforeShow(Sender) 'Grid1_mypanel_BeforeShow @23-09D2906D
DIM erowWho
erowWho = Session("GroupID")
If erowWho = "Admin" Then
mypanel.visible = true
Else
mypanel.visible = False
End If
End Function 'Close Grid1_mypanel_BeforeShow @23-54C34B28
Variable is declared in the main ASP file. Even though the code is in the mainpage_event.asp page.
The error is Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'mypanel'
/newsletters2_events.asp, line 26
_________________
That is not dead which can eternal Lie.. |
|
|
Mango_Lier
Posts: 110
|
Posted: 04/22/2010, 4:26 PM |
|
Try Grid1.mypanel.visible = true or false.
Look @ the function declaration, it is giving me a clue that mypanel is inside the Grid1. Remember the object hierarchy is same as you see when you expand the component tree on the left.
|
|
|
lycanhunter
Posts: 11
|
Posted: 04/22/2010, 8:31 PM |
|
I had thought I had tried it with Grid1 in front.
What I noticed was I did grid1_Panel1 note the underscore not (.)
once I changed it to Grid1.mypanel.visible it worked beautifully.
Thanks for brain jumpstart.
_________________
That is not dead which can eternal Lie.. |
|
|
|