添加链接按钮时,如何保护在列表框中填充的属性 [英] How do I secure my attributes being populated in a list box when adding a link button
问题描述
大家好
如果我在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 thereference number
with respect toID
or some other value. and use the ID value asattribute
to the list item which is not vulnerable to reveal your confidential data. and by means ofquery string
mechanism you shall get the reference number from mapping table by the ID which is being passed. or you shallencrypt
the value before assigning it to theattributes
and retrieve the same anddecrypt
it.
这篇关于添加链接按钮时,如何保护在列表框中填充的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!