Hi there. The project I am building is an ASP.NET browser based application that has two classes.
Login class
main menu class
now these two classes are working as they should (I.e. valid user logs in, proceed to main menu). The trouble is, I also have another class that applies an XSLT to a user specified (Via main menu) XMLfile. the user navigates to an XML file (on hard disk) then specifies an output directory (browsing again) to store the output. there is a submit button the user hits when they are ready to transorm the XML. the trouble I am having is that i do not know how to transmit the data from the two browsers (XML File locator and output file locator) to the XSLT class. i.e. I do not know how to specify to my transformer class which XML is to be used.
Any suggestions?
thanks for your time!
Recommended Answers
Jump to PostNow I am a bit confused... is the file saved on your server or on the clients' machines? If you are only redirecting the save, then you cannot apply the XSLT. But if you are saving it to your server, then you can apply it. A workaround for this is …
Jump to PostYeah no problem. The reason why you cannot do it the other way is that the only way you can modify a file is that if it gets to your server and you can modify it there. Otherwise, the client would have to have the XSLT file (I think its …
Jump to Posthttp://aspalliance.com/259
http://www.dotnetspider.com/kb/Article1802.aspxAnd no, it does not restrict anything. The thank you page could easily just say "file converted successfully. Your download should start in a few seconds. If you …
Jump to Postnope, just switch the two lines.
You appended the two strings together, then changed the file extension of one of the strings.
You need to change the file extension, THEN append :)
Jump to Postbecause it's not the same name anymore!
Declare savepath outside your function so it's a global variable, or throw it in with your "ApplyXSLTransformation()" to pass the new file name. I would recommend adding an argument to
ApplyXSLTransformation(savepath)
And just change all fileupload1.filename (WITHIN ApplyXSLTransformation) to savepath
…
All 85 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.