I need to create an HTML document (webpage) with anchors, and have that file saved somewhere, another program will be linking to these documents via their URL with the anchor syntax at the end so that they are directed to the correct part of the document.
What is the best way to do this? Do I programmatically generate the HTML document and insert the anchor points, then get the user to save this document on their server? How would I get the URL to the location of this document? I am using ASP.NET.
Or, do I just use an HTML text editor to save the HTML as a varchar(MAX) in the SQL database. BUT, if I do this, how can I add the anchors?AND, how can I read the HTML in a browser when it is stored as a long string in the database (I have yet to find anyone who knows the answer to that)? I have tried LITERALS and iFRAME but neither render the HTML content from the database.
I am thinking the best way is to programmartically generate the HTML document, this way I have control over entering anchor points (I don't think this is possible with the Ajax HTML editor). Then simply have the user save this document (webpage) anywhere they want on their computer/server. Then, if I have the URL, I can get this other program to go to that document, at the anchor point, by knowing the URL of its location.