G
Guest
i have a treeview on a webform (.aspx). when the user selects an appropriate node on the tvw. and clicks on a link button, i'm downloading a corresponding file to the client (from the server). so far so good. all of that works.
after the download, i want to refresh the treeview and redisplay the current node with a different color. and also repopulate a property page on the right of the treeview
but my problem is that during the file download process, after a response.writefile() and a response.end() statement, the thread execution stops. even if the treeview refresh/navigate code executes first..lets say before the file download call, it does not show the changes visually on the page. like there was no postback.
***sample code**
private sub tvwMain_SelectedIndexChanged(sender, e) handles bla..
dim sFileName = tvwMain.GetNodeFromIndex(e.NewNode).ID
call RefreshTreeView 'reloads the tree and navigates back to the current nod
response.clear(
response.contenttype = ..
response.appendheader(...
response.writefile(sfilename
'response.flush()
response.end(
end su
i worked around this issue by using a javascript popup() window and having a download button in the popup.aspx, but i still couldnt close the popup automatically after a file download, using a window.close() or self.close() javascript, because the close() code wont execute correctly after a response.writefile
any suggestions on how it's done in the real "ASP.NET" world
thank
Carte
after the download, i want to refresh the treeview and redisplay the current node with a different color. and also repopulate a property page on the right of the treeview
but my problem is that during the file download process, after a response.writefile() and a response.end() statement, the thread execution stops. even if the treeview refresh/navigate code executes first..lets say before the file download call, it does not show the changes visually on the page. like there was no postback.
***sample code**
private sub tvwMain_SelectedIndexChanged(sender, e) handles bla..
dim sFileName = tvwMain.GetNodeFromIndex(e.NewNode).ID
call RefreshTreeView 'reloads the tree and navigates back to the current nod
response.clear(
response.contenttype = ..
response.appendheader(...
response.writefile(sfilename
'response.flush()
response.end(
end su
i worked around this issue by using a javascript popup() window and having a download button in the popup.aspx, but i still couldnt close the popup automatically after a file download, using a window.close() or self.close() javascript, because the close() code wont execute correctly after a response.writefile
any suggestions on how it's done in the real "ASP.NET" world
thank
Carte