Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question"A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 4:19
markymark829-Feb-09 4:19 
AnswerRe: "A validation error has occurred".... script attacks... Pin
led mike9-Feb-09 4:51
led mike9-Feb-09 4:51 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:01
markymark829-Feb-09 5:01 
GeneralRe: "A validation error has occurred".... script attacks... Pin
Paddy Boyd9-Feb-09 5:21
Paddy Boyd9-Feb-09 5:21 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:24
markymark829-Feb-09 5:24 
GeneralRe: "A validation error has occurred".... script attacks... Pin
Paddy Boyd9-Feb-09 5:27
Paddy Boyd9-Feb-09 5:27 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:31
markymark829-Feb-09 5:31 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 5:48
markymark829-Feb-09 5:48 
Ok, so I've added that to the click event of the psting button and also to the text_changed event of the offending textbox.

But then I get another 3 attempts on it, how do I force the page to be loaded from the server rather than a cached version, and will that even work if the version being attacked is a cached version, that doesn't have code in it to prevent caching.

this is so frustrating, yet it has that feeling that it must be something simple.

I've found the following code to put in the page load event, that I think i'd need in the master page:

Response.Cache.SetCacheability(HttpCacheability.NoCache);


Will that make just the page always load from the server, or will all of the other objects on it (JS files, css, images etc.) be forced to load fresh aswell, I'd like these to stay cachable to reduce bandwidth.

Thanks for all the help so far, much appreciated.
AnswerRe: "A validation error has occurred".... script attacks... Pin
Ranjit Viswakumar9-Feb-09 16:16
Ranjit Viswakumar9-Feb-09 16:16 
GeneralRe: "A validation error has occurred".... script attacks... Pin
markymark829-Feb-09 22:33
markymark829-Feb-09 22:33 
QuestionUser control datalist populating?? Pin
tadhg889-Feb-09 2:59
tadhg889-Feb-09 2:59 
QuestionASP.NET MVC Framework Pin
Brendan Vogt9-Feb-09 2:47
Brendan Vogt9-Feb-09 2:47 
AnswerRe: ASP.NET MVC Framework Pin
ToddHileHoffer9-Feb-09 3:32
ToddHileHoffer9-Feb-09 3:32 
AnswerRe: ASP.NET MVC Framework Pin
Ranjit Viswakumar9-Feb-09 16:25
Ranjit Viswakumar9-Feb-09 16:25 
QuestionUsing an ASP.NET User Web Control on a WSS WebPart Pin
Ken Mazaika9-Feb-09 2:16
Ken Mazaika9-Feb-09 2:16 
AnswerRe: Using an ASP.NET User Web Control on a WSS WebPart Pin
ToddHileHoffer9-Feb-09 3:20
ToddHileHoffer9-Feb-09 3:20 
QuestionHow to fix this error? Pin
venkat86_ece9-Feb-09 2:08
venkat86_ece9-Feb-09 2:08 
AnswerRe: How to fix this error? Pin
ZZTop7779-Feb-09 4:24
ZZTop7779-Feb-09 4:24 
AnswerRe: How to fix this error? Pin
sepel9-Feb-09 4:26
sepel9-Feb-09 4:26 
AnswerRe: How to fix this error? Pin
Ranjit Viswakumar9-Feb-09 16:36
Ranjit Viswakumar9-Feb-09 16:36 
GeneralRe: How to fix this error? Pin
venkat86_ece9-Feb-09 18:42
venkat86_ece9-Feb-09 18:42 
QuestionValidating parameters and then passing as post parameter to another site Pin
JacquesDP9-Feb-09 1:36
JacquesDP9-Feb-09 1:36 
AnswerRe: Validating parameters and then passing as post parameter to another site Pin
Ray Wampler9-Feb-09 10:17
Ray Wampler9-Feb-09 10:17 
QuestionHow to add ASPNET user to my application? Pin
ASysSolvers9-Feb-09 1:19
ASysSolvers9-Feb-09 1:19 
QuestionUpdate the node value of XML file Pin
.NET- India 9-Feb-09 0:23
.NET- India 9-Feb-09 0:23 

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.