Click here to Skip to main content
11,496,146 members (611 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: C#2.0
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 2:33am
Ramesh Reddy Kollu at 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 at 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
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2015
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