Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
please help me

i want to hide data in view source code in my web application

What I have tried:

when we select drop down then all data show in view source code
Posted
Updated 5-Jan-17 20:48pm
Comments
Afzaal Ahmad Zeeshan 6-Jan-17 4:50am    
You cannot do that.

1 solution

That's impossible.

Your browser needs the page source to render the page correctly. If a browser can access it, any person can. If you want to hide the source, then you cannot pass it over the network to the browser, which means that your page wouldn't render as expected.
 
Share this answer
 
Comments
Member 12937032 6-Jan-17 3:44am    
i want hide only my dropdown data in view source code
Thomas Daniels 6-Jan-17 3:52am    
Do you need the dropdown data to make your page render correctly?

Yes? --> It's impossible to remove it.
No? --> Make sure it doesn't get passed to the browser.
Member 12937032 6-Jan-17 4:58am    
THEN HOW TO DISABLE VIEW SOURCE CODE IN WEBSITE
Thomas Daniels 6-Jan-17 5:14am    
Hey, no need to shout at me.

I don't know how your code looks like, so I can't tell. I don't even know what your "data" looks like, I just assumed that you would need it for the correct working on your page.
Member 12937032 6-Jan-17 5:18am    
SORRY I AM NOT SHOUTING ON U!

I AM JUST ASKING SOLUTION OF MY PROBLEM!!

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