Newbie...how to hide data from view source

ASP.NET

    Sponsored Links

    Next

  • 1. Properties, Styles, Stylesheets /////
    A web control can have a ForeColor property, a Style collection which can define a "color" property, and a CssClass property which also defines a "color" property. Which takes precedence? Is there any programatic examination and manipulation of these properties allowed and if so where ? eg. the code-behind, or only within the .aspx file ? I want to be able tom programatically examine the rendered color of a control and if necessary, change it : any advice on this ?
  • 2. Query database, then export to Excel VB.NET
    I am working on a web form and I need to create a report for a user and would like to query the database and then send the data set to Excel. Could somebody please help me with some code to do this Thanks a lot!

Newbie...how to hide data from view source

Postby WRH » Thu, 28 Dec 2006 00:16:14 GMT

Hello

Say I have a form with input, eg
...
<input type="hidden" name="add" value="1">
...

How can I prevent a client browser from using "View Source"
to see that eg value = 1 ? In general, can sensitive data be
easily hidden from "View Source"?

(Hope that this is an appropiate newsgroup) 



Similar Threads:

1.view source problem with hidden control using IE

I have a page that has several controls on it and the controls are
shown or hidden during postback.  I show and hide them using the
visible property.  When I use 'view source' in Internet Explorer I
always see the source of the first version of the page, with the
controls rendered that where rendered on the first visit.  The changes
that occur during postback are not reflected in 'view source'.

Example Detail:
My page has 6 controls and works like a wizard.  One control has
visible=true and all the others have visible=false.  My next and back
buttons control which control I show.

When the page initially loads I show control-01.  If I 'view
source' I see the page source with only control-01 rendered.  Since
the other controls have visible=false they are not rendered and this is
what I should see.

When I move forward control-01 has visible=false ad control-02 has
visible=true.  This causes the page to show control-02 as expected.
But when I 'view source' I see the source of step one, with
control-01 rendered.

It seems that the source is cached as long as I'm on the same page.
How can I see the source of the page that is actually rendered?



Return to ASP.NET

 

Who is online

Users browsing this forum: No registered users and 88 guest