Skip to content

Jquery and asp.net button click problem

PUNEET BISHT

Asked Sep 18, 2012, 1:24 AM EDT3 answers
Share
LinkedInX
I am using jquery tabs in asp.net web page. like this-


                               

  •                            
  • tab2

  •                            
  • tab3

  •                        

                           
                           

                                  .... some code..............



i have a asp.net button control in which clientclickevent() i am validating some text boxes and giving tab title like this   $("#tab1").text(" test title");
tab contain a repeater control.

 OnClientClick="if (!enable_tabs()) {return false;}"   onclick="btn_find_trains_Click" /> 




when i click on the button initially tabs show the title but when the data binds in repeater control , title dissappears,

i tried update panel but nothing happens.

Any suggestions

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Anis Smile
    0

    use this line of code to appear ur tab once data bind in repeater control

      document.getElementById('tab1').style.visibility = "visible";

    0
  • 0
    did this but nothing happened. tab is actually visiable true, it shows the title before binding data in repeater control but when postback occurs text disappears from tab
    0
  • Anis Smile
    0
    can u post ur full code will test it and clear ur problem.
    0