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.



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

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
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!!




  #2 (permalink)  
Old Sep 27th, 2004, 11:48
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #3 (permalink)  
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)...
  #4 (permalink)  
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:
  #5 (permalink)  
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.
  #6 (permalink)  
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!
  #7 (permalink)  
Old Sep 29th, 2004, 10:02
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
<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.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #8 (permalink)  
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!
  #9 (permalink)  
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!
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 06:36.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43