Click here to Skip to main content
13,152,454 members (37,022 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have an ajax Tabcontainer in my application and inside that I have one asp button and one asp link button placed.

Onclick of asp button I am calling a javascript function where I want to set the display property of link button to block or none according to the condition.

I successfully got the Id's of Button and link button inside tabcontainer but when I set the display property it is not reflecting in the UI.

Please help me in finding the issue...

Same javascript working for other controls outside tabcontainer...

My code is..

<ajax:TabContainer ID="rvwt_webx_tabx" runat="server" BackColor="transparent" Height="300px"
<ajax:TabPanel ID="rvtp_payx_side" HeaderText="Header1" CssClass="rows_scnd"
<asp:Button runat="server" ID="Button1"></asp:Button>
<asp:LinkButton runat="server" ID="Linkbutton1"></asp:LinkButton>
function java_script()
var id=document.getElementById(rvwt_webx_tabx_rvtp_payx_side_Linkbutton1);
if(on condition)"block";

Thanks in advance
Posted 11-Jul-13 1:33am
Ramesh Reddy Kollu 11-Jul-13 8:13am
I found it.....I did a silly mistake...I made Autopostback of the button to false..Its working fine now...
ryanb31 11-Jul-13 8:56am
Remove your question or post this as the solution so that this no longer shows up in the unanswered list.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170924.2 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100