like morningZ said your probably looking for this... ClientScript.RegisterStartupScript(typeof (<<page class name>>), "startupTabScript", "<<javascript to select correct tab>>", true);
The pain is knowing what the last tab they selected was. But in your case if the button they clicked was on that tab then it sounds pretty straight forward. On Jul 23, 1:34 pm, MorningZ <morni...@gmail.com> wrote: > "onclick event" would be: > > - in the aspx's code? > - on the client? > > if it is in the code, then any running of that postback code is going > to cause a page reload, and consequent defaulting to the first tab by > default.... > > if you want the new page reload to stay on the current tab, then you > would emit some client script (using Page.ClientScript) object to call > the Tabs' event that will switch the tab > > On Jul 23, 9:49 am, noorul <noorulameen...@gmail.com> wrote: > > > I have five div tags(jquery tabs) in my aspx page...Inside the second > > div(tab) i have a button. onclick of that buttton the second div(tab) > > should be switched..instead of that the first tab is coming.. How can > > i switch the tab in code behind(Inside button onclick event)...