M
M
Maxim2017-05-17 14:46:53
SharePoint
Maxim, 2017-05-17 14:46:53

How to save SharePoint page text to txt file?

Good afternoon.
Tell me please.
There is a corporate portal on SharePoint. This portal has an aspx page with the following content:

SharePoint page code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ Page Language="C#" %>
<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=34564634564567" %>
<WebPartPages:AllowFraming runat="server" />

<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
  <head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=10" />
    <title>Test</title>
  </head>
  <body>
    <asp:LoginName id="LoginName1" runat="server" FormatString ="UserLogin: {0}" /><br/>
  </body>
</html>


This page displays the user's login.
How can the content of the page (in this case, the user's login) be saved to a text file located in the same directory on the SharePoint server as the original aspx page?
The bottom line is that the save is triggered each time users open the page. A kind of logging of page calls.
I am not a farm administrator, so all settings are possible only within the domain / directory assigned to me (creating pages, using js scripts).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question