Posted on: 5/20/2011 6:47:28 AM | Views : 239

Hi here is my codeprivate clsSessionManager sessionManager = new clsSessionManager(); private clsScan cScan = new clsScan(); private FileSystemWatcher fileSystemWatcher; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { fileSystemWatcher = new FileSystemWatcher(); fileSystemWatcher.Created += new FileSystemEventHandler(fileSystemWatcher_FileCreated); string scanLocation=cScan.GetScanLocation (Convert.ToInt32 (sessionManager .GetCurrentEmployeeId())); fileSystemWatcher.Path = scanLocation; fileSystemWatcher. Filter = "*.pdf"; fileSystemWatcher.EnableRaisingEvents = true; } } protected void fileSystemWatcher_FileCreated(object sender, FileSystemEventArgs e) { iframe1.Attributes["src"] = "PDFTemp.aspx?q=" + e.FullPath; upIframe.Update(); ...

Go to the complete details ...