Click here to Skip to main content
16,018,534 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 4 tabs and inside each tab I have an Image button but when I click on any Image button every time that post back to the first active tab and not on the current tab

please advice what should i do

What I have tried:

I have created one div with id "tabs" and I kept the tabs inside this div and then I have written a java script code:

$(function () {
$("#tabs").tabs();
// set hash on tab change
$('#tabs ul li a').click(function () {
location.hash = $(this).attr('href');
});

//maintain hash on post back
$('#<%=Page.Form.ClientID%>').attr('onsubmit', 'this.action += top.location.hash');
})
Posted
Updated 3-Oct-16 5:56am

 
Share this answer
 
 
Share this answer
 
Comments
Member 12749751 3-Oct-16 10:09am    
I have tried this but my problem is not getting solved

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900