Click here to Skip to main content
11,641,067 members (57,499 online)
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 1: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 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 145
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 380
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 125
4 Afzaal Ahmad Zeeshan 89

Advertise | Privacy | Mobile
Web03 | 2.8.150731.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