Witness the power of ASP.NET!

This is a discussion on "Witness the power of ASP.NET!" within the ASP.NET Forum section. This forum, and the thread "Witness the power of ASP.NET! are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Sep 27th, 2004, 11:13
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Witness the power of ASP.NET!

I just built a form which accepts user input and wanted to test it so i entered some HTML code and guess what, when i submitted the form, ASP.NET automatically picked it up as being potentially dangerous and didnt insert it into my database! ...i wasnt aware it did this so as you can tell im pretty impressed!!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Sep 27th, 2004, 11:48
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Dot Net has many over-rideable security aspects which can be accessed via the framework.

The system.security namespace also allows for expansion of security using you own code.... you could write a security module for instance to only allow form posts from UK based ip addresses (if you really wanted to)

Just another example of how .Net is so powerful.

Dot Net will also allow you to Catch this exception (generating the error in smokies example) as well as many other security errors (custom ones too) site wide, and provide user friendly handling as opposed to an ugly server error page.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Sep 27th, 2004, 17:24
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
As will PHP with Apache (it's been able to do that for years)...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Sep 28th, 2004, 08:58
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
oh :sad:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Sep 28th, 2004, 16:41
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Sorry Smokie, I wasn't referring to entering potentially dangerous information into a database, just all the stuff that Rob said. Although I'm sure you can get something which screens for potentially dangerous information.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Sep 29th, 2004, 08:10
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
No worries, PHP always was more inovative than ASP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Sep 29th, 2004, 10:02
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />No worries, PHP always was more inovative than ASP!<hr height="1" noshade="noshade" id="quote" /></blockquote id="quote">As a dedicated ASP fan, I have to totally agree with both of you. ASP has it's plus points though!

PHP as a language is more functional, and no-one will argue with that. It is the case that more functions, procedures and objects (packaged black box code) are available because someone decided to bundle them in. As an example, Microsoft decided to include a 'replace' function in ASP, which lets you substitute occurences of specific text within a string for something else.... they wrote the function for us.... but thats not to say this would be impossible without that function.

PHP cannot do more than ASP!!! Functionally they are on a level footing.

PHP and ASP are extendable, and for anyone who knows my ASP coding style (ie... write classes for everything) will know my code is highly re-usable.... therefore extending my 'personal ASP framework'

A language is only as powerful as the stuff it lets you do.... whether the 'stuff' is built in as standard or not, or whether the stuff *could* be encapsulated in an custom build object or class (thus extending the language) to me is un-inportant.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Sep 29th, 2004, 13:07
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Smokie, I hope you are using

Code: Select all
cmdSelect.parameters.add("@..", ..)
for your sql. Even more safety :wink:

BTW, .net rocks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Sep 29th, 2004, 15:55
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Hi u2

Yep I am using Parameters! I had a few problems with them at first, they would work, I found I needed:

Code: Select all
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
...previously i just had:

Code: Select all
<%@ Import Namespace="System.Data.OleDb" %>
..anyway, yeah, .NET rocks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
witness, power, aspnet

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
EGT in HD Widescreen, EGT Power Style for our new site. TheSealPortalTeam Website Planning 0 Nov 20th, 2007 13:25
Rep Altering Power VanessaJW Webforumz Cafe 24 May 20th, 2007 18:39


All times are GMT. The time now is 10:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42