.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

how protect my web site from this error

Posted By:      Posted Date: August 24, 2010    Points: 0   Category :ASP.Net

hi ,

I have question in security asp.net

for exemple I have page name


when I go to this url


there aren't problém but the problém when I add ' to id=9

localhost/users.aspx?id=9' , I have so an error that may help hacker

my question how I can protect my script from thix error like this forum

when you add ' you will redirect to another page error.aspx

and thanks for all

View Complete Post

More Related Resource Links

Security Briefs: Protect Your Site With URL Rewriting


Learn the numerous ways in which you can rewrite URLs to defend against common Web vulnerabilities.

Bryan Sullivan

MSDN Magazine March 2009

Secure Sockets Layer: Protect Your E-Commerce Web Site with SSL and Digital Certificates


Security is one of the most important factors in the future growth of e-businesses. Making sure that communications remain secure between customers and the Web server is a critical issue. Secure Sockets Layer (SSL) is the standard that secure Web sites are built upon today. This article presents an overview of SSL-based Web security, explaining such fundamental concepts as digital certificates and their distribution, encryption, and the proper configuration of Microsoft Internet Information Services (IIS). Acquiring a certificate, installing it, and configuring IIS for SSL are outlined in a step-by-step process.

John Papa

MSDN Magazine April 2001

Create My Site for FBA Users Error


Hi Guys,

I am trying to create mysite for FBA Users programatically (FYIP: I have done all the configurations for FBA in SSP and mysite host and I am able to create mysite from UI for FBA Users). The problem exists only when I am creating MySite programatically!!!










Error adding a document library to a site



I am receiving the error "Cannot complete this action.  Please try again"  when trying to add a document library to one of the sites.  This is Sharepoint 2007 SP1.  I seem to be able to do it thru designer but not the web interface.

Does anyone know how to fix this?

File not found error when trying to open site permissions on a blog site

We have created a simple team site and a block subsite.  When trying to edit the site permissions we see the following error.  Any ideas? When opening a blog site and clicking Site Actions - site permissions we received a new page with the following error: Error File Not Found Troubleshoot issue with Microsoft Sharepoint Foundation Correlation ID: 51b54786-f344-4474-b88e-3080c363693 Date and Time: 3/24/2010 3:03:38 PM

Script error in adding users in sharepooint Site

I seem to have a problem when trying to enter new users on a newly built site (SharepointSite). I cannot select the new user option the grant permissions dialog doesn't appear. I'm running MS office 2003 sp3 and ie 7 regards Alan Bateman.

Error Creating Site Collection

Hello, I have created a basic claims-based web app in SharePoint 2010. When I try to create a Site Collection, after filling out all the details, I get the following error:   Error  Cannot complete this action. Please try again.  Troubleshoot issues with Microsoft SharePoint Foundation.  Correlation ID: 349b9ae9-7bda-41eb-921a-87974afb289c    I have tried ever which way to try and get it to work, but am still stuck. Any ideas as to why I can't create a Site Collection? Thanks!

Error when creating site collection through programmatically?

