Skip to main content

Posts

Showing posts from January, 2013

C# Questions and Answers

What are namespaces? Namespaces are heavily used in C# programming in two ways. First, the .NET Framework uses namespaces to organize its many classes. Second, declaring your own namespaces can help you control the scope of class and method names in larger programming projects. Use the namespace keyword to declare a namespace Namespaces have the following properties: They organize large code projects. They are delimited by using the . operator. The using directive obviates the requirement to specify the name of the namespace for every class. The global namespace is the "root" namespace: global::System will always refer to the .NET Framework namespace System. Read more at MSDN: Namespaces (C# Programming Guide) Namespaces are a way of grouping type names and reducing the chance of name collisions. A namespace provides a fundamental unit of logical code grouping. ( Understanding and Using Assemblies and Namespaces in .NET ) What is the GAC? GAC stands for global assembly cache

ASP.NET Questions and Answers - Part 2

How can we prevent browser from caching an ASPX page?  Use the SetNoStore method of the HttpCachePolicy class to direct the client not to store the responses in its history. See http://msdn.microsoft.com/en-us/library/system.web.httpcachepolicy.setnostore.aspx In which event are the controls fully loaded? On Load event. ( http://msdn.microsoft.com/en-us/library/system.web.ui.page(v=vs.100).aspx )  The Page object calls the OnLoad method on the Page object, and then recursively does the same for each child control until the page and all controls are loaded. The Load event of individual controls occurs after the Load event of the page. Use the OnLoad event method to set properties in controls and to establish database connections. (http://msdn.microsoft.com/en-us/library/ms178472(v=vs.100).aspx ) How we can force all the validation controls to run? Using Page.Validate() method to instructs any validation controls included on the page to validate their assigned information. Read more at h

SQL Questions and Answers

What is SQL? SQL stands for Structured Query Language. It is a special-purpose programming language designed for managing data in relational database management systems (RDBMS). Most popular SQL commands are "Select", "Insert", "Update", and "Delete". What is RDBMS? RDBMS stands for Relational Database Management System. It is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd, of IBM's San Jose Research Laboratory. Many popular databases such as IBM DB2, MySQL, Microsoft SQL, Oracle currently in use are based on the relational database model. What is database normalization? Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. (http://en.wikipedia.org/wiki/Database_normalizat

ASP.NET Questions and Answers

What is ASP.NET? ASP.NET is a Web platform that provides all the services that you require to build enterprise-class server-based Web applications. ASP.NET is built on the .NET Framework, so all .NET Framework features are available to ASP.NET applications. Your applications can be written in any language that is compatible with the common language runtime (CLR), including Visual Basic and C#. Source:  http://msdn.microsoft.com/en-us/library/dd566231%28v=vs.100%29.aspx ASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Framework. You can code your applications in any language compatible with the common language runtime (CLR), including Microsoft Visual Basic and C#. These languages enable you to develop ASP.NET applications that benefit from the common lang

New Year New Password

Your password should change frequently. If you cannot change every month, every quarter, then at least once a year. When you change the password, it should NOT in " The 25 worst passwords of 2012 ". You should NOT using the same password for all accounts. Use the KeePass or a password protected LibreOffice document to keep track your password. Read " The guide to password security (and why you should care) " for more info. Happy New Year!