How to enable Image button from anoter frame

R

Rod

Hi!
I have 2 frames called "Left" and "Main".
In the "main" I have this imagebutton (the enabled property is set to
"False"):

<form id="Form1" method="post" runat="server">
<asp:imagebutton id="ImgBtProdotti" runat="server"
imageurl="/image.jpg"></asp:imagebutton>
</form>

In the frame "Left" I have a butto and on the "click" event I want to
"enable" the "ImgBtProdotti".
I wrote :

s = "<script language='javascript'>" & vbCrLf & "<!--" & vbCrLf &
"window.parent.frames['Main'].document.all('ImgBtProdotti').enabled = True;"
& vbCrLf & "//-->" & vbCrLf & "</script>"
Response.Write(s)

But It doesn't work. The error is : True is not defined.



Could anyone help me ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top