hi all, When i am creating SharePoint Site collection through programmatically i am getting an error message. i am using below code...   using (SPSite site = new SPSite("http://servername:7853/")) {   using (SPWeb web = site.OpenWeb()) {   SPWebApplication oweb = web.Site.WebApplication; site.AllowUnsafeUpdates = true;   SPSiteCollection sitecol = oweb.Sites;   SPSite site1 = oweb.Sites.Add("sites/DemoSiteCol", "DemoSiteCol", "Welcome to the Client SiteCol",1033, "STS#0", "Domian\\user", "display name", "user@domian.com");//here i am getting the error message as "Object refernce not set to an instance of an Object". oweb.Update(); } Please tell me why i am getting the error message.... thanks in advance.....

I get an error whe I try to delete a row from a list in a SP 2003 site

Hello Everyone, I have a customer who is having problems with an SP 2003 site. Here is what the concern is: I have a list on an SP 2003 site... and I am attempting to delete a row from the list... To do that I am setting the list in "Datasheet view". I select the row, right click and select the "delete" option from the menu and delete the row. Then when I click on the "Show in Standard View" button, I get the following error: "An unexpected error has occured. Changes to your data cannot be saved. For this error, you can retry or discard your changes". When I retry, it says the same error msg... Then I have to discard my changes, and I am not successful in deleting the row. Please can someone help with this request? Regards, Reshma

host-named site collection, 401 error (SP Foundation 2010)

I'm trying to create a host-named site collection. However, after its creation, I try to access it with the browser and I'm challenged to enter my username/password  (validating through Active Directory, I believe) and I get a blank page. Looking in the IIS log I see a 401 error with sub-status 1. I'm creating everything programmatically through the  API. I'm following this article:  http://technet.microsoft.com/en-us/library/cc288637.aspx# It's not clear in the article exactly what DNS does or should do with host-named site collections. I added a line to my hosts file:   altlocalhost And I can ping altlocalhost with no problem. When I deploy directly a simple site collection without host-named stuff I'm not challenged to enter user name/password and the site works fine (and I'm authenticated with AD).  

Xsltlistviewwebpart social tagging error on cross site list

Hi! I have exported an xsltslistviewwebpart through SPD 2010 and when asked if I want to show a specific list or parent path I choose specfic. I then import the webpart file on another site and this show the list perfect with ribbon and everything. But when I click the social tagging & notes I get a new popup with a error message in: "The page you selected contains a list that does not exist.  It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>" This is the same error that I get if I try to import a xsltlistviewwebpart without making the correct export. If I click this button on the original listview I dont get the error and I can add tags. The same problems goes for the I like button.Findwise AB

i make a web site using frame but session is expire Error message is my Config file is attache

i make a web site using frame  but session is expire message is Object reference not set to an instance of an object Description: HTTP 500. Error processing request. Stack Trace: System.NullReferenceException: Object reference not set to an instance of an object at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Web.UI.Control.LoadRecursive () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.ProcessLoad () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.ProcessPostData () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0 My Web Config file is<configuration>    <!-- store the database connection info here -->     <appSettings>        <add key="sBook_StoreDBConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=C:\Program Files\CodeCharge\Examples\BookStore\BookStore_MSAccess.mdb;Persist Security Info=False" />            </appSettings>  <system.web>  <httpRuntime executionTimeout=&quo

Go Back to Site link missing in Error Page

hi,             i developed eventhandler where Properties.Cancel=true..takes to the defualt sharepoint error page. in this page i am missing go back to site link. how to set this link in the error page?   also can we set the link in the Properties.ErrorMessage="cannot update. please click here"+"<a href="+siteurl+"/>";   please help.  

SharePoint 2010 Site Actions Site Settings Error

I can not seem to go to Site Settings for a sub site in SharePoint 2010.  I installed SharePoint 2010 developer version on my laptop (Win 7 64bit) with Visual Studio 2010.  Try to create a sub site and go to Site Settings and bam!!! Error File Not Found.  This is frustrating.  Very frustrating.  I found so many problem with SharePoint 2010 and get no where with this version upgrade.  My life is completely ____ now.  Thanks Microsoft!  Why! Why! and Why do you not test your software and make people life much more convenience.  Why roll out this crapy software now on MSDN instead of making it clear that it is not ready??????????  WHY!!!!!! Yes, and I try to go to Site Settings from within SharePoint 2010 Designer.  It took me to the same error!!!!!  So what is going on?

Projects Web Database Site Template immediate error

I decided to explore the Projects Web Database site template - clicked to create the site, and immediately, received an "an error has occurred." message on almost every tab of the site. What am I missing?  Am I supposed to configure something before I create this type of site?   I get this error in the event viewer: Log Name:      Application Source:        Microsoft-SharePoint Products-Access Services Date:          9/8/2010 10:03:43 PM Event ID:      3 Task Category: Data Layer     Access Services: An unexpected error occurred. Exception message: There is a compatibility range mismatch between the Web server and database "WSS_Content_PT", and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.   Any help is appreciated!  Thanks!  

ASP.net Web Site Administration Tool. An error was encountered. Please return to the previous page a

I have just installed Visual Studio 2010 trial. Previously I have been using Visual Studio Web Developer 2010 Express. Now every time I try to invoke the ASP.net Cofiguration tool either via the icon or through the Project File Menu item, I get the error message "An error was encountered. Please return to the previous page and try again." I am trying to develop a bog standard Silverlight Business Application. There are no other diagnostics. Is there anywhere I can look for more clues or anything else to do to alleviate the problem? or is this something peculiar to the trial version I am using?   I also think it might have something to do with the fact that I have created this Silverlight Business App on a directory on my D: drive and not the normal, default c: drive path and maybe the web sit admin tool is looking somewhere else. Could this have something to do with it? If so what is my remedy?   Help please.....

sharepoint2007 - when create a new site collection - An unexpected error has occurred.

hi, when i create a new site collection for a new web part, i get en error message An unexpected error has occurred... strange thing is when thesite collection was created it opened fine but when i tried to click on the link again it gave me the error. does anyone know where the problem is? MGUKMGUK
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend