Click here to Skip to main content
Rate this: bad
good
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"
                Width="842px">
<ajax:TabPanel ID="rvtp_payx_side" HeaderText="Header1" CssClass="rows_scnd"
                    runat="server">
                    <ContentTemplate>
<asp:Button runat="server" ID="Button1"></asp:Button>
<asp:LinkButton runat="server" ID="Linkbutton1"></asp:LinkButton>
                  </ContentTemplate>
                </ajax:TabPanel>
            </ajax:TabContainer>
 
function java_script()
{
var id=document.getElementById(rvwt_webx_tabx_rvtp_payx_side_Linkbutton1);
if(on condition)
id.style.display="block";
}

 
Thanks in advance
Posted 11-Jul-13 2:33am
Comments
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 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


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