jazzIIIlove
asked on
2 buttons, 1 is for redirecting 1 is for upload.
Hi;
I have 2 buttons, 1 is for redirecting 1 is for upload a file. Redirection to a page works fine but I don't know the most feasible way to load a txt/xml file content and when redirecting button is clicked, it should redirect with the contents of the file. Any feasible way for this?
Regards.
I have 2 buttons, 1 is for redirecting 1 is for upload a file. Redirection to a page works fine but I don't know the most feasible way to load a txt/xml file content and when redirecting button is clicked, it should redirect with the contents of the file. Any feasible way for this?
Regards.
ASKER
Thanks but it's not specific enough. It's a text file content, so which one is the best practice?
try the below hack.
read your whole text file data and store it in a byte array -> store it in a session object
go to the page you want -> create a byte array and restore the session object data in it.
again read the byte array and you will get all your text file data.
hope this helps.
read your whole text file data and store it in a byte array -> store it in a session object
go to the page you want -> create a byte array and restore the session object data in it.
again read the byte array and you will get all your text file data.
hope this helps.
ASKER
Hi,
Good tip, except for the case, the file must persist in remote file system if it's not there already, so session is a bad solution?
Good tip, except for the case, the file must persist in remote file system if it's not there already, so session is a bad solution?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
please check the link below.
5 ways to send data between Asp.Net PAges
Http Post may be of help to you.
hope this helps.