Sunday 29 August 2010

APP_CODE ???????

Security with the Bin Folder

Putting compiled assemblies into the Bin folder can represent a security risk. If you wrote the code yourself and compiled it, then you know what the code does. However, you should treat compiled code in the Bin folder as you would treat any executable code. Be wary of compiled code until you have tested it and are confident that you understand what it does.

Note these security aspects of putting compiled code into the Bin folder:

*

Assemblies in Bin folder are scoped to the current application. Therefore, they cannot access resources or invoke code outside the current Web application.
*

At run time, the access levels of an assembly are established by the trust level specified on the local computer. For more information, see ASP.NET Trust Levels and Policy Files.
*

When you run a project in Visual Studio, code in the Bin folder runs in a different context than at run time. The Visual Studio Development Server runs under your logged-in identity. If you logged in as an administrator, the code will run with administrator permissions. When you deploy your site, however, the code typically does not run with administrator permissions. Therefore you should test your project with a IIS server before deploying it, to make sure that security errors do not occur in production.

Is User controls (ascx files) are allowed in the App_Code folder?

User controls (ascx files) are not allowed in the App_Code folder. This includes single-file user controls and user controls that use the code-behind model. Putting a user control in the App_Code directory causes the user control's code to be compiled out of its required sequence and therefore is not allowed. (In any event, user controls do not need to be in the App_Code folder; they are already available to pages anywhere in the application.)

Friday 20 August 2010

Some Imp Link

1.http://www.codedigest.com/Articles/jQuery/224_Building_Cascading_DropDownList_in_ASPNet_Using_jQuery_and_JSON.aspx
2.http://www.developertutorials.com/tutorials/javascript/client-side-data-binding-using-jquery-796/
3 http://www.java2s.com/Tutorial/Oracle/0440__PL-SQL-Statements/CASEstatements.htm
4.http://www.java2s.com/Code/JavaScript/Javascript-Properties/CatalogJavascript-Properties.htm
5.http://www.delphifaq.com/faq/javascript/f1038.shtml
6.http://www.velocityreviews.com/forums/t84123-button-click-executes-postback-page-not-valid.html
5.http://social.msdn.microsoft.com/Forums/en-US/winformsdesigner/thread/c1f66568-1ece-483c-969c-6dc66ea77c49
6 http://www.aspsnippets.com/Articles/Validating-ASP.Net-ListBox-Control-client-side-using-Custom-Validator.aspx
7.http://www.codeproject.com/KB/cs/AgileWare_Convert_Int32.aspx
8.http://www.java2s.com/Tutorial/CSharp/0140__Class/VirtualMethodsandOverriding.htm
9.http://blog.sqlauthority.com/2008/04/02/sql-server-find-nth-highest-salary-of-employee-query-to-retrieve-the-nth-maximum-value/
10.http://www.beansoftware.com/ASP.NET-Tutorials/Using-Crystal-Reports.aspx
11.http://www.programmersheaven.com/user/spickersgill/blog/956-Delegates-Explained-in-Plain-English/
12