I want to display a gridview in alert message like alert(' <asp:GridView ID="gv1" runat="server" DataSourceID="SqlDataSource1"></asp:GridView>') and binding the sqldatasource with select * from tables. Something like this is there any solution. Thanks in advance.