|
Is there a way (or even better an article) to dynamically make zip files in ASP?
What I need to do is return a zip file containing a couple of files when the user clicks on a link. Which zip files depend on which links the user clicks on.
So for example:
Link A returns rar.txt, genericfile.txt.
Link B returns omg.txt, genericfile.txt.
Link C returns lol.txt, genericfile.txt.
Link D returns wassup.sys, genericDLL.dll, readme.txt.
So as you can see in my example, Links A-C return a generic file and file specific to the link, while Link D returns a generic dll a readme file and a link specific file.
Now all the files are listed in a database, and I already know how to get the filepath from the database. So all I really need is asp code that will make a zip file from passed in parameters.
- Munty
-- modified at 6:13 Friday 9th March, 2007
|
|
|
|
|
What you want to do ? Add this file to zip or Unzip the files
if the option is second then only you have to give address of zip file in the link rest of browser will take care for that
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
By ASP you do mean ASP.NET right? Have a look at the System.IO.Compression classes.
|
|
|
|
|
|
How to decrypt the encrypted value stored in database, then the decrypted value should be displayed in textbox..Please send me a detailed code
|
|
|
|
|
vijay_83 wrote: decrypt the encrypted value stored in database,
Without knowing the encrypted algorithm how can you ?
|
|
|
|
|
I have problem for display image on image control with Asp.Net 1.1 and C#. Thats I want to display image on control when I select image file from my PC.
|
|
|
|
|
Select image means what ? Can you post the code for it ? Again ytpe of image you are selecting ?
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
how can i display a popup window when i click a link on a datagrid?
thks
yesu
|
|
|
|
|
Page.RegisterStartupScript("scriptPopup","var nWin = window.open('map.aspx?Id=" + ID + "')");
ID is the identification number if you want to pass to the particular page.
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
call Javascript fuction on link button event.
Best Regard
Pathan
GOD HELP THOSE WHO HELP THEMSELF
|
|
|
|
|
just add target = "_blank" to the hyperlink html property
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
i am making web application using C# , asp.net ,sql2000 ( visual studio 2005).
i am using following code on button_click
protected void Button1_Click(object sender, EventArgs e)
{
ReportViewer1.Visible = true;
setting = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"];
if (setting != null)
{
conn = new SqlConnection(setting.ConnectionString);
cmd = new SqlCommand("ShowProductByCategory", conn);
cmd.CommandType = CommandType.StoredProcedure ;
cmd.Parameters.Add("@CategoryName", SqlDbType.VarChar);
cmd.Parameters["@CategoryName"].Value = DropDownList1.SelectedItem.Text;
da = new SqlDataAdapter(cmd);
ds = new DataSet();
da.Fill(ds, "datas" );
ReportDataSource datasourse = new ReportDataSource("datasetprodiuct",ds.Tables["datas"]) ;
//datasourse.Value = ds;
//ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(datasourse) ;
if (ds.Tables["datas"].Rows.Count == 0)
{
lblmessage.Text = "sorry";
}
//ReportViewer1.LocalReport.Refresh();
}
}
i am trying to generate report using reportviewer but getting following error
An error has occurred during report processing. ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'GetData' that has no parameters.
Please help.
thanks
regards
imran khan
|
|
|
|
|
i want to pass an arraylist from my client to the web service but it is giving a serialization error...
|
|
|
|
|
What objects does the arraylist contain?
|
|
|
|
|
it contains string values
|
|
|
|
|
Can you post some code? If the arraylist is part of another object you have to mark the object and the arraylist properties as Serializable
|
|
|
|
|
I think for passing objects to webservice you need to searialize the objects
|
|
|
|
|
Hi i have doubt how to use vb codes in asp.net,
Magi
|
|
|
|
|
My friend Google is best friend for you Please take help from it
VB is language you can use it by adding language=VB or something like that
But definatly you will get more problems while devloping thats why i am suggesting you refer Google
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thanks
Magi
|
|
|
|
|
Magh_M wrote: ow to use vb codes in asp.net,
Convert your vbcode into dll and refer that here
|
|
|
|
|
Morning
am a beginner in (programming)asp.net(vb).Please help me with the code,After the user selected the value from the dropdownbox,and enter some in the textboxes,when the user click add entry(button),the values to be anded to the database and be displayed in the datagrid,for modification.
Thank you in Advance.
oga m
|
|
|
|
|
Explaining the entire thing through forums is space consuming. so try to get some article explaining
1. SQLConnection class
2. SQLCommand
3. Executing query to SQL DB
Oga M wrote: displayed in the datagrid,for modification.
Getting value to some dataset and use datagrids datasource property to display it on grid
|
|
|
|
|
In sqlcmd write insert query,
after that using dataadapter get the table,
then fill it in to dataset,
then datasource put it in to datagrid,
then bind the data in datagrid using databind,
Magi
|
|
|
|