Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Global parameters are becoming null Pin
Yaniv___26-May-08 0:44
Yaniv___26-May-08 0:44 
Questionconvert date Pin
ptvce24-May-08 1:15
ptvce24-May-08 1:15 
QuestionProblem in opening the project ? Pin
Assaf8224-May-08 0:26
Assaf8224-May-08 0:26 
AnswerRe: Problem in opening the project ? Pin
gnjunge25-May-08 1:33
gnjunge25-May-08 1:33 
QuestionHow to resolve this errors on running the tabstrip sourcecode downloaded from same website? Pin
puneetneema23-May-08 23:52
puneetneema23-May-08 23:52 
AnswerRe: How to resolve this errors on running the tabstrip sourcecode downloaded from same website? Pin
N a v a n e e t h24-May-08 7:53
N a v a n e e t h24-May-08 7:53 
QuestionUsing custome web parts in share point 2007 [modified] Pin
Rameshjpc23-May-08 23:38
Rameshjpc23-May-08 23:38 
QuestionCaching an HttpFileCollection Pin
ShimnaMukundan23-May-08 23:19
ShimnaMukundan23-May-08 23:19 
Hi All,

I got a problem with saving the uploaded files by client to the server.
Since the files should be uploaded only when the form is completed which is in MultipleView control with the multiple file upload in the very first view, i took the entire Httpfilecollection into Cache on the first button click and saves it from the cache at the save button click. It is working fine in local machine but not when the application is published.
The multiple file upload is working in another form where im saving the files in the first button click itself so here the problem is with the caching the HttpFile Collection.

This is my code

in first button click
---------------------------
HttpFileCollection filecollection = Request.Files;
if (filecollection.Count > 0)
{
Cache.Insert("filecollection", filecollection, null, DateTime.MaxValue, TimeSpan.Zero);
}

in the save button click
----------------------------
HttpFileCollection filecollection = (HttpFileCollection)Cache["filecollection"];
if (filecollection != null)
{
if (filecollection.Count > 0)
{
for (int i = 0; i < filecollection.Count; i++)
{
HttpPostedFile newfile = filecollection[i];
if (newfile.FileName != "")
{
\\Code to save file
}

}
}
}


Please Help me on this Sigh | :sigh:
Questionsearch in aspx pages of virtual directory [modified] Pin
Pankaj Garg23-May-08 22:40
Pankaj Garg23-May-08 22:40 
AnswerRe: search in aspx pages of virtual directory Pin
N a v a n e e t h24-May-08 7:59
N a v a n e e t h24-May-08 7:59 
QuestionFile is downloaded with the html content Pin
Yaniv___23-May-08 22:19
Yaniv___23-May-08 22:19 
AnswerRe: File is downloaded with the html content Pin
Yaniv___23-May-08 22:24
Yaniv___23-May-08 22:24 
Questionproblem with accessing asp.net webservice from remote pc Pin
Faysal23-May-08 22:06
Faysal23-May-08 22:06 
Questioncode not work in mozilla firefox Pin
Unknown Ajanabi23-May-08 20:56
Unknown Ajanabi23-May-08 20:56 
AnswerRe: code not work in mozilla firefox [modified] Pin
Imran Khan Pathan23-May-08 21:09
Imran Khan Pathan23-May-08 21:09 
GeneralRe: code not work in mozilla firefox Pin
Unknown Ajanabi23-May-08 21:11
Unknown Ajanabi23-May-08 21:11 
GeneralRe: code not work in mozilla firefox Pin
Imran Khan Pathan23-May-08 21:20
Imran Khan Pathan23-May-08 21:20 
GeneralRe: code not work in mozilla firefox Pin
Unknown Ajanabi23-May-08 21:33
Unknown Ajanabi23-May-08 21:33 
QuestionFilter Dynamically created datatables Pin
Imran Khan Pathan23-May-08 20:17
Imran Khan Pathan23-May-08 20:17 
AnswerRe: Filter Dynamically created datatables Pin
N a v a n e e t h23-May-08 20:31
N a v a n e e t h23-May-08 20:31 
GeneralRe: Filter Dynamically created datatables Pin
Imran Khan Pathan23-May-08 20:37
Imran Khan Pathan23-May-08 20:37 
GeneralRe: Filter Dynamically created datatables Pin
N a v a n e e t h23-May-08 20:54
N a v a n e e t h23-May-08 20:54 
GeneralRe: Filter Dynamically created datatables Pin
Imran Khan Pathan23-May-08 21:03
Imran Khan Pathan23-May-08 21:03 
Questionstring in c# Pin
trilokharry23-May-08 20:07
trilokharry23-May-08 20:07 
AnswerRe: string in c# Pin
Imran Khan Pathan23-May-08 20:22
Imran Khan Pathan23-May-08 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.