Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
Comments
IsiR_19 21-Nov-17 4:06am    
Thanks, thought there was a way to not show all the attributes

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900