添加链接按钮时,如何保护在列表框中填充的属性 [英] How do I secure my attributes being populated in a list box when adding a link button

查看:73
本文介绍了添加链接按钮时,如何保护在列表框中填充的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



如果我在listboxItem中添加一个linkbutton,我想知道如何保护我的列表框属性



我已经在列表框中添加了带有属性的项目,并在列表框中添加了一个链接按钮,因为我必须在有编号时进行重定向。



当添加了一个链接按钮时,问题是查看HTML所有添加的属性都显示在开发人员工具的HTML代码中。



我怎么能没有暴露属性。



我尝试过:



我不太确定如何保护列表框属性

Hi guys

I would like to know how could i secure my listbox attributes if i add a linkbutton to my listboxItem

I have added items to my listbox with attributes and added a link button to the list box as i have to do redirects when there is a ref number.

Problem is looking at the HTML when there is a link button added all the attributes added are exposed in the HTML code in developer tools.

How can i have the attributes not exposed.

What I have tried:

I am not too sure how to secure the listbox attributes

推荐答案

AFAIK无法保护 HTML源 [ ^ ],你要尝试的一件事是,为引用n创建一个映射表umber ID 或其他一些值有关。并将ID值作为属性用于列表项,该列表项不易泄露您的机密数据。并且通过查询字符串机制,您将通过传递的ID从映射表中获取引用号。或者你应该加密之前将值分配给属性并检索相同的解密 it。
AFAIK its not possible to secure the HTML Source[^] , one thing you shall try is, create a mapping table for the reference number with respect to ID or some other value. and use the ID value as attribute to the list item which is not vulnerable to reveal your confidential data. and by means of query string mechanism you shall get the reference number from mapping table by the ID which is being passed. or you shall encrypt the value before assigning it to the attributes and retrieve the same and decrypt it.


这篇关于添加链接按钮时,如何保护在列表框中填充的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