for each myControl in form1.controls
dim pos1 as integer=instr(leng+2,myControl.id,"-")
if left(myControl.id,leng+1)=str1 and pos1=0 then myControl.visible=true
next
else
Sender.ImageUrl="close.gif"
for each myControl in form1.controls
dim str0 as string=myControl.id
if left(myControl.id,leng+1)=str1 then
dim dTable as table
dtable=ctype(myControl,table)
if dtable.controls.count>0 then
dim rowControl as control
for each rowControl in dtable.controls
dim drow as tablerow
drow=ctype(rowControl,tablerow)
if drow.controls.count>0 then
dim cellControl as control
for each cellControl in drow.controls
dim dcell as tablecell
dcell=ctype(cellControl,TableCell)
if dcell.controls.count>0 then
dim imageControl as control
for each imageControl in dcell.controls
dim dimage as imageButton
dimage=ctype(imageControl,imageButton)
dimage.ImageUrl="close.gif"
next
end if
next
end if
next
end if
myControl.visible=false
end if
next
end if
End Sub
&n
dim pos1 as integer=instr(leng+2,myControl.id,"-")
if left(myControl.id,leng+1)=str1 and pos1=0 then myControl.visible=true
next
else
Sender.ImageUrl="close.gif"
for each myControl in form1.controls
dim str0 as string=myControl.id
if left(myControl.id,leng+1)=str1 then
dim dTable as table
dtable=ctype(myControl,table)
if dtable.controls.count>0 then
dim rowControl as control
for each rowControl in dtable.controls
dim drow as tablerow
drow=ctype(rowControl,tablerow)
if drow.controls.count>0 then
dim cellControl as control
for each cellControl in drow.controls
dim dcell as tablecell
dcell=ctype(cellControl,TableCell)
if dcell.controls.count>0 then
dim imageControl as control
for each imageControl in dcell.controls
dim dimage as imageButton
dimage=ctype(imageControl,imageButton)
dimage.ImageUrl="close.gif"
next
end if
next
end if
next
end if
myControl.visible=false
end if
next
end if
End Sub
&n
| 对此文章发表了评论 |

