I don’t really know a lot about .asp but I believe it is a server-side language. So assuming it works similar to PHP, I don’t suppose it would be possible to change the include interactively without a page refresh.
Yes, asp is server side and it’s basically all content is html. And you are right that it work require a page refresh so the html writes to the textarea and it’s submitted to the post page in it’s entirety.
I am somewhat confused which category it’s in now. SamA74 mentioned perhaps JS, and I thought it was moved. It shouldn’t be a NET or VB category. So which category is it currently in? Thanks for your attention.
Once the page is on the screen, I need the ability to choose which message I want to send. That message needs to display and then I can submit to post form that sends out an email. So I know that asp or .NET won’t handle that and I believe that @SamA74 has the right idea of using JS to load to the screen. If there is a better way, I am opened to whatever, because I can’t seem to find a solution with the many searches I done. I am sure that one of the many “smart” individuals on this forum will have the right approach.
Simply, using includes makes things for efficient. If the html is used in other mailers or web pages, you only have to change it once rather than making the same changes to many of the same. Using an include would not affect the solution to this issues. Whether the html was on the same page or in an include - it’s the same. The include essentially puts the html on the page itself; it’s just in a different file.
Thanks for the link but I know how to do that. What I need is for that value to write to the page because from there I will send it to a post page with that message in the email. If the option value doesn’t write or load to the page, it can’t carry forward to the post page.
I abandoned .NET for more climate friendly technology solutions. However, I have experience with .NET and could take a look if the code was made public on GitHub. Others would also be enabled to provide meaningful assistance.
What I need is for the page to load that if I pick “Happy Birthday” that loads in the textarea field. If I want to edit that to say “Happy Birthday to YOU!”, I just make the edit on the page.
Then once done with form, I then click on submit to the post page that send out the email. So on the post page, I have a Request.Form (“message”) and the value of Happy Birthday passes through to that page.
About the only way is to reload the page with a GET request (messing up the URL) or with a POST request which adds information to the headers.
That though does mean having a lot more ASP code to interpret either the GET request or the POST request, and do the appropriate thing. That is something that only someone familiar with ASP would be suitably placed to give solutions about.
So no solution here, but hopefully some jumping off points for others to help with.