Hi rakeshkuma,
You can do it from server side aswell.
Write index or id of accordion pane in which the button was pressed using ClientScript.RegisterStartupScript.
Let user clicks button which is in pane 3 then it will work like.
protected void btnSubmitClick(object sender, EventArgs e)
{
// Button click event code.
int index = 1;
string script = "<script type=\"text/javascript\">var paneIndex = " + index + "</script>";
ClientScript.RegisterStartupScript(typeof(this, script);
}
JavaScript
$(function(){
if(paneIndex){
$('.selector').accordion({active: paneIndex});
} else {
$('.selector').accordion();
}
});