//4m Here i coltrol the visibility of tab_1 and tab_2.
//both the two tab cant b visible at the same time
}
<up_1>
<cp_1>
<tab_1> //initially display:none
btn_1 //cause full postback
</cp_1>
</up_1>
<up_2>
<cp_2>
<tab_2> //initially display:none
btn_2 //cause full postback
</cp_2>
</up_2>
Now my prob is that ...... if i click onn btn_1 then tab_1 should display:block after fullpostback and the other tab i.e. tab_2 will b display:none automatically and vice-versa.
due to some design issue i can not do it 4m server side. can i find the btn 4 which causes fullpostback and check the value in the js() so that i can handel the visibility of tab_ & tab_2.
In your js code js() pass the control id like js(linkcontrol), or some way identitfy the control inside the js() function. In the js function save the control id for which click happen save it to a hidden field. After postback read the hidden field and maake
your desired control visible.
Thanks & Regards
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
Marked as answer by AXEL BLAZE on May 09, 2012 01:46 AM
AXEL BLAZE
Member
65 Points
110 Posts
Find FullPostBack Cause
May 04, 2012 06:22 AM|LINK
link_1 //My 1st link out side of updatepanel
link_2 //My 2nd link outside of up
js() // link_1 and lin_2 both call this same js()
{
//4m Here i coltrol the visibility of tab_1 and tab_2.
//both the two tab cant b visible at the same time
}
<up_1>
<cp_1>
<tab_1> //initially display:none
btn_1 //cause full postback
</cp_1>
</up_1>
<up_2>
<cp_2>
<tab_2> //initially display:none
btn_2 //cause full postback
</cp_2>
</up_2>
Now my prob is that ...... if i click onn btn_1 then tab_1 should display:block after fullpostback and the other tab i.e. tab_2 will b display:none automatically and vice-versa.
due to some design issue i can not do it 4m server side. can i find the btn 4 which causes fullpostback and check the value in the js() so that i can handel the visibility of tab_ & tab_2.
___Help me Please. Thanks in adv.
asteranup
All-Star
30184 Points
4906 Posts
Re: Find FullPostBack Cause
May 04, 2012 07:00 AM|LINK
Hi,
In your js code js() pass the control id like js(linkcontrol), or some way identitfy the control inside the js() function. In the js function save the control id for which click happen save it to a hidden field. After postback read the hidden field and maake your desired control visible.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog