user control

  • Thread starter Thread starter barry
  • Start date Start date
B

barry

I have a <asp:panel defined on a asp.net 1.1 version.

I have some javascript that is executed on an action in the panel. This
works fine.

but

When I put the panel to an ascx file and then try to access the panel in the
same javascript it does not recognized the panel.

Protected WithEvents Panel4 As System.Web.UI.WebControls.Panel - has been
defined in the ascx.vb file



thanks
 
This is the correct syntax in javascript to access the panel(in this case
to make it hidden) from the user control page

document.forms[0]('Panel4').style.visibility = "hidden";
 
Never mind - this hides the whole page
barry said:
This is the correct syntax in javascript to access the panel(in this case
to make it hidden) from the user control page

document.forms[0]('Panel4').style.visibility = "hidden";

barry said:
I have a <asp:panel defined on a asp.net 1.1 version.

I have some javascript that is executed on an action in the panel. This
works fine.

but

When I put the panel to an ascx file and then try to access the panel in the
same javascript it does not recognized the panel.

Protected WithEvents Panel4 As System.Web.UI.WebControls.Panel - has been
defined in the ascx.vb file



thanks
 
Use the Flow Layout Panel in the html toolbox. This will allow you to make
the panel hidden in javascript on a user control
barry said:
Never mind - this hides the whole page
barry said:
This is the correct syntax in javascript to access the panel(in this case
to make it hidden) from the user control page

document.forms[0]('Panel4').style.visibility = "hidden";

barry said:
I have a <asp:panel defined on a asp.net 1.1 version.

I have some javascript that is executed on an action in the panel. This
works fine.

but

When I put the panel to an ascx file and then try to access the panel
in
the
same javascript it does not recognized the panel.

Protected WithEvents Panel4 As System.Web.UI.WebControls.Panel - has been
defined in the ascx.vb file



thanks
 
I'm confused. Which one of you (barry) is asking the questions, and which
one of you (barry) is answering?

Are you, by chance, schizophrenic? Possessed?

:-P,

Kevin Spencer
Microsoft MVP
..Net Developer
Big things are made up of
lots of little things.

barry said:
Use the Flow Layout Panel in the html toolbox. This will allow you to make
the panel hidden in javascript on a user control
barry said:
Never mind - this hides the whole page
barry said:
This is the correct syntax in javascript to access the panel(in this case
to make it hidden) from the user control page

document.forms[0]('Panel4').style.visibility = "hidden";

I have a <asp:panel defined on a asp.net 1.1 version.

I have some javascript that is executed on an action in the panel. This
works fine.

but

When I put the panel to an ascx file and then try to access the panel in
the
same javascript it does not recognized the panel.

Protected WithEvents Panel4 As System.Web.UI.WebControls.Panel - has been
defined in the ascx.vb file



thanks
 

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

Back
Top