Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
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 OriginalGriff 335
1 Peter Leow 135
2 Zoltán Zörgő 130
3 Afzaal Ahmad Zeeshan 115
4 DamithSL 100
0 Sergey Alexandrovich Kryukov 7,442
1 OriginalGriff 5,996
2 Peter Leow 4,292
3 CHill60 2,858
4 Mika Wendelius 2,850

Advertise | Privacy | Mobile
Web01 | 2.8.150224.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