Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need a read-only html browser in my developed windows application. I have a field in my database with HTML text format and I only need to show it to clients in my application.

They should only see it and have capability to click on it’s hyperlinks. How can I make .net Web Browser Control read-only? Something like IE and other internet browsers.

Thanks.
Posted
Updated 20-Sep-11 23:51pm
v4
Comments
Mehdi Gholam 17-Sep-11 10:16am    
What do you mean read only?
Christ_88 17-Sep-11 10:19am    
i dont want the client change any thing when i show the data to him
Mehdi Gholam 17-Sep-11 11:35am    
If your html is static then it doesn't matter. You can strip the html of all scripts as well.
BillWoodruff 17-Sep-11 12:30pm    
When the user clicks on a hyper-link in your displayed HTML, what are you going to do then: launch a full browser to display the linked page ? Or, is it the case that all hyper-links displayed will link only to other content in your database ?

Also, is this a case where you are displaying a limited, well-defined, sub-set of HTML ? If so, have you looked at the alternatives for displaying such sub-sets ?
Herman<T>.Instance 18-Sep-11 14:11pm    
what have you tried?

1 solution

The way the data is presented to the user is completely up to you. Once you retrieve the data, simply don't give them a form - just display the data.
 
Share this answer
 

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