Click here to Skip to main content
15,906,094 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Current Password field(text box ) to be checked against the value stored in database Pin
N a v a n e e t h17-Jun-07 23:06
N a v a n e e t h17-Jun-07 23:06 
GeneralRe: Current Password field(text box ) to be checked against the value stored in database Pin
Hemant Garg18-Jun-07 0:35
Hemant Garg18-Jun-07 0:35 
AnswerRe: Current Password field(text box ) to be checked against the value stored in database Pin
koolprasad200317-Jun-07 23:50
professionalkoolprasad200317-Jun-07 23:50 
QuestionHow to prevent running javascript code from address bar Pin
Ahmad Safwat17-Jun-07 22:23
Ahmad Safwat17-Jun-07 22:23 
AnswerRe: How to prevent running javascript code from address bar Pin
Christian Graus17-Jun-07 22:50
protectorChristian Graus17-Jun-07 22:50 
GeneralRe: How to prevent running javascript code from address bar Pin
N a v a n e e t h17-Jun-07 23:30
N a v a n e e t h17-Jun-07 23:30 
GeneralRe: How to prevent running javascript code from address bar Pin
badgrs18-Jun-07 0:11
badgrs18-Jun-07 0:11 
GeneralRe: How to prevent running javascript code from address bar Pin
Russell Jones18-Jun-07 0:31
Russell Jones18-Jun-07 0:31 
I tend to check data at every boundary of the application.

I check that what the user put into my page is good.
I then check that what the page submitted to ASP.Net is good.
my ASP code then uses my Business Logic Layer which checks that the data it receives is good.

I don't specifically check that the data entering the database is good but i do have rigorous constraints set up on all databases and I make sure that only objects written by my team have direct writeable access to the DB. I also know that those objects have been repeatedly unit tested before they are released.

You can never check data enough in my opinion especially if those data may have been submitted by an external actor beyond your control. eg web user, public webservice, contract developer. This approach may be bordering on the paranoid but it makes applications far more stable especially as the type of checking that occurs at each level is likely to be different and therefore catches a different set of errors that may occur.

Russ
AnswerRe: How to prevent running javascript code from address bar Pin
Ahmad Safwat18-Jun-07 1:36
Ahmad Safwat18-Jun-07 1:36 
GeneralRe: How to prevent running javascript code from address bar Pin
badgrs18-Jun-07 2:03
badgrs18-Jun-07 2:03 
GeneralRe: How to prevent running javascript code from address bar [modified] Pin
Ahmad Safwat18-Jun-07 2:42
Ahmad Safwat18-Jun-07 2:42 
GeneralRe: How to prevent running javascript code from address bar Pin
badgrs18-Jun-07 3:16
badgrs18-Jun-07 3:16 
GeneralRe: How to prevent running javascript code from address bar Pin
Ahmad Safwat18-Jun-07 3:31
Ahmad Safwat18-Jun-07 3:31 
GeneralRe: How to prevent running javascript code from address bar Pin
badgrs18-Jun-07 3:44
badgrs18-Jun-07 3:44 
GeneralRe: How to prevent running javascript code from address bar Pin
Ahmad Safwat18-Jun-07 4:36
Ahmad Safwat18-Jun-07 4:36 
Questionweb part creation error Pin
Viral Upadhyay17-Jun-07 21:52
Viral Upadhyay17-Jun-07 21:52 
Question[Message Deleted] Pin
Prakash_Mishra17-Jun-07 21:22
Prakash_Mishra17-Jun-07 21:22 
AnswerRe: how to display the database table values in the form Pin
Sathesh Sakthivel17-Jun-07 21:47
Sathesh Sakthivel17-Jun-07 21:47 
AnswerRe: how to display the database table values in the form Pin
N a v a n e e t h17-Jun-07 23:12
N a v a n e e t h17-Jun-07 23:12 
QuestionTo insert values from a gridview to textboxes in web page Pin
codingrocks17-Jun-07 21:20
codingrocks17-Jun-07 21:20 
AnswerRe: To insert values from a gridview to textboxes in web page Pin
Sreekumar P P17-Jun-07 23:37
Sreekumar P P17-Jun-07 23:37 
GeneralRe: To insert values from a gridview to textboxes in web page Pin
codingrocks18-Jun-07 0:25
codingrocks18-Jun-07 0:25 
Questionhow to add textbox to a table at runtime and send textbox's value to database Pin
sanchet17-Jun-07 21:13
sanchet17-Jun-07 21:13 
AnswerRe: how to add textbox to a table at runtime and send textbox's value to database Pin
Sandeep Akhare17-Jun-07 21:18
Sandeep Akhare17-Jun-07 21:18 
AnswerRe: how to add textbox to a table at runtime and send textbox's value to database Pin
Sreekumar P P18-Jun-07 0:14
Sreekumar P P18-Jun-07 0:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.