Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2006, 07:39 PM
Authorized User
 
Join Date: Jan 2006
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Default Malicious Code Detect in CallBack Scenario

I've got a custom Gridview. In one thread
> A callback is performed, and the callback returns to the browser an HTML string that represents an "insert row".
> The "insert row" is added to the Gridview table in the DOM using JS.
> The user adds info to a MainText field in the insert row and then initiates an "accept entry"
> During "accept entry", the contents of the MainText field are placed in a hidden field (call it
"TextReturn", and then the page is posted back to the server
> In Page_Load, a function is called that operates on "TextReturn"

What are some different approaches to validating that the TextReturn field value does not contain malicious code?

Related thoughts: can I do something with the TextReturn field back at the server during Page_Load, or is that "too late"...do I need to take care of it at the browser? How might I "take care of it"...are there any built-in ASP.NET or JS functions that might help? (BTW, I'm looking at Atlas, but don't want to count on it yet, and am not sure it would allow the same function and performance as with this specific row insert operation.)

Any guidance on this would be appreciated.

Thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use xsl in this scenario travisb777 XSLT 4 September 18th, 2008 04:28 PM
callback data to server side code aranjan ASP.NET 2.0 Basics 1 September 4th, 2007 06:39 AM
Multi language scenario edgarw BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 May 7th, 2007 08:08 AM
Scenario tonygreaves BOOK: Professional DotNetNuke ASP.NET Portals ISBN: 0-7645-9563-6 1 September 4th, 2005 01:32 AM
scenario for insert query shankhan Classic ASP Databases 1 April 3rd, 2005 09:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.