Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Style of panel control

Reply
Thread Tools

Style of panel control

 
 
simon
Guest
Posts: n/a
 
      05-14-2004
I have linkButton:
<asp:LinkButton CommandArgument='<%#
DataBinder.Eval(Container.DataItem,"con_ID") %>' CommandName="contact"
ID=lnkContact Runat=server><li><%#
DataBinder.Eval(Container.DataItem,"contact") %></li></asp:LinkButton>

and panel:

<aspanel style="position:absolute;top:100;left:100" Width=300 Height=300
Runat=server ID=pnlContact Visible=False></aspanel>

on the page.
When user clicks this link button I show the panel:

pnlContact.visible=true

Now I would like to set the left and top parameter of panel style to be the
same as position of link button on the page.

How can I do that?

Thank you,
Simon


 
Reply With Quote
 
 
 
 
avnrao
Guest
Posts: n/a
 
      05-14-2004
there are many ways to achieve this..

set your page to flow layout. MS_POSITIONING="FlowLayout" for the body tag.
and place the link button inside a panel. set the link button panel visible
to false and the other panel to true.

or in design mode, drag/drop link button and panel one on to other..

or set left/top positions for link button initially. and
RegisterStartupScript to get left/top positions and assign them to panel.

Av.


"simon" <(E-Mail Removed)> wrote in message
news:%23x%(E-Mail Removed)...
>I have linkButton:
> <asp:LinkButton CommandArgument='<%#
> DataBinder.Eval(Container.DataItem,"con_ID") %>' CommandName="contact"
> ID=lnkContact Runat=server><li><%#
> DataBinder.Eval(Container.DataItem,"contact") %></li></asp:LinkButton>
>
> and panel:
>
> <aspanel style="position:absolute;top:100;left:100" Width=300 Height=300
> Runat=server ID=pnlContact Visible=False></aspanel>
>
> on the page.
> When user clicks this link button I show the panel:
>
> pnlContact.visible=true
>
> Now I would like to set the left and top parameter of panel style to be
> the
> same as position of link button on the page.
>
> How can I do that?
>
> Thank you,
> Simon
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Java Control Panel in START menu->Control Panel: Diff javacpl.cpl and javacpl.exe? Robin Wenger Java 0 08-18-2011 06:38 AM
Why is there no "Java Control Panel" for J2EE v5upd14 ? Reinstall Java Control Panel possible? Ulf Meinhardt Java 0 07-07-2009 08:38 AM
Delete a panel inside a panel HS1 Java 3 12-07-2004 10:50 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
Email From Forms with asp:panel.(s) Only one panel works? Harry ASP .Net 3 11-10-2003 03:13 AM



Advertisments