問題:asp.net MVC 網站登入登出後,畫面維持在舊畫面。
原本要顯示使用者資訊的區塊還維持在未登入。
暫時解法:cache-control改no-store
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
public ActionResult Index(){}
其它問題類:參考
問題: 後臺已建立助理,如何透過程式使用(建立對話)?
參考:
參考文章:
Teams 上收到已下訊息:(2024/7/19看到)
string Site="https://web.mydomain.com/demo/index.html";
string Site2="https://www.demo.com.tw/index.html";
string relateUrl = "Referee/Index.aspx?rid=123";//新網址
Uri siteUrl = new Uri(Site);//模擬Reuest.Url
Uri siteUrl2 = new Uri(Site2);
var baseUri = siteUrl;
var newUri = new Uri(baseUri,relateUrl); //透過基礎網址跟relate網址去產生正式網址
var baseUri2 = siteUrl2;
var newUri2 = new Uri(baseUri2,relateUrl);
Console.WriteLine(newUri.AbsoluteUri);
Console.WriteLine(newUri2.AbsoluteUri);
參考:
收到google通知:Action Required: Security issue affecting your landing pages
搜尋並查詢一下相關建議:
- `polyfill.io`
- `bootcss.com`
- `bootcdn.net`
- `staticfile.org`
有引用這些網站相關的javscript 等檔案,建議移除或置換。
https://jsfiddle.net/boc58L0j/3/
https://jsfiddle.net/boc58L0j/9/
<table>
<tr>
<td>文字一</td>
<td><input type="button" value="複製" onclick="copy('文字一');"/>
</td>
</tr>
<tr>
<td>文字二</td>
<td><input type="button" value="複製" onclick="copy('文字二');"/>
</td>
</tr>
</table>
function copy(strInpt) {
//新增
var textArea = document.createElement("textarea");
textArea.value = strInpt;
document.body.appendChild(textArea);
textArea.select();
document.execCommand("Copy");
textArea.remove();
// Alert the copied text
alert("Copied the text: " + strInpt);
}
function copy(strInpt) {
//新增
var copyText = document.createElement("textarea");
copyText.value = strInpt;
document.body.appendChild(copyText);
copyText.select();
//copyText.setSelectionRange(0, 99999); // For mobile devices
// Copy the text inside the text field
navigator.clipboard.writeText(copyText.value);
copyText.remove();
// Alert the copied text
alert("Copied the text: " + strInpt);
}