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 ?
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 ?