I have a page that's displaying the names of my IIS logs.  From there
I want to select a particular log and display the log in the same
page--but by itself.  

Right now the selected log AND the list of IIS logs all display on the
same page when I hit the submit button. Portion of code shown below.
Any way around this?

<%      
        var folder = objFSO.GetFolder(strLogDir);
        var files = new Enumerator(folder.files);
        var i = '';
        var daFiles  = new Array();
        var cnt = 0;
        var filecnt = 0;
        
        for (; !files.atEnd(); files.moveNext())
        {
                daFiles[cnt++] = files.item().Name;
                filecnt += 1;
                
                i = files.item();
                Response.Write("<tr bgcolor='#F5F9FC'><td width='1%' align='left'
height='22'><font color='Red' size='2'>&nbsp;");
                Response.Write(filecnt);
                Response.Write("&nbsp;</font></td><td width='1%' align='left'
height='22'><form name='log' method='POST'
action='defaultjs.asp'><center><img src='images/dir_misc.gif'
border='0' width='16' height='16'></center></td>");
                Response.Write("<td width='4%' align='left' height='22'><font
color='Red' size='2'><input type='hidden' name='txtLogFile' value='" +
i.Name + "'>&nbsp;");
                Response.Write(i.Name);
                Response.Write("&nbsp;</font></td><td width='5%' align='left'
height='22'><font color='Red' size='2'>&nbsp;");
                Response.Write(i.Size);
                Response.Write("&nbsp;</font></td><td width='10%' align='left'
height='22'><font color='Red' size='2'>&nbsp;");
                Response.Write("IIS Log for " + i.DateLastModified);
                Response.Write("&nbsp;</font></td><td width='6%' align='left'
height='22'><font color='Red' size='2'>&nbsp;");
                Response.Write("Log File / " + i.Type);
                Response.Write("&nbsp;</font></td><td width='5%' align='left'
height='22'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='image'
src='images/rightgrey.gif' name='btnGetLog' border='0' width='23'
height='18'></td></form></tr>");
        }       
        
        var e, ForReading=1;
        var e = objFSO.OpenTextFile(strLogDir + "\\" +
Request.Form("txtLogFile"), ForReading)

        while(!e.AtEndOfStream){
        Response.Write(e.ReadLine());
        Response.Write("<br />");
        }
%>




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to