Refinance now before rates go up! Get multiple rate quotes at GetMyLender.com.
Showing posts with label Interview Questions. Show all posts
Showing posts with label Interview Questions. Show all posts

C# Reflection Examples

C# Reflection Examples

Reflection Examples [C#]

This example shows how to dynamically load assembly, how to create object instance, how to invoke method or how to get and set property value.

Create instance from assembly that is in your project References

The following examples create instances of DateTime class from the System assembly.

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-III

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-I

We already have learned about RSS, use of RSS in part-I as well as some Vocabulary of RSS and information of tags in part-II.

In this part-III, we will learn practical purpose of RSS. So be ready for that...

Building its personal RSS feed, step by step

At start, this is just a simple text file, created with any text editor. But an XML editor is more convenient. The name may be, for example: "feed.xml".

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-II

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-I

Vocabulary

  • Feed. It is a set of "item" tags, a set of infos or news.
  • RDF. RDF stands for Resource Description Framework.
  • Syndicated. Published through an RSS feed.
  • Syndication. Publishing data by RSS feeds.

Main RSS tags

rss. The global container.
channel. A distributing channel. It has several descriptive tags and holds one or several items.

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-I

Simple Way of Building And Using Really Simple Syndication (RSS) Feed Part-I

What is RSS?

It is a format to share data, defined in the 1.0 version of XML. You can deliver information in this format at one can get this information, and information from other various sources, in this format. (With RSS it is possible to distribute up-to-date web content from one web site to thousands of other web sites around the world.) Information provided by a website in an XML file is called an RSS feed.
Recent browsers can read directly RSS files, but a special RSS reader or aggregator may be used too.

Difference between GET and POST Methods

In this article, we will discuss about difference between GET and POST Methods. So that it will usefull in your apllications.

GET Method ():

1) Data is appended to the URL.
2) Data is not secret.
3) It is a single call system.
4) Maximum data that can be sent is 256.

Difference between Library and Framework

A Library and a Framework are a set of classes, modules and/or code (depending on the programming language) that can be used in your applications.

Suppose you have to maintain log or debugging info in your applications, draw charts, create an specific file formats like .html, .pdf, .xls, connect to a data base, create applications using Design Patterns or simply create some/complete application etc.

These types of problems can be solved using Framework or a Library.

What is the Use of "Use Strict" in JavaScript?

"use strict";

It is an literal expression. The purpose of "use strict" is to indicate that the JavaScript code should be executed in "strict mode".

With strict mode, you cannot use undeclared variables.

i.e. Compiling a numeric literal (2 + 5;) or a string literal ("Arun Kumar";) in a JavaScript program has no side effects. It simply compiles to a non existing variable and dies.

How to Prevent Default Behavior of Anchor Tag using JavaScript and jQuery

Many times we need to use anchor tag in html coding. For anchor tag we assign href attribute with URL. So that whenever user click on that it will redirect to URL given as a value of href attribute. But how to prevent this default functionality?

We can prevent this default behavior of anchor tag using JavaScript or jQuery.

Simply, if we assign # to the href then after clicking on it will not redirect to any URL but it will jump to top of screen.

<a href="#"> Click Here </a>

Get Current URL at Client Side Using JavaScript and jQuery

Sometimes it is necessary to know current URL, so that we will perform different operations on that or use that URL for various purposes. In this post, you will learn to get current URL from browser at client side using JavaScript and jQuery.


Using JavaScript

The window.location read-only property returns a Location object with information about the current location of the document.

Difference between LocalStorage, SessionStorage, Session and Cookie

localStorage, sessionStorage, session and cookie all these storage mechanisms will be specific to an individual browser on an individual computer/device. Any requirement to store data on an ongoing basis across sessions will need to involve your application server side.

localStorage, sessionStorage and cookies are all client storage solutions while Session data is held on the server where it remains under your direct control.

Difference between HTML 4.0 Block Level and Inline Elements

HTML 4.0 Elements

Following is a list of some of the HTML elements.
• a : Anchor
• abbr : Abbreviation
• acronym : Acronym
• address : Address
• applet : Applet
• b : Bold
• base : Base URL
• base : Base Font Size
• bdo : Bi-Directional Override
• big : Big
• blockquote : Blockquote
• body : Body
• br : Break
• button : Button
• caption : Table caption
• center : Center align
• cite : Citation
• code : Computer code
• col : Table column
• dd : Definition description
• del : Deleted text
• dfn : Instance definition
• dir : Directory list
• div : Division
• dl : Definition list
• dt : Definition term
• em : Emphasis
• fieldset : Form control Group
• font : Font
• form : Form
• frame : Frame
• frameset : Frameset
• h1 : Header 1

How To Remove A JavaScript Event Listener From An HTML Element?

In this post, we are going to learn to detach or remove JavaScript event listener. If you want to know more about adding javascript event handler then please visit : How to add a JavaScript event handler to an HTML page element?

In that above link of post, we learn different types of adding event handlers. Depending on your methods of adding event handlers, you can remove them in several different ways.

Following ways are used to remove event listener from html element according to added event handler types :

How to add a JavaScript event handler to an HTML page element?

In this article, we are going to learn JavaScript event handler. There are two ways to add event handler to an HTML element.

An old-fashioned way of registering event handlers for page elements which is still widely supported in browsers. These techniques are very simple as explained in below code but they have some disadvantages.

Inline event handlers, for example:

<a href="home.html" onlick="alert(&#39;Thanks&#39;)">Logout</a>

What is the Difference between Ref and Out in c sharp with Examples

In this post we will learn about ref and out parameters in c# with examples. While looking forward, we have to know about ref and out parameters and how we can use it and where to use ? Both ref and out parameters are used to pass as an arguments to a method. Actually method can return zero or one value, so these parameters are very helpful whenever methods want to return more than one value.

So, what is the main difference between these both parameters?

Both parameters used for same purpose but ref parameter need to initialize it before passing to the method and out parameter you don’t need to initialize before passing to function. Here we will go in more detail by using examples.