Posted on: 5/21/2013 5:46:19 PM | Views : 219

I want to export the data to excel from gridview in asp.net, my code export the data to excel, but i do not get the save as dialog box to save the file at your own location, i want the save as dialog box, the code i use is below.
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <div> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Height="20px" ontextchanged="DropDownList1_TextChanged" Width="140px"> </asp:DropDownList> </div> <br /> <div> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Allolor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" PageSize="15" AllowPaging=& ...

Go to the complete details ...