Introduction: In this post I try to explain how we can
download the file from Gridview Data Control.
Description:
I have created a table name DOWNLOAD_ASSIGNMENT. Here ID is
primary key.
ID
|
int
|
CLASS
|
varchar(50)
|
ASSIGNMENT
|
varchar(MAX)
|
Add the Connectionstring in web.config file of website.
<configuration>
<connectionStrings>
<add name="con" connectionString="Data Source=SYS-1F78031ED0A;Initial
Catalog=TestBlog;Integrated Security=True"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
</configuration>
Add a new webform to project. Drag and drop the Gridview
Data Control from Toolbox.