Jquery tabs + aspx gridview

illufaple

New Member
I am trying to use jquery ui theme (tabs) in aspx. $(function () { $('#tabs').tabs(); });\[code\]<form id="form1" runat="server"> <div id="tabs"> <ul> <li><a href="http://stackoverflow.com/questions/12248845/#tabs-1">tab 1</a></li> <li><a href="http://stackoverflow.com/questions/12248845/#tabs-2">tab s2</a></li> <li><a href="http://stackoverflow.com/questions/12248845/#tabs-3">tab 3</a></li> </ul> <div id="tabs-1"> tab-1 </div> <div id="tabs-2"> tab-2 </div> <div id="tabs-3"> Gridview is here <asp:Button ID="Button2" runat="server" Height="31px" Text="Button" onclick="Button2_Click" /> </div> </form>\[/code\]now i am calling a function button2_click doing some operation on Gridview but i am getting the errorControl 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server
 
Back
Top