
















<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>NARENDRA PADALA</title>
	<atom:link href="http://narusoft.co.in/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://narusoft.co.in</link>
	<description>Technology in your hands</description>
	<pubDate>Tue, 23 Mar 2010 05:05:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>How to create and host a website ?</title>
		<link>http://narusoft.co.in/?p=106</link>
		<comments>http://narusoft.co.in/?p=106#comments</comments>
		<pubDate>Wed, 04 Nov 2009 20:24:14 +0000</pubDate>
		<dc:creator>Narendra</dc:creator>
		
		<category><![CDATA[Tech Writing]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=106</guid>
		<description><![CDATA[How do I create and host a website? Is the question I was asked by many? In this post, I want to provide steps to be taken to build and host your own website.
How to design your web site
The first stage in building your site is deciding, what do you want the Website to Do? [...]]]></description>
			<content:encoded><![CDATA[<p>How do I create and host a website? Is the question I was asked by many? In this post, I want to provide steps to be taken to build and host your own website.</p>
<p><strong>How to design your web site</strong></p>
<p>The first stage in building your site is deciding, what do you want the Website to Do? So before you begin make sure you ask yourself these questions.</p>
<p>1. Why do I want a website?<br />
2. Will I need to update the site frequently?<br />
3. Will I use the website to attract new visitors?<br />
4. How much am I prepared to pay?<br />
5. Will I be doing it myself?</p>
<p>Once you have a general idea of what you want from your website you can then move on to the second stage of deciding do it yourself or Have someone do it for you or a mixture of the two. Then you have to chosen design method, generally they classified into two types, they are static and dynamic.</p>
<p>Static ones are HTML or more commonly Today HTML/CSS. These sites are very easy to build (There are many templates available) and are simply edited using a web page editor, and are supported on all hosts.</p>
<p>Dynamic Ones use some form of server-side technology and database or is it just a couple of HTML pages only. If your website needs a database and some server-side scripting to process the data sent from users of your website then you have to choose the server-side technology and database.</p>
<p>The main options are as follows.<br />
Java – Servlets, JSP and probably some framework also.<br />
ASP.NET<br />
PHP</p>
<p>Database can be anything you want. There is no hard and fast rule about database. You can use any database of your choice. Price and features are to be considered. If you need a moderate database then any database management system like Oracle, MS SQL Server and MySQL would do. They are given in the order of price, Oracle being the costliest.</p>
<p>Once you complete design and development of the website and tested it on your local environment, it is ready to be hosted and made available to the world.</p>
<p><strong>How to Register a Domain Name</strong></p>
<p>Deciding on a domain name is a very important part of the process as this name will be what everyone types into their browser to locate your Web site. The domain name could also become part of your city’s identity on business cards, stationery, etc. When I wanted to create a website for myself(Narendra Padala), I went for domain name narusoft.co.in. If you are lucky, you get the name of your choice. In case you don’t get the name you want then probably you have to add any suffix or prefix. For example, it is onlinesbi.com for State bank of India.</p>
<p>Reserving a domain name is easy and very cost friendly. The cost per domain name per annum starts at Rs.350/-. There are various offers by resellers. Check out the following links for that. These websites allow you to check the availability of domain name with different extensions. They also generally provide hosting facility, in case you want it.</p>
<p>http://nare204389.supersite.myorderbox.com/index.php<br />
http://www.bookandhost.com/<br />
http://www.networksolutions.com<br />
http://www.domainsforyou.net<br />
http://www.getwebdomains.com </p>
<p><strong>How to Host a website</strong></p>
<p>Hosting the website is the process of making your website available to everyone in the world. You broadly have two options.<br />
1. Host it on your own.<br />
2. Host it on hosting company&#8217;s server.</p>
<p>Host it on your own server is a costly affair as you have to buy server and other infrastructure to run your server 24&#215;7. You also need people (administrators) to manage your server 24&#215;7. Your server is to be connected to Internet with its own IP address and with good band width.</p>
<p>Generally for startups it is ideal to host your website on somebody else’s server. There are a lot of companies offering hosting services like windows hosting, Linux hosting etc. You can choose the one in your local market. Or it could be anyone with good track record and quality service.</p>
<p>There are lots of companies providing hosting services. The price also depends on the technology you used and other services such as email that you need.</p>
<p>Generally hosting PHP based website with MySQL is the cheapest. Next comes Java with MySQL and then ASP.NET with MS Sql Server.</p>
<p>When you take hosting services for your website, you are given an FTP (File Transfer Protocol) account, which allows you to access your area (a folder) in the server. You have to use one of the FTP tools to log on to server with your account details and transfer your files from your system to host. There are a lot of FTP clients that you can use to upload files from your system to server. I have used many of them. I found File Zilla free and simple to use.</p>
<p>How you transfer your database depends on the database you are using. For example, in case of MySQL, you can use Import/Export tool provided by MySQL or create tables in the MySQL database using PhpMyAdmin. It all depends on your database product.</p>
<p><strong>How to maintain a web site</strong></p>
<p>Generally no website is created once and used forever. So, you need to add new content to your website from time to time. That is done by website owner. You need to upload new content to host from your system using FTP account whenever you need to change the content of the website.</p>
<p>If you are hosting your website on your own server then changing content in your server is equivalent to changing the website.</p>
<p>This isn&#8217;t going to give you that wonderful, relaxing reading room I talked about up above. Have a good concept and want to build a website?</p>
<p>Keep Learning …Narendra Padala</p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=106</wfw:commentRss>
		</item>
		<item>
		<title>PHP-MySQL Interview Questions</title>
		<link>http://narusoft.co.in/?p=94</link>
		<comments>http://narusoft.co.in/?p=94#comments</comments>
		<pubDate>Sun, 25 Oct 2009 10:11:54 +0000</pubDate>
		<dc:creator>Narendra</dc:creator>
		
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=94</guid>
		<description><![CDATA[Last few days I have been working to compile a question and answer set for PHP-MySQL interview questions. There are roughly 60 questions and i will be adding more as days to come. These questions and answers are compiled from different online resources.
1.What&#8217;s PHP ?
The PHP Hypertext Preprocessor is a programming language that allows web [...]]]></description>
			<content:encoded><![CDATA[<p>Last few days I have been working to compile a question and answer set for PHP-MySQL interview questions. There are roughly 60 questions and i will be adding more as days to come. These questions and answers are compiled from different online resources.<br />
1.What&#8217;s PHP ?</p>
<p>The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications.</p>
<p>2.What Is a Session?</p>
<p>A session is a logical object created by the PHP engine to allow you to preserve data across subsequent HTTP requests.</p>
<p>There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved by the same script or another script when requested from the same visitor.</p>
<p>Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor.</p>
<p>3.What is meant by PEAR in php?</p>
<p>Answer1:<br />
PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install &#8220;packages&#8221;</p>
<p>Answer2:<br />
PEAR is short for &#8220;PHP Extension and Application Repository&#8221; and is pronounced just like the fruit. The purpose of PEAR is to provide:<br />
A structured library of open-sourced code for PHP users<br />
A system for code distribution and package maintenance<br />
A standard style for code written in PHP<br />
The PHP Foundation Classes (PFC),<br />
The PHP Extension Community Library (PECL),<br />
A web site, mailing lists and download mirrors to support the PHP/PEAR community<br />
PEAR is a community-driven project with the PEAR Group as the governing body. The project has been founded by Stig S. Bakken in 1999 and quite a lot of people have joined the project since then. </p>
<p>4.How can we know the number of days between two given dates using PHP?</p>
<p>Simple arithmetic:</p>
<p>$date1 = date(&#8217;Y-m-d&#8217;);<br />
$date2 = &#8216;2006-07-01&#8242;;<br />
$days = (strtotime() - strtotime()) / (60 * 60 * 24);<br />
echo &#8220;Number of days since &#8216;2006-07-01&#8242;: $days&#8221;;</p>
<p>How can we repair a MySQL table?</p>
<p>The syntex for repairing a mysql table is:</p>
<p>REPAIR TABLE tablename<br />
REPAIR TABLE tablename QUICK<br />
REPAIR TABLE tablename EXTENDED</p>
<p>This command will repair the table specified.<br />
If QUICK is given, MySQL will do a repair of only the index tree.<br />
If EXTENDED is given, it will create index row by row.</p>
<p>5.What is the difference between $message and $$message?</p>
<p>Anwser 1:<br />
$message is a simple variable whereas $$message is a reference variable. Example:<br />
$user = &#8216;bob&#8217;</p>
<p>is equivalent to</p>
<p>$holder = &#8216;user&#8217;;<br />
$$holder = &#8216;bob&#8217;;</p>
<p>Anwser 2:<br />
They are both variables. But $message is a variable with a fixed name. $$message is a variable who&#8217;s name is stored in $message. For example, if $message contains &#8220;var&#8221;, $$message is the same as $var.</p>
<p>6.What Is a Persistent Cookie?</p>
<p>A persistent cookie is a cookie which is stored in a cookie file permanently on the browser&#8217;s computer. By default, cookies are created as temporary cookies which stored only in the browser&#8217;s memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:<br />
*Temporary cookies can not be used for tracking long-term information.<br />
*Persistent cookies can be used for tracking long-term information.<br />
*Temporary cookies are safer because no programs other than the browser can access them.<br />
*Persistent cookies are less secure because users can open cookie files see the cookie values.</p>
<p>7.What does a special set of tags <?= and ?> do in PHP?</p>
<p>The output is displayed directly to the browser.</p>
<p>8.How do you define a constant?</p>
<p>Via define() directive, like define (&#8221;MYCONSTANT&#8221;, 100);</p>
<p>9.What are the differences between require and include, include_once?</p>
<p>Anwser 1:<br />
require_once() and include_once() are both the functions to include and evaluate the specified file only once. If the specified file is included previous to the present call occurrence, it will not be done again.</p>
<p>But require() and include() will do it as many times they are asked to do.</p>
<p>Anwser 2:<br />
The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.</p>
<p>Anwser 3:<br />
All three are used to an include file into the current page.<br />
If the file is not present, require(), calls a fatal error, while in include() does not.<br />
The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. It des not call a fatal error if file not exists. require_once() does the same as include_once(), but it calls a fatal error if file not exists.</p>
<p>Anwser 4:<br />
File will not be included more than once. If we want to include a file once only and further calling of the file will be ignored then we have to use the PHP function include_once(). This will prevent problems with function redefinitions, variable value reassignments, etc.</p>
<p>10.What is meant by urlencode and urldecode?</p>
<p>Anwser 1:<br />
urlencode() returns the URL encoded version of the given string. URL coding converts special characters into % signs followed by two hex digits. For example: urlencode(&#8221;10.00%&#8221;) will return &#8220;10%2E00%25&#8243;. URL encoded strings are safe to be used as part of URLs.<br />
urldecode() returns the URL decoded version of the given string.</p>
<p>Anwser 2:<br />
string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:</p>
<p>Alphanumeric characters are maintained as is.<br />
Space characters are converted to &#8220;+&#8221; characters.<br />
Other non-alphanumeric characters are converted &#8220;%&#8221; followed by two hex digits representing the converted character.</p>
<p>string urldecode(str) - Returns the original string of the input URL encoded string.</p>
<p>For example:</p>
<p>$discount =&#8221;10.00%&#8221;;<br />
$url = &#8220;http://domain.com/submit.php?disc=&#8221;.urlencode($discount);<br />
echo $url;</p>
<p>You will get http://domain.com/submit.php?disc=10%2E00%25 </p>
<p>11.How To Get the Uploaded File Information in the Receiving Script?</p>
<p>Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array called $_FILES. Uploaded file information is organized in $_FILES as a two-dimensional array as:<br />
$_FILES[$fieldName]['name'] - The Original file name on the browser system.<br />
$_FILES[$fieldName]['type'] - The file type determined by the browser.<br />
$_FILES[$fieldName]['size'] - The Number of bytes of the file content.<br />
$_FILES[$fieldName]['tmp_name'] - The temporary filename of the file in which the uploaded file was stored on the server.<br />
$_FILES[$fieldName]['error'] - The error code associated with this file upload.</p>
<p>The $fieldName is the name used in the <"INPUT TYPE=FILE, NAME=fieldName">.</p>
<p>12.What is the difference between mysql_fetch_object and mysql_fetch_array?</p>
<p>MySQL fetch object will collect first single matching record where mysql_fetch_array will collect all matching records from the table in an array</p>
<p>13.How can I execute a PHP script using command line?</p>
<p>Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, &#8220;php myScript.php&#8221;, assuming &#8220;php&#8221; is the command to invoke the CLI program.<br />
Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.</p>
<p>14.I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?</p>
<p>PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.</p>
<p>15.Would I use print &#8220;$a dollars&#8221; or &#8220;{$a} dollars&#8221; to print out the amount of dollars in this example?</p>
<p>In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like &#8220;{$a},000,000 mln dollars&#8221;, then you definitely need to use the braces.</p>
<p>16.What are the different tables present in MySQL? Which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10))?</p>
<p>Total 5 types of tables we can create<br />
1. MyISAM<br />
2. Heap<br />
3. Merge<br />
4. INNO DB<br />
5. ISAM<br />
MyISAM is the default storage engine as of MySQL 3.23. When you fire the above create query MySQL will create a MyISAM table.</p>
<p>17.How To Create a Table?</p>
<p>If you want to create a table, you can run the CREATE TABLE statement as shown in the following sample script:</p>
<p><?php<br />
include &#8220;mysql_connection.php&#8221;;</p>
<p>$sql = &#8220;CREATE TABLE Tech_links (&#8221;<br />
. &#8221; id INTEGER NOT NULL&#8221;<br />
. &#8220;, url VARCHAR(80) NOT NULL&#8221;<br />
. &#8220;, notes VARCHAR(1024)&#8221;<br />
. &#8220;, counts INTEGER&#8221;<br />
. &#8220;, time TIMESTAMP DEFAULT sysdate()&#8221;<br />
. &#8220;)&#8221;;<br />
if (mysql_query($sql, $con)) {<br />
print(&#8221;Table Tech_links created.\n&#8221;);<br />
} else {<br />
print(&#8221;Table creation failed.\n&#8221;);<br />
}</p>
<p>mysql_close($con);<br />
?></p>
<p>Remember that mysql_query() returns TRUE/FALSE on CREATE statements. If you run this script, you will get something like this:<br />
Table Tech_links created.</p>
<p>18.How can we encrypt the username and password using PHP?</p>
<p>Answer1<br />
You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD(&#8221;Password&#8221;);</p>
<p>Answer2<br />
You can use the MySQL PASSWORD() function to encrypt username and password. For example,<br />
INSERT into user (password, &#8230;) VALUES (PASSWORD($password”)), &#8230;);<br />
19.How do you pass a variable by value?</p>
<p>Just like in C++, put an ampersand in front of it, like $a = &#038;$b</p>
<p>What is the functionality of the functions STRSTR() and STRISTR()?</p>
<p>string strstr ( string haystack, string needle ) returns part of haystack string from the first occurrence of needle to the end of haystack. This function is case-sensitive.</p>
<p>stristr() is idential to strstr() except that it is case insensitive.</p>
<p>20.When are you supposed to use endif to end the conditional statement?</p>
<p>When the original if was followed by : and then the code block without braces.</p>
<p>21.How can we send mail using JavaScript?</p>
<p>No. There is no way to send emails directly using JavaScript.</p>
<p>But you can use JavaScript to execute a client side email program send the email using the &#8220;mailto&#8221; code. Here is an example:</p>
<p>function myfunction(form)<br />
{<br />
tdata=document.myform.tbox1.value;<br />
location=&#8221;mailto: mailid@domain.com?subject=&#8230;&#8221;;<br />
return true;<br />
}</p>
<p>22.What is the functionality of the function strstr and stristr?</p>
<p>strstr() returns part of a given string from the first occurrence of a given substring to the end of the string. For example: strstr(&#8221; user@example.com&#8221;,&#8221;@&#8221;) will return &#8220;@example.com&#8221;.<br />
stristr() is idential to strstr() except that it is case insensitive.</p>
<p>23.What is the difference between ereg_replace() and eregi_replace()?<br />
eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.</p>
<p>24.How do I find out the number of parameters passed into function9. ?</p>
<p>func_num_args() function returns the number of parameters passed in.</p>
<p>25.What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?</p>
<p>In MySQL, the default table type is MyISAM.<br />
Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type.</p>
<p>The &#8216;.frm&#8217; file stores the table definition.<br />
The data file has a &#8216;.MYD&#8217; (MYData) extension.<br />
The index file has a &#8216;.MYI&#8217; (MYIndex) extension,</p>
<p>26.If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b?</p>
<p>100, it’s a reference to existing variable.</p>
<p>27.Are objects passed by value or by reference?<br />
Everything is passed by value.<br />
28.What are the differences between DROP a table and TRUNCATE a table?</p>
<p>DROP TABLE table_name - This will delete the table and its data.</p>
<p>TRUNCATE TABLE table_name - This will delete the data of the table, but not the table definition.</p>
<p>29.How do you call a constructor for a parent class?</p>
<p>parent::constructor($value)</p>
<p>30.WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?</p>
<p>Here are three basic types of runtime errors in PHP:</p>
<p>1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script - for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all - although you can change this default behavior.</p>
<p>2. Warnings: These are more serious errors - for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.</p>
<p>3. Fatal errors: These are critical errors - for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP&#8217;s default behavior is to display them to the user when they take place.</p>
<p>Internally, these variations are represented by twelve different error types</p>
<p>31.What’s the special meaning of __sleep and __wakeup?<br />
__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.</p>
<p>32.How can we submit a form without a submit button?</p>
<p>If you don&#8217;t want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. For example:</p>
<p>< "a href="javascript: document.myform.submit();" ">Submit Me</a><br />
33.Why doesn’t the following code print the newline properly? <?php $str = ‘Hello, there.\nHow are you?\nThanks for visiting techpreparation’; print $str; ?></p>
<p>Because inside the single quotes the \n character is not interpreted as newline, just as a sequence of two characters - \ and n.</p>
<p>34.Would you initialize your strings with single quotes or double quotes?</p>
<p>Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.</p>
<p>35.How can we extract string &#8216;abc.com &#8216; from a string http:// info@abc.com using regular expression of php?</p>
<p>We can use the preg_match() function with &#8220;/.*@(.*)$/&#8221; as<br />
the regular expression pattern. For example:<br />
preg_match(&#8221;/.*@(.*)$/&#8221;,&#8221;http:// info@abc.com&#8221;,$data);<br />
echo $data[1];</p>
<p>36.What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods?</p>
<p>Anwser 1:</p>
<p>When we submit a form, which has the GET method it displays pair of name/value used in the form at the address bar of the browser preceded by url. Post method doesn&#8217;t display these values.</p>
<p>Anwser 2:</p>
<p>When you want to send short or small data, not containing ASCII characters, then you can use GET” Method. But for long data sending, say more then 100 character you can use POST method.<br />
Once most important difference is when you are sending the form with GET method. You can see the output which you are sending in the address bar. Whereas if you send the form with POST” method then user can not see that information.</p>
<p>Anwser 3:</p>
<p>37.What are &#8220;GET&#8221; and &#8220;POST&#8221;?</p>
<p>GET and POST are methods used to send data to the server: With the GET method, the browser appends the data onto the URL. With the Post method, the data is sent as &#8220;standard input.&#8221;</p>
<p>Major Difference</p>
<p>In simple words, in POST method data is sent by standard input (nothing shown in URL when posting while in GET method data is sent through query string.</p>
<p>Ex: Assume we are logging in with username and password.</p>
<p>GET: we are submitting a form to login.php, when we do submit or similar action, values are sent through visible query string (notice ./login.php?username=&#8230;&#038;password=&#8230; as URL when executing the script login.php) and is retrieved by login.php by $_GET['username'] and $_GET['password'].</p>
<p>POST: we are submitting a form to login.php, when we do submit or similar action, values are sent through invisible standard input (notice ./login.php) and is retrieved by login.php by $_POST['username'] and $_POST['password'].</p>
<p>POST is assumed more secure and we can send lot more data than that of GET method is limited (they say Internet Explorer can take care of maximum 2083 character as a query string).</p>
<p>Anwser 4:</p>
<p>In the get method the data made available to the action page ( where data is received ) by the URL so data can be seen in the address bar. Not advisable if you are sending login info like password etc. In the post method the data will be available as data blocks and not as query string in case of get method.</p>
<p>Anwser 5:</p>
<p>When we submit a form, which has the GET method it pass value in the form of query string (set of name/value pair) and display along with URL. With GET we can a small data submit from the form (a set of 255 character) whereas Post method doesn&#8217;t display value with URL. It passes value in the form of Object and we can submit large data from the form.</p>
<p>Anwser 6:</p>
<p>On the server side, the main difference between GET and POST is where the submitted is stored. The $_GET array stores data submitted by the GET method. The $_POST array stores data submitted by the POST method.<br />
On the browser side, the difference is that data submitted by the GET method will be displayed in the browser’s address field. Data submitted by the POST method will not be displayed anywhere on the browser.<br />
GET method is mostly used for submitting a small amount and less sensitive data. POST method is mostly used for submitting a large amount or sensitive data.</p>
<p>38.What is the difference between the functions unlink and unset?</p>
<p>unlink() is a function for file system handling. It will simply delete the file in context.</p>
<p>unset() is a function for variable management. It will make a variable undefined.</p>
<p>39.How come the code works, but doesn’t for two-dimensional array of mine?</p>
<p>Any time you have an array with more than one dimension, complex parsing syntax is required. print &#8220;Contents: {$arr[1][2]}&#8221; would’ve worked.</p>
<p>40.How can we register the variables into a session?</p>
<p>session_register($session_var);</p>
<p>$_SESSION['var'] = &#8216;value&#8217;;</p>
<p>41.What is the difference between characters \023 and \x23?<br />
The first one is octal 23, the second is hex 23.</p>
<p>42.With a heredoc syntax, do I get variable substitution inside the heredoc contents?<br />
Yes.</p>
<p>43.How can we submit form without a submit button?</p>
<p>We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to submit the form. For example:</p>
<p><"input type=button value="Save" onClick="document.form.submit()""></p>
<p>44.How can we create a database using PHP and mysql?</p>
<p>We can create MySQL database with the use of mysql_create_db($databaseName) to create a database.</p>
<p>45.How many ways we can retrieve the date in result set of mysql using php?<br />
As individual objects so single record or as a set or arrays.</p>
<p>46.Can we use include (&#8221;abc.php&#8221;) two times in a php page &#8220;makeit.php&#8221;?<br />
Yes.<br />
47.For printing out strings, there are echo, print and printf. Explain the differences.<br />
echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:<br />
<?php echo 'Welcome ', 'to', ' ', 'techpreparations!'; ?><br />
and it will output the string &#8220;Welcome to techpreparations!&#8221; print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.<br />
48.I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP?<br />
On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split().</p>
<p>49.What’s the output of the ucwords function in this example?<br />
$formatted = ucwords(&#8221;TECHPREPARATIONS IS COLLECTION OF INTERVIEW QUESTIONS&#8221;);<br />
print $formatted;<br />
What will be printed is TECHPREPARATIONS IS COLLECTION OF INTERVIEW QUESTIONS.<br />
ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first.</p>
<p>49.What’s the difference between htmlentities() and htmlspecialchars()?<br />
htmlspecialchars only takes care of <, >, single quote ‘, double quote &#8221; and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.<br />
50.How can we extract string &#8220;abc.com&#8221; from a string &#8220;mailto: info@abc.com?subject=Feedback&#8221; using regular expression of PHP?<br />
$text = &#8220;mailto: info@abc.com?subject=Feedback&#8221;;<br />
preg_match(&#8217;|.*@([^?]*)|&#8217;, $text, $output);<br />
echo $output[1];<br />
Note that the second index of $output, $output[1], gives the match, not the first one, $output[0].<br />
51.So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?<br />
Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.<br />
52.How can we destroy the session, how can we unset the variable of a session?<br />
session_unregister() - Unregister a global variable from the current session<br />
session_unset() - Free all session variables<br />
53.Sorting functions in PHP:<br />
asort()<br />
arsort()<br />
ksort()<br />
krsort()<br />
uksort()<br />
sort()<br />
natsort()<br />
rsort()<br />
54.How can we know the count/number of elements of an array?<br />
2 ways:<br />
a) sizeof($array) - This function is an alias of count()<br />
b) count($urarray) - This function returns the number of elements in an array.<br />
Interestingly if you just pass a simple var instead of an array, count() will return 1.<br />
55.How many ways we can pass the variable through the navigation between the pages?<br />
At least 3 ways:<br />
1. Put the variable into session in the first page, and get it back from session in the next page.<br />
2. Put the variable into cookie in the first page, and get it back from the cookie in the next page.<br />
3. Put the variable into a hidden form field, and get it back from the form in the next page.</p>
<p>56.Who is the father of PHP and explain the changes in PHP versions?<br />
Rasmus Lerdorf is known as the father of PHP.PHP/FI 2.0 is an early and no longer supported version of PHP. PHP 3<br />
is the successor to PHP/FI 2.0 and is a lot nicer. PHP 4 is the current<br />
generation of PHP, which uses the<br />
Zend engine<br />
under the<br />
hood. PHP 5 uses<br />
Zend engine 2 which,<br />
among other things, offers many additionalOOP features</p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=94</wfw:commentRss>
		</item>
		<item>
		<title>Basic steps for making website SEO</title>
		<link>http://narusoft.co.in/?p=86</link>
		<comments>http://narusoft.co.in/?p=86#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:42:32 +0000</pubDate>
		<dc:creator>Narendra</dc:creator>
		
		<category><![CDATA[Tech Writing]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=86</guid>
		<description><![CDATA[No one knows exactly what the Search Engine&#8217;s (SE&#8217;s) look for when they show a site at the top of their results. There are, however, many optimization techniques used that have proven to provide great results.
 
Some of the techniques I will tell you about here are techniques that I have personally gotten great results with. [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">No one knows exactly what the Search Engine&#8217;s (SE&#8217;s) look for when they show a site at the top of their results. There are, however, many optimization techniques used that have proven to provide great results.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Some of the techniques I will tell you about here are techniques that I have personally gotten great results with. SEO optimization is something that is frequently changing but if you learn at least the basics you won&#8217;t go wrong.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Document type defination (DTD) is also known as Doctype, doctype informs the browser how to interpret the content of the page. If the doctype is not declared, the browser assumes you don’t know how to code, and goes into quirks mode. If you know what you are doing and include a correct HTML doctype, your page will be rendered in standards mode.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Using Valid HTML and CSS code.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Validate your html and css code and make your code w3c standard.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Validate your html code here</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">http://validator.w3.org</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Validate your css code here</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">http://jigsaw.w3.org/css-validator</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Title - Make sure your title is TO THE POINT. However, you also want the title to be appealing. Be sure to get your main keyword in there without adding too many &#8220;stop&#8221; words such as &#8220;the, as, only&#8221; etc. but also make sure it&#8217;s appealing to the viewer. The title is what will influence your potential viewers in the Search Engine Result Pages (SERPS.)</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Use H1 and H2 tags with your main and secondary keywords. Most SE’s give a lot of weight to words that are wrapped in these tags.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Search Engine Optimization (SEO) means you are optimizing your website in order to gain top SE placement. This means link building, placing relevant, fresh content on your pages and inserting the correct META tags etc</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">The phrase &#8220;keyword saturation&#8221; refers to the number of times your keyword shows up on any given page. Each page on your site should have a different main keyword. You need to use this main keyword in the content of the page you are creating but do not get too carried away</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Use underline, bold, strong and italics tags on each pages keywords. This SEO tip is one that has proven to be very valuable.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Copy, A minimum of 200 words of copy is suggested for each web page. In order to spider a site a search engine must have sufficient copy to spider. Less does not necessarily mean more, when it comes to search engine ranking. In general try to keep copy “above the fold”, so that visitors don’t have to scroll. Copy above the fold is usually sufficient to determine the context of the webpage.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Describe your images with the use of the alt tag. This will help search engines that index images to find your pages and will also help readers who use text only web browsers.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Add an HTML sitemap to your site. Sitemaps are an import part of SEO optimization because they give the search engines a ‘hub’ where their spiders can find all of your pages through one single page.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Make your web site load fast.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Don’t mess up your site with heavy images that makes your site heavy and slow, try to optimize images that reduce weight and helps to load fast.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Conclusion</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">However, in this post we’ve provided you with enough basic tips to get started optimizing both yours and your client’s website. And also you have to try to learn Gateway pages, doorway pages and little bit of SEO algorithms.</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;"> </span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><span style="font-family: Verdana;"><span style="font-size: small;">Keep Learning …..Narendra Padala</span></span></p>
<p class="MsoNormal" style="margin: 0pt;"><a href="http://narusoft.co.in/wp-content/uploads/2009/05/thanks1.gif"><img class="alignleft size-medium wp-image-91" title="Thanks" src="http://narusoft.co.in/wp-content/uploads/2009/05/thanks1-300x36.gif" alt="" width="300" height="36" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=86</wfw:commentRss>
		</item>
		<item>
		<title>Sripuram Golden temple and Vellore Trip</title>
		<link>http://narusoft.co.in/?p=45</link>
		<comments>http://narusoft.co.in/?p=45#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:25:32 +0000</pubDate>
		<dc:creator>Narendra</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=45</guid>
		<description><![CDATA[I feel fortunate to share my Sripuram golden temple and Vellore fort trip one of my friend coming to Chennai for that we have to plan for that trip on 1 march 2009. For that purpose my friends manohar, uday kiran ,rajesh , nages , bindu and deepu we are starting at early morning 6 [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-family: Verdana; color: #333333;"><span style="font-size: small;">I feel fortunate to share my Sripuram golden temple and Vellore fort trip one of my friend coming to Chennai for that we have to plan for that trip on 1 march 2009. For that purpose my friends manohar, uday kiran ,rajesh , nages , bindu and deepu we are starting at early morning<span style="mso-spacerun: yes;"> </span>6 ‘0 clock in vadapalani and reach the C.M.B.T bus stop<span style="mso-spacerun: yes;"> </span>and catch the Vellore bus , and we reached Vellore central bus stand at 10’o clock then. The temple is 12 km from the central bus stand, and we catch the bus and reach the temple.o<br />
</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small;"><span style="font-family: Verdana; color: #333333;">We are standing in the line for darasanam, the line should be separated  ladies and gents for checking purpose. They are prohibited cameras and cell phones in to the temple,so we have to submitted our  mobiles to the security and<span style="mso-spacerun: yes;"> </span>pay the 5 rupees for each mobile and collect at last. Then we are enter into the temple<span style="mso-spacerun: yes;">. </span></span><span style="font-family: Verdana; color: #000000;">A Mahalakshmi temple called &#8216;Sripuram&#8217; and made of more than a tonne of pure gold will glitter and gleam under the sun on August 24 when it is unveiled for consecration by the Sri Narayani Peetam headed by a 31-year-old godman who calls himself Narayani Amma, The temple maintained very well but in that I found one thing I am not able to agree this thing in the temple surroundings all the Nararyani photos are more compare to the goddess Mahalakshmi ,A temple very nice the compound wall like star shape inside the temple compound one artificial pond is their people believed if they throw<span style="mso-spacerun: yes;"> </span>any thing like gold bangles, credit cards money in to the pond we will get back double. After the completion of my darasanam we get the prasadam we are all surprised about prasadam why because we are all Andhra people the prasadam is sambar rice. We never take that type prasadam in Andhra but its Tamil people culture I respect Tamil culture.</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"><a href="http://narusoft.co.in/wp-content/uploads/2009/03/101-temple-view-in-the-night-light.png"><img class="alignnone size-medium wp-image-55" title="101-temple-view-in-the-night-light" src="http://narusoft.co.in/wp-content/uploads/2009/03/101-temple-view-in-the-night-light.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/091-temple-at-sun-setting-time.png"><img class="alignnone size-medium wp-image-54" title="091-temple-at-sun-setting-time" src="http://narusoft.co.in/wp-content/uploads/2009/03/091-temple-at-sun-setting-time.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/081-temple-centre-gharbhagudi.png"><img class="alignnone size-medium wp-image-53" title="081-temple-centre-gharbhagudi" src="http://narusoft.co.in/wp-content/uploads/2009/03/081-temple-centre-gharbhagudi.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/071-pillers-of-the-temple.png"><img class="alignnone size-medium wp-image-52" title="071-pillers-of-the-temple" src="http://narusoft.co.in/wp-content/uploads/2009/03/071-pillers-of-the-temple.png" alt="" width="144" height="72" /></a></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"><a href="http://narusoft.co.in/wp-content/uploads/2009/03/061-pillars-of-the-temple.png"><img class="alignnone size-medium wp-image-51" title="061-pillars-of-the-temple" src="http://narusoft.co.in/wp-content/uploads/2009/03/061-pillars-of-the-temple.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/051-tomb-of-the-temple-day-view.png"><img class="alignnone size-medium wp-image-50" title="051-tomb-of-the-temple-day-view" src="http://narusoft.co.in/wp-content/uploads/2009/03/051-tomb-of-the-temple-day-view.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/041-top-view-of-the-temple.png"><img class="alignnone size-medium wp-image-49" title="041-top-view-of-the-temple" src="http://narusoft.co.in/wp-content/uploads/2009/03/041-top-view-of-the-temple.png" alt="" width="144" height="72" /></a><a href="http://narusoft.co.in/wp-content/uploads/2009/03/031-route-to-the-temple.png"><img class="alignnone size-medium wp-image-48" title="031-route-to-the-temple" src="http://narusoft.co.in/wp-content/uploads/2009/03/031-route-to-the-temple.png" alt="" width="144" height="72" /></a></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"><a href="http://narusoft.co.in/wp-content/uploads/2009/03/021-complete-temple-view.png"><img class="alignnone size-medium wp-image-47" title="021-complete-temple-view" src="http://narusoft.co.in/wp-content/uploads/2009/03/021-complete-temple-view.png" alt="" width="144" height="72" /></a></span></span><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"> <a href="http://narusoft.co.in/wp-content/uploads/2009/03/011-ariel-view-of-the-temple-premises.png"><img class="alignnone size-medium wp-image-46" title="011-ariel-view-of-the-temple-premises" src="http://narusoft.co.in/wp-content/uploads/2009/03/011-ariel-view-of-the-temple-premises.png" alt="" width="144" height="72" /></a><span style="font-family: Verdana; color: #000000; font-size: 12pt;"><a title="Sripuram Golden temple photos" href="http://www.flickr.com/photos/naru1984mca/page2/" target="_blank">More photos Click</a> </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-family: Verdana; color: #000000;">Afternoon we went to the Vellore fort, It was </span><span style="font-family: Verdana;">built in 16th century by Sinna Bommi Nayak, a vasal chieftain under the Vijayanagar kings,Sada Sriranga Maharaja. It is constructed of granite blocks and surrounded by a moat which is supplied by a subterranean drain fed from a tank. Later, it became the fortress of Mortaza Ali, the brother-in-law of Chanda Sahib who claimed the Arcot throne, and was taken by the Adil Shah sultans of Bijapur. In 1676, it passed briefly into the hands of the Marathas until they, in turn, were displaced by the nawab, Daud Khan, of Delhi in 1708. The British occupied the fort in 1760, following the fall of Srirangapatnam and the death of Tipu Sultant. I have get this information from the net.</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span class="content1"><span style="font-family: Verdana; color: #333333;">We are<span style="mso-spacerun: yes;"> </span>entered into the jalakandeswara temple it is situated inside the fort is famous for its magnificient architecture.built by the vijayanagar kings in 16th century it is the abode of lord siva. The temple is at a lower level from surroundings and has granita outer walls and massive doors with iron lotuses fixed on it. Inside the temple we are enjoyed a lot my friend manohar done good comedy in we are enjoyed a lot,</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-family: Verdana;"><span class="content1"><span style="color: #333333;"><a href="http://narusoft.co.in/wp-content/uploads/2009/03/vellore-fort_2592.jpg"><img class="alignnone size-medium wp-image-56" title="vellore-fort_2592" src="http://narusoft.co.in/wp-content/uploads/2009/03/vellore-fort_2592.jpg" alt="" width="300" height="140" /></a></span></span></span></p>
<div><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"></span></span></div>
<div><span style="font-size: small;"><span style="font-family: Verdana; color: #000000;"></span></span></div>
<p> </p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span class="content1"><span style="font-family: Verdana; color: #333333;">Me manohar and nages we are all round trip on the compound wall of the fort at night we reached home very late here I am providing the link for my trip Vellore fort and Sripuram Golden temple photo graphs…. For photos <a title="Vellore Fort photos" href="http://www.flickr.com/photos/naru1984mca/?donelayout=1" target="_blank">click here…</a></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;">
<p class="MsoNormal" style="margin: 0in 0in 0pt;"> </p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=45</wfw:commentRss>
		</item>
		<item>
		<title>ASP.NET Faqs</title>
		<link>http://narusoft.co.in/?p=20</link>
		<comments>http://narusoft.co.in/?p=20#comments</comments>
		<pubDate>Wed, 25 Feb 2009 10:18:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=20</guid>
		<description><![CDATA[1. What is ASP.NET?
ASP.NET is the technology to build web applications using .NET. It is integrated into .NET. ASP.NET engine is responsible for processing .aspx file. 
2. Do I need to install IIS to run asp.net applications?
No. Though in production environment IIS is used, at the time of development, you can test your applications using [...]]]></description>
			<content:encoded><![CDATA[<h3>1. What is ASP.NET?</h3>
<p>ASP.NET is the technology to build web applications using .NET. It is integrated into .NET. ASP.NET engine is responsible for processing .aspx file. <a name="2"></a></p>
<h3>2. Do I need to install IIS to run asp.net applications?</h3>
<p>No. Though in production environment IIS is used, at the time of development, you can test your applications using ASP.NET Development Server, which is provided by Microsoft along with Visual Studio.NET and Visual Web Developer. <a name="3"></a></p>
<h3>3. What language do i have to have to develop asp.net applications?</h3>
<p>You have to be reasonbly good at either C# or VB.NET as the code is written in either of them. Knowledge of SQL is a must if you have to talk to database. HTML is a must (you know it is easy to learn) and JavaScript is required if you want to write any code that executes on client. Of course you make use of Web controls, ADO.NET etc which are part of .NET Framework class library. <a name="4"></a></p>
<h3>4. Is it better to write code in C# or Visual Basic?</h3>
<p>You can write code for your Web application in any language supported by the .NET Framework. That includes Visual Basic, C#, J#, JScript, and others. Although the languages have different syntax, they all compile to the same object code.</p>
<p>The languages have small differences in how they support different features. For example, C# provides access to unmanaged code, while Visual Basic supports implicit event binding via the Handles clause. However, the differences are minor, and unless your requirements involve one of these small differences, the choice of programming language is one of personal preference. Once programs are compiled, they all perform identically; that is, Visual Basic programs run just as fast as C# programs, since they both produce the same object code (Intermediate Language). <a name="5"></a></p>
<h3>5. Can I hide the source code for my page?</h3>
<p>Server-side code is processed on the server and is not sent to the browser, so users cannot see it. However, client script is not protected; any client script that you add to your page, or that is injected into the page by server processing, is visible to users. If you are concerned about protecting your source code on the server, you can precompile your site and deploy the compiled version. <a name="6"></a></p>
<h3>6. What is postback?</h3>
<p><a name="7"></a></p>
<h3>7. What is viewstate?</h3>
<p>ViewState is a mechanism to maintain state of web controls of ASP.Net pages. It is used to preserve the value of the web control between postbacks.</p>
<p>ViewState is a hidden field maintained by ASP.Net to contain page data.</p>
<p>You can disable viewstate for a control by setting enableviewstate prorty to false. <a name="8"></a></p>
<h3>8. What are the main folder in an ASP.NET 2.0 application?</h3>
<p>Asp.net 2.0 provides diffent folder for diffrent purposes. The following table shows commonly used folders.</p>
<table border="1">
<tbody>
<tr>
<th>Folder</th>
<th>Description</th>
</tr>
<tr>
<td>App_Code</td>
<td>Contains all .cs or .vb files. Basically it contains code files</td>
</tr>
<tr>
<td>App_Data</td>
<td>Contains data files like .MDF files</td>
</tr>
<tr>
<td>App_themes</td>
<td>Contains themes created in the project</td>
</tr>
</tbody>
</table>
<p><a name="9"></a></p>
<h3>9. Is possible to create an application where different pages use different languages for coding?</h3>
<p>Yes. You can create pages with different languages.</p>
<p>But, if you are creating source code files and putting them in the \App_Code folder to be compiled at run time, all the code in must be in the same language.</p>
<p>However, you can create subfolders in the \App_Code folder and use subfolders to store components written in different programming languages. <a name="10"></a></p>
<h3>10. What is single file vs. two file aspx?</h3>
<p>Single file .aspx is where both the content and page are placed in a single .aspx file.</p>
<p>Two file .aspx is where content (tags) is placed in .aspx file and code is placed in .aspx.cs or .aspx.vb file.</p>
<p>Both provide same performance. The choice is mainly depending on <a name="11"></a></p>
<h3>11. Can a single .ASPX contain two web forms?</h3>
<p>No. <a name="12"></a></p>
<h3>12. How do I create an ASPX page that periodically refreshes itself?</h3>
<p>Most browsers recognize the following META tag as a signal to automatically refresh the page every nn seconds:<br />
&lt;meta http-equiv=&#8221;Refresh&#8221; content=&#8221;nn&#8221;&gt;<br />
<strong>nn </strong>is number of seconds.</p>
<p>Alternatively you can use <strong>Response.AppendHeader</strong> to add header &#8220;Refresh&#8221; with appropriate interval in seconds. The following page will be refreshed for every 10 seconds.</p>
<pre>  response.appendheader("refresh",10)</pre>
<p><a name="13"></a></p>
<h3>13. How can an ASP.NET application determine whether cookies are enabled in a browser?</h3>
<p>Determining whether cookies are enabled requires a round trip to the browser and back. The basic strategy is to return a cookie in an HTTP response and redirect to a page that checks for the cookie.</p>
<pre class="code">&lt;%
    ' Page1.aspx
    dim c as new HttpCookie("c1", "v1")
    Response.Cookies.Add (cookie)
    Response.Redirect ("page2.aspx")

%&gt;

&lt;%
   ' page2.aspx

   dim c as HttpCookie

   c = Request.Cookies("c1")
   if c is nothing or  c.value &lt;&gt; "v1" then
          Response.Write ("Cookies are not enabled")
   else
          Response.Write ("Cookies are enabled")
%&gt;</pre>
<p><a name="14"></a></p>
<h3>14. How can ASP.NET application transmit data from one page to another?</h3>
<p>One way to transfer data from page to page is to use querystring as follows:</p>
<pre class="code">&lt;%
  ' Page1.aspx
  dim st as string = "somevalue"
  response.redirect("page2.aspx?value=" &amp; st)

%&gt;

&lt;%
   ''page2.aspx

   dim st as string
   st = request.querystring("value")

%&gt;</pre>
<p>Another ways is to store data in SESSION variable. The following code shows it:</p>
<pre class="code">&lt;%
  '' Page1.aspx
  dim st as string = "somevalue"
  session("value") = st
  response.redirect("page2.aspx")

%&gt;

&lt;%
   ''page2.aspx

   dim st as string
   st = session("value")

%&gt;</pre>
<p><a name="15"></a></p>
<h3>15. Is it possible to create a GridView that uses scrolling rather than paging?</h3>
<p>With a little help from a &lt;div&gt; tag, yes. The following ASPX file displays scrolling table:</p>
<pre class="code">&lt;script runat=server&gt;

  bind data to grid

&lt;/script&gt;

&lt;html&gt;
  &lt;body&gt;
    &lt;form runat="server"&gt;
      &lt;div style="height: 256px; overflow: auto"&gt;
        &lt;asp:GridView ID="gv1" Width="100%" RunAt="server" /&gt;
      &lt;/div&gt;
    &lt;/form&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>
<p><a name="16"></a></p>
<h3>16. Is there any limit for query string? if means what is the maximum size?</h3>
<p>Yes. But, it depends on browser. Generally 255 bytes. However it all depends on browser and os. <a name="17"></a></p>
<h3>17. What are different layers commonly used in an Asp.Net application?</h3>
<p>There are three layers.</p>
<ul>
<li>Presentation or interface layer consiting of web forms.</li>
<li>Business logic layer (BLL) consisting of classes do to business logic.</li>
<li>Data Access Layer(DAL) is used to access back-ends such as SQL Server.</li>
</ul>
<p><a name="18"></a></p>
<h3>18. What is the limit regarding cookies on the browser?</h3>
<p>A maximum of 300 cookies can be stored on the user&#8217;s system. No cookie can be larger than 4 kilobytes. No server or domain can place more than 20 cookies on a user&#8217;s system <a name="19"></a></p>
<h3>19. What is the difference between web.config and machine.config?</h3>
<p>The settings made in the web.config file are applied to that particular web application only whereas the settings of machine.config file are applied to all asp.net applications on the system. <a name="20"></a></p>
<h3>20. What are the methods you have to send control from one page to another</h3>
<p>You can use either Response.Redirect(url) or Server.Transfer(url) or Server.Execute(url). <a name="21"></a></p>
<h3>21. What is the difference between Response.Redirect() and Server.Transfer() ?</h3>
<p>Server.Transfer() is used when redirecting to a page within the same application whereas Response.Redirect() can transfer to pages in other applications also.</p>
<p>Response.Redirect will instruct browser to call a particular webpage.This will increase one request and one response between the client and server.</p>
<p>From end-user&#8217;s perspective, the url doesn&#8217;t change in browser for Server.Transfer() but it does for Response.Redirect(). <a name="22"></a></p>
<h3>22. How can I get programmatic access to ASP.NET configuration settings?</h3>
<p>You can read, create, or modify configuration settings from within an ASP.NET application by using the ASP.NET management API. You can develop your own applications including Web applications, console applications, and scripts that use the management API. One of the classes in management API is WebConfigurationManager. <a name="23"></a></p>
<h3>23. How do you ensure that user selects an option in a dropdown list?</h3>
<p>It can be achieved by using InitialValue property of RequiredFieldValidator control as follows.</p>
<pre class="code">&lt;form id="form1" runat="server"&gt;
        &lt;asp:DropDownList ID="DropDownList1" runat="server"&gt;
            &lt;asp:ListItem Value="-1"&gt;--Select Item--&lt;/asp:ListItem&gt;
            &lt;asp:ListItem&gt;First Item&lt;/asp:ListItem&gt;
            &lt;asp:ListItem&gt;Second Item&lt;/asp:ListItem&gt;
        &lt;/asp:DropDownList&gt;
        &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
            ErrorMessage="Please select a valid option" ControlToValidate="DropDownList1" InitialValue="-1"&gt;
        &lt;/asp:RequiredFieldValidator&gt;
        &lt;asp:Button ID="Button1" runat="server" Text="Button" /&gt;
&lt;/form&gt;</pre>
<p><a name="24"></a></p>
<h3>24. Can an application have more than one web.config file?</h3>
<p>Yes provided they are placed in different folders of the application.</p>
<p>An asp.net application is a virtual directory that you make on a web server. This application will take the settings of machine.config file if a web.config file is not available in that directory. Now if you create a sub directory inside a virtual directory and place another web.config file in the sub directory then the sub directory will take the settings of the web.config file in that particular directory. <a name="25"></a></p>
<h3>25. What do you do if you have a few pages in your application that do not require authentication?</h3>
<p>Assume you have register.aspx and forgotpassword.aspx file which do not require any authentication. But the rest of the pages in the application should be accessible only to authenticated users.</p>
<p>Create a separate folder for register.aspx and forgotpassword.aspx called ALL.Place these pages in that folder and create the following web.config in that folder.</p>
<pre class="code">&lt;configuration&gt;l
    &lt;appSettings/&gt;l
    &lt;connectionStrings/&gt;l
    &lt;system.web&gt;l
      &lt;authorization&gt;l
        &lt;allow users="*"/&gt;l
      &lt;/authorization&gt;l
    &lt;/system.web&gt;l
&lt;/configuration&gt;l</pre>
<p><a name="26"></a></p>
<h3>26. What is the base class for asp.net page?</h3>
<p>Every asp.net page is converted to a class, which is derived from System.Web.UI.Page class. Starting from Asp.Net 2.0 partial class concept is used for code behind. So, if you create an asp.net page with name default.aspx, the following is the code generated by Visual Studio.Net.</p>
<pre class="code">Partial Class Default
    Inherits System.Web.UI.Page

End Class</pre>
<p><a name="27"></a></p>
<h3>27. What is AutoEventWireup atttribute in Page directive?</h3>
<p>When you set the value of the AutoEventWireup attribute to true, the ASP.NET runtime does not require events to specify event handlers like the Page_Load event or the Page_Init event.</p>
<p>When you set the value of the AutoEventWireup attribute to false, you must manually hook up events to event handlers. When you set the value of the AutoEventWireup attribute to true, the ASP.NET page framework can automatically raise events.</p>
<p>If the value of the AutoEventWireup attribute is set to false, you must override the OnInit function, and then you must add a new delegate for Page_Load event handler explicitly.</p>
<p>The following example shows the difference between setting AutoEventWireup to true and false. Run the page by first setting AutoEventWireup to false. Click on the button. Then set AutoEventWireup to true and run again. Click on the button. You can see difference between these two.</p>
<h4>AutoEventDemo.aspx</h4>
<pre class="code">&lt;%@ Page Language="C#" AutoEventWireup="false" CodeFile="autoevent.aspx.cs" Inherits="all_autoevent" %&gt;

&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;
        &lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<h4>AutoEventDemo.aspx.cs</h4>
<pre class="code">using System;

public partial class AutoEventDemo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write("Page Load ");

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("You Clicked On Button");
    }
}</pre>
<p>If performance is a key consideration, do not set the value of the AutoEventWireup attribute to true. The AutoEventWireup attribute requires the ASP.NET page framework to make a call to the CreateDelegate function for every ASP.NET Web Form page. Instead of using automatic hookup, you must manually override the events from the page. <a name="28"></a></p>
<h3>28. What events fire when a page life cycle?</h3>
<p>The following major events occurs in the life cycle of a page.</p>
<pre>PreInit
Init
InitComplete
PreLoad
Load
LoadComplete
PreRender
SaveStateComplete
Render
Unload</pre>
<p>For more details regarding page life cycle, see <a href="http://msdn.microsoft.com/en-us/library/ms178472.aspx">article in msdn</a> <a name="29"></a></p>
<h3>29. What is AutoPostBack property? How is it difference from IsPostBack property?</h3>
<p>AutoPostBack is a property to cause postback for controls (such as dropdownlist and checkbox) that otherwise do not cause postback. Set this property to true to make dropdownlist to cause postback when user selects a diffent item in the dropdownlist.</p>
<p>IsPostBack is a property of Page class,which returns true if page is called because of postback. <a name="30"></a></p>
<h3>30. What is the use of Request.MapPath()?</h3>
<p>Request.MapPath() is used to convert virtual path to physical path. Virtual path is path understood by your web server. For example, web server understands /photo/logo.jpg. But that is not understood by OS so convert this to physical path using Request.MapPath().</p>
<p>For example FileUpload control&#8217;s SaveAs() method expects physical path so the following converts virtual path to physical path.</p>
<pre class="code">FileUpload1.SaveAs( Request.MapPath("photos/logo.jpg"));</pre>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
		<item>
		<title>.Net Faqs</title>
		<link>http://narusoft.co.in/?p=22</link>
		<comments>http://narusoft.co.in/?p=22#comments</comments>
		<pubDate>Sun, 25 Jan 2009 10:22:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=22</guid>
		<description><![CDATA[1. What is .NET?
.NET is a general-purpose software development platform, similar to Java. At its core is a virtual machine (called as CLR) that turns intermediate language (IL) into machine code. High-level language compilers for C#, VB.NET and C++ are provided to turn source code into IL. C# is a new programming language, very similar [...]]]></description>
			<content:encoded><![CDATA[<h3>1. What is .NET?</h3>
<p>.NET is a general-purpose software development platform, similar to Java. At its core is a virtual machine (called as CLR) that turns intermediate language (IL) into machine code. High-level language compilers for C#, VB.NET and C++ are provided to turn source code into IL. C# is a new programming language, very similar to Java. An extensive class library is included, featuring all the functionality one might expect from a contempory development platform - windows GUI development (Windows Forms), database access (ADO.NET), web development (ASP.NET), web services, XML etc.</p>
<p><a name="2"></a></p>
<h3>2. What platforms does .NET run on?</h3>
<p>Currently, it is supported on Windows 98, Windows 2000/2003, Windows XP and Windows Vista. ASP.NET integrates with Internet Information Server (IIS) and thus requires that IIS be installed.</p>
<p><strong>.NET Compcat Framework</strong> runs on Windows CE or Windows Mobile.</p>
<p><strong>Mono</strong> is an open source project to provide .Net on Linux.</p>
<p><a name="3"></a></p>
<h3>3. What is the CLI? Is it the same as the CLR?</h3>
<p>The CLI (Common Language Infrastructure) is the definiton of the fundamentals of the .NET framework - the Common Type System (CTS), metadata, the Virtual Execution Environment (VES) and its use of intermediate language (IL), and the support of multiple programming languages via the Common Language Specification (CLS).</p>
<p>The CLR (Common Language Runtime) is Microsoft&#8217;s primary implementation of the CLI. Other implementations are; the .NET Compact Framework for mobile devices, non-Microsoft CLI implementations like Mono and DotGNU Portable.NET.</p>
<p><a name="4"></a></p>
<h3>4. What is IL?</h3>
<p>IL = Intermediate Language. Also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language). All .NET source code (of any language) is compiled to IL during development. The IL is then converted to machine code at run-time by a Just-In-Time (JIT) compiler. Just like how Java programs are converted to Bytecode, C# and VB.NET code is converted to IL.</p>
<p><a name="5"></a></p>
<h3>5. What versions of .NET and when they were released?</h3>
<p>Microsoft first announced .NET in June,2000. The following were the offical releases of .NET.</p>
<ul>
<li>.NET 1.0 was relased in Feb,2002</li>
<li>.NET 1.1 was relased in Apr,2003</li>
<li>.NET 2.0 was relased in Nov,2005</li>
<li>.NET 3.0 was relased in Nov,2006</li>
<li>.NET 3.5 was relased in Nov,2007</li>
</ul>
<p>The following table shows ASP.NET and C# versions along with .NET versions.</p>
<table border="1" cellpadding="2">
<tbody>
<tr>
<th>.NET</th>
<th>ASP.NET</th>
<th>C#</th>
</tr>
<tr>
<td>1.0</td>
<td>1.0</td>
<td>1.0</td>
</tr>
<tr>
<td>1.1</td>
<td>1.1</td>
<td>1.1</td>
</tr>
<tr>
<td>2.0</td>
<td>2.0</td>
<td>2.0</td>
</tr>
<tr>
<td>3.0</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>3.5</td>
<td>3.5</td>
<td>3.0</td>
</tr>
</tbody>
</table>
<p><a name="6"></a></p>
<h3>6. What&#8217;s the major additon in the latest versions of .NET 3.5?</h3>
<p>LINQ (Language Integrated Query) is a new way to access database, xml documents and collections. It enables programmers to access all data sources with expressions in C# and VB.NET. For example, we can access database without using any SQL using C# or VB.NET expressions.</p>
<p><a name="7"></a></p>
<h3>7. What is C#?</h3>
<p>C# is a new language designed by Microsoft to work with the .NET framework. In their &#8220;Introduction to C#&#8221; whitepaper, Microsoft describe C# as follows: &#8220;C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced â€œC sharpâ€) is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.&#8221;</p>
<p>C# (or VB.NET) can be used to develop all types of applications - Console, Windows, Web, Web Services and Mobile.</p>
<p><a name="8"></a></p>
<h3>What does &#8216;Managed code&#8217; mean in the .NET?</h3>
<p>The .NET framework provides several core run-time services to the programs that run within it - for example exception handling, memory management and security. For these services to work, the code must provide a minimum level of information to the runtime. Such code is called managed code.</p>
<p>Managed data: This is data that is allocated and freed by the .NET runtime&#8217;s garbage collector.</p>
<p><a name="9"></a></p>
<h3>9. What is an assembly?</h3>
<p>Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly. An assembly may be either a .EXE or .DLL file. It contains code that the common language runtime executes. <a name="10"></a></p>
<h3>10. What are different types of Assemblies?</h3>
<p>Assemblies are classified as private assemblies and global assemblies.</p>
<p>Private assemblies are simple and copied to bin directory of the application that is using it.</p>
<p>Shared assemblies (also called as gobal assemblies) are copied to a single location called GAC (Global assembly cache). Hence, shared assemblies are not copied in the private folders of each calling application.</p>
<p>Each shared assembly has a four part name including its name, version, public key token and culture information. The public key token and version information makes it almost impossible for two different assemblies with the same name or for two similar assemblies with different version to mix with each other.</p>
<p><a name="11"></a></p>
<h3>11. What is the difference between a namespace and an assembly name?</h3>
<p>A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. The .NET Framework uses a hierarchical naming scheme for grouping types into logical categories of related functionality.</p>
<p>The concept of a namespace is not related to that of an assembly. A single assembly may contain types whose hierarchical names have different namespace roots, and a logical namespace root may span multiple assemblies.</p>
<p>In the .NET Framework, a namespace is a logical design-time naming convenience, whereas an assembly establishes the name scope for types at run time.</p>
<p><a name="12"></a></p>
<h3>12. What is meant by un-safe code?</h3>
<p>By un-safe code, it means that the managed program can access the memory address using pointers. There are two points to remember here:</p>
<ul>
<li>Un-safe code is different from un-managed as it is still managed by the CLR</li>
<li>You still can not perform pointer arithmetic in un-safe code.</li>
</ul>
<p><a name="13"></a></p>
<h3>13. What is the difference between Unmanaged and Unsafe code?</h3>
<p>Un-managed code runs outside the Common Language Runtime (CLR) control while the unsafe code runs inside the CLRâ€™s control. Both un-safe and un-managed codes may use pointers and direct memory addresses. <a name="14"></a></p>
<h3>14. What are the shortcomings of MS.NET platform?</h3>
<p>The foremost short coming of .NET platform is that it is still the propriety of Microsoft. It is more coupled with the Microsoft Windows operating system and is implemented only on Microsoft Windows successfully. MS.NET desktop applications can run only on Microsoft Windows, Web based applications and web services can only be deployed on Microsoft Internet Information Server (IIS). Since, dot net framework contains a lot of utilities, components, and framework class libraries, the size of downloadable framework is quite large (25MB compared to 5MB size of JVM). The managed .Net applications are somewhat slower to start and run than the traditional Win32 applications. The compiled code of .Net managed applications is easier to de-compile back to the source code. <a name="15"></a></p>
<h3>15. Can I use the Win32 API from a .NET Framework program?</h3>
<p>Using platform invoke it&#8217;s possible. .NET Framework programs can access native code libraries by means of static DLL entry points. Here is an example of C# calling the Win32 MessageBox function:</p>
<pre class="code">using System;
using System.Runtime.InteropServices;

class MainApp
{
    [DllImport("user32.dll", EntryPoint="MessageBox")]
    public static extern int MessageBox(int hWnd, String strMessage, String strCaption, uint uiType);

    public static void Main()
    {
       MessageBox(0, "This is PInvoke in operation!", ".NET", 0 );
    }
}</pre>
<p><a name="16"></a></p>
<h3>16. What is serialization in .NET and what are the ways to control serialization?</h3>
<p>Serialization is the process of converting an object into a stream of bytes. On the other hand Deserialization is the process of creating an object from a stream of bytes. Serialization/Deserialization is used to transport or to persist objects. Serialization can be defined as the process of storing the state of an object to a storage medium.</p>
<p>You can serialize an object to a stream, disk, memory, over a network, and so forth. Remoting uses serialization to pass objects &#8220;By Value&#8221; from one computer or application domain to another.</p>
<p>XML serialization serializes only public properties and fields and does not preserve Type fidelity. This is useful when you want to provide or consume data without restricting the application that uses the data.</p>
<p>As XML is an open standard, it is an attractive choice for sharing data across the Web. SOAP is also an open standard, which makes it an attractive choice too. There are two separate mechanisms provided by the .NET class library - XmlSerializer and SoapFormatter/BinaryFormatter. Microsoft uses XmlSerializer for Web Services, and uses SoapFormatter/BinaryFormatter for remoting. Both are available for use in your own code.</p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
		<item>
		<title>Frequently asked questions in C</title>
		<link>http://narusoft.co.in/?p=26</link>
		<comments>http://narusoft.co.in/?p=26#comments</comments>
		<pubDate>Wed, 10 Dec 2008 12:26:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[FAQ]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=26</guid>
		<description><![CDATA[  C is interviewer’s favorite language. If you have good command on C language you can get through Technical Interview easily. Most of the interviewers ask basic questions in C. Some times they may ask you to write small programs like reversal of a string, determining whether the given number is a palindrome or not [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-small;"><span style="font-family: Verdana;">  <span style="font-size: 10pt; color: #000000;"><span style="font-family: Verdana,sans-serif;">C is interviewer’s favorite language. If you have good command on C language you can get through Technical Interview easily. Most of the interviewers ask basic questions in C. Some times they may ask you to write small programs like reversal of a string, determining whether the given number is a palindrome or not and finding factorial of a given number using recursion etc. You should be able to write these programs quickly.</span></span></span></span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: x-small; font-family: Verdana,   Arial, Helvetica,   sans-serif;"><span style="color: #000000;"><span style="font-family: Verdana; mso-bidi-font-weight: bold;"> Most favorite question for interviewers is interchanging two variables with out using the third variable. Another favorite topic for interviewers is Pointers. Please go through pointers once before going to the interview. </span></span></span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: x-small; font-family: Verdana,   Arial, Helvetica,   sans-serif;"><span style="color: #000000;"><span style="font-family: Verdana; mso-bidi-font-weight: bold;"> Many interviewers look for logic in your program rather than syntax. Once you write the program you should be able to explain the logic to the interviewer with the help of flow-chart or algorithm. If there are more than one logic for a single program, choose the logic that is simple and easy to understand at the same time it should efficient one.</span></span></span></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: x-small; font-family: Verdana,   Arial, Helvetica,   sans-serif;"><span style="color: #000000;"><span style="font-family: Verdana; mso-bidi-font-weight: bold;">Below are around 100 FAQ in C language. Try to answer these questions on your own. I believe that if you are able to answer these questions, you can easily get through the technical interview <a href="http://faqs-c.blogspot.com/" target="_blank">Click here for Faq</a></span></span></span></p>
<p><!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;}  ></p>
<p><! [endif] ><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">In this blog posted around 100 FAQ&#8217;S in C language. Try to answer these questions on your own. I believe that if you are able to answer these questions, you can easily get through the technical interview.</span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">C is interviewer’s favorite language. If you have good command on C language you can get through Technical Interview easily. Most of the interviewers ask basic questions in C. Some times they may ask you to write small programs like reversal of a string, determining whether the given number is a palindrome or not and finding factorial of a given number using recursion etc. You should be able to write these programs quickly.</span></p>
<p class="MsoNormal" style="text-indent: 0.5in;" mce_style="text-indent: 0.5in;"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Most favorite question for interviewers is interchanging two variables with out using the third variable. Another favorite topic for interviewers is Pointers. Please go through pointers once before going to the interview. </span></p>
<p class="MsoNormal" style="text-indent: 0.5in;" mce_style="text-indent: 0.5in;"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Many interviewers look for logic in your program rather than syntax. Once you write the program you should be able to explain the logic to the interviewer with the help of flow-chart or algorithm. If there are more than one logic for a single program, choose the logic that is simple and easy to understand at the same time it should efficient one.</span></p>
<p class="MsoNormal" style="text-indent: 0.5in;" mce_style="text-indent: 0.5in;"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Below are around 100 FAQ in C language. Try to answer these questions on your own. I believe that if you are able to answer these questions, you can easily get through the technical interview.</span></p>
<p class="MsoNormal" style="text-indent: 0.5in;" mce_style="text-indent: 0.5in;"><span style="font-family: Verdana; color: navy;" mce_style="font-family: Verdana; color: navy;"><a title="Frequently asked questions in C" href="http://faqs-c.blogspot.com/" mce_href="http://faqs-c.blogspot.com/" target="_blank">CLICK HERE FOR C FAQS</a></span>< ><--></p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=26</wfw:commentRss>
		</item>
		<item>
		<title>EVOLUTION OF HTML AND VERSIONS</title>
		<link>http://narusoft.co.in/?p=17</link>
		<comments>http://narusoft.co.in/?p=17#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tech Writing]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=17</guid>
		<description><![CDATA[ To date, HTML has gone through four major standards including the latest, 4.01. In addition to Html, Cascading styles sheets (CSS) and extensible markup Language (XML) have also provided valuable contributions to the way of the web.
HTML 1.0
HTML 1.0 was the never specified by the W3C, as it predated the organization. The standard supported a [...]]]></description>
			<content:encoded><![CDATA[<p> <span style="color: #000000;"><span style="font-size: 11pt;">To date, HTML has gone through four major standards including the latest, 4.01. In addition to Html, Cascading styles sheets (CSS) and extensible markup Language (XML) have also provided valuable contributions to the way of the web.</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>HTML 1.0</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">HTML 1.0 was the never specified by the W3C, as it predated the organization. The standard supported a few basic tags and graphics, although the latter needed to be in GIF format if used in-line or JEPG format if the image was out-of-line. You couldn’t specify the font, background images or colors, and there were no tables or forms. At the time, only one browser Mosaic 1.0 was available to view web documents. However, the standard became the stepping-stone to the modern Web.</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>HTML 2.0</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">The HTML 2.0 standard provided a wealth of improvement over the 1.0 version. Background colors and images were supported, as were tables and rudimentary forms. Between 1.0 and 2.0, a new browser was launched (Netscape), and several HTML features created to support features in the new browser became a part of 2.0 standard.</span></span></p>
<p class="MsoNormal"><span style="color: #ff00ff;"><strong><span style="font-size: 11pt;">HTML 3.2</span></strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">The HTML 3.2 standard significantly increased the capability of HTML and the web. Many of the new features enabled. Web designers to create features-rich and elegant designs via new layout tags. Although the 3.2 specification introduced Cascading Style Sheets(CSS Level 1), browsers were slow to adopt the new way of formatting . However, the standard did not include frames , but the feature was implemented  in the various browsers anyway.</span></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">                    There was an HTML 3.0 proposed standard, but could not be ratified the W3C in time.  Hence, the next ratified was HTML 3.2</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>HTML 4.0 </strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">HTML 4.0 did not introduce many new features but it ushered in new way of implementing Web design. Instead of using explicit formatting parameters in HTML tags, HTML 4.0 encourage moving the formatting parameters to style sheets instead  HTML 3.2  had become burdensome to support with several dozen tags with several parameters each. The 4.0 standard emphasized the use of CSS, where formatting changes could be made within one document (the style sheet) instead of individually editing every page on a site.</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>XML 1.0</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;"> The Extensible Markup Language (XML) was created as stepping-stone to bring Standard Generalized Markup Language (SGML) concepts to HTML. Although it was the precursor to HTML, SGML was not widely endorsed. As such, the W3C sought to create a usable subset of SGML target specifically toward the Web. The new standard was meant to have enough flexibility and power to provide traditional publishing applications on the web. XML became part of the new XHTML standard.</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>CSS 1.0 and 2.0</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">As mentioned previously, Cascading Style Sheets were devised to movie formatting methods used in Web documents into centralized, formal style sheets. A CSS documents contains formatting specifics for various tags and is applied to applicable documents. This mechanism provides a formal means to separate formatting from the content of a page.</span></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">            When the formatting needs to change, the CSS document alone can be updated, and the changes are then reflected in all documents that use the style sheet. The “cascade” in the name refers to the features that allow styles to be overridden by subsequent styles.</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>HTML 4.01</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">Heralded as the last of the HTML standards, 4.01 fixed errors inherent in the 4.0 specification and made the final leap to embracing CSS as the vehicle for document formatting (instead of using  parameters in HTML tags).</span></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: #ff00ff;"><strong>XHTML 1.0</strong></span></p>
<p class="MsoNormal"><span style="color: #000000;"><span style="font-size: 11pt;">Extensible hyper text markup language is the latest standards for Web documents. This standard infuses the HTML 4.01 with extensible language constructs courtesy of XML. It was designed to be used in XML-compliant environments yet be compatible with standard HTML 4.01 user agents. As of this writing, adoption of the XHTML standard for Web documents has been slow. Although most browsers natively support HTML 4.01, most do not support the extensible features of XHTML 1.0.</span></span></p>
<p><span style="color: #800000;"><span style="font-weight: 700; font-size: 11pt;"> Keep learning  &#8230;. P.Narendra</span></span><!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;}  ></div>
<div mce_tmp="1"><! [endif] ></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">EVOLUTION OF HTML:</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">To date, HTML has gone through four major standards including the latest, 4.01. In addition to Html, Cascading styles sheets (CSS) and extensible markup Language (XML) have also provided valuable contributions to the way of the web.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">HTML 1.0</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">HTML 1.0 was the never specified by the W3C, as it predated the organization. The standard supported a few basic tags and graphics, although the latter needed to be in GIF format if used in-line or JEPG format if the image was out-of-line. You couldn’t specify the font, background images or colors, and there were no tables or forms. At the time, only one browser Mosaic 1.0 was available to view web documents. However, the standard became the stepping-stone to the modern Web.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">HTML 2.0</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">The HTML 2.0 standard provided a wealth of improvement over the 1.0 version. Background colors and images were supported, as were tables and rudimentary forms. Between 1.0 and 2.0, a new browser was launched (Netscape), and several HTML features created to support features in the new browser became a part of 2.0 standard.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-size: 11pt;" mce_style="font-size: 11pt;"><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">HTML 3.2</span></span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">The HTML 3.2 standard significantly increased the capability of HTML and the web. Many of the new features enabled. Web designers to create features-rich and elegant designs via new layout tags. Although the 3.2 specification introduced Cascading Style Sheets(CSS Level 1), browsers were slow to adopt the new way of formatting . However, the standard did not include frames , but the feature was implemented  in the various browsers anyway.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;"> There was an HTML 3.0 proposed standard, but could not be ratified the W3C in time.  Hence, the next ratified was HTML 3.2</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">HTML 4.0 </span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">HTML 4.0 did not introduce many new features but it ushered in new way of implementing Web design. Instead of using explicit formatting parameters in HTML tags, HTML 4.0 encourage moving the formatting parameters to style sheets instead  HTML 3.2  had become burdensome to support with several dozen tags with several parameters each. The 4.0 standard emphasized the use of CSS, where formatting changes could be made within one document (the style sheet) instead of individually editing every page on a site.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">XML 1.0</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;"> The Extensible Markup Language (XML) was created as stepping-stone to bring Standard Generalized Markup Language (SGML) concepts to HTML. Although it was the precursor to HTML, SGML was not widely endorsed. As such, the W3C sought to create a usable subset of SGML target specifically toward the Web. The new standard was meant to have enough flexibility and power to provide traditional publishing applications on the web. XML became part of the new XHTML standard.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">CSS 1.0 and 2.0</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">As mentioned previously, Cascading Style Sheets were devised to movie formatting methods used in Web documents into centralized, formal style sheets. A CSS documents contains formatting specifics for various tags and is applied to applicable documents. This mechanism provides a formal means to separate formatting from the content of a page.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;"> When the formatting needs to change, the CSS document alone can be updated, and the changes are then reflected in all documents that use the style sheet. The “cascade” in the name refers to the features that allow styles to be overridden by subsequent styles.</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">HTML 4.01</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">Heralded as the last of the HTML standards, 4.01 fixed errors inherent in the 4.0 specification and made the final leap to embracing CSS as the vehicle for document formatting (instead of using  parameters in HTML tags).</span></span></div>
<div class="MsoNormal" mce_tmp="1"><strong><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">XHTML 1.0</span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"><span style="font-size: 11pt;" mce_style="font-size: 11pt;">Extensible hyper text markup language is the latest standards for Web documents. This standard infuses the HTML 4.01 with extensible language constructs courtesy of XML. It was designed to be used in XML-compliant environments yet be compatible with standard HTML 4.01 user agents. As of this writing, adoption of the XHTML standard for Web documents has been slow. Although most browsers natively support HTML 4.01, most do not support the extensible features of XHTML 1.0.</span></span></div>
<div mce_tmp="1"><strong><span style="font-family: Verdana; color: maroon;" mce_style="font-family: Verdana; color: maroon;"><span style="font-weight: 700; font-size: 11pt;" mce_style="font-weight: 700; font-size: 11pt;"> Keep learning  &#8230;. P.Narendra</span></span></strong></div>
<div class="MsoNormal" mce_tmp="1"><span style="font-family: Verdana;" mce_style="font-family: Verdana;"> </span></d ><--></p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
		<item>
		<title>My experience in Technorays&#8217;08</title>
		<link>http://narusoft.co.in/?p=13</link>
		<comments>http://narusoft.co.in/?p=13#comments</comments>
		<pubDate>Fri, 03 Oct 2008 09:53:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=13</guid>
		<description><![CDATA[I feel fortunate for having the opportunity to share my views and experiences in the techno rays here.
 As I am not available, initially task of designing the website was assigned to some one else. Once I came back, it was four days to go commence the event and then I was handed over the threads [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">I feel fortunate for having the opportunity to share my views and experiences in the techno rays here.<br />
</span></span> <span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">As I am not available, initially task of designing the website was assigned to some one else. Once I came back, it was four days to go commence the event and then I was handed over the threads of architecting website.</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">     Designing the website in the span of four days is not a cakewalk for me, by then. Despite pressure, burning the midnight oil for three continues nights, I could complete my work by the day break of fourth day.</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">      There arised many questions like how to host a website, its registration in the World Wide Web, Amount to be paid venue to register and so…</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">        I moon lighted every where in the college received many suggestions from friends and professors namely Swamy, Santhi Raj and Prof Sureshvarma.</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">After undergoing hard day toil, I could launch the website and could display to all my friends, classmates and faculty.</span></span><span style="color: #000000;"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt;"> I was applauded by one and all for which I could forget all the hard work undergone by me.</span></span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">           It was a day before the event and I was asked to design the registration form in Asp.net by then .I approached many persons and with the help of my friend Santhi Raj, I could prepare and update the registration form.</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #ff00ff;"> <strong>HEART TOUCHING MOMENTS:</strong></span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">         Everyone was busy in the event and suddenly I heard someone announcing my name in the mike, I was astonished, he was one of the participants in the event and he showered rays of appraisal on me for the work which I did on the website .</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-size: 10pt; color: #000000;">He made me receive a gift on the hands of the chief guest Mr.Kiruba Shankar. That was the best gift in my life received from any one.</span></span></p>
<p class="MsoNormal"><span style="font-family: Verdana,sans-serif;"><span style="font-family: Verdana,sans-serif;"><a class="aligncenter" style="font-weight: 700; font-variant: small-caps;" title="A national level technical symposium" href="http://www.technorays.co.in/" target="_blank"><span style="font-size: x-small;">www.technorays.co.in</span></a></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=13</wfw:commentRss>
		</item>
		<item>
		<title>.Net Versions</title>
		<link>http://narusoft.co.in/?p=7</link>
		<comments>http://narusoft.co.in/?p=7#comments</comments>
		<pubDate>Sat, 27 Sep 2008 09:46:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tech Writing]]></category>

		<guid isPermaLink="false">http://narusoft.co.in/?p=7</guid>
		<description><![CDATA[With the recent release of .NET 3.5 a lot of confusion has crept into .NET versions. Right from the beginning .NET versions numbers are in sync with C# and ASP.NET. However, with .NET 3.0 and .NET 3.5 things have changed. 
In this blog,  I attempt to clear some of your doubts regarding versions in .NET.
 
First [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-small; font-family: Verdana;">With the recent release of .NET 3.5 a lot of confusion has crept into .NET versions. Right from the beginning .NET versions numbers are in sync with C# and ASP.NET. However, with .NET 3.0 and .NET 3.5 things have changed. </span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">In this blog,  I attempt to clear some of your doubts regarding versions in .NET.<br />
 </span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">First C# and Visual Basic.NET are two main languages that are used to develop application on .NET. The choice between C# and VB.NET is mainly a personal choice. C# is also called as Visual C# and C#.NET. They all mean the same C#. </span></p>
<h3><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;">.NET 1.0</span></h3>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">First versions of .NET was .NET 1.0, which was released in feb,2002.  The other versions were  ASP.NET 1.0,  C# 1.0  and Visual Basic.NET 2002. It is common to find people refer to .NET 1.0  as .NET 2002 and C# 1.0 as C# 2002 etc. Though not strictly right, it is accepted. </span></p>
<h3><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;">.NET 1.1</span></h3>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">Next versions called  .NET 1.1,  was released in  2003.  C# 1.1, Visual Basic.NET 2003, ASP.NET 1.1 and Visual Studio.NET 2003 were the versions.<br />
It was not a major release, a few changes here and there. </span></p>
<p><strong><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;">.NET 2.0</span></strong></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">Next versions was released in 2005. It was major release and added a lot to ASP.NET especially. It added concepts like partial class and generics to C# and VB.NET. A change in major version number is quite justified.<br />
ASP.NET 1.1 became ASP.NET 2.0,C# 1.1 became C# 2.0, 2003 became 2005 in Visual Basic.NET 2005 and Visual Studio.NET 2005.<br />
</span><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;"><strong>.NET 3.0</strong></span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">This was a silent release. Not many know that there was  .NET 3.0.  It was mainly released along with Windows Vista and it added WCF (Window Communication Foundation), WPF (Windows Presentation Foundation) and WWF (Windows Workflow Foundation).</p>
<p>However it did not change ASP.NET or C# or VB.NET.  Visual Studio.NET also remained the same.</p>
<p>This is where the version number of ASP.NET and .NET differed. Only .NET has become 3.0, leaving the rest at 2.0.</p>
<p></span><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;"><strong>.NET 3.5</strong></span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">The latest release is .NET 3.5.  It has brought a change in all. Now versions numbers for C# remained 3.0 but ASP.NET changed to 3.5 causing all kinds of confusion.</p>
<p>Visual Basic.NET 2008 is the new version of visual basic and Visual Studio.NET 2008 was released. </span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">LINQ was a major addition.</p>
<p>C# and VB.NET have been enhanced with very interesting features, which are mainly used in the context of LINQ.</p>
<p></span><span style="font-size: x-small; color: #ff00ff; font-family: Verdana;"><strong>Summary of versions</strong></span></p>
<p><span style="font-size: x-small; color: #000000; font-family: Verdana;">The following table summaries the versions of .NET  and its related technologies as far.</span></p>
<table border="1" cellpadding="3">
<tbody>
<tr>
<th><span style="font-size: x-small; color: #000000; font-family: Verdana;"> </span></th>
<th><span style="font-size: x-small; color: #000000; font-family: Verdana;">.NET 1.0</span></th>
<th><span style="font-size: x-small; color: #000000; font-family: Verdana;">.NET 1.1</span></th>
<th><span style="font-size: x-small; color: #000000; font-family: Verdana;">.NET 2.0</span></th>
<th style="width: 98px;"><span style="font-size: x-small; color: #000000; font-family: Verdana;">.NET 3.0</span></th>
<th><span style="font-size: x-small; color: #000000; font-family: Verdana;">.NET 3.5</span></th>
</tr>
<tr>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;"><strong>ASP.NET</strong></span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">1.0</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">1.1</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2.0</span></td>
<td style="width: 98px;"><span style="font-size: x-small; color: #000000; font-family: Verdana;"> Not changed</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">3.5</span></td>
</tr>
<tr>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;"><strong>C#</strong></span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">1.0</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">1.1</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2.0</span></td>
<td style="width: 98px;"><span style="font-size: x-small; color: #000000; font-family: Verdana;"> Not changed</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">3.0</span></td>
</tr>
<tr>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;"><strong>Visual Basic.NET</strong></span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2002</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2003</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2005</span></td>
<td style="width: 98px;"><span style="font-size: x-small; color: #000000; font-family: Verdana;"> Not changed</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2008</span></td>
</tr>
<tr>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;"><strong>Visual Studio.NET</strong></span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2002</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2003</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2005</span></td>
<td style="width: 98px;"><span style="font-size: x-small; color: #000000; font-family: Verdana;"> Not changed</span></td>
<td><span style="font-size: x-small; color: #000000; font-family: Verdana;">2008</span></td>
</tr>
</tbody>
</table>
<p> </p>
<p><strong><span style="color: #800000;">Keep Learning &#8230;. P.Narendra</span></strong></p>
<p><!--[if gte mso 10]><br />
<mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin:0in; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;}  ></p>
<p><! [endif] ><span style="font-family: Verdana;" mce_style="font-family: Verdana;">With the recent release of .NET 3.5 a lot of confusion has crept into .NET versions. Right from the beginning .NET versions numbers are in sync with C# and ASP.NET. However, with .NET 3.0 and .NET 3.5 things have changed. </span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">In this blog,  I attempt to clear some of your doubts regarding versions in .NET. </span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">First C# and Visual Basic.NET are two main languages that are used to develop application on .NET. The choice between C# and VB.NET is mainly a personal choice. C# is also called as Visual C# and C#.NET. They all mean the same C#. </span></p>
<p><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">.NET 1.0</span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">First versions of .NET was .NET 1.0, which was released in feb,2002.  The other versions were  ASP.NET 1.0,  C# 1.0  and Visual Basic.NET 2002. It is common to find people refer to .NET 1.0  as .NET 2002 and C# 1.0 as C# 2002 etc. Though not strictly right, it is accepted. </span></p>
<h3><span style="font-size: 12pt; font-weight: normal; font-family: Verdana; color: fuchsia;" mce_style="font-size: 12pt; font-weight: normal; font-family: Verdana; color: fuchsia;">.NET 1.1</span></h3>
<h3><span style="font-size: 12pt; font-weight: normal; font-family: Verdana; color: black;" mce_style="font-size: 12pt; font-weight: normal; font-family: Verdana; color: black;">Next versions called  .NET 1.1,  was released in  2003.  C# 1.1, Visual Basic.NET 2003, ASP.NET 1.1 and Visual Studio.NET 2003 were the versions.<br />
It was not a major release, a few changes here and there. </span></h3>
<p><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">.NET 2.0</span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Next versions was released in 2005. It was major release and added a lot to ASP.NET especially. It added concepts like partial class and generics to C# and VB.NET. A change in major version number is quite justified.<br />
ASP.NET 1.1 became ASP.NET 2.0,C# 1.1 became C# 2.0, 2003 became 2005 in Visual Basic.NET 2005 and Visual Studio.NET 2005.<br />
</span><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">.NET 3.0</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">This was a silent release. Not many know that there was  .NET 3.0.  It was mainly released along with Windows Vista and it added WCF (Window Communication Foundation), WPF (Windows Presentation Foundation) and WWF (Windows Workflow Foundation).However it did not change ASP.NET or C# or VB.NET.  Visual Studio.NET also remained the same.</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">This is where the version number of ASP.NET and .NET differed. Only .NET has become 3.0, leaving the rest at 2.0.</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">.NET 3.5</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">The latest release is .NET 3.5.  It has brought a change in all. Now versions numbers for C# remained 3.0 but ASP.NET changed to 3.5 causing all kinds of confusion.Visual Basic.NET 2008 is the new version of visual basic and Visual Studio.NET 2008 was released.</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">LINQ was a major addition.C# and VB.NET have been enhanced with very interesting features, which are mainly used in the context of LINQ.</span></p>
<p class="MsoNormal"><span style="font-family: Verdana; color: fuchsia;" mce_style="font-family: Verdana; color: fuchsia;">Summary of versions</span></p>
<p><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">The following table summaries the versions of .NET  and its related technologies as far.</span></p>
<table class="MsoNormalTable" border="1" cellpadding="0">
<tbody>
<tr>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"> </span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">.NET 1.0</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">.NET 1.1</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">.NET 2.0</span></p>
</td>
<td style="padding: 2.25pt; width: 73.5pt;" width="98">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">.NET 3.0</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal" style="text-align: center;" mce_style="text-align: center;" align="center"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">.NET 3.5</span></p>
</td>
</tr>
<tr>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">ASP.NET</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">1.0</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">1.1</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2.0</span></p>
</td>
<td style="padding: 2.25pt; width: 73.5pt;" width="98">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"> Not   changed</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">3.5</span></p>
</td>
</tr>
<tr>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">C#</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">1.0</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">1.1</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2.0</span></p>
</td>
<td style="padding: 2.25pt; width: 73.5pt;" width="98">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"> Not   changed</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">3.0</span></p>
</td>
</tr>
<tr>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Visual Basic.NET</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2002</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2003</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2005</span></p>
</td>
<td style="padding: 2.25pt; width: 73.5pt;" width="98">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"> Not   changed</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2008</span></p>
</td>
</tr>
<tr>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">Visual Studio.NET</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2002</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2003</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2005</span></p>
</td>
<td style="padding: 2.25pt; width: 73.5pt;" width="98">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;"> Not   changed</span></p>
</td>
<td style="padding: 2.25pt;" mce_style="padding: 2.25pt;">
<p class="MsoNormal"><span style="font-family: Verdana; color: black;" mce_style="font-family: Verdana; color: black;">2008</span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-family: Verdana;" mce_style="font-family: Verdana;"> </span><--></p>
]]></content:encoded>
			<wfw:commentRss>http://narusoft.co.in/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
	</channel>
</rss>


