Friday, December 20, 2013

asp.net

Quick Asp.net


§  What is asp.net
§  Get vs Post
§  Asp.net web forms vs MVC
§  Asp.net Compilation
§  Asp.net request processing
§  Asp.net life cycle
§  Types of controls in Asp.net Web Forms
§  Explore some basic controls like button,Textbox Drop Down, GridView and Listview
§  Working with Validations
§  Working with CSS
§  StateManagement  - View State,Hidden Fields, Cookies
§  StateManagement  - Session and Application
§  Caching
§  Creating Custom and User Control using asp.net
§  Working with Master Pages
§  What is Ajax
§  Working with Update Panel
§  What is script Manager
§  Hosting in IIS
§  Working with 3 Tier applications

oops in depth c#

Why do we need OOPS? (Reusability with classes)
o   What is mean building
o   Problems with Procedural programming
§  Confusions -> We had all functions together - No Separation
§  Data is not protected
§  Increase in size because of physical include
§  Too many functions with different names doing same kind operations
§  Difficulties in reusing Existing Files
·         Class and Object
·         Instance vs. static member
·         Static member, functions, constructors and classes
·         Access Modifiers
·         Encapsulation and how
·         Abstraction
·         Encapsulation vs. abstraction
·         Constructors and Destructors
·         Types of constructors
·         Inheritance and its types
·         Constructors with Inheritance
·         Avoid inheritance
·         Polymorphism
·         Method overloading
·         Overriding
·         Shadowing
·         Static and dynamic polymorphism
·         Interfaces What when and how(Talk about access modifiers in interface)
o   Decouple
o   Contracts
o   Multiple inheritance      
o   Class inherits classes
o   classes implement interfaces
·         Abstract Classes What When and How(Talk about static methods)
·         Creating objects of Interfaces and Abstract Class
·         Implementing multiple interfaces
·         Partial Class
·         Partial Method
·         Abstract vs. Partial
·         Aggregation, Association and Composition.
·         What is mean by Principle in OOP?
·         Some Object oriented Principles
o   KISS
o   DRY
o   PINC
·         Some Object oriented Principles
o   Hollywood Principle
o   Law Of Demeter
·         What is SOLID?
·         Single Responsibility Principle
·         Open Closed Principle
·         Liskov Substitution Principle
·         Interface Segregation Principle
·         Dependency inversion principle
·         Difference between Architectural style, Architectural Pattern, Design Pattern

jquery

jQuery

Course Fee – 6.5k

§  Why Javascript
§  Basic Coding using javascript
§  How javascript is different from jQuery
§  What jQuery contains?
§  $ Function in jQuery
§  jQuery Selectors
§  find vs children
§  parent vs parents
§  append vs prepend
§  jQuery Events
§  bind, unbind and live, die
§  Delegates
§ Method Chaining
§ $.Ajax , JSON and Server Method

oops in c#

Why do we need OOPS? (Reusability with classes)
·         What is mean building
·         Problems with Procedural programming
o   Confusions -> We had all functions together - No Separation
o   Data is not protected
o   Increase in size because of physical include
o   Too many functions with different names doing same kind operations
o   Difficulties in reusing Existing Files
§  Class and Object
§  Instance vs. static member
§  Static member, functions, constructors and classes
§  Access Modifiers
§  Encapsulation and how
§  Abstraction
§  Encapsulation vs. abstraction
§  Constructors and Destructors
§  Types of constructors
§  Inheritance and its types
§  Constructors with Inheritance
§  Avoid inheritance
§  Polymorphism
§  Method overloading
§  Overriding
§  Shadowing
§  Static and dynamic polymorphism
§  Interfaces What when and how(Talk about access modifiers in interface)
·         Decouple
·         Contracts
·         Multiple inheritance      
·         Class inherits classes
·         classes implement interfaces
§  Abstract Classes What When and How(Talk about static methods)
§  Creating objects of Interfaces and Abstract Class
§  Implementing multiple interfaces
§  Partial Class
§  Partial Method
§  Abstract vs. Partial
§  Delegates What When
§  Multi cast delegates
§  Asynchronous Delegates
§  Events vs. Delegates
§  Generics
§  Array vs. ArrayList vs. List
§  Regex and Validationz
§  Satellite Assembly
§  Threading –
·         What is threading? Parallel programming
·         Foreground thread(Will keep on running even main application quit),Background thread
·         Thread Priority,
·         Thread pooling,
·         TPL – Multi Core Utilization and Automatic thread pooling
§  Read-only vs. constant
§  Reflection
§  Serialization
§  Indexer
§  Working with Linq to objects

Thursday, December 5, 2013

Sql Server 2008 How To View The Database Log File Size In Sql Server

  USE <database name>;

  SELECT name,
  SIZE, -- in KB
  MAX_SIZE, -- in KB
  GROWTH,
  IS_PERCENT_GROWTH
  FROM SYS.DATABASE_FILES
  WHERE TYPE_DESC= 'LOG'

Thursday, November 7, 2013

A potentially dangerous Request.Form value was detected from the client

if you are getting this error then we need to add validaterequest="false" line in web page like

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" ValidateRequest="false" %>

Tuesday, November 5, 2013

encrypt and decrypt connectionstring in web config

string connectionString = "data source=123.456.789.00,1234\\abcdb;database=databasename;uid=sa;pwd=123";
            Byte[] a = System.Text.ASCIIEncoding.ASCII.GetBytes(connectionString);
            string encryptedConnectionString = Convert.ToBase64String(a);
         
            Byte[] b = Convert.FromBase64String(ConfigurationSettings.AppSettings["defaultConnection"]);          
            string decryptedConnectionString = System.Text.ASCIIEncoding.ASCII.GetString(b);

http://www.codersource.net/2010/02/03/securing-connection-strings-in-asp-net/