Hi All,
I am playing with jquery tabs using asp/c# .net.
Now I have 3 tabs. each tab contains a button. When you click on the button it should display some text. So My problem is if i click on the 2nd tab button it is loading the first tab as a result of the postback. I want to see 2nd tab open if I click on the 2nd tab button, and I want 3rd tab open if i click on the 3rd tab button with its results.
So in my .cs file I am using in my 2nd tab button click I am calling below method.
private void LoadsecondTab()
{
ClientScriptManager scriptmanager = Page.ClientScript;
if (!scriptmanager.IsClientScriptBlockRegistered(this.GetType(), "PreselectTab2"))
{
StringBuilder scriptBlock = new StringBuilder();
//scriptBlock.AppendLine("$('#container-8').tabs('select', 1);");
scriptBlock.AppendLine("$('#container-8').triggertab(1);");
scriptmanager.RegisterStartupScript(this.GetType(), "PreselectTab2", scriptBlock.ToString(), true);
}
}
Any other suggestions to make it work?