How to call the specific page's control?

G

Guest

Hi all,
Have any ideas for the above question?
for example, in pageA, i call pageB's buttonA.visible=false.

thank you in advance.

best regards,
GL
 
C

Curt_C [MVP]

Daniel said:
Hi all,
Have any ideas for the above question?
for example, in pageA, i call pageB's buttonA.visible=false.

thank you in advance.

best regards,
GL

pageB doesnt exist yet most likely. You will have to pass a param to
pageB when its called to open/show.
 
G

Guest

thanks for reply.
my major concern is:
i have user control that content link button.
while i mouse over the link button, the sub list of buttons will be visible
in the pageA and under the mouseover link button.
the problem is, i am using the Grid Layout Panel to store the sub list of
button.

So, how to call the sub list button to be visible/hide?

Or have other ideas to show the sublist button.

The reason i dont wan to put the sublist button in the same user control
because the user control i put on the page A have a limited space.
 
G

Grant Merwitz

To hide and show these list of buttons on Mouse Over, you gonna have to use
JavaScript.
What you hiding and showing, however, doesn't need to be in the same
control.
They could be in seperate controls, but on the same page.

You would then hide the second control in a Div Tag for example, and you
could set its visibility property on mouse over.
 
G

Guest

Other than Javascript..no other solution?
Usually how to create personal toolbar user control with submenu?
for example button A in toolbar may have button A1,button A2 after mouseover
the button A.

Any ideas?
thank you in advance.

best regards,
GL
 
C

Curt_C [MVP]

Daniel said:
Other than Javascript..no other solution?
Usually how to create personal toolbar user control with submenu?
for example button A in toolbar may have button A1,button A2 after mouseover
the button A.

All the stuff you are talking about is clientside activity, that's why
the javascript method is pushed. Otherwise you would need a postback to
do your stuff, not really a good way for menu's, etc.
 
E

Eliyahu Goldin

Unless you put pageA and pageB in separate frames/iframes, they don't live
in the same time. When the server is busy with PageA, there is no PageB and
vice versa. You can pass info from one page to another in a number of ways,
but you can't call another page's property directly. If you do put the pages
in separate frames, you can call one page from another on client side with
javascript.

Eliyahu
 
G

Grant Merwitz

Attached is a basic example

If you do not want to use JacaScript, you'll have to do this ServerSide,
which will invole a postback
 
E

Eliyahu Goldin

There is only one page in the scenario you are describing. Anyway, it's a
client-side task. You need to write javascript event handlers for mouseover
and mouseout events. In the handlers you need to find the panel or the other
buttons and to set their style attributes "display" or "visibility".

Eliyahu
 
E

Eliyahu Goldin

The only way out is to find a third party control. It will do all
javascripting for you. As Curt said, a server-side solution is not a good
idea. Too slow.

Eliyahu
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top