You can use GZIp open source for zipping and unzipping the files. Please refer: http://aspalliance.com/1287_Compression_and_Decompression_of_Files_using_Visual_Basic_2005.all
Regarding the download link, once you Zip the files keep it in a seperate folder and use below code to show the files as hyperlink to download,
private void showFileUploadedAsHyperlink()
{
DirectoryInfo di = new DirectoryInfo(Server.MapPath("~/Uploads/"));
FileInfo[] fi = di.GetFiles();
StringBuilder sb = new StringBuilder();
foreach (FileInfo fileinfo in fi)
{
sb.Append("" + fileinfo.Name + "
");
}
literalList.Text = sb.ToString();
}
Search This Blog
Monday, October 10, 2011
Update dotnet: How to Capture The User Information When he was cl...
Update dotnet: How to Capture The User Information When he was cl...: As per your requirements, while closing the website, you need to store some details in the database. For this I think you need t write in ...
How to Capture The User Information When he was closing the closing the application
As per your requirements, while closing the website, you need to store some details in the database.
For this I think you need t write in the Application_End event of global.asax.
So whatever the information you want to store to the database, you need to get that information to the Application_End event and then write the database stuff to store the data into database.
To do this, while closing the application, create an event handler which will give you the details and take those details to Application_End event.
For this I think you need t write in the Application_End event of global.asax.
So whatever the information you want to store to the database, you need to get that information to the Application_End event and then write the database stuff to store the data into database.
To do this, while closing the application, create an event handler which will give you the details and take those details to Application_End event.
How to Get gridview control child control id
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList ddl = sender as DropDownList;
GridViewRow grow = (GridViewRow)ddl.NamingContainer;
string ControlID = ((DropDownList)grow.FindControl("DropDownList1")).ID;
}
{
DropDownList ddl = sender as DropDownList;
GridViewRow grow = (GridViewRow)ddl.NamingContainer;
string ControlID = ((DropDownList)grow.FindControl("DropDownList1")).ID;
}
Subscribe to:
Posts (Atom)