.aspx
<asp:Panel ID="pan_fileslist" runat="server">
</asp:Panel>
.cs
protected void Page_Load(object sender, EventArgs e)
{
try
{
//防右鍵
this.pan_fileslist.Attributes.Add("oncontextmenu", "return false");
//防選取
this.pan_fileslist.Attributes.Add("onSelectStart", "return false");
this.pan_fileslist.Attributes.Add("onDragStart", "return false");
}
catch (Exception)
{
throw;
}
}
沒有留言:
張貼留言