Click here to Skip to main content
15,903,201 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: There is located microsoft.web.administration module? Pin
Chesnokov Yuriy9-Aug-09 22:42
professionalChesnokov Yuriy9-Aug-09 22:42 
AnswerRe: There is located microsoft.web.administration module? Pin
Abhijit Jana9-Aug-09 23:13
professionalAbhijit Jana9-Aug-09 23:13 
AnswerRe: There is located microsoft.web.administration module? Pin
Chesnokov Yuriy10-Aug-09 0:39
professionalChesnokov Yuriy10-Aug-09 0:39 
GeneralRe: There is located microsoft.web.administration module? Pin
Abhijit Jana10-Aug-09 1:36
professionalAbhijit Jana10-Aug-09 1:36 
Questionadding data of multiple textboxes into same table colum (new one below the other) [modified] Pin
Punit Belani9-Aug-09 21:14
Punit Belani9-Aug-09 21:14 
AnswerRe: adding data of multiple textboxes into same table colum (new one below the other) Pin
SeMartens9-Aug-09 21:23
SeMartens9-Aug-09 21:23 
AnswerRe: adding data of multiple textboxes into same table colum (new one below the other) Pin
Vimalsoft(Pty) Ltd9-Aug-09 22:28
professionalVimalsoft(Pty) Ltd9-Aug-09 22:28 
Questionjava.io.File.getCanonicalPath() exception in C#.net.... Pin
koolprasad20039-Aug-09 21:11
professionalkoolprasad20039-Aug-09 21:11 
HI i have create a project having VSJLIB reference in it

when i have code it as follows

public void CreateZipFile(string sPath)
  {
    FileOutputStream stream1 = null;
    ZipOutputStream stream2 = null;
    if (System.IO.File.Exists(sPath))
    {
   FileInfo info2 = new FileInfo(sPath);
       stream1 = new FileOutputStream(sPath.Replace
                                     (info2.Extension, ".zip"));
   stream2 = new ZipOutputStream(stream1);
           this.ZipOneFile(stream1, stream2,  sPath);
    }
    else if (Directory.Exists(sPath))
    {
   stream1 = new FileOutputStream(sPath + ".zip");
   stream2 = new ZipOutputStream(stream1);
   DirectoryInfo info1 = new DirectoryInfo(sPath);
   this.ZipDirectory(stream1, stream2, info1, sPath);
    }
    stream2.close();
    stream1.close();
    stream2.flush();
    stream1.flush();
   }

   private void CopyStream(FileInputStream src, ZipOutputStream
                                                            dest)
   {
   InputStreamReader reader1 = new InputStreamReader(src);
   OutputStreamWriter writer1 = new OutputStreamWriter(dest);
   while (reader1.ready())
   {
     writer1.write(reader1.read());
   }
   writer1.flush();
   }

   /*ZipDirectory Method zips the entire directory*/
   private void ZipDirectory(FileOutputStream fos, ZipOutputStream
                            zos, DirectoryInfo di, string SRootDir)
   {
   FileInfo[] infoArray2 = di.GetFiles();
   foreach (FileInfo info2 in infoArray2)
   {
          ZipEntry entry1 = new ZipEntry
              (info2.FullName.Substring(SRootDir.LastIndexOf(@"\")));
      entry1.setMethod(8);
      zos.putNextEntry(entry1);
      FileInputStream stream1 = new FileInputStream
                                      (info2.FullName);
          this.CopyStream(stream1, zos);
      zos.closeEntry();
      stream1.close();
   }
   DirectoryInfo[] infoArray1 = di.GetDirectories();
   foreach (DirectoryInfo info1 in infoArray1)
   {
      this.ZipDirectory(fos, zos, info1, SRootDir);
   }
    }


but when i run the code it gives me excetion

java.io.File.getCanonicalPath()

what should i do to run the code ???

any suggesations ???

thanx in advnace
koolprasad2003

Be a good listener...Because Opprtunity knoughts softly...N-Joy
Questionurl property of the embeded object Pin
RajaAhmed9-Aug-09 21:11
RajaAhmed9-Aug-09 21:11 
AnswerRe: url property of the embeded object Pin
Vimalsoft(Pty) Ltd9-Aug-09 22:31
professionalVimalsoft(Pty) Ltd9-Aug-09 22:31 
GeneralRe: url property of the embeded object Pin
RajaAhmed9-Aug-09 22:37
RajaAhmed9-Aug-09 22:37 
GeneralRe: url property of the embeded object Pin
Vimalsoft(Pty) Ltd11-Aug-09 23:02
professionalVimalsoft(Pty) Ltd11-Aug-09 23:02 
QuestionProblem in ValidationCalloutExtender of AJAX Pin
Rahul Chitte9-Aug-09 20:38
Rahul Chitte9-Aug-09 20:38 
QuestionSystem.Net.Mail Large HTML Message Pin
joebloe92519-Aug-09 20:36
joebloe92519-Aug-09 20:36 
QuestionSMS Earning Pin
kavinnagarajan9-Aug-09 20:32
kavinnagarajan9-Aug-09 20:32 
AnswerRe: SMS Earning Pin
SeMartens9-Aug-09 20:58
SeMartens9-Aug-09 20:58 
AnswerRe: SMS Earning Pin
Abhijit Jana9-Aug-09 21:04
professionalAbhijit Jana9-Aug-09 21:04 
QuestionMultiline text Pin
kavinnagarajan9-Aug-09 20:23
kavinnagarajan9-Aug-09 20:23 
AnswerRe: Multiline text Pin
SeMartens9-Aug-09 21:02
SeMartens9-Aug-09 21:02 
GeneralMultiline text Pin
kavinnagarajan9-Aug-09 21:13
kavinnagarajan9-Aug-09 21:13 
GeneralRe: Multiline text Pin
SeMartens9-Aug-09 21:21
SeMartens9-Aug-09 21:21 
GeneralMultiline text Pin
kavinnagarajan9-Aug-09 21:26
kavinnagarajan9-Aug-09 21:26 
GeneralRe: Multiline text Pin
SeMartens9-Aug-09 21:31
SeMartens9-Aug-09 21:31 
AnswerRe: Multiline text Pin
Abhijit Jana9-Aug-09 21:05
professionalAbhijit Jana9-Aug-09 21:05 
GeneralMultiline text Pin
kavinnagarajan9-Aug-09 21:08
kavinnagarajan9-Aug-09 21:08 

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.