//Its code m using in .cs file
String hiddenFieldValue = Request.Form["theHiddenTabIndex"] ?? "0";
StringBuilder js = new StringBuilder();
js.Append("<script type='text/javascript'>");
js.Append("var previouslySelectedTab = ");
js.Append(hiddenFieldValue);
js.Append(";</script>");
this.Header.Controls.Add(new LiteralControl(js.ToString()));
//and they are the code which i used in aspx page
<script type="text/javascript">
$(document).ready(function() {
var index = 0;
var tabIndex = $('#<%= hidLastTab.ClientID %>').val();
if (tabIndex != " ") {
index = tabIndex;
}
$("#tabs").tabs({
select: function(event, ui) {
$('#<%= hidLastTab.ClientID %>').val(ui.index);
},
selected: parseInt(parseInt(tabIndex))
});
});
function pageLoad(sender, args) {
if (args.get_isPartialLoad()) {
setAccordion();
setTabs();
}
}
</script>