Click to See Complete Forum and Search --> : Question about ASP and runat="server"


slyfox
12-19-2003, 07:02 PM
Hi Friends

Long time no see..

What I'm busy doing is reading form values, then making a calculation in asp and then submitting the form with those values in hidden fields...

Problem is, the user can stop my "processing" asp page with the browser and view the hidden fields values in page source.. and I don't want that..

..so how do i do this..?

I thought of CGI (no ways user can jippo that one).. but I don't know that language.. I want to do it with ASP (without any users peeking the hidden fields)..

Any ideas please!! ...possible?? ..please..:confused: :(

PeOfEo
12-23-2003, 02:17 PM
runat="server" makes an element run at the server, an html element. Try using this property visible="false" that will mean the server still treats the element like it is there but is not physically in your source code, it is left out.

slyfox
01-05-2004, 04:15 PM
Thanx PeOfEo

But how, where and with what do I use visible="false"..?

PeOfEo
01-05-2004, 05:51 PM
its an attribute for the elements.
<asp:button id="butid" visible="false" runat="server"/>
or
butid.visible = false
Html elements are the same way even though that is an asp:button, I guess for you it would be <input id="something" runat="server" type="text">
something.visible = false

slyfox
01-06-2004, 04:26 PM
Thanks PeOfEo :)

PeOfEo
01-06-2004, 05:26 PM
no problem man.