tag:blogger.com,1999:blog-90003609243089928852024-02-08T11:05:06.985+05:30WELCOME TO NANDANA DOT NET BLOGS (ASP,VB,C#)WIDE COLLECTION OF DOTNET TUTORIALS AND MCA STUDENTS JOB OPENINGS/INTERVIEW QUESTONS ......MUCH MOREnanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.comBlogger106125tag:blogger.com,1999:blog-9000360924308992885.post-3016120351439648122016-08-21T16:16:00.001+05:302016-08-21T16:16:29.737+05:30asp.net deployment procedure with screen shots<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
<span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Deploying ASP.NET <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 16px; font-style: normal; font-weight: bold; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Applications</span></span></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
After creating and testing your ASP.NET application, the next step is to deploy the application. Deployment is the process of distributing the finished application to be<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">installed on</span> other computer. We can use the built-in deployment feature that comes with <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Visual studio</span> .NET to create a Windows Installer file - a .msi file for the purpose of deploying applications.</div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
<b>Deploying Applications</b></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
To start, open the Web Application project you want to deploy. Say, you have a project named "Deploy" with ten Web pages in it. Select <span style="color: blue;">File->Add Project-><span class="IL_AD" id="IL_AD12" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">New Project</span></span> from the main menu. From the Project Types pane select <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Setup</span> and Deployment Projects and from the Templates pane select Web Setup Project. Type WebSetup1 for name and specify a location in the location box and click OK. The New project dialogue box looks like <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the image</span> below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/deploy1.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
When you click OK on the above dialogue box, the project is added to the solution explorer window and also a File System Editor window appears as shown in the imagebelow.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/deploy2.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
The File System Editor window has two panes. Select Web Application Folder in the left pane in this window. From the Action menu (on main menu), select Project Output to open the Add Project Output Group <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">dialog box</span>. It looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/deploy3.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
Make sure that Deploy is selected in the Project drop-down list and select Primary Output from the list and click OK. You also can select other options depending upon the users of your application.</div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
Now, in the File System Editor window, select Web Application Folder and open it's Properties window. The Properties window for the Web Application Folder looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/prop.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
In this window, set the <span style="color: blue;">VirtualDirectory</span> <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">property to</span> any name, say FinishedApp. FinshedApp will be the folder on the target machine where you will <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">install</span> this application. The name you set for this VirtualDirectory property should not already <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">exist</span> on the target machine. If it does, the contents in the folder will be overwritten. Also, set the<span style="color: blue;">DefaultDocument</span> property to any page in the application. The page you set in this property will be the default page for the Web Application. Once you are finished with the Properties window build the solution by selecting <span style="color: blue;">Build->Build WebSetup1</span> from the main menu. After the solution is built sucessfully, a WebSetup1.msi file is created in the Debug directory of the Web Setup project. The default path to the debug directory is as follows:<br />
C:\<span class="IL_AD" id="IL_AD7" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Documents and Settings</span>\Administrator\<span class="IL_AD" id="IL_AD6" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">My Documents</span>\Visual Studio Projects\deploy\WebSetup1\Debug.</div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
<b><u>Installing the Application</u></b></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
You can copy the WebSetup1.msi file to the target machine and double-click to install the Web Application. When you double-click the setup file the dialog that opens looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/deploy4.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
Click next and you will be taken to the next dialog which looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/deploy5.gif" /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
You can use the default Virtual Directory specified by the installer or you can specify one. Click next to install the application.</div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
<br /></div>
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">
</div>
<span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Deploying ASP.NET <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 16px; font-style: normal; font-weight: bold; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Applications</span></span><br />
<b><u>Using the Copy Project Option</u></b><br />
Another option to deploy your ASP.NET application developed using <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Visual Studio</span> .NET is to use the copy project option. This option is very helpful if you decide to host your ASP.NET application with a <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">hosting provider</span>. The hosting provider allocates some space for you on his <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Web server</span> and you are required to deploy your application/Website. To host your ASP.NET application on a hosting provider's server you need to follow these steps.<br />
The first thing you need to do before deploying any ASP.NET Web application is to change the Active Solution <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Configuration</span> from Debug to Release as shown below. This allows the compiler to optimize the code, remove debugging related symbols from code and makes the code run much faster. To open the Configuration Manager, right-click on the Web project in the Solution Explorer window and select <span style="color: blue;">Project->Properties</span>. The properties dialog box looks like <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the image</span> below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/cop.gif" /><br />
On this dialog, click on Configuration Properties towards the left and click the "<span style="color: blue;">Configuration Manager</span>" button towards the right side. The Configuration Manager dialog looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/copy.gif" /><br />
On this diaolg select Release from the drop-down list found at top-left.<br />
To copy your Web project onto the target server, select <span style="color: blue;">Project->Copy Project</span> from the main menu. Selecting this option will display a dialog box as shown in the imagebelow.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/copy1.gif" /><br />
The Copy Project dialog provides the following options.<br />
<u>Destination Project Folder</u><br />
Used to specify the location to which you want to copy the project. The location can be on the same machine or on a remote server.<br />
<u>Web access method</u><br />
The Web access method option determines the access method that is used to copy the Web project to the destination folder. There two types of Web access methods:<br />
<span style="color: blue;">File share</span>: Allows to directly access the <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">project files</span> on the Web server through a file share.<br />
<span style="color: blue;">FrontPage</span>: Specifies that you want to use the HTTP-based FrontPage Server Extensions to transfer your project files to the server.<br />
<u>Copy</u><br />
The Copy option provides three types which are as follows:<br />
<br />
<span style="color: blue;">Only files needed to run this application</span>: Copies built output files (DLLs and references from the bin folder) and any content files (.aspx, .asmx). It is recommended to deploy the application using this default option.<br />
<span style="color: blue;">All project files</span>: Copies built outputs (DLLs and references from the bin folder) and all files that are in the project. This includes the project file and source files.<br />
<span style="color: blue;">All Files in the source project folder</span>: Copies all project files and any other files that are in the project folder (or subfolder) being transferred to the destination folder.<br />
To copy the Web Application, select your options based on the application type from the above dialog box and click OK. This will <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">result in</span> the ASP.NET Web application being deployed on the target server as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/images/copy2.gif" /><br />
<br />
Some <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">hosting providers</span> require you to enable <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">FrontPage</span> Extensions on <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">your account</span> which can be done via <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the control</span> panel. <br />
<br />
<br />
<span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
At times there might be situations where you need to host your ASP.NET applications from your corporate server or your own machine. A scenario where this might be needed is when you have large amounts of data on your Web site and you are concerned about the big bucks your hosting provider will charge you for disk space, bandwidth and database maintenance. Internet Information Services 6 (IIS 6) can be used for hosting your Web site. IIS 6 is a powerful platform for hosting Web sites. Creating and configuring Web sites and Virtual Directories using IIS are as easy as 1-2-3. In this section we will see how we can create a Website using IIS 6.0 and configure it.<br />
<b><u>Creating a Website</u></b><br />
The first thing you need before creating a Web site using IIS 6.0 is a unique IP address that identifies your computer on the network. This address takes the form of a string of four numbers separated by periods (.). For your site to be up and running you also need a connection to the Internet. You need to lease a line from an Internet Service Provider (ISP) or a telephone company. When you open IIS Manager in Administrative Tools and select Web sites in the console tree, and right-click on default Web site and open it's properties you will find that the IP address for the default Web site is <span style="color: blue;">All Unassigned</span>. This means any IP address not specifically assigned to another Web site on the machine opens the Default Web site instead. A typical use for the Default Web site is to display general information like a corporate logo and contact information.<br />
Let's assume that we will use the IP address 169.16.13.211 for creating Startvbdotnet.com and C:\Startvbdotnet is the folder where the homepage for this site is located. To create the Startvbdotnet Web site, right-click on the Web Sites node and select <span style="color: blue;">New->Web Site</span> to start the Web Site Creation Wizard as shown in the images below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis1.gif" /><br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis2.gif" /><br />
<br />
Click Next on the Web site creation wizard dialog and type a description for the site as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis3.gif" /><br />
After typing the description click next to open the dialog where you need to specify the IP address and port number for your Web site. As mentioned above, type 169.16.13.211 in the IP address textbox and 80 in the TCP port textbox. The dialog looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis4.gif" /><br />
Click Next and specify C:\Startvbdotnet as the home directory for the site. Notice the checkbox that says "<span style="color: blue;">Allow anonymous access to this Web site</span>". By default, it is<span style="color: black;">checked</span>, which means the Web site which we are creating is accessible by general public on the Internet. If you are creating an intranet site which will be used only by authenticated users then you need to uncheck this checkbox. The image below displays that.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis5.gif" /><br />
Click Next to get to the Web Site Access Permissions dialog. By default, the Read and Run scripts checkboxes are checked which means that your Web site will run scripts such as ASP and is only a read-only Web site where users can't make changes to it. If you want users to download content from your Web site, modify it and upload the modified content then you need to check the Write checkbox. The image below displays that.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis6.gif" /><br />
Click Next and then Finish to create the new Web site. The image below displays the new Web site which we created in IIS.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/iis7.gif" /><br />
<br />
<br />
<br />
<span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
<b><u>Virtual Directories</u></b><br />
A <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">virtual</span> directory is a friendly name, or alias, either for a <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">physical</span> directory on your server hard drive that does not reside in <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the home</span> directory, or for the home directory on<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">another computer</span>. Because an alias is usually shorter in length than the path of the physical directory, it is more convenient for users to type. The use of aliases is also secure because users do not know where your files are physically located on the server and therefore cannot use that information to modify your files. Aliases also make it easier for you to move directories in your site. Rather than changing the URL for the directory, you <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">change the</span> mapping between the alias and the physical location of the directory.<br />
You must create virtual <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">directories</span> if your Web site contains files that are located in a directory other than the home directory, or on other computer's hard drive. To use a directory on another computer, you must specify the directory's Universal Naming Convention (UNC) name, and provide a user name and password for access rights.<br />
Also, if you want to publish content from any directory not contained within your home directory, you must create a virtual directory.<br />
<b><u>Creating a Virtual Directory</u></b><br />
Let's say Startvbdotnet keeps their <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">contacts</span> in a folder called C:\StartvbdotnetContacts on their <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">web server</span> and would like users to be able to use the URL http://169.16.13.211/contacts when they need to access contact information. To do this we need to create a virtual directory that associates the /contacts portion of the URL, the alias for the virtual directory, with the physical directory C:\StartvbdotnetContacts where these documents are actually located.<br />
To create a new virtual directory, right-click on Startvbdotnet Web site and select <span style="color: blue;">New->Virtual Directory</span> to start the Virtual Directory Creation Wizard. The images below display that.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir.gif" /><br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir1.gif" /><br />
Click Next and type the alias for the virtual directory, say, contacts as shown in <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the image</span> below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir2.gif" /><br />
Click Next and specify the physical folder on the local server to map to this alias. The physical folder on the server is C:\StartvbdotnetContacts. The image below shows that.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir3.gif" /><br />
Click Next and specify permissions for this Virtual Directory as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir4.gif" /><br />
Click Next and finish the virtual directory creation wizard. The images below <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">displays</span> the result. You can<br />
see the new virtual directory, contacts, with a gear symbol in the IIS wizard.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir5.gif" /><br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/vdir6.gif" /><br />
When users type http://169.16.13.211/contacts in their browser they will be shown a page with contact information for Startvbdotnet Web site. What actually happens is the content comes from a directory located outside the <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Web site directory</span> but the <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">address bar</span> in the browser shows that the directory is part of the Web site.<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
<b><u>Controlling Access to Web Site</u></b><br />
Now that we created a Web site and a virtual directory we will look at some of the administrative tasks that are required to control the Web site. The <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">settings</span> in this article <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">apply</span> only to Startvbdotnet Web site which we created in IIS and not to all Web sites under IIS. The procedure is same if you want to set the properties for all Web sites. If you want to set the following properties for all Web sites under IIS then you need to right-click on Web Sites in IIS and select properties from the menu and follow the steps which are mentioned in this article.<br />
When you right-click on the Startvbdotnet Web site in IIS and select properties, the properties window that is displayed looks like <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the image</span> below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/website.gif" /><br />
As you might notice from the above image the <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">dialog box</span> <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">displays</span> information as tabs, all of which are discussed below.<br />
<b><u>Web Site Information (Web Site Tab)</u></b><br />
By defaut, the Web site tab is displayed when you right-click and select properties for any of the Web sites in IIS. The information under Web site tab is discussed below.<br />
<u>Web site identification</u><br />
The Web site identification part displays general information like the description of the Website, IP address and the <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">port number</span> it is using.<br />
<u>Connections</u><br />
<u><i>Connection timeout</i></u><br />
Connection timeouts are used to reduce the amount of memory resources that are consumed by idle connections. Time-out settings also allow you to specify how long server resources are allocated to specific tasks or clients. The default connection timeout setting set by IIS is 120 seconds which means that when a visitor accesses your site and has no activity on your site for 2 mins his connection will be timed out.<br />
<i><u>Enable HTTP Keep-Alives</u></i><br />
Most Web browsers request that the server keep the client connection open while the server sends multiple elements like .htm files and .gif or .jpeg files to the client. Keeping the client connection open in this way is referred to as an HTTP Keep-Alive. Keep-Alive is an HTTP specification that improves server performance. HTTP Keep-Alives are enabled by default in IIS.<br />
<u><i>Enable Logging</i></u><br />
The logging feature allows you to collect information about user activity on your site. Information such as who has visited your site, what the visitor viewed, and when the information was last viewed, etc, can be collected with this feature. The default logging format is the W3C Extended Log File Format. You can also <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">change the</span> logging format based on your preferences. To change the logging format you need to make a selection from the active log format drop-down list.<br />
To set how often you want your new log file to be created click the properties button to open the Logging Properties dialog as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/logging.gif" /><br />
The Logging Properties dialog shown in the image above allows you to record log information on an hourly basis or daily or weekly or monthly basis or based on file size. If you select the Weekly option then a log file is created once every week. You can also change the location of the log file on your server in the Logging Properties dialog.<br />
<b><u>Performance (Performance Tab)</u></b><br />
The Performance tab let's you control the performance of your Web site, like, setting the amount of bandwidth per second and allowing the number of simultaneous connections accessing the Web site at a given time. The dialog looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/performancetab.gif" /><br />
<u>Bandwidth throttling</u><br />
If the network or Internet connection used by our <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Web server</span> is also used by other services such as e-mail, then we might want to limit the bandwidth used by our Web server so that it is available for those other services. If our Web server hosts more than one Web site, you can individually throttle the bandwidth used by each site. By default, bandwidth throttling is disabled. If you want to enable it, check the checkbox and enter the bandwidth you want in kbps.<br />
<u>Web site connections</u><br />
Connection limits restrict the number of simultaneous client connections to our Web site. Limiting connections not only conserves memory but also protects against malicious attacks designed to overload our Web server with thousands of client requests. By default, unlimited connections are allowed. If you want to limit the number of connections then you need to select the "<span style="color: blue;">Connections limited to</span>" <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">radio button</span> and enter the number of connections you want to access your site at a given time.<br />
<b><u>Home Directory</u></b><br />
<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">The Home</span> Directory tab in the properties dialog for the Web site is displayed below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/homedir.gif" /><br />
As you can see from the image above, the content for this Web site comes from the local path on the server. If you want the content for this Web site to come from another computer located on a network you need to select the radio button which says "<span style="color: blue;"><span class="IL_AD" id="IL_AD7" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">A share</span> located on another computer</span>" and enter the computer on the network.<br />
<u>Redirecting</u><br />
Sometimes when your site is experiencing technical difficulties or if you are doing maintenance you need to redirect visitors to another site or to another page informing what is going on. IIS lets you redirect a Web site to a different file or folder on the same machine or to an URL on the Internet. To <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">configure</span> redirection you need to select the "<span style="color: blue;">A redirection to a URL</span>" radio button under the home directory and choose the redirection option you want to use and specify the path as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/redirect.gif" /><br />
<br />
<br />
<br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;"></span><br />
<table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: "verdana"; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;"><span class="IL_AD" id="IL_AD12" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 16px; font-style: normal; font-weight: bold; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Configuring</span> Websites in Windows .NET Server/IIS 6.0</span><br />
<b><u><span class="IL_AD" id="IL_AD8" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: bold; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">Controlling</span> Access to Web Site</u></b><br />
<b><u>Custom Errors</u></b><br />
You can <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">configure</span> Internet Information Services (IIS) to send default HTTP 1.1 <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">error messages</span> or custom error messages. Custom error messages can be mapped to a file name or to a URL. <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">The image</span> below <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">displays</span> Custom Errors dialog.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/customerrors.gif" /><br />
You can also configure your own custom error messages. To do that, click the HTTP error that you want to change, and then click Edit to open the Edit Custom Error Properties dialog as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/customerrors1.gif" /><br />
To configure your own custom error, in the Message Type list box, click either File to <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">return</span> a custom error file or URL to direct the request to a custom error URL on the <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">local machine</span>.<br />
Note that you cannot customize the following errors: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.<br />
<b><u>Documents (Documents Tab)</u></b><br />
The Documents dialog is displayed in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/documents.gif" /><br />
<u>Enable default content page</u><br />
The enable default content page lets you designate the default page for your Web site. You can specify names such as index.<span class="IL_AD" id="IL_AD11" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">aspx</span>, default.aspx, login.aspx, etc. To add a new type you need to click the Add button and add the file which you want to be displayed to your users when they first enter your site.<br />
<u>Enable document footer</u><br />
The enable document footer option lets you add a HTML formatted footer to each and every document on your site. By default, it is disabled.<br />
<b><u>HTTP Headers (HTTP Headers Tab)</u></b><br />
The HTTP Headers dialog looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/httpheaders1.gif" /><br />
<u>Enable content expiration</u><br />
By default, this is disabled. If you enable content expiration and set a date then the content on your site expires after the set date. If you notice from the above image, the content for Startvbdotnet is set to expire on Tuesday, Februrary 23, 2010 at 12 AM.<br />
<u>Content rating</u><br />
Content rating allows to classify your site from four predefined values which are Violence, Sex, Nudity and Language. By default, content rating is disabled. To enable content rating, click the edit Ratings button to open the Content Ratings dialog as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/ratings.gif" /><br />
<span class="IL_AD" id="IL_AD9" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">In the Content</span> Ratings dialog, enable the checkbox which says Enable ratings for this content and select a category under which your site falls and drag the track bar to indicate the level of the rating. You can also include an email address for contact and set an expiration date for this content as shown in the image above.<br />
<b><u>Directory Security (Directory Security Tab)</u></b><br />
The Directory Security dialog looks like the image below.<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/dirsecuritytab.gif" /><br />
<u>Authentication and access control</u><br />
Authentication and access control allows us to setup access to our site using Authentication Methods. If you click the Edit button the Authentication Methods dialog that is displayed looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/auth1.gif" /><br />
By default, the enable anonymous access checkbox is checked which means that your site will be accessed by everyone using the IUSR_COMPUTERNAME (default IIS account). If you want to enforce restrictions and want users to be authenticated before they access your site you need to set it in this dialog.<br />
<u>IP address and domain name restrictions</u><br />
The IP address and domain name restrictions allows us to grant or deny access to users based on their IP address. If you click the Edit button the IP Address and Domain Name Restrictions dialog that is displayed looks like the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/grantdeny.gif" /><br />
By default, all computers will be granted access. If you want to deny/block a particular user or a group of computers then you need to select the Denied access <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">radio button</span>and click the Add button to open the Grant Access dialog as shown in the image below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/grantdeny1.gif" /><br />
<br />
If you want to block a single computer enter the IP address of the machine and click OK. If you want to deny a group of computers then select the Group of computers radio button and enter the network address and Subnet mask number to deny that group. If you want to deny users based on a domain name <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll; background-color: transparent; background-image: none; background-position: 0% 50%; background-repeat: repeat repeat; border-bottom-color: rgb(0 , 153 , 0); border-bottom-style: solid; border-bottom-width: 1px; color: rgb(0 , 153 , 0); cursor: pointer; display: inline; float: none; font-family: "verdana important"; font-size: 10px; font-style: normal; font-weight: normal; padding-bottom: 1px; padding-left: 0px; padding-right: 0px; padding-top: 0px; position: static; text-decoration: underline;">the select</span> the Domain name option and enter the domain name.<br />
<b><u>Starting and Stopping Web site</u></b><br />
You can start and stop a Web site in IIS manager. To start a Web site, select the Web site, right-click on it and from the menu select start/stop as shown below.<br />
<br />
<img src="https://www.startvbdotnet.com/aspsite/extras/iis/startstop.gif" /> </td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><a href="http://www.startvbdotnet.com/aspsite/extras/deploy4.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table>
</div>
</div>
nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-71515904760715627142016-08-21T16:08:00.000+05:302016-08-21T16:08:59.588+05:30STEP BY STEP APPROACH FOR VB.NET 2008 WINDOWS APPLICATION<div dir="ltr" style="text-align: left;" trbidi="on">
<div align="center" class="MsoNormal" style="text-align: center;">
<b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">STEP BY STEP BEGINERS GUIDE FOR VB.NET WINDOWS APPLICATION</span></u></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> <o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">CONTENTS<o:p></o:p></span></b></div>
<div class="MsoNormal">
<br /></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l3 level1 lfo9;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">INTRODUCTION<o:p></o:p></span></b></li>
</ol>
<div class="MsoNormal" style="margin-left: 45.0pt; mso-list: l14 level1 lfo12; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">A.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Properties<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 3.25in; mso-list: l14 level1 lfo12; text-indent: -189.0pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">B.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Methods<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 3.25in; mso-list: l14 level1 lfo12; text-indent: -189.0pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">C.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Events<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">FIRST SAMPLE APPLICATION<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ADDITION<span style="text-transform: uppercase;">/subtract/multiply/division OF TWO</span> VALUES<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ENTER ONLY NUMBERS BUT NOT STRINGS IN TEXTBOX<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">5.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ENTER ONLY STRINGS BUT NOT NUMBERS IN TEXT BOX<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">6.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ENTER BOTH STRINGS & CHAR IN TEXT BOX BUT NOT SPECIAL CHAR<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">7.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">MOUSE CLICK EVENTS<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">8.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">TOOL TIP CONTROL<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">9.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">CHECK BOX<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 13.5pt; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">10.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">RADIO BUTTON<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 13.5pt; mso-list: l3 level1 lfo9; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">11.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">PROGRAM ON CHECK BOX AND RADIO BUTTON<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in; mso-list: l3 level1 lfo9; text-indent: -4.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">12.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">LIST BOX<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">1.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">INTRODUCTION TO WINDOWS APPLICATINS[WA]:<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">WA are Graphical User Interface enabled applications with the help of which design and implementation of any application is very easy.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">WA is an application that runs on windows desktop.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Working with GUI will be easy to the enduser when compared to console application.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">A WA by default contains “windows forms”.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">We can add any number of windows forms to a project.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Windows form used to design the user interface and write the code.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Windows form contains “two interface”<span style="mso-spacerun: yes;"> </span>first interface is for “designing” and another is for “coding”.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">To switch between design and code use the shortcut ‘F7’.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">To design the user interface, we have to use ‘controls’ available in the toolbox.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">To open toolbox the shortcut key is ctrl+alt+x.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l8 level1 lfo10; text-indent: -.25in;">
<span style="font-family: "wingdings"; font-size: 11.0pt;"><span style="mso-list: Ignore;">ü<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Every control has its own properties, events and methods.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>The following six are the major features of windows applications:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">A windows form contains 2 interfaces.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">First is design and second is coding.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">To design user interface use controls in toolbox.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Code in .net windows application is completely based on the events of the controls so the programing is called as “Event Driven Programming”.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Windows application is collection of window forms.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo1; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">By default application opens only one form.<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .5in;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">The following are the common properties events and methods for any control in the “Toolbox” of windows application.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: 0in; mso-list: l4 level1 lfo11; text-indent: 0in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">a.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Properties :</span></u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>A property is used to specify a characteristic feature of the control that will <span style="mso-spacerun: yes;"> </span>determine the appearance and behavior of the control.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>The following 12 are common properties for all controls in Toolbox:<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Name<span style="mso-tab-count: 2;"> </span>: Used to specify a unique name for the form code.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in left 1.5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Auto scroll<span style="mso-spacerun: yes;"> </span>: Determines whether scroll bars will be displayed automatically <o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .5in; tab-stops: 1.5in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>when a control on the form moves out of the boundary.<o:p></o:p></span></div>
<ol start="3" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in left 112.5pt;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Accept button: used to set a button as default button for the form.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Cancel button<span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 1;"> </span>: used to set a button as cancel for the form.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Background image : Displays an image in background<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Control box<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>: Displays minimize,maxmise etc., icons for the form.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Enabled<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>: To enable or disable a option<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Icon<span style="mso-tab-count: 2;"> </span> <span style="mso-spacerun: yes;"> </span>: Displays icon in title bar<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Location<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>: left and top positions of the control<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Size<span style="mso-tab-count: 3;"> </span>:weight and height of the control<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Text<span style="mso-tab-count: 3;"> </span>: caption of the form<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l1 level1 lfo2; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Windows state<span style="mso-tab-count: 1;"> </span>: state of the window at runtime ie.,maximized,resize etc.,<o:p></o:p></span></li>
</ol>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<ol start="2" style="margin-top: 0in;" type="a">
<li class="MsoNormal" style="mso-list: l4 level1 lfo11;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Methods:</span></u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> <u><o:p></o:p></u></span></li>
</ol>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>To access the methods of a form we must use the keyword “me” this will refer to the current form. The following 4 are common methods for all controls in Toolbox:<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l11 level1 lfo7;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">close( ) <span style="mso-tab-count: 1;"> </span><span style="mso-tab-count: 1;"> </span>:<span style="mso-spacerun: yes;"> </span>This method is used to close the form<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l11 level1 lfo7;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">hide( )<span style="mso-tab-count: 2;"> </span>: This method is used to <span style="mso-spacerun: yes;"> </span>hide form<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l11 level1 lfo7;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">show( )<span style="mso-tab-count: 1;"> </span><span style="mso-tab-count: 1;"> </span>: This method is used to <span style="mso-spacerun: yes;"> </span>show as non-model window<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l11 level1 lfo7;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">show dialogue( ) <span style="mso-spacerun: yes;"> </span>: This method is used to form as a model window<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .5in;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<ol start="3" style="margin-top: 0in;" type="a">
<li class="MsoNormal" style="mso-list: l4 level1 lfo11;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Events:</span></u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>Events are the reaction of the control for the user made action against control. The following are the 16 common events :<u><o:p></o:p></u></span></li>
</ol>
<div class="MsoNormal">
<br /></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Click-any button<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse click-for right or left button<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Double click-double click on control with any mouse button<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse double click<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Enter-control enters<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Leave-control leaves<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Validating-after leave event for validations<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Validated-after leave but the cursor goes to next control<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Key down—all are keyboard events<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Key press<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Key up<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse down-drag and drop <o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse up<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse move<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse enter<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l5 level1 lfo3; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Mouse leave<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">2.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">FIRST SAMPLE WINDOWS APPLICATION<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step by step approach for creating vb.net windows application is as follows:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1). <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/> </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:363.75pt;
height:226.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/> </v:shape><![endif]--><img height="302" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image002.jpg" v:shapes="_x0000_i1025" width="485" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>Figure 1:open .net<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “my new windows application” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape
id="_x0000_i1026" type="#_x0000_t75" style='width:472.5pt;height:295.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image003.png"
o:title=""/> </v:shape><![endif]--><img height="394" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image004.jpg" v:shapes="_x0000_i1026" width="630" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 3;"> </span>Figure 2: select windows application.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4:<span style="mso-spacerun: yes;"> </span>Now design form with 3 labels, 3 text boxes and 2 buttons. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">It means just drag and drop the label from toolbox on to the form and then repeat it for 2 times then 3 labels will appear on to the form. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Like wise drag and drop button on to the form. Repeat it 2 times then 2 buttons will appear on the form. In the same manner drag and drop textbox on the form do this 3 times then 3 textboxes will appear on the form.<span style="mso-spacerun: yes;"> </span>Then the form looks like:::::::(Figure 3)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape id="_x0000_i1027" type="#_x0000_t75"
style='width:6in;height:270pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image005.png"
o:title=""/> </v:shape><![endif]--><img height="360" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image006.jpg" v:shapes="_x0000_i1027" width="576" /><o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 2;"> </span><span style="mso-tab-count: 1;"> </span>Figure 3: Windows Form Design<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5:<span style="mso-spacerun: yes;"> </span>Now right click on the “button1”<span style="mso-spacerun: yes;"> </span>then select “properties” . Select “Text “<span style="mso-spacerun: yes;"> </span>then type the word “ok” in it.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: Right click on the “button2”<span style="mso-spacerun: yes;"> </span>then select “properties” . Select “Text “<span style="mso-spacerun: yes;"> </span>then type the word “close” in it.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7: Right click on the “Label1”<span style="mso-spacerun: yes;"> </span>then select “properties” . Select “Text “<span style="mso-spacerun: yes;"> </span>then type the word “Name” in it.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Right click on the “Label2”<span style="mso-spacerun: yes;"> </span>then select “properties” . Select “Text “<span style="mso-spacerun: yes;"> </span>then type the word “Surname” in it.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9: Right click on the “Label3”<span style="mso-spacerun: yes;"> </span>then select “properties” . Select “Text “<span style="mso-spacerun: yes;"> </span>then type the word “Result” in it.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10: Right click on the Form select “view code” option<span style="mso-spacerun: yes;"> </span>as shown in the (figure 4)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape
id="_x0000_i1028" type="#_x0000_t75" style='width:472.5pt;height:295.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image007.png"
o:title=""/> </v:shape><![endif]--><img height="394" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image008.jpg" v:shapes="_x0000_i1028" width="630" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: .5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in right 472.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 4;"> </span>Figure 4: selecting view code<span style="mso-tab-count: 1;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: .5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in right 472.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11: Select already existing default code and delete it. Then type the below code in that code window.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Public</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> <span style="color: blue;">Class</span> Form1<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">Private</span> <span style="color: blue;">Sub</span> Button1_Click(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> Button1.Click<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>TextBox3.Text = Val(TextBox1.Text) + Val(TextBox2.Text)<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">Private</span> <span style="color: blue;">Sub</span> Button2_Click(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> Button2.Click<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">Me</span>.Close()<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> <span style="color: blue;">Class<o:p></o:p></span></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 12:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 13:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 if any message is displayed press ok.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend there u enter namd and surname and press “ok” button. Result is shown in Result Text box.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt; text-transform: uppercase;"><span style="mso-list: Ignore;">3.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt; text-transform: uppercase;">The addition/subtract/multiply/division of values<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “two numbers” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Right click on Form select Properties ->Key preview->True<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">By doing this step at runtime the window will be closed simpy by pressing “Escape key” in our keyboard.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5:<span style="mso-spacerun: yes;"> </span>Drag and drop 3 Text boxes and 2 labels on to the form.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: Right click on the form select->properties<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7 : In properties there will be sub tabs here select “Events” option as shown in (figure 5):<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape
id="_x0000_i1029" type="#_x0000_t75" style='width:472.5pt;height:295.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image009.png"
o:title=""/> </v:shape><![endif]--><img height="394" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image010.jpg" v:shapes="_x0000_i1029" width="630" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 3;"> </span>Figure 5: selecting “events” inproperties tab<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Double click on the option “ Key Down” and write the code as given below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Select case e.keycode<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F1<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)+val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F2<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)-val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f3<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)*val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f4<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)/val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f5<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox2.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.escape<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Me.close( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End select<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End sub<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 if any message is displayed press ok.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If you press F1: Addition is displayed<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F2:Subtraction<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F3:Multiplication<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F4:Division<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">4.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">TO ENTER NUMBERS BUT NOT STRINGS IN TEXT BOXS<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “only two numbers” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Right click on Form select Properties ->Key preview->True<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">By doing this step at runtime the window will be closed simpy by pressing “Escape key” in our keyboard.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5:<span style="mso-spacerun: yes;"> </span>Drag and drop 3 Text boxes and 2 labels on to the form.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: Right click on the form select->properties<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7 : In properties there will be sub tabs here select “Events” option as shown in (figure 5):<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Double click on the option “ Key Down” and write the code as given below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Select case e.keycode<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F1<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)+val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F2<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)-val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f3<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)*val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f4<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)/val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f5<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox2.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.escape<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Me.close( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End select<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End sub<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9:select TextBox1->Right click->properties->select “events”<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape id="_x0000_i1030"
type="#_x0000_t75" style='width:472.5pt;height:295.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image011.png"
o:title=""/> </v:shape><![endif]--><img height="394" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image012.jpg" v:shapes="_x0000_i1030" width="630" /><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 4;"> </span>Figure 7: select events keypress<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10 : write the code as shown below:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> TextBox1_KeyPress(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.Windows.Forms.KeyPressEventArgs) <span style="color: blue;">Handles</span> TextBox1.KeyPress<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">if char.isletter(e.keychar)=false and e.keychar<>char(keys.back) then<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">e.handled=true<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">end if<o:p></o:p></span></b></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 12:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 if any message is displayed press ok.<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If you press F1: Addition is displayed<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F2:Subtraction<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F3:Multiplication<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F4:Division<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">5.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ENTER ONLY STRINGS BUT NOT NUMBERS IN TEXT BOX<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “string manip” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Right click on Form select Properties ->Key preview->True<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">By doing this step at runtime the window will be closed simpy by pressing “Escape key” in our keyboard.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5:<span style="mso-spacerun: yes;"> </span>Drag and drop 3 Text boxes and 2 labels on to the form.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: Right click on the form select->properties<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7 : In properties there will be sub tabs here select “Events” option as shown in (figure 5):<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Double click on the option “ Key Down” and write the code as given below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Select case e.keycode<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F1<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)+val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F2<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)-val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f3<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)*val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f4<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)/val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f5<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox2.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.escape<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Me.close( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End select<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End sub<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9:select TextBox1->Right click->properties->select “events”<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10 : write the code as shown below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> TextBox1_KeyPress(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.Windows.Forms.KeyPressEventArgs) <span style="color: blue;">Handles</span> TextBox1.KeyPress<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">if digit(e.keychar)=false and e.keychar<>char(keys.back) then<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">e.handled=true<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">end if<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 12:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 if any message is displayed press ok.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If you press F1: Addition is displayed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F2:Subtraction<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F3:Multiplication<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F4:Division<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 4.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">6.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">ENTER BOTH STRINGS & CHAR IN TEXT BOX BUT NOT SPECIAL CHAR<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “bothstring and num” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Right click on Form select Properties ->Key preview->True<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">By doing this step at runtime the window will be closed simpy by pressing “Escape key” in our keyboard.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5:<span style="mso-spacerun: yes;"> </span>Drag and drop 3 Text boxes and 2 labels on to the form.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: Right click on the form select->properties<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7 : In properties there will be sub tabs here select “Events” option as shown in (figure 5):<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Double click on the option “ Key Down” and write the code as given below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Select case e.keycode<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F1<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)+val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.F2<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)-val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f3<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)*val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f4<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.text=val(textbox1.text)/val(textbox2.text)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.f5<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox2.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Textbox3.clear( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Case keys.escape<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Me.close( )<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End select<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End sub<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9:select TextBox1->Right click->properties->select “events”<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10 : write the code as shown below:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> TextBox1_KeyPress(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.Windows.Forms.KeyPressEventArgs) <span style="color: blue;">Handles</span> TextBox1.KeyPress<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">if char.isletter or digit(e.keychar)=false and<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">e.keychar<>char(keys.back) then<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">e.handled =true<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">end if<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 12:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 if any message is displayed press ok.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If you press F1: Addition is displayed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F2:Subtraction<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F3:Multiplication<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F4:Division<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">7.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">MOUSE CLICK EVENTS<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “MOUSE EVENTS” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Right click on Form select Properties ->events->mouse click (Figure 8)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape
id="_x0000_i1031" type="#_x0000_t75" style='width:472.5pt;height:295.5pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image013.png"
o:title=""/> </v:shape><![endif]--><img height="394" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image014.jpg" v:shapes="_x0000_i1031" width="630" /><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 2;"> </span></span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Figure 8: mouse click event<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5: Double click and enter the following code:<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> Form1_MouseClick(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.Windows.Forms.MouseEventArgs) <span style="color: blue;">Handles</span> <span style="color: blue;">MyBase</span>.MouseClick<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">select case e.button<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">case windows.forms.mousebuttons.left<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">msbox(“left buttonclicked”)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">case windows.forms.mousebuttons.right<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">msgbox(“right click”)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">case windows.forms.mousebutton.middle<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">msgbox(“middle button click”)<o:p></o:p></span></b></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">end slect</span></b><span style="font-family: "courier new"; font-size: 10.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub</span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 12:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span>If you click mouse then message will be displayed.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt; mso-list: l7 level1 lfo8; text-indent: -.25in;">
<span style="font-size: 11.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-list: Ignore;">8.<span style="font: 7.0pt "Times New Roman";"> </span></span></span><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">TOOLTIP CONTROL </span></u></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">:</span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> This control is used to show message when cursor placed on control<u><o:p></o:p></u></span></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “TOOLTIP” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: place “tooltip” control draga and drop from toolbox on to the form<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5: drag and drop 3 textboxes(figure 9)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape id="_x0000_i1032" type="#_x0000_t75"
style='width:6in;height:270pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image015.png"
o:title=""/> </v:shape><![endif]--><img height="360" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image016.jpg" v:shapes="_x0000_i1032" width="576" /><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-tab-count: 2;"> </span></span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Figure 9: 3 textboxes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6: select textbox1->right click->properties->tooltip->”enter the first number please”<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7: select textbox3->right click->properties->tooltip->”enter the second number please”<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: select textbox3->right click->properties->tooltip-> ”enter the third number please”<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9:<span style="mso-spacerun: yes;"> </span>Then to execute the application press the shortcut key ‘F6’ to build the code. If any errors then it will display messages or it will show successfully build at the end left corner of the window.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10:<span style="mso-spacerun: yes;"> </span>Press cntrl+F5 or F5 <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Now the output window will be opend.<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">---after executing the program if u place mouse on txtbx1 then it shows the msg u entered in the tooltip likewise on textbox2 and textbox3 also message will be displayed.<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">9.<b style="mso-bidi-font-weight: normal;">checkbox :</b></span></u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> This control is used to select more than one option at a time<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Properties of check box are :<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l2 level1 lfo4; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Appearance<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo4; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Checked<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo4; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Check state<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">a.checked<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">b.unchecked<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">c.intermediate<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-spacerun: yes;"> </span>Events of check box are:<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l13 level1 lfo13;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">checked changed<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l13 level1 lfo13;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">checked state changed<o:p></o:p></span></li>
</ol>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-left: 13.5pt; mso-list: l10 level1 lfo15; text-indent: 0in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><span style="mso-list: Ignore;">10.<span style="font: 7.0pt "Times New Roman";"> </span></span></span></b><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Radio button:</span></u></b><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"> This control restricts to select only one option.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Properties of radio button are:<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l12 level1 lfo5; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Appearance<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l12 level1 lfo5; tab-stops: list .5in;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Checked<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Events of check box are:<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l6 level1 lfo14;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">checked changed<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">11. <u><span style="text-transform: uppercase;">program ON Both Radio buttons and Check box</span></u><o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 1 :<span style="mso-spacerun: yes;"> </span>Start->All programs->Microsoft visual studio 2008 or 2010->visual studio 2008 or 2010<span style="mso-spacerun: yes;"> </span>(Figure 1).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 2: Step 2:File->new ->project->other languages->visual basic-> Windows application. (Figure 2).<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: 5.5pt;">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 3: Type name as “radiocheck” and press enter.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 4: Drag and drop one “label button”, three “check boxes” and three “radio buttons” from toolbox on to the form<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><!--[if gte vml 1]><v:shape
id="_x0000_i1033" type="#_x0000_t75" style='width:6in;height:270pt'> <v:imagedata src="file:///C:\DOCUME~1\Owner\LOCALS~1\Temp\msohtmlclip1\01\clip_image017.png"
o:title=""/> </v:shape><![endif]--><img height="360" src="file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/msohtmlclip1/01/clip_image018.jpg" v:shapes="_x0000_i1033" width="576" /><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 5: Now double click on the checkbox1:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> CheckBox1_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> CheckBox1.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Dim f as font<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If checkbox1.checked then<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F=new font(label1.font,font style.bold)<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Else<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F=new font(label1.font,fontstyle.regular)<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End if<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Label1.font=f<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub</span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 6:Now double click on checkbox2:<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> CheckBox2_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> CheckBox2.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 7:Now double click check box3:<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> CheckBox3_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> CheckBox3.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Dim f as font<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">If checkbox1.checked then<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F=new font(label1.font,font style.italic)<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Else<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">F=new font(label1.font,fontstyle.regular)<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">End if<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Label1.font=f<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub</span></span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[/CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 8: Now double click on radio button1<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> RadioButton1_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> RadioButton1.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Label1.forecolor=color.green<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 9 Radiobutton2::<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> RadioButton2_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> RadioButton2.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Label1.forecolor=color.red<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 10:Radio3:<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">[CODE]<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">Private</span><span style="font-family: "courier new"; font-size: 10.0pt;"> <span style="color: blue;">Sub</span> RadioButton3_CheckedChanged(<span style="color: blue;">ByVal</span> sender <span style="color: blue;">As</span> System.Object, <span style="color: blue;">ByVal</span> e <span style="color: blue;">As</span> System.EventArgs) <span style="color: blue;">Handles</span> RadioButton3.CheckedChanged<o:p></o:p></span></div>
<div class="MsoNormal" style="mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Label1.forecolor=color.blue</span><span style="font-family: "courier new"; font-size: 10.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "courier new"; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">End</span> <span style="color: blue;">Sub<o:p></o:p></span></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="color: blue; font-family: "courier new"; font-size: 10.0pt;">[/CODE]</span><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">Step 11: execute program press ctrl+F5.<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: 41.5pt;">
<b style="mso-bidi-font-weight: normal;"><u><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">12. LIST BOX:<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">PROPERTIES:<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">1.Items<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">2. Multicolumn<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">3. Selection mode-one item to be selected or multiple items<o:p></o:p></span></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">At runtime list box properties of form<o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal" style="mso-list: l9 level1 lfo6; tab-stops: list .5in left 125.0pt;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">selected index<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l9 level1 lfo6; tab-stops: list .5in left 125.0pt;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">selected indices<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l9 level1 lfo6; tab-stops: list .5in left 125.0pt;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">selected item<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l9 level1 lfo6; tab-stops: list .5in left 125.0pt;"><span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">selected items<o:p></o:p></span></li>
</ol>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">The Query for<span style="mso-spacerun: yes;"> </span>add,remove your list item is as follows:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<br /></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items.add(“item”)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items.insert(index,”items)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items.addrange(listbox1.items)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items.remove(“item”)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items.removeat(index)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">listbox1.items(clear)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-left: .25in; tab-stops: 125.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 11.0pt;">-------------THE END-------------<o:p></o:p></span></div>
</div>
nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-58089212395536117982012-01-19T22:18:00.001+05:302012-01-19T22:25:12.169+05:30openings and scope for mca candidates in both the private as well as public sectors<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<br />
There is good job opportunity and scope for mca candidates in both the private as well as public sectors . mca course is demand in foreign country also . after finishing your mca course you pursue for following jobs ,<br />
<br />
1. Chief information officer<br />
2. Computer system analyst<br />
3. Computer scientists<br />
<br />
4.Computer support service specialist<br />
<br />
5.Software engineer<br />
<br />
6.Software developer<br />
<br />
7.Software publisher<br />
<br />
8.System administrator<br />
<br />
9.Information and system manger<br />
<br />
10.Project leader<br />
<br />
12.Consultant<br />
<br />
13.Database administrator<br />
14. Administrator<br />
15. Testing<br />
16. Team Leader<br />
17. Designer<br />
18. Technical Officer<br />
19. Hardware<br />
20. UNIX<br />
21. Web Developer<br />
22. Gaming and Animation<br />
23. software analyst<br />
<br />
<br />
the govt job for MCA . the govt jobs are given below-<br />
1)BSNL<br />
2)DRDO<br />
3)ISRO<br />
4)IOCL<br />
5)RAILWAY<br />
6)BARC<br />
7)DEFENSE JOB<br />
8)UPSC EXAM<br />
etc<br />
<div><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-39492505913972247502011-11-21T14:40:00.000+05:302011-11-21T14:40:43.335+05:30NEW CPP COLLECTION OF MATERIALS<div dir="ltr" style="text-align: left;" trbidi="on">DIRECT LINKS FOR CPP MATERIALS<div><br />
</div><div><a href="http://en.wikipedia.org/wiki/Concepts_(C%2B%2B)">http://en.wikipedia.org/wiki/Concepts_(C%2B%2B)</a></div><div><a href="http://www.apfreshers.com/downloads/freedownloads.html">http://www.apfreshers.com/downloads/freedownloads.html</a></div><div><a href="http://www.cplusplus.com/files/tutorial.pdf">http://www.cplusplus.com/files/tutorial.pdf</a></div><div><br />
</div><div>all the above links are very useful for c++</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-84066918138988825042011-08-15T22:58:00.002+05:302011-08-15T22:58:47.364+05:30SHARE POINT INTERVIEW QUESTIONS - 2<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal"><b><u><span style="color: red; font-size: 19.0pt; mso-bidi-font-size: 12.0pt;">Sharepoint Interview Questions<o:p></o:p></span></u></b></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><br />
</div><ul type="disc"><li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_Microsoft_Windows_SharePoint_Services.3F_How_is_it_related_to_Microsoft_Office_SharePoint_Server_2007.3F"><span class="tocnumber">1</span> <span class="toctext">What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_Microsoft_SharePoint_Portal_Server.3F"><span class="tocnumber">2</span> <span class="toctext">What is Microsoft SharePoint Portal Server?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_Microsoft_Windows_Services.3F"><span class="tocnumber">3</span> <span class="toctext">What is Microsoft Windows Services?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_the_relationship_between_Microsoft_SharePoint_Portal_Server_and_Microsoft_Windows_Services.3F"><span class="tocnumber">4</span> <span class="toctext">What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Who_is_Office_SharePoint_Server_2007_designed_for.3F"><span class="tocnumber">5</span> <span class="toctext">Who is Office SharePoint Server 2007 designed for?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_main_benefits_of_Office_SharePoint_Server_2007.3F"><span class="tocnumber">6</span> <span class="toctext">What are the main benefits of Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_the_difference_between_Microsoft_Office_SharePoint_Server_2007_for_Internet_sites_and_Microsoft_Office_SharePoint_Server_2007.3F"><span class="tocnumber">7</span> <span class="toctext">What is the difference between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_suites_of_the_2007_Microsoft_Office_system_work_with_Office_SharePoint_Server_2007.3F"><span class="tocnumber">8</span> <span class="toctext">What suites of the 2007 Microsoft Office system work with Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_do_I_invite_users_to_join_a_Windows_SharePoint_Services_Site.3F_Is_the_site_secure.3F"><span class="tocnumber">9</span> <span class="toctext">How do I invite users to join a Windows SharePoint Services Site? Is the site secure?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_post_any_kind_of_document.3F"><span class="tocnumber">10</span> <span class="toctext">Can I post any kind of document?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_download_information_directly_from_a_SharePoint_site_to_a_personal_digital_assistant_.28PDA.29.3F"><span class="tocnumber">11</span> <span class="toctext">Can I download information directly from a SharePoint site to a personal digital assistant (PDA)?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_long_does_it_take_to_set_up_the_initial_team_Web_site.3F"><span class="tocnumber">12</span> <span class="toctext">How long does it take to set up the initial team Web site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_create_custom_templates.3F"><span class="tocnumber">13</span> <span class="toctext">Can I create custom templates?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_can_I_make_my_site_public.3F_By_default.2C_all_sites_are_created_private."><span class="tocnumber">14</span> <span class="toctext">How can I make my site public? By default, all sites are created private.</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_do_the_sub_sites_work.3F"><span class="tocnumber">15</span> <span class="toctext">How do the sub sites work?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_do_I_make_my_site_non-restricted.3F"><span class="tocnumber">16</span> <span class="toctext">How do I make my site non-restricted?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_get_domain_name_for_my_Web_site.3F"><span class="tocnumber">17</span> <span class="toctext">Can I get domain name for my Web site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_picture_libraries.3F"><span class="tocnumber">18</span> <span class="toctext">What are picture libraries?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_advantages_of_a_hosted_SharePoint_vs._one_that_is_on_an_in-house_server.3F"><span class="tocnumber">19</span> <span class="toctext">What are the advantages of a hosted SharePoint vs. one that is on an in-house server?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_ask_users_outside_of_my_organization_to_participate_in_my_Windows_SharePoint_Services_site.3F"><span class="tocnumber">20</span> <span class="toctext">Can I ask users outside of my organization to participate in my Windows SharePoint Services site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Are_there_any_IT_requirements_or_downloads_required_to_set_up_my_SharePoint_site.3F"><span class="tocnumber">21</span> <span class="toctext">Are there any IT requirements or downloads required to set up my SharePoint site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#I_am_located_outside_of_the_United_States._Are_there_any_restrictions_or_requirements_for_accessing_the_Windows_SharePoint_Services.3F"><span class="tocnumber">22</span> <span class="toctext">I am located outside of the United States. Are there any restrictions or requirements for accessing the Windows SharePoint Services?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Are_there_any_browser_recommendations.3F"><span class="tocnumber">23</span> <span class="toctext">Are there any browser recommendations?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_security_levels_are_assigned_to_users.3F"><span class="tocnumber">24</span> <span class="toctext">What security levels are assigned to users?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_secure_are_Windows_SharePoint_Services_sites_hosted_by_Microsoft.3F"><span class="tocnumber">25</span> <span class="toctext">How secure are Windows SharePoint Services sites hosted by Microsoft?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_the_difference_between_an_Internet_and_an__intranet_site.3F"><span class="tocnumber">26</span> <span class="toctext">What is the difference between an Internet and an intranet site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_a_workspace.3F"><span class="tocnumber">27</span> <span class="toctext">What is a workspace?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_various_kinds_of_roles_the_users_can_have.3F"><span class="tocnumber">28</span> <span class="toctext">What are the various kinds of roles the users can have?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_more_than_one_person_use_the_same_login.3F"><span class="tocnumber">29</span> <span class="toctext">Can more than one person use the same login?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_customizable_is_the_user-to-user_access.3F"><span class="tocnumber">30</span> <span class="toctext">How customizable is the user-to-user access?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_each_user_have_access_to_their_own_calendar.3F"><span class="tocnumber">31</span> <span class="toctext">Can each user have access to their own calendar?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_many_files_can_I_upload.3F"><span class="tocnumber">32</span> <span class="toctext">How many files can I upload?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_types_of_files_can_I_upload_.2F_post_to_the_site.3F"><span class="tocnumber">33</span> <span class="toctext">What types of files can I upload / post to the site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_SharePoint_be_linked_to_an_external_data_source.3F"><span class="tocnumber">34</span> <span class="toctext">Can SharePoint be linked to an external data source?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_SharePoint_be_linked_to_a_SQL_database.3F"><span class="tocnumber">35</span> <span class="toctext">Can SharePoint be linked to a SQL database?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_I_customize_my_Windows_SharePoint_Services_site.3F"><span class="tocnumber">36</span> <span class="toctext">Can I customize my Windows SharePoint Services site?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Will_Microsoft_Office_SharePoint_Server_2007_run_on_a_64-bit_version_of_Microsoft_Windows.3F"><span class="tocnumber">37</span> <span class="toctext">Will Microsoft Office SharePoint Server 2007 run on a 64-bit version of Microsoft Windows?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How__Office_SharePoint_Server_2007__can_help_you.3F"><span class="tocnumber">38</span> <span class="toctext">How Office SharePoint Server 2007 can help you?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_features_that_the_portal_components_of_Office_SharePoint_Server_2007_include.3F"><span class="tocnumber">39</span> <span class="toctext">What are the features that the portal components of Office SharePoint Server 2007 include?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_advanced_features_of_MOSS_2007.3F"><span class="tocnumber">40</span> <span class="toctext">What are the advanced features of MOSS 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_features_of_the_new_Content_management_in_Office_SharePoint_2007.3F"><span class="tocnumber">41</span> <span class="toctext">What are the features of the new Content management in Office SharePoint 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Does_a_SharePoint_Web_site_include_search_functionality.3F"><span class="tocnumber">42</span> <span class="toctext">Does a SharePoint Web site include search functionality?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Write_the_features_of_the_search_component_of_Office_SharePoint_Server_2007.3F"><span class="tocnumber">43</span> <span class="toctext">Write the features of the search component of Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_benefits_of_Microsoft_Office_SharePoint_Server_2007.3F"><span class="tocnumber">44</span> <span class="toctext">What are the benefits of Microsoft Office SharePoint Server 2007?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Will_SharePoint_Portal_Server_and_Team_Services_ever_merge.3F"><span class="tocnumber">45</span> <span class="toctext">Will SharePoint Portal Server and Team Services ever merge?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_does_partial_trust_mean_the_Web_Part_developer.3F"><span class="tocnumber">46</span> <span class="toctext">What does partial trust mean the Web Part developer?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_can_I_raise_the_trust_level_for_assemblies_installed_in_the_BIN_directory.3F"><span class="tocnumber">47</span> <span class="toctext">How can I raise the trust level for assemblies installed in the BIN directory?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Does_SharePoint_work_with_NFS.3F"><span class="tocnumber">48</span> <span class="toctext">Does SharePoint work with NFS?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_is_SharePoint_Portal_Server_different_from_the_Site_Server.3F"><span class="tocnumber">49</span> <span class="toctext">How is SharePoint Portal Server different from the Site Server?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_would_you_like_to_see_in_the_next_version_of_SharePoint.3F"><span class="tocnumber">50</span> <span class="toctext">What would you like to see in the next version of SharePoint?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Why_Sharepoint_is_not_a_viable_solution_for_enterprise_wide_deployments.3F"><span class="tocnumber">51</span> <span class="toctext">Why Sharepoint is not a viable solution for enterprise wide deployments?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_actual_advantages_of_SharePoint_Portal_Services_.28SPS.29_over_SharePoint_Team_Services_.28STS.29.3F"><span class="tocnumber">52</span> <span class="toctext">What are the actual advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_Does_SharePoint_work.3F"><span class="tocnumber">53</span> <span class="toctext">How Does SharePoint work?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#How_do_I_open_an_older_version_of_a_document.3F"><span class="tocnumber">54</span> <span class="toctext">How do I open an older version of a document?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Why_do_the_workspace_virtual_directories_show_the_error_.E2.80.9Cstop_sign.E2.80.9D_symbol_in_the_IIS_snap-in.3F"><span class="tocnumber">55</span> <span class="toctext">Why do the workspace virtual directories show the error “stop sign” symbol in the IIS snap-in?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_newsgroups_are_available.3F"><span class="tocnumber">56</span> <span class="toctext">What newsgroups are available?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_SharePoint_from_a_Technical_Perspective.3F"><span class="tocnumber">57</span> <span class="toctext">What is SharePoint from a Technical Perspective?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_SharePoint_from_an_Administration_Perspective.3F"><span class="tocnumber">58</span> <span class="toctext">What is SharePoint from an Administration Perspective?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_is_SharePoint_from_a_Users_Perspective.3F"><span class="tocnumber">59</span> <span class="toctext">What is SharePoint from a Users Perspective?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_various_Sharepoint_2003_and_Exchange_integration_points.3F"><span class="tocnumber">60</span> <span class="toctext">What are the various Sharepoint 2003 and Exchange integration points?</span></a> </li>
<ul type="circle"><li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Link_to_Outlook"><span class="tocnumber">60.1</span> <span class="toctext">Link to Outlook</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Searching_Public_Folders"><span class="tocnumber">60.2</span> <span class="toctext">Searching Public Folders</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Displaying_Public_Folders_in_a_web_part"><span class="tocnumber">60.3</span> <span class="toctext">Displaying Public Folders in a web part</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Smart_web_parts"><span class="tocnumber">60.4</span> <span class="toctext">Smart web parts</span></a></li>
</ul><li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#Can_SharePoint_compare_two_document_versions.3F"><span class="tocnumber">61</span> <span class="toctext">Can SharePoint compare two document versions?</span></a></li>
<li class="MsoNormal"><a href="http://it.toolbox.com/wiki/index.php/Sharepoint_Interview_questions#What_are_the_integration_differences_between_SPS_2003_and_the_various_Office_versions.3F"><span class="tocnumber">62</span> <span class="toctext">What are the integration differences between SPS 2003 and the various Office versions?</span></a></li>
</ul><div class="MsoNormal"><script>
</script><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"
o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"
stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/> </v:shapetype><v:shape id="_x0000_i1026" type="#_x0000_t75" alt="" style='width:.75pt;
height:.75pt'> <v:imagedata src="file:///C:\DOCUME~1\nandu\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://images.ittoolbox.com/vt/spacer.gif"/> </v:shape><![endif]--><!--[if !vml]--><img border="0" height="1" src="file:///C:/DOCUME~1/nandu/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1026" width="1" /><!--[endif]--></div><h2><a href="" name="What_is_Microsoft_Windows_SharePoint_Ser"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=1" title="Edit section: What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?</span></h2>Windows SharePoint Services is the solution that enables you to create Web sites for information sharing and document collaboration. Windows SharePoint Services -- a key piece of the information worker infrastructure delivered in Microsoft Windows Server 2003 -- provides additional functionality to the Microsoft Office system and other desktop applications, and it serves as a platform for application development. <br />
Office SharePoint Server 2007 builds on top of Windows SharePoint Services 3.0 to provide additional capabilities including collaboration, portal, search, enterprise content management, business process and forms, and business intelligence. <br />
<h2><a href="" name="What_is_Microsoft_SharePoint_Portal_Serv"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=2" title="Edit section: What is Microsoft SharePoint Portal Server?">edit</a>]</h2><h2><span class="mw-headline">What is Microsoft SharePoint Portal Server?</span></h2>SharePoint Portal Server is a portal server that connects people, teams, and knowledge across business processes. SharePoint Portal Server integrates information from various systems into one secure solution through single sign-on and enterprise application integration capabilities. It provides flexible deployment and management tools, and facilitates end-to-end collaboration through data aggregation, organization, and searching. SharePoint Portal Server also enables users to quickly find relevant information through customization and personalization of portal content and layout as well as through audience targeting. <br />
<h2><a href="" name="What_is_Microsoft_Windows_Services.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=3" title="Edit section: What is Microsoft Windows Services?">edit</a>]</h2><h2><span class="mw-headline">What is Microsoft Windows Services?</span></h2>Microsoft Windows Services is the engine that allows administrators to create Web sites for information sharing and document collaboration. Windows SharePoint Services provides additional functionality to the Microsoft Office System and other desktop applications, as well as serving as a plat form for application development. SharePoint sites provide communities for team collaboration, enabling users to work together on documents, tasks, and projects. The environment for easy and flexible deployment, administration, and application development. <br />
<h2><a href="" name="What_is_the_relationship_between_Microso"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=4" title="Edit section: What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?">edit</a>]</h2><h2><span class="mw-headline">What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?</span></h2>Microsoft SharePoint Products and Technologies (including SharePoint Portal Server and Windows SharePoint Services) deliver highly scalable collaboration solutions with flexible deployment and management tools. Windows SharePoint Services provides sites for team collaboration, while Share Point Portal Server connects these sites, people, and business processes—facilitating knowledge sharing and smart organizations. SharePoint Portal Server also extends the capabilities of Windows SharePoint Services by providing organizational and management tools for SharePoint sites, and by enabling teams to publish information to the entire organization. <br />
<h2><a href="" name="Who_is_Office_SharePoint_Server_2007_des"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=5" title="Edit section: Who is Office SharePoint Server 2007 designed for?">edit</a>]</h2><h2><span class="mw-headline">Who is Office SharePoint Server 2007 designed for?</span></h2>Office SharePoint Server 2007 can be used by information workers, IT administrators, and application developers. is designed <br />
<h2><a href="" name="What_are_the_main_benefits_of_Office_Sha"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=6" title="Edit section: What are the main benefits of Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">What are the main benefits of Office SharePoint Server 2007?</span></h2>Office SharePoint Server 2007 provides a single integrated platform to manage intranet, extranet, and Internet applications across the enterprise. <br />
<ul type="disc"><li class="MsoNormal">Business users gain greater control over the storage, security, distribution, and management of their electronic content, with tools that are easy to use and tightly integrated into familiar, everyday applications. </li>
<li class="MsoNormal">Organizations can accelerate shared business processes with customers and partners across organizational boundaries using InfoPath Forms Services–driven solutions. </li>
<li class="MsoNormal">Information workers can find information and people efficiently and easily through the facilitated information-sharing functionality and simplified content publishing. In addition, access to back-end data is achieved easily through a browser, and views into this data can be personalized. </li>
<li class="MsoNormal">Administrators have powerful tools at their fingertips that ease deployment, management, and system administration, so they can spend more time on strategic tasks. </li>
<li class="MsoNormal">Developers have a rich platform to build a new class of applications, called Office Business Applications, that combine powerful developer functionality with the flexibility and ease of deployment of Office SharePoint Server 2007. Through the use of out-of-the-box application services, developers can build richer applications with less code. </li>
</ul><h2><a href="" name="What_is_the_difference_between_Microsoft"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=7" title="Edit section: What is the difference between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">What is the difference between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007?</span></h2>Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007 have identical feature functionality. While the feature functionality is similar, the usage rights are different. <br />
If you are creating an Internet, or Extranet, facing website, it is recommended that you use Microsoft Office SharePoint Server 2007 for Internet sites which does not require the purchase client access licenses. Websites hosted using an “Internet sites” edition can only be used for Internet facing websites and all content, information, and applications must be accessible to non-employees. Websites hosted using an “Internet sites” edition cannot be accessed by employees creating, sharing, or collaborating on content which is solely for internal use only, such as an Intranet Portal scenario. See the previous section on licensing for more information on the usage scenarios. <br />
<h2><a href="" name="What_suites_of_the_2007_Microsoft_Office"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=8" title="Edit section: What suites of the 2007 Microsoft Office system work with Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">What suites of the 2007 Microsoft Office system work with Office SharePoint Server 2007?</span></h2>Office Outlook 2007 provides bidirectional offline synchronization with SharePoint document libraries, discussion groups, contacts, calendars, and tasks. <br />
Microsoft Office Groove 2007, included as part of Microsoft Office Enterprise 2007, will enable bidirectional offline synchronization with SharePoint document libraries. <br />
Features such as the document panel and the ability to publish to Excel Services will only be enabled when using Microsoft Office Professional Plus 2007or Office Enterprise 2007. <br />
Excel Services will only work with documents saved in the new Office Excel 2007 file format (XLSX). <br />
<h2><a href="" name="How_do_I_invite_users_to_join_a_Windows_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=9" title="Edit section: How do I invite users to join a Windows SharePoint Services Site? Is the site secure?">edit</a>]</h2><h2><span class="mw-headline">How do I invite users to join a Windows SharePoint Services Site? Is the site secure?</span></h2>SharePoint-based Web sites can be password-protected to restrict access to registered users, who are invited to join via e-mail. In addition, the site administrator can restrict certain members' roles by assigning different permission levels to view post and edit. <br />
<h2><a href="" name="Can_I_post_any_kind_of_document.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=10" title="Edit section: Can I post any kind of document?">edit</a>]</h2><h2><span class="mw-headline">Can I post any kind of document?</span></h2>You can post documents in many formats, including .pdf, .htm and .doc. In addition, if you are using Microsoft Office XP, you can save documents directly to your Windows SharePoint Services site. <br />
<h2><a href="" name="Can_I_download_information_directly_from"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=11" title="Edit section: Can I download information directly from a SharePoint site to a personal digital assistant (PDA)?">edit</a>]</h2><h2><span class="mw-headline">Can I download information directly from a SharePoint site to a personal digital assistant (PDA)?</span></h2>No you cannot. However, you can exchange contact information lists with Microsoft Outlook. <br />
<h2><a href="" name="How_long_does_it_take_to_set_up_the_init"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=12" title="Edit section: How long does it take to set up the initial team Web site?">edit</a>]</h2><h2><span class="mw-headline">How long does it take to set up the initial team Web site?</span></h2>It only takes a few minutes to create a complete Web site. Preformatted forms let you and your team members contribute to the site by filling out lists. Standard forms include announcements, events, contacts, tasks, surveys, discussions and links. <br />
<h2><a href="" name="Can_I_create_custom_templates.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=13" title="Edit section: Can I create custom templates?">edit</a>]</h2><h2><span class="mw-headline">Can I create custom templates?</span></h2>Yes you can. You can have templates for business plans, doctor's office, lawyer's office etc. <br />
<h2><a href="" name="How_can_I_make_my_site_public.3F_By_defa"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=14" title="Edit section: How can I make my site public? By default, all sites are created private.">edit</a>]</h2><h2><span class="mw-headline">How can I make my site public? By default, all sites are created private.</span></h2>If you want your site to be a public Web site, enable anonymous access for the entire site. Then you can give out your URL to anybody in your business card, e-mail or any other marketing material. The URL for your Web site will be: http:// yoursitename.wss.bcentral.com <br />
Hence, please take special care to name your site. These Web sites are ideal for information and knowledge intensive sites and/or sites where you need to have shared Web workspace. Remember: Under each parent Web site, you can create up to 10 sub-sites each with unique permissions, settings and security rights. <br />
<h2><a href="" name="How_do_the_sub_sites_work.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=15" title="Edit section: How do the sub sites work?">edit</a>]</h2><h2><span class="mw-headline">How do the sub sites work?</span></h2>You can create a sub site for various categories. For example: <br />
<ul type="disc"><li class="MsoNormal">Departments - finance, marketing, IT </li>
<li class="MsoNormal">Products - electrical, mechanical, hydraulics </li>
<li class="MsoNormal">Projects - Trey Research, Department of Transportation, FDA </li>
<li class="MsoNormal">Team - Retention team, BPR team </li>
<li class="MsoNormal">Clients - new clients, old clients </li>
<li class="MsoNormal">Suppliers - Supplier 1, Supplier 2, Supplier 3 </li>
<li class="MsoNormal">Customers - Customer A, Customer B, Customer C </li>
<li class="MsoNormal">Real estate - property A, property B </li>
</ul>The URLs for each will be, for example: <br />
<ul type="disc"><li class="MsoNormal"><a href="http://yoursitename.wss.bcentral.com/finance" title="http://yoursitename.wss.bcentral.com/finance">http://yoursitename.wss.bcentral.com/finance</a> </li>
<li class="MsoNormal"><a href="http://yoursitename.wss.bcentral.com/marketing" title="http://yoursitename.wss.bcentral.com/marketing">http://yoursitename.wss.bcentral.com/marketing</a> </li>
</ul>You can keep track of permissions for each team separately so that access is restricted while maintaining global access to the parent site. <br />
<h2><a href="" name="How_do_I_make_my_site_non-restricted.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=16" title="Edit section: How do I make my site non-restricted?">edit</a>]</h2><h2><span class="mw-headline">How do I make my site non-restricted?</span></h2>If you want your site to have anonymous access enabled (i.e., you want to treat it like any site on the Internet that does not ask you to provide a user name and password to see the content of the site), follow these simple steps: <br />
<ol start="1" type="1"><li class="MsoNormal">Login as an administrator </li>
<li class="MsoNormal">Click on site settings </li>
<li class="MsoNormal">Click on Go to Site Administration </li>
<li class="MsoNormal">Click on Manage anonymous access </li>
<li class="MsoNormal">Choose one of the three conditions on what Anonymous users can access: </li>
</ol><div class="MsoNormal" style="margin-left: 1.0in; mso-list: l7 level1 lfo6; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in; text-indent: -.25in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol;"><span>·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><o:p> </o:p></div><ul type="disc"><ul type="circle"><li class="MsoNormal">Entire Web site </li>
<li class="MsoNormal">Lists and libraries </li>
<li class="MsoNormal">Nothing </li>
</ul></ul>Default condition is nothing; your site has restricted access. The default conditions allow you to create a secure site for your Web site. <br />
<h2><a href="" name="Can_I_get_domain_name_for_my_Web_site.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=17" title="Edit section: Can I get domain name for my Web site?">edit</a>]</h2><h2><span class="mw-headline">Can I get domain name for my Web site?</span></h2>Unfortunately, no. At this point, we don't offer domain names for SharePoint sites. But very soon we will be making this available for all our SharePoint site customers. Please keep checking this page for further update on this. Meanwhile, we suggest you go ahead and set up your site and create content for it. <br />
<h2><a href="" name="What_are_picture_libraries.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=18" title="Edit section: What are picture libraries?">edit</a>]</h2><h2><span class="mw-headline">What are picture libraries?</span></h2>Picture libraries allow you to access a photo album and view it as a slide show or thumbnails or a film strip. You can have separate folder for each event, category, etc <br />
<h2><a href="" name="What_are_the_advantages_of_a_hosted_Shar"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=19" title="Edit section: What are the advantages of a hosted SharePoint vs. one that is on an in-house server?">edit</a>]</h2><h2><span class="mw-headline">What are the advantages of a hosted SharePoint vs. one that is on an in-house server?</span></h2><ul type="disc"><li class="MsoNormal">No hardware investment, i.e. lower costs </li>
<li class="MsoNormal">No software to download - ready to start from the word go </li>
<li class="MsoNormal">No IT resources - Anyone who has used a Web program like Hotmail can use it </li>
<li class="MsoNormal">Faster deployment </li>
</ul><h2><a href="" name="Can_I_ask_users_outside_of_my_organizati"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=20" title="Edit section: Can I ask users outside of my organization to participate in my Windows SharePoint Services site?">edit</a>]</h2><h2><span class="mw-headline">Can I ask users outside of my organization to participate in my Windows SharePoint Services site?</span></h2>Yes. You can manage this process using the Administration Site Settings. Simply add users via their e-mail alias and assign permissions such as Reader or Contributor. <br />
<h2><a href="" name="Are_there_any_IT_requirements_or_downloa"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=21" title="Edit section: Are there any IT requirements or downloads required to set up my SharePoint site?">edit</a>]</h2><h2><span class="mw-headline">Are there any IT requirements or downloads required to set up my SharePoint site?</span></h2>No. You do not need to download any code or plan for any IT support. Simply complete the on-line signup process and provide us your current and correct email address. Once you have successfully signed up and your site has been provisioned, we will send a confirmation to the email address you provided. <br />
<h2><a href="" name="I_am_located_outside_of_the_United_State"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=22" title="Edit section: I am located outside of the United States. Are there any restrictions or requirements for accessing the Windows SharePoint Services?">edit</a>]</h2><h2><span class="mw-headline">I am located outside of the <st1:country-region w:st="on"><st1:place w:st="on">United States</st1:place></st1:country-region>. Are there any restrictions or requirements for accessing the Windows SharePoint Services?</span></h2>No. There are no system or bandwidth limitations for international trial users. Additionally language packs have been installed which allow users to set up sub-webs in languages other than English. These include: Arabic, Danish, Dutch, Finnish, French, German, Hebrew, Italian, Japanese, Polish, Portuguese (Brazilian), Spanish and Swedish. <br />
<h2><a href="" name="Are_there_any_browser_recommendations.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=23" title="Edit section: Are there any browser recommendations?">edit</a>]</h2><h2><span class="mw-headline">Are there any browser recommendations?</span></h2>Yes. Microsoft recommends using the following browsers for viewing and editing Windows SharePoint Services sites: Microsoft Internet Explorer 5.01 with Service Pack 2, Microsoft Internet Explorer 5.5 with Service Pack 2, Internet Explorer 6, Netscape Navigator 6.2 or later. <br />
<br />
<h2><a href="" name="What_security_levels_are_assigned_to_use"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=24" title="Edit section: What security levels are assigned to users?">edit</a>]</h2><h2><span class="mw-headline">What security levels are assigned to users?</span></h2>Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary. <br />
<ul type="disc"><li class="MsoNormal">Reader - Has read-only access to the Web site. </li>
<li class="MsoNormal">Contributor - Can add content to existing document libraries and lists. </li>
<li class="MsoNormal">Web Designer - Can create lists and document libraries and customize pages in the Web site. </li>
<li class="MsoNormal">Administrator - Has full control of the Web site. </li>
</ul><h2><a href="" name="How_secure_are_Windows_SharePoint_Servic"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=25" title="Edit section: How secure are Windows SharePoint Services sites hosted by Microsoft?">edit</a>]</h2><h2><span class="mw-headline">How secure are Windows SharePoint Services sites hosted by Microsoft?</span></h2>Microsoft Windows SharePoint Services Technical security measures provide firewall protection, intrusion detection, and web-publishing rules. The Microsoft operation center team tests and deploys software updates in order to maintain the highest level of security and software reliability. Software hot-fixes and service packs are tested and deployed based on their priority and level of risk. Security related hot-fixes are rapidly deployed into the environment to address current threats. A comprehensive software validation activity ensures software stability through regression testing prior to deployment. <br />
<h2><a href="" name="What_is_the_difference_between_an_Intern"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=26" title="Edit section: What is the difference between an Internet and an intranet site?">edit</a>]</h2><h2><span class="mw-headline">What is the difference between an Internet and an <a href="http://it.toolbox.com/wiki/index.php/Intranet" title="Intranet">intranet</a> site?</span></h2>An internet site is a normal site that anyone on the internet can access (e.g., www.msn.com, www.microsoft.com, etc.). You can set up a site for your company that can be accessed by anyone without any user name and password. The internet is used for public presence and a primary marketing tool managed typically by web programmers and a system administrator. <br />
An <a href="http://it.toolbox.com/wiki/index.php/Intranet" title="Intranet">intranet</a> (or internal network), though hosted on a Web site, can only be accessed by people who are members of a specific network. They need to have a login and password that was assigned to them when they were added to the site by the site administrator. The <a href="http://it.toolbox.com/wiki/index.php/Intranet" title="Intranet">intranet</a> is commonly used as an internal tool for giving employees access to company information. Content is driven by business relevance, business rules and has increasingly become a common tool in larger organizations. An <a href="http://it.toolbox.com/wiki/index.php/Intranet" title="Intranet">intranet</a> is becoming more and more the preferred method for employees to interact with each other and the central departments in an organization, whether or not the organization has a Web presence. <br />
<h2><a href="" name="What_is_a_workspace.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=27" title="Edit section: What is a workspace?">edit</a>]</h2><h2><span class="mw-headline">What is a workspace?</span></h2>A site or workspace is when you want a new place for collaborating on Web pages, lists and document libraries. For example, you might create a site to manage a new team or project, collaborate on a document or prepare for a meeting. <br />
<h2><a href="" name="What_are_the_various_kinds_of_roles_the_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=28" title="Edit section: What are the various kinds of roles the users can have?">edit</a>]</h2><h2><span class="mw-headline">What are the various kinds of roles the users can have?</span></h2>A user can be assigned one of the following roles <br />
<ul type="disc"><li class="MsoNormal">Reader - Has read-only access to the Web site. </li>
<li class="MsoNormal">Contributor - Can add content to existing document libraries and lists. </li>
<li class="MsoNormal">Web Designer - Can create lists and document libraries and customize pages in the Web site. </li>
<li class="MsoNormal">Administrator - Has full control of the Web site. </li>
</ul><h2><a href="" name="Can_more_than_one_person_use_the_same_lo"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=29" title="Edit section: Can more than one person use the same login?">edit</a>]</h2><h2><span class="mw-headline">Can more than one person use the same login?</span></h2>If the users sharing that login will have the same permissions and there is no fear of them sharing a password, then yes. Otherwise, this is discouraged. <br />
<h2><a href="" name="How_customizable_is_the_user-to-user_acc"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=30" title="Edit section: How customizable is the user-to-user access?">edit</a>]</h2><h2><span class="mw-headline">How customizable is the user-to-user access?</span></h2>User permissions apply to an entire Web, not to documents themselves. However, you can have additional sub webs that can optionally have their own permissions. Each user can be given any of four default roles. Additional roles can be defined by the administrator. <br />
<h2><a href="" name="Can_each_user_have_access_to_their_own_c"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=31" title="Edit section: Can each user have access to their own calendar?">edit</a>]</h2><h2><span class="mw-headline">Can each user have access to their own calendar?</span></h2>Yes there are two ways to do this, <br />
<ul type="disc"><li class="MsoNormal">by creating a calendar for each user, or </li>
<li class="MsoNormal">by creating a calendar with a view for each user </li>
</ul><h2><a href="" name="How_many_files_can_I_upload.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=32" title="Edit section: How many files can I upload?">edit</a>]</h2><h2><span class="mw-headline">How many files can I upload?</span></h2>There is no restriction in place except that any storage consumed beyond that provided by the base offering may have an additional monthly charge associated with them. <br />
<h2><a href="" name="What_types_of_files_can_I_upload_.2F_pos"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=33" title="Edit section: What types of files can I upload / post to the site?">edit</a>]</h2><h2><span class="mw-headline">What types of files can I upload / post to the site?</span></h2>The only files restricted are those ending with the following extensions: .asa, .asp, .ida, .idc, .idq. Microsoft reserves the right to add additional file types to this listing at any time. Also, no content that violates the terms of service may be uploaded or posted to the site. <br />
<h2><a href="" name="Can_SharePoint_be_linked_to_an_external_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=34" title="Edit section: Can SharePoint be linked to an external data source?">edit</a>]</h2><h2><span class="mw-headline">Can SharePoint be linked to an external data source?</span></h2>SharePoint data can be opened with Access and Excel as an external data source. Thus, SharePoint can be referenced as an external data source. SharePoint itself cannot reference an external data source. <br />
But 3rd pary software can do this for you: <a href="http://www.layer2.de/en/products/pages/sharepoint-business-data-list-connector.aspx" title="http://www.layer2.de/en/products/pages/sharepoint-business-data-list-connector.aspx">http://www.layer2.de/en/products/pages/sharepoint-business-data-list-connector.aspx</a> <br />
<h2><a href="" name="Can_SharePoint_be_linked_to_a_SQL_databa"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=35" title="Edit section: Can SharePoint be linked to a SQL database?">edit</a>]</h2><h2><span class="mw-headline">Can SharePoint be linked to a SQL database?</span></h2>SharePoint 2007 Portal Server (MOSS2K7) allows connections to SQL based datasources via the Business Data Catalog (BDC). The BDC also allows connecting to data via Web Services. Or you can link lists directly qith sql queries in the list settings using the BDLC found here: <a href="http://bit.ly/p30tJ" title="http://bit.ly/p30tJ">http://bit.ly/p30tJ</a> . <br />
<h2><a href="" name="Can_I_customize_my_Windows_SharePoint_Se"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=36" title="Edit section: Can I customize my Windows SharePoint Services site?">edit</a>]</h2><h2><span class="mw-headline">Can I customize my Windows SharePoint Services site?</span></h2>YES! Windows SharePoint Services makes updating sites and their content from the browser easier then ever. <br />
SharePoint includes tools that let you create custom lists, calendars, page views, etc. You can apply a theme; add List, Survey and Document Library Web Parts to a page; create personal views; change logos; connect Web Parts and more. <br />
To fully customize your site, you can use Microsoft FrontPage 2003. Specifically, you can use FrontPage themes and shared borders, and also use FrontPage to create photo galleries and top ten lists, utilize standard usage reports, and integrate automatic Web content. <br />
<h2><a href="" name="Will_Microsoft_Office_SharePoint_Server_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=37" title="Edit section: Will Microsoft Office SharePoint Server 2007 run on a 64-bit version of Microsoft Windows?">edit</a>]</h2><h2><span class="mw-headline">Will Microsoft Office SharePoint Server 2007 run on a 64-bit version of Microsoft Windows?</span></h2>Windows SharePoint Services 3.0, Office SharePoint Server 2007, Office Forms Server 2007, and Office SharePoint Server 2007 for Search will support 64-bit versions of Windows Server 2003. <br />
<h2><a href="" name="How__Office_SharePoint_Server_2007__can_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=38" title="Edit section: How Office SharePoint Server 2007 can help you?">edit</a>]</h2><h2><span class="mw-headline">How Office SharePoint Server 2007 can help you?</span></h2>Office SharePoint Server 2007 can help us: <br />
Manage content and streamline processes. Comprehensively manage and control unstructured content like Microsoft Office documents, Web pages, Portable Document Format file (PDF) files, and e-mail messages. Streamline business processes that are a drain on organizational productivity. <br />
Improve business insight. Monitor your business, enable better-informed decisions, and respond proactively to business events. <br />
Find and share information more simply. Find information and expertise wherever they are located. Share knowledge and simplify working with others within and across organizational boundaries. <br />
Empower IT to make a strategic impact. Increase responsiveness of IT to business needs and reduce the number of platforms that have to be maintained by supporting all the intranet, extranet, and Web applications across the enterprise with one integrated platform. <br />
Office SharePoint Server 2007 capabilities can help improve organizational effectiveness by connecting people, processes, and information. <br />
Office SharePoint Server 2007 provides these capabilities in an integrated server offering, so your organization doesn't have to integrate fragmented technology solutions itself. <br />
<h2><a href="" name="What_are_the_features_that_the_portal_co"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=39" title="Edit section: What are the features that the portal components of Office SharePoint Server 2007 include?">edit</a>]</h2><h2><span class="mw-headline">What are the features that the portal components of Office SharePoint Server 2007 include?</span></h2>The portal components of Office SharePoint Server 2007 include features that are especially useful for designing, deploying, and managing enterprise intranet portals, corporate Internet Web sites, and divisional portal sites. The portal components make it easier to connect to people within the organization who have the right skills, knowledge, and project experience. <br />
<h2><a href="" name="What_are_the_advanced_features_of_MOSS_2"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=40" title="Edit section: What are the advanced features of MOSS 2007?">edit</a>]</h2><h2><span class="mw-headline">What are the advanced features of MOSS 2007?</span></h2><ul type="disc"><li class="MsoNormal">User Interface (UI) and navigation enhancements </li>
<li class="MsoNormal">Document management enhancements </li>
<li class="MsoNormal">The new Workflow engine </li>
<li class="MsoNormal">Office 2007 Integration </li>
<li class="MsoNormal">New Web Parts </li>
<li class="MsoNormal">New Site-type templates </li>
<li class="MsoNormal">Enhancements to List technology </li>
<li class="MsoNormal">Web Content Management </li>
<li class="MsoNormal">Business Data Catalog </li>
<li class="MsoNormal">Search enhancements </li>
<li class="MsoNormal"><st1:place w:st="on"><st1:placename w:st="on">Report</st1:placename> <st1:placetype w:st="on">Center</st1:placetype></st1:place> </li>
<li class="MsoNormal">Records Management </li>
<li class="MsoNormal">Business Intelligence and Excel Server </li>
<li class="MsoNormal">Forms Server and InfoPath </li>
<li class="MsoNormal">The “Features” feature </li>
<li class="MsoNormal">Alternate authentication providers and Forms-based authentication </li>
</ul><h2><a href="" name="What_are_the_features_of_the_new_Content"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=41" title="Edit section: What are the features of the new Content management in Office SharePoint 2007?">edit</a>]</h2><h2><span class="mw-headline">What are the features of the new Content management in Office SharePoint 2007?</span></h2>The new and enhanced content management features in Office SharePoint Server 2007 fall within three areas: <br />
<ul type="disc"><li class="MsoNormal">Document management </li>
<li class="MsoNormal">Records management </li>
<li class="MsoNormal">Web content management </li>
</ul>Office SharePoint Server 2007 builds on the core document management functionality provided by Windows SharePoint Services 3.0, including check in and check out, versioning, metadata, and role-based granular access controls. Organizations can use this functionality to deliver enhanced authoring, business document processing, Web content management and publishing, records management, policy management, and support for multilingual publishing. <br />
<h2><a href="" name="Does_a_SharePoint_Web_site_include_searc"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=42" title="Edit section: Does a SharePoint Web site include search functionality?">edit</a>]</h2><h2><span class="mw-headline">Does a SharePoint Web site include search functionality?</span></h2>Yes. SharePoint Team Services provides a powerful text-based search feature that helps you find documents and information fast. <br />
<h2><a href="" name="Write_the_features_of_the_search_compone"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=43" title="Edit section: Write the features of the search component of Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">Write the features of the search component of Office SharePoint Server 2007?</span></h2>The search component of Office SharePoint Server 2007 has been significantly enhanced by this release of SharePoint Products and Technologies. New features provide: <br />
<ul type="disc"><li class="MsoNormal">A consistent and familiar search experience. </li>
<li class="MsoNormal">Increased relevance of search results. </li>
<li class="MsoNormal">New functions to search for people and expertise. </li>
<li class="MsoNormal">Ability to index and search data in line-of-business applications and </li>
<li class="MsoNormal">Improved manageability and extensibility. </li>
</ul><h2><a href="" name="What_are_the_benefits_of_Microsoft_Offic"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=44" title="Edit section: What are the benefits of Microsoft Office SharePoint Server 2007?">edit</a>]</h2><h2><span class="mw-headline">What are the benefits of Microsoft Office SharePoint Server 2007?</span></h2><ul type="disc"><li class="MsoNormal">Provide a simple, familiar, and consistent user experience. </li>
<li class="MsoNormal">Boost employee productivity by simplifying everyday business activities. </li>
<li class="MsoNormal">Help meet regulatory requirements through comprehensive control over content. </li>
<li class="MsoNormal">Effectively manage and repurpose content to gain increased business value. </li>
<li class="MsoNormal">Simplify organization-wide access to both structured and unstructured information across disparate systems. </li>
<li class="MsoNormal">Connect people with information and expertise. </li>
<li class="MsoNormal">Accelerate shared business processes across organizational boundaries. </li>
<li class="MsoNormal">Share business data without divulging sensitive information. </li>
<li class="MsoNormal">Enable people to make better-informed decisions by presenting business-critical information in one central location. </li>
<li class="MsoNormal">Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise. </li>
</ul><h2><a href="" name="Will_SharePoint_Portal_Server_and_Team_S"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=45" title="Edit section: Will SharePoint Portal Server and Team Services ever merge?">edit</a>]</h2><h2><span class="mw-headline">Will SharePoint Portal Server and Team Services ever merge?</span></h2>The products will come together because they are both developed by the Office team. <br />
<h2><a href="" name="What_does_partial_trust_mean_the_Web_Par"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=46" title="Edit section: What does partial trust mean the Web Part developer?">edit</a>]</h2><h2><span class="mw-headline">What does partial trust mean the Web Part developer?</span></h2>If an assembly is installed into the BIN directory, the code must be ensured that provides error handling in the event that required permissions are not available. Otherwise, unhandled security exceptions may cause the Web Part to fail and may affect page rendering on the page where the Web Part appears. <br />
<h2><a href="" name="How_can_I_raise_the_trust_level_for_asse"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=47" title="Edit section: How can I raise the trust level for assemblies installed in the BIN directory?">edit</a>]</h2><h2><span class="mw-headline">How can I raise the trust level for assemblies installed in the BIN directory?</span></h2>Windows SharePoint Services can use any of the following three options from ASP.NET and the CLR to provide assemblies installed in the BIN directory with sufficient permissions. The following table outlines the implications and requirements for each option. <br />
Option Pros Cons <br />
Increase the trust level for the entire virtual server. For more information, see "Setting the trust level for a virtual server" Easy to implement. <br />
In a development environment, increasing the trust level allows you to test an assembly with increased permissions while allowing you to recompile assemblies directly into the BIN directory without resetting IIS. This option is least secure. <br />
This option affects all assemblies used by the virtual server. There is no guarantee the destination server has the required trust level. Therefore, Web Parts may not work once installed on the destination server. <br />
Create a custom policy file for your assemblies. For more information, see "How do I create a custom policy file?" Recommended approach. <br />
This option is most secure. <br />
An assembly can operate with a unique policy that meets the minimum permission requirements for the assembly. <br />
By creating a custom security policy, you can ensure the destination server can run your Web Parts. <br />
Requires the most configuration of all three options. Install your assemblies in the GAC <br />
Easy to implement. This grants Full trust to your assembly without affecting the trust level of assemblies installed in the BIN directory. <br />
This option is less secure. <br />
Assemblies installed in the GAC are available to all virtual servers and applications on a server running Windows SharePoint Services. This could represent a potential security risk as it potentially grants a higher level of permission to your assembly across a larger scope than necessary <br />
In a development environment, you must reset IIS every time you recompile assemblies. <br />
Licensing issues may arise due to the global availability of your assembly. <br />
<h2><a href="" name="Does_SharePoint_work_with_NFS.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=48" title="Edit section: Does SharePoint work with NFS?">edit</a>]</h2><h2><span class="mw-headline">Does SharePoint work with NFS?</span></h2>Yes and no. It can crawl documents on an NFS volume, but the sharepoint database or logs cannot be stored there. <br />
<h2><a href="" name="How_is_SharePoint_Portal_Server_differen"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=49" title="Edit section: How is SharePoint Portal Server different from the Site Server?">edit</a>]</h2><h2><span class="mw-headline">How is SharePoint Portal Server different from the Site Server?</span></h2>Site Server has search capabilities but these are more advanced using SharePoint. SPS uses digital dashboard technology which provides a nice interface for creating web parts and showing them on dashboards (pages). SS doesn't have anything as advanced as that. The biggest difference would be SPS document management features which also integrate with web folders and MS Office. <br />
<h2><a href="" name="What_would_you_like_to_see_in_the_next_v"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=50" title="Edit section: What would you like to see in the next version of SharePoint?">edit</a>]</h2><h2><span class="mw-headline">What would you like to see in the next version of SharePoint?</span></h2>A few suggestions: <br />
<ol start="1" type="1"><li class="MsoNormal">SPS and STS on same machine </li>
<li class="MsoNormal">Tree view of Categories and Folders </li>
<li class="MsoNormal">General Discussion Web Part </li>
<li class="MsoNormal">Personalization of Dashboards </li>
<li class="MsoNormal">Role Customization </li>
<li class="MsoNormal">Email to say WHY a document has been rejected for Approval </li>
<li class="MsoNormal">More ways to customize the interface </li>
<li class="MsoNormal">Backup and restore an individual Workspaces </li>
<li class="MsoNormal">Filter for Visio </li>
<li class="MsoNormal">Better way to track activity on SPS </li>
<li class="MsoNormal">Ability to Save as from Adobe to space on My Network Places </li>
</ol><h2><a href="" name="Why_Sharepoint_is_not_a_viable_solution_"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=51" title="Edit section: Why Sharepoint is not a viable solution for enterprise wide deployments?">edit</a>]</h2><h2><span class="mw-headline">Why Sharepoint is not a viable solution for enterprise wide deployments?</span></h2>Planning an enterprise deployment using SharePoint features is a very difficult task unless you can establish a Service Oriented Architecture, using AD for managing security with well defined roles based information access(EISA). Sounds reasonable, although it seems difficult to deploy with the tools limitations in document storage. <br />
Document management does not scale beyond a single server, but scales great within a single server. For example, a quad Xeon machine with 4GB of RAM works great for a document management server that has about 900,000 - 1,000,000 document, but if you need to store 50,000,000 document and want to have them all in one single workspace then it does not scale at all. If you need a scenario like this, you need to plan your deployment right and it should scale for you, it just does not right out of the box. If you are using your server as a portal and search server most for the most part it scales great. You can have many different servers crawl content sources and have separate servers searching and serving the content. <br />
If you have < 750,000 documents per server and fewer than 4 content sources and fewer than 50,000 users, SPS should scale just fine for your needs with the proper planning. <br />
<h2><a href="" name="What_are_the_actual_advantages_of_ShareP"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=52" title="Edit section: What are the actual advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?">edit</a>]</h2><h2><span class="mw-headline">What are the actual advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?</span></h2>SharePoint Portal Services (SPS) has MUCH better document management. It has check-in, check-out, versioning, approval, publishing, subscriptions, categories, etc. STS does not have these features, or they are very scaled back. SharePoint Portal Services (SPS) has a better search engine, and can crawl multiple content sources. STS cannot. STS is easier to manage and much better for a team environment where there is not much Document Management going on. SPS is better for an organization, or where Document Management is crucial. <br />
<h2><a href="" name="How_Does_SharePoint_work.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=53" title="Edit section: How Does SharePoint work?">edit</a>]</h2><h2><span class="mw-headline">How Does SharePoint work?</span></h2>The browser sends a DAV packet to IIS asking to perform a document check in. PKMDASL.DLL, an ISAPI DLL, parses the packet and sees that it has the proprietary INVOKE command. Because of the existence of this command, the packet is passed off to msdmserv.exe, who in turn processes the packet and uses EXOLEDB to access the WSS, perform the operation and send the results back to the user in the form of XML. <br />
<h2><a href="" name="How_do_I_open_an_older_version_of_a_docu"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=54" title="Edit section: How do I open an older version of a document?">edit</a>]</h2><h2><span class="mw-headline">How do I open an older version of a document?</span></h2>Normally, all previous versions are located in the shadow, so if you right click a published document from within the web folders, go to properties and then the third tab, versions you can view older versions. <br />
If you want to do this in code: <br />
<pre>strURL = "url of the last published version" </pre><pre>Set oVersion = New PKMCDO.KnowledgeVersion </pre><pre>Set prmRs = oVersion.VersionHistory(strURL) </pre><pre>Set oVersion = Nothing </pre>prmRS will contain a recordset, which contains the url to the old versions in the shadow. <br />
<h2><a href="" name="Why_do_the_workspace_virtual_directories"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=55" title="Edit section: Why do the workspace virtual directories show the error “stop sign” symbol in the IIS snap-in?">edit</a>]</h2><h2><span class="mw-headline">Why do the workspace virtual directories show the error “stop sign” symbol in the IIS snap-in?</span></h2>If World Wide Web Publishing Service (W3SVC) starts before Microsoft Exchange Information Store (MSExchangeIS), “stop sign” symbols appear under the Default Web Site folder of the Internet Information Services console in Microsoft Management Console (MMC). <br />
There is a dependency between the local paths of the SharePoint Portal Server virtual directories and the MSExchangeIS. You must start MSExchangeIS first, followed by W3SVC. <br />
Complete the following steps to prevent the stop signs from appearing each time you restart: <br />
<ol start="1" type="1"><li class="MsoNormal">Change the Startup type for W3SVC to Manual. </li>
<li class="MsoNormal">Restart the server. The MSExchangeIS service starts automatically. </li>
<li class="MsoNormal">Start W3SVC. </li>
</ol><h2><a href="" name="What_newsgroups_are_available.3F"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=56" title="Edit section: What newsgroups are available?">edit</a>]</h2><h2><span class="mw-headline">What newsgroups are available?</span></h2>There are two, <br />
<ul type="disc"><li class="MsoNormal">microsoft.public.sharepoint.portalserver and </li>
<li class="MsoNormal">microsoft.public.sharepoint.portalserver.development. </li>
</ul><h2><a href="" name="What_is_SharePoint_from_a_Technical_Pers"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=57" title="Edit section: What is SharePoint from a Technical Perspective?">edit</a>]</h2><h2><span class="mw-headline">What is SharePoint from a Technical Perspective?</span></h2>Technically SharePoint illustrates neatly what Microsoft's .net strategy is all about: integrating Windows with the Web. Microsoft has previously made accessing stuff on a PC easier, (Windows) then on a network (NT) and now on the web (.NET). SharePoint is an application written to let a user access a web accessible directory tree called the Web Storage System. <br />
SharePoint was written with a set of technologies that allow the programmer to pass data, functions, parameters over HTTP, the web's medium. These are XML, XSL and SOAP, to name a few I understand the basics of! <br />
To the user it looks easy, like Hotmail, but every time they click a button or a link, a lot has to happen behind the scenes to do what they want to do quickly and powerfully. Not as easy as you might think, but SharePoint does it for you. Accessing this Web storage system and the server itself is also done using technologies like <st1:place w:st="on"><st1:city w:st="on">ADO</st1:city></st1:place>, CDO, PKMCDO, LDAP, DDSC, ADSC. More on these later. SharePoint is a great example of how the Internet Platform can be extended and integrated into an existing well adopted technology, Windows. <br />
<h2><a href="" name="What_is_SharePoint_from_an_Administratio"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=58" title="Edit section: What is SharePoint from an Administration Perspective?">edit</a>]</h2><h2><span class="mw-headline">What is SharePoint from an Administration Perspective?</span></h2>Administering SharePoint mainly consists of setting it up, which is much easier than you expect, adding the content, which can be just dragging and dropping in whole directory structures and files, and then organizing the files better by giving them categories or other metadata. This is done either through the Web interface or through the SharePoint Client: a program what means you can access SharePoint as a Web folder and then right-click files to select options like "edit profile". Or add files by dragging them in individually or in bulk. <br />
Setting the security is also important, using NT accounts, either NT4 or Active Directory (or both in mixed mode) you can give users access to files/folders the same way as you do in standard Windows. Users can be grouped and the groups given access privileges to help manage this better. Also SharePoint has 3 Roles that a User or Group can be given on a particular item. Readers can see the item (i.e. document/file or folder) but not change it, Authors can see and edit items and coordinators can set security privileges for the part of the system they have control over. Thus, you could set 12 different coordinators for 12 different folder trees, and they could manage who can do what within that area only. <br />
<h2><a href="" name="What_is_SharePoint_from_a_Users_Perspect"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=59" title="Edit section: What is SharePoint from a Users Perspective?">edit</a>]</h2><h2><span class="mw-headline">What is SharePoint from a Users Perspective?</span></h2>From a Users perspective SharePoint is a way of making documents and folders on the Windows platform accessible over the web. The user visits the SharePoint Portal web page, and from there they can add documents, change documents & delete documents. Through this Portal, these documents are now available for discussion, collaboration, versioning and being managed through a workflow. Hence the name "Share-Point". Details about the document can be saved too, such as: who wrote it, when, for whom, its size, and version, category or target audience. These can then be used to find the document through SharePoint's Search facility. Even documents not "in" SharePoint can be included in the search engine's index so they become part of the portal. All in all, it's a great way to get stuff up on the web for users with average technical skills, and for administrators to manage the content. <br />
<h2><a href="" name="What_are_the_various_Sharepoint_2003_and"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=60" title="Edit section: What are the various Sharepoint 2003 and Exchange integration points?">edit</a>]</h2><h2><span class="mw-headline">What are the various Sharepoint 2003 and Exchange integration points?</span></h2><h3><a href="" name="Link_to_Outlook"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=61" title="Edit section: Link to Outlook">edit</a>]</h3><h3><span class="mw-headline">Link to Outlook</span></h3>This is a button on contacts or events lists that lets Outlook 2003 add a pst file named Sharepoint Folders and it links to the data on the site. It’s read-only, but you could make the home page for that PST be the Sharepoint site for easier viewing. The link to outlook feature seems more to be where some can public a calendar, but not want too much collaboration. For example, a holiday schedule, company meeting schedule, etc, can be made available for people to be able to view from Outlook without having to go to a web browser. Another nice thing about OL2K3 is that you can compare these calendars with others side by side. <br />
<h3><a href="" name="Searching_Public_Folders"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=62" title="Edit section: Searching Public Folders">edit</a>]</h3><h3><span class="mw-headline">Searching Public Folders</span></h3>With SPS you can index Exchange’s public folders with the search engine so that all that precious public folder content is searchable. You’ll want to look at content sources and indexing in Sharepoint administration. <br />
<h3><a href="" name="Displaying_Public_Folders_in_a_web_part"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=63" title="Edit section: Displaying Public Folders in a web part">edit</a>]</h3><h3><span class="mw-headline">Displaying Public Folders in a web part</span></h3>Since exchange web-enables public folders, you can create a web part that displays that content. IE, <a href="http://exchangeserver/Public/IT/Helpdesk" title="http://exchangeserver/Public/IT/Helpdesk">http://exchangeserver/Public/IT/Helpdesk</a> will display the IT/Helpdesk public folder via OWA. So you add the Page Viewer web part to a page and point it at that URL. The key here is to add ?cmd=contents to the end of the url if you don’t want the navigator pane on the left. <br />
<h3><a href="" name="Smart_web_parts"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=64" title="Edit section: Smart web parts">edit</a>]</h3><h3><span class="mw-headline">Smart web parts</span></h3>Some of the web parts that come with SPS allow you to add a web part to a page that actually takes the users outlook info (calendar, inbox, contacts, tasks) and put them into the page. <br />
The SmartPart Web Part project template for Visual Studio allows developers to create quickly a project which contains the base infrastructure to: <br />
<pre><span> </span>* write a web user control (ASCX)</pre><pre><span> </span>* wrap the user control in a SmartPart instance</pre><pre><span> </span>* generate a SharePoint Solution file (WSP) for easy deployment</pre><pre><span> </span>* generate a setup package for a wizard driven installation</pre><br />
<h2><a href="" name="Can_SharePoint_compare_two_document_vers"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=65" title="Edit section: Can SharePoint compare two document versions?">edit</a>]</h2><h2><span class="mw-headline">Can SharePoint compare two document versions?</span></h2>"In Word 2003, you can compare documents side by side. Open two documents. Then, from the Window menu of one of them, select the Compare Side By Side command. If you have only two documents open, the command will automatically choose to compare them. If you have three or more documents open, you'll have to select which document to compare with the current file. <br />
A floating toolbar with two buttons will open. If the button on the left is selected, Word will scroll both documents at the same time. Press the button on the right side of the toolbar to return to where the cursor was located when you started comparing." <br />
<h2><a href="" name="What_are_the_integration_differences_bet"></a>[<a href="http://it.toolbox.com/wiki/index.php?title=Sharepoint_Interview_questions&action=edit&section=66" title="Edit section: What are the integration differences between SPS 2003 and the various Office versions?">edit</a>]</h2><h2><span class="mw-headline">What are the integration differences between SPS 2003 and the various Office versions?</span></h2>SPS webpage can detect you have installed the Office 2003 and run local dll to implement some SPS function, e.g. multi-file upload only works when you have office 2003 installed. <br />
Integration with Office XP is gone. <br />
You will get guys telling you that you can integrate with SPSv2 if you install a backwards compatible document library - but that’s really just putting a bit of SPS 2001 on the server. <br />
Believe me, check-in, check-out, which are themselves very basic, are not available from inside Office XP, or even from the context menu in Windows Explorer. <br />
The ONLY option you have is to use the web interface to check-in or check-out. <br />
<div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-57556025051093766752011-08-15T22:57:00.000+05:302011-08-15T22:57:08.604+05:30SHARE POINT INTERVIEW QUESTIONS<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">what is SharePoint?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Portal Collaboration Software. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is the difference between SharePoint Portal Server and Windows SharePoint Services?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint Portal Server is the global portal offering features like global navigation and searching. Windows SharePoint Services is more content management based with document libraries and lists. You apply information to certain areas within your portal from Windows SharePoint Services or directly to portal areas.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a document library? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A document library is where you upload your core documents. They consist of a row and column view with links to the documents. When the document is updated so is the link on your site. You can also track metadata on your documents. Metadata would consist of document properties. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a meeting workspace? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A meeting workspace is a place to store information, attendees, and tasks related to a specific meeting. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a document workspace?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Document workspaces consist of information surrounding a single or multiple documents. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a web part?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Web parts consist of xml queries to full SharePoint lists or document libraries. You can also develop your own web parts and web part pages. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is the difference between a document library and a form library? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Document libraries consist of your core documents. An example would be a word document, excel, powerpoint, visio, pdf, etc… Form libraries consist of XML forms.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a web part zone?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Web part zones are what your web parts reside in and help categorize your web parts when designing a page.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· how is security managed in SharePoint?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Security can be handled at the machine, domain, or sharepoint level.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· how are web parts developed? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Web parts are developed in Visual Studio .Net. VS.Net offers many web part and page templates and can also be downloaded from the Microsoft site. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a site definition? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">It’s a methods for providing prepackaged site and list content.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a template?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A template is a pre-defined set of functions or settings that can be used over time. There are many templates within SharePoint, Site Templates, Document Templates, Document Library and List Templates.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· how do you install web parts?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Web Parts should be distributed as a .CAB (cabinet) file using the MSI Installer. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is CAML? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">tands for Collaborative Application Markup Language and is an XML-based language that is used in Microsoft Windows SharePoint Services to define sites and lists, including, for example, fields, views, or forms, but CAML is also used to define tables in the Windows SharePoint Services database during site provisioning. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is a DWP? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">he file extension of a web part.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is the GAC? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Global Assembly Cache folder on the server hosting SharePoint. You place your assemblies there for web parts and services.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what are the differences between web part page gallery, site gallery, virtual server gallery and online gallery? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Web Part Page Gallery is the default gallery that comes installed with SharePoint. Site Gallery is specific to one site. Virtual Server gallery is specific to that virtual server and online gallery are downloadable web parts from Microsoft. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· what is the difference between a site and a web? <o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The pages in a Web site generally cover one or more topics and are interconnected through hyperlinks. Most Web sites have a home page as their starting point. While a Web is simply a blank site with SharePoint functionality built in; meaning you have to create the site from the ground up.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Windows SharePoint Services is the solution that enables you to create Web sites for information sharing and document collaboration. Windows SharePoint Services — a key piece of the information worker infrastructure delivered in Microsoft Windows Server 2003 — provides additional functionality to the Microsoft Office system and other desktop applications, and it serves as a platform for application development.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Office SharePoint Server 2007 builds on top of Windows SharePoint Services 3.0 to provide additional capabilities including collaboration, portal, search, enterprise content management, business process and forms, and business intelligence.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is Microsoft SharePoint Portal Server?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint Portal Server is a portal server that connects people, teams, and knowledge across business processes. SharePoint Portal Server integrates information from various systems into one secure solution through single sign-on and enterprise application integration capabilities. It provides flexible deployment and management tools, and facilitates end-to-end collaboration through data aggregation, organization, and searching. SharePoint Portal Server also enables users to quickly find relevant information through customization and personalization of portal content and layout as well as through audience targeting.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is Microsoft Windows Services?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Microsoft Windows Services is the engine that allows administrators to create Web sites for information sharing and document collaboration. Windows SharePoint Services provides additional functionality to the Microsoft Office System and other desktop applications, as well as serving as a plat form for application development. SharePoint sites provide communities for team collaboration, enabling users to work together on documents, tasks, and projects. The environment for easy and flexible deployment, administration, and application development.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Microsoft SharePoint Products and Technologies (including SharePoint Portal Server and Windows SharePoint Services) deliver highly scalable collaboration solutions with flexible deployment and management tools. Windows SharePoint Services provides sites for team collaboration, while Share Point Portal Server connects these sites, people, and business processes—facilitating knowledge sharing and smart organizations. SharePoint Portal Server also extends the capabilities of Windows SharePoint Services by providing organizational and management tools for SharePoint sites, and by enabling teams to publish information to the entire organization.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Who is Office SharePoint Server 2007 designed for?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Office SharePoint Server 2007 can be used by information workers, IT administrators, and application developers.<br />
is designed <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the main benefits of Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
Office SharePoint Server 2007 provides a single integrated platform to manage intranet, extranet, and Internet applications across the enterprise.<br />
* Business users gain greater control over the storage, security, distribution, and management of their electronic content, with tools that are easy to use and tightly integrated into familiar, everyday applications.<br />
* Organizations can accelerate shared business processes with customers and partners across organizational boundaries using InfoPath Forms Services–driven solutions.<br />
* Information workers can find information and people efficiently and easily through the facilitated information-sharing functionality and simplified content publishing. In addition, access to back-end data is achieved easily through a browser, and views into this data can be personalized.<br />
* Administrators have powerful tools at their fingertips that ease deployment, management, and system administration, so they can spend more time on strategic tasks.<br />
* Developers have a rich platform to build a new class of applications, called Office Business Applications, that combine powerful developer functionality with the flexibility and ease of deployment of Office SharePoint Server 2007. Through the use of out-of-the-box application services, developers can build richer applications with less code. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is the difference between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007 have identical feature functionality. While the feature functionality is similar, the usage rights are different. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If you are creating an Internet, or Extranet, facing website, it is recommended that you use Microsoft Office SharePoint Server 2007 for Internet sites which does not require the purchase client access licenses. Websites hosted using an “Internet sites” edition can only be used for Internet facing websites and all content, information, and applications must be accessible to non-employees. Websites hosted using an “Internet sites” edition cannot be accessed by employees creating, sharing, or collaborating on content which is solely for internal use only, such as an Intranet Portal scenario. See the previous section on licensing for more information on the usage scenarios.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What suites of the 2007 Microsoft Office system work with Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Office Outlook 2007 provides bidirectional offline synchronization with SharePoint document libraries, discussion groups, contacts, calendars, and tasks. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Microsoft Office Groove 2007, included as part of Microsoft Office Enterprise 2007, will enable bidirectional offline synchronization with SharePoint document libraries. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Features such as the document panel and the ability to publish to Excel Services will only be enabled when using Microsoft Office Professional Plus 2007or Office Enterprise 2007. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Excel Services will only work with documents saved in the new Office Excel 2007 file format (XLSX). <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How do I invite users to join a Windows SharePoint Services Site? Is the site secure?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint-based Web sites can be password-protected to restrict access to registered users, who are invited to join via e-mail. In addition, the site administrator can restrict certain members' roles by assigning different permission levels to view post and edit.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I post any kind of document?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">You can post documents in many formats, including .pdf, .htm and .doc. In addition, if you are using Microsoft Office XP, you can save documents directly to your Windows SharePoint Services site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I download information directly from a SharePoint site to a personal digital assistant (PDA)?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">No you cannot. However, you can exchange contact information lists with Microsoft Outlook.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How long does it take to set up the initial team Web site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">It only takes a few minutes to create a complete Web site. Preformatted forms let you and your team members contribute to the site by filling out lists. Standard forms include announcements, events, contacts, tasks, surveys, discussions and links.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I create custom templates?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes you can. You can have templates for business plans, doctor's office, lawyer's office etc.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How can I make my site public? By default, all sites are created private.<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If you want your site to be a public Web site, enable anonymous access for the entire site. Then you can give out your URL to anybody in your business card, e-mail or any other marketing material. The URL for your Web site will be:<br />
http:// <a href="http://yoursitename.wss.bcentral.com/" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">yoursitename.wss.bcentral.com</span></a><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Hence, please take special care to name your site.<br />
These Web sites are ideal for information and knowledge intensive sites and/or sites where you need to have shared Web workspace.<br />
Remember: Under each parent Web site, you can create up to 10 sub-sites each with unique permissions, settings and security rights.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How do the sub sites work?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">You can create a sub site for various categories. For example:<br />
* Departments - finance, marketing, IT<br />
* Products - electrical, mechanical, hydraulics<br />
* Projects - Trey Research, Department of Transportation, FDA<br />
* Team - Retention team, BPR team<br />
* Clients - new clients, old clients<br />
* Suppliers - Supplier 1, Supplier 2, Supplier 3<br />
* Customers - Customer A, Customer B, Customer C<br />
* Real estate - property A, property B<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The URLs for each will be, for example:<br />
* <a href="http://yoursitename.wss.bcentral.com/finance" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">http://yoursitename.wss.bcentral.com/finance</span></a><br />
* <a href="http://yoursitename.wss.bcentral.com/marketing" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">http://yoursitename.wss.bcentral.com/marketing</span></a><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">You can keep track of permissions for each team separately so that access is restricted while maintaining global access to the parent site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How do I make my site non-restricted?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If you want your site to have anonymous access enabled (i.e., you want to treat it like any site on the Internet that does not ask you to provide a user name and password to see the content of the site), follow these simple steps:<br />
# Login as an administrator<br />
# Click on site settings<br />
# Click on Go to Site Administration<br />
# Click on Manage anonymous access<br />
# Choose one of the three conditions on what Anonymous users can access:<br />
** Entire Web site<br />
** Lists and libraries<br />
** Nothing<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Default condition is nothing; your site has restricted access. The default conditions allow you to create a secure site for your Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I get domain name for my Web site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Unfortunately, no. At this point, we don't offer domain names for SharePoint sites. But very soon we will be making this available for all our SharePoint site customers. Please keep checking this page for further update on this. Meanwhile, we suggest you go ahead and set up your site and create content for it.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are picture libraries?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Picture libraries allow you to access a photo album and view it as a slide show or thumbnails or a film strip. You can have separate folder for each event, category, etc<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the advantages of a hosted SharePoint vs. one that is on an in-house server?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">* No hardware investment, i.e. lower costs<br />
* No software to download - ready to start from the word go<br />
* No IT resources - Anyone who has used a Web program like Hotmail can use it<br />
* Faster deployment<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I ask users outside of my organization to participate in my Windows SharePoint Services site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes. You can manage this process using the Administration Site Settings. Simply add users via their e-mail alias and assign permissions such as Reader or Contributor.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Are there any IT requirements or downloads required to set up my SharePoint site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">No. You do not need to download any code or plan for any IT support. Simply complete the on-line signup process and provide us your current and correct email address. Once you have successfully signed up and your site has been provisioned, we will send a confirmation to the email address you provided.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· I am located outside of the United States. Are there any restrictions or requirements for accessing the Windows SharePoint Services?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">No. There are no system or bandwidth limitations for international trial users. Additionally language packs have been installed which allow users to set up sub-webs in languages other than English. These include: Arabic, Danish, Dutch, Finnish, French, German, Hebrew, Italian, Japanese, Polish, Portuguese (Brazilian), Spanish and Swedish.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Are there any browser recommendations?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes. Microsoft recommends using the following browsers for viewing and editing Windows SharePoint Services sites: Microsoft Internet Explorer 5.01 with Service Pack 2, Microsoft Internet Explorer 5.5 with Service Pack 2, Internet Explorer 6, Netscape Navigator 6.2 or later.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What security levels are assigned to users?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary.<br />
* Reader - Has read-only access to the Web site.<br />
* Contributor - Can add content to existing document libraries and lists.<br />
* Web Designer - Can create lists and document libraries and customize pages in the Web site.<br />
* Administrator - Has full control of the Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How secure are Windows SharePoint Services sites hosted by Microsoft?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Microsoft Windows SharePoint Services Technical security measures provide firewall protection, intrusion detection, and web-publishing rules. The Microsoft operation center team tests and deploys software updates in order to maintain the highest level of security and software reliability. Software hot-fixes and service packs are tested and deployed based on their priority and level of risk. Security related hot-fixes are rapidly deployed into the environment to address current threats. A comprehensive software validation activity ensures software stability through regression testing prior to deployment.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is the difference between an Internet and an intranet site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">An internet site is a normal site that anyone on the internet can access (e.g., <a href="http://www.msn.com/" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">www.msn.com</span></a>, <a href="http://www.microsoft.com/" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">www.microsoft.com</span></a>, etc.). You can set up a site for your company that can be accessed by anyone without any user name and password.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">An intranet (or internal network), though hosted on the Web, can only be accessed by people who are members of the network. They need to have a login and password that was assigned to them when they were added to the site by the site administrator.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is a workspace?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A site or workspace is when you want a new place for collaborating on Web pages, lists and document libraries. For example, you might create a site to manage a new team or project, collaborate on a document or prepare for a meeting.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the various kinds of roles the users can have?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A user can be assigned one of the following roles<br />
* Reader - Has read-only access to the Web site.<br />
* Contributor - Can add content to existing document libraries and lists.<br />
* Web Designer - Can create lists and document libraries and customize pages in the Web site.<br />
* Administrator - Has full control of the Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can more than one person use the same login?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If the users sharing that login will have the same permissions and there is no fear of them sharing a password, then yes. Otherwise, this is discouraged.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How customizable is the user-to-user access?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">User permissions apply to an entire Web, not to documents themselves. However, you can have additional sub webs that can optionally have their own permissions. Each user can be given any of four default roles. Additional roles can be defined by the administrator.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can each user have access to their own calendar?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes there are two ways to do this,<br />
* by creating a calendar for each user, or<br />
* by creating a calendar with a view for each user<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How many files can I upload?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">There is no restriction in place except that any storage consumed beyond that provided by the base offering may have an additional monthly charge associated with them.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What types of files can I upload / post to the site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The only files restricted are those ending with the following extensions: .asa, .asp, .ida, .idc, .idq. Microsoft reserves the right to add additional file types to this listing at any time. Also, no content that violates the terms of service may be uploaded or posted to the site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can SharePoint be linked to an external data source?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint data can be opened with Access and Excel as an external data source. Thus, SharePoint can be referenced as an external data source. SharePoint itself cannot reference an external data source.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can SharePoint be linked to a SQL database?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">This is possible via a custom application, but it not natively supported by SharePoint or SQL Server.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can I customize my Windows SharePoint Services site?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">YES! Windows SharePoint Services makes updating sites and their content from the browser easier then ever.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint includes tools that let you create custom lists, calendars, page views, etc. You can apply a theme; add List, Survey and Document Library Web Parts to a page; create personal views; change logos; connect Web Parts and more.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">To fully customize your site, you can use Microsoft FrontPage 2003. Specifically, you can use FrontPage themes and shared borders, and also use FrontPage to create photo galleries and top ten lists, utilize standard usage reports, and integrate automatic Web content.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Will Microsoft Office SharePoint Server 2007 run on a 64-bit version of Microsoft Windows?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Windows SharePoint Services 3.0, Office SharePoint Server 2007, Office Forms Server 2007, and Office SharePoint Server 2007 for Search will support 64-bit versions of Windows Server 2003.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How Office SharePoint Server 2007 can help you?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
Office SharePoint Server 2007 can help us:<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Manage content and streamline processes. Comprehensively manage and control unstructured content like Microsoft Office documents, Web pages, Portable Document Format file (PDF) files, and e-mail messages. Streamline business processes that are a drain on organizational productivity. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Improve business insight. Monitor your business, enable better-informed decisions, and respond proactively to business events. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Find and share information more simply. Find information and expertise wherever they are located. Share knowledge and simplify working with others within and across organizational boundaries. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Empower IT to make a strategic impact. Increase responsiveness of IT to business needs and reduce the number of platforms that have to be maintained by supporting all the intranet, extranet, and Web applications across the enterprise with one integrated platform.<br />
<br />
Office SharePoint Server 2007 capabilities can help improve organizational effectiveness by connecting people, processes, and information.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Office SharePoint Server 2007 provides these capabilities in an integrated server offering, so your organization doesn't have to integrate fragmented technology solutions itself. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the features that the portal components of Office SharePoint Server 2007 include?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The portal components of Office SharePoint Server 2007 include features that are especially useful for designing, deploying, and managing enterprise intranet portals, corporate Internet Web sites, and divisional portal sites. The portal components make it easier to connect to people within the organization who have the right skills, knowledge, and project experience.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the advanced features of MOSS 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">* User Interface (UI) and navigation enhancements<br />
* Document management enhancements<br />
* The new Workflow engine<br />
* Office 2007 Integration<br />
* New Web Parts<br />
* New Site-type templates<br />
* Enhancements to List technology<br />
* Web Content Management<br />
* Business Data Catalog<br />
* Search enhancements<br />
* Report Center<br />
* Records Management<br />
* Business Intelligence and Excel Server<br />
* Forms Server and InfoPath<br />
* The “Features” feature<br />
* Alternate authentication providers and Forms-based authentication <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">What are the features of the new Content management in Office SharePoint 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The new and enhanced content management features in Office SharePoint Server 2007 fall within three areas:<br />
* Document management<br />
* Records management<br />
* Web content management<br />
Office SharePoint Server 2007 builds on the core document management functionality provided by Windows SharePoint Services 3.0, including check in and check out, versioning, metadata, and role-based granular access controls. Organizations can use this functionality to deliver enhanced authoring, business document processing, Web content management and publishing, records management, policy management, and support for multilingual publishing. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Does a SharePoint Web site include search functionality?<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes. SharePoint Team Services provides a powerful text-based search feature that helps you find documents and information fast.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Write the features of the search component of Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The search component of Office SharePoint Server 2007 has been significantly enhanced by this release of SharePoint Products and Technologies. New features provide:<br />
* A consistent and familiar search experience.<br />
* Increased relevance of search results.<br />
* New functions to search for people and expertise.<br />
* Ability to index and search data in line-of-business applications and<br />
* Improved manageability and extensibility.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the benefits of Microsoft Office SharePoint Server 2007?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
* Provide a simple, familiar, and consistent user experience.<br />
* Boost employee productivity by simplifying everyday business activities.<br />
* Help meet regulatory requirements through comprehensive control over content.<br />
* Effectively manage and repurpose content to gain increased business value.<br />
* Simplify organization-wide access to both structured and unstructured information across disparate systems.<br />
* Connect people with information and expertise.<br />
* Accelerate shared business processes across organizational boundaries.<br />
* Share business data without divulging sensitive information.<br />
* Enable people to make better-informed decisions by presenting business-critical information in one central location.<br />
* Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Will SharePoint Portal Server and Team Services ever merge?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The products will come together because they are both developed by the Office team. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What does partial trust mean the Web Part developer?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If an assembly is installed into the BIN directory, the code must be ensured that provides error handling in the event that required permissions are not available. Otherwise, unhandled security exceptions may cause the Web Part to fail and may affect page rendering on the page where the Web Part appears.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How can I raise the trust level for assemblies installed in the BIN directory?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Windows SharePoint Services can use any of the following three options from <a href="http://asp.net/" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">ASP.NET</span></a> and the CLR to provide assemblies installed in the BIN directory with sufficient permissions. The following table outlines the implications and requirements for each option.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Option Pros Cons<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Increase the trust level for the entire virtual server. For more information, see "Setting the trust level for a virtual server" Easy to implement. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">In a development environment, increasing the trust level allows you to test an assembly with increased permissions while allowing you to recompile assemblies directly into the BIN directory without resetting IIS. This option is least secure. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">This option affects all assemblies used by the virtual server.<br />
There is no guarantee the destination server has the required trust level. Therefore, Web Parts may not work once installed on the destination server.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Create a custom policy file for your assemblies. For more information, see "How do I create a custom policy file?" Recommended approach. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">This option is most secure.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">An assembly can operate with a unique policy that meets the minimum permission requirements for the assembly.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">By creating a custom security policy, you can ensure the destination server can run your Web Parts. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Requires the most configuration of all three options.<br />
Install your assemblies in the GAC <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Easy to implement.<br />
This grants Full trust to your assembly without affecting the trust level of assemblies installed in the BIN directory. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">This option is less secure. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Assemblies installed in the GAC are available to all virtual servers and applications on a server running Windows SharePoint Services. This could represent a potential security risk as it potentially grants a higher level of permission to your assembly across a larger scope than necessary<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">In a development environment, you must reset IIS every time you recompile assemblies.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Licensing issues may arise due to the global availability of your assembly.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Does SharePoint work with NFS?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Yes and no. It can crawl documents on an NFS volume, but the sharepoint database or logs cannot be stored there.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How is SharePoint Portal Server different from the Site Server?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Site Server has search capabilities but these are more advanced using SharePoint. SPS uses digital dashboard technology which<br />
provides a nice interface for creating web parts and showing them on dashboards (pages). SS doesn't have anything as advanced as that. The biggest difference would be SPS document management features which also integrate with web folders and MS Office.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What would you like to see in the next version of SharePoint?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A few suggestions: <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"># SPS and STS on same machine<br />
# Tree view of Categories and Folders<br />
# General Discussion Web Part<br />
# Personalization of Dashboards<br />
# Role Customization<br />
# Email to say WHY a document has been rejected for Approval<br />
# More ways to customize the interface<br />
# Backup and restore an individual Workspaces<br />
# Filter for Visio<br />
# Better way to track activity on SPS<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Why Sharepoint is not a viable solution for enterprise wide deployments?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Document management does not scale beyond a single server, but scales great within a single server. For example, a quad Xeon machine with 4GB of RAM works great for a document management server that has about 900,000 - 1,000,000 document, but if you need to store 50,000,000 document and want to have them all in one single workspace then it does not scale at all. If you need a scenario like this, you need to plan your deployment right and it should scale for you, it just does not right out of the box.<br />
If you are using your server as a portal and search server most for the most part it scales great. You can have many different servers crawl content sources and have separate servers searching and serving the content. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If you have <> <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the actual advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint Portal Services (SPS) has MUCH better document management. It has check-in, check-out, versioning, approval, publishing, subscriptions, categories, etc. STS does not have these features, or they are very scaled back. SharePoint team Services (SPS) has a better search engine, and can crawl multiple content sources. STS cannot. STS is easier to manage and much better for a team environment where there is not much Document Management going on. SPS is better for an organization, or where Document Management is crucial.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How Does SharePoint work?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The browser sends a DAV packet to IIS asking to perform a document check in. PKMDASL.DLL, an ISAPI DLL, parses the packet and sees that it has the proprietary INVOKE command. Because of the existence of this command, the packet is passed off to msdmserv.exe, who in turn processes the packet and uses EXOLEDB to access the WSS, perform the operation and send the results back to the user in the form of XML.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· How do I open an older version of a document?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Normally, all previous versions are located in the shadow, so if you right click a published document from within the web folders, go to properties and then the third tab, versions you can view older versions. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If you want to do this in code:<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New";"><br />
strURL = "url of the last published version"<br />
Set oVersion = New PKMCDO.KnowledgeVersion<br />
Set prmRs = oVersion.VersionHistory(strURL)<br />
Set oVersion = Nothing<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
prmRS will contain a recordset, which contains the url to the old versions in the shadow. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Why do the workspace virtual directories show the error “stop sign” symbol in the IIS snap-in?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">If World Wide Web Publishing Service (W3SVC) starts before Microsoft Exchange Information Store (MSExchangeIS), “stop sign” symbols appear under the Default Web Site folder of the Internet Information Services console in Microsoft Management Console (MMC). <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">There is a dependency between the local paths of the SharePoint Portal Server virtual directories and the MSExchangeIS. You must start MSExchangeIS first, followed by W3SVC. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Complete the following steps to prevent the stop signs from appearing each time you restart: <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"># Change the Startup type for W3SVC to Manual.<br />
# Restart the server. The MSExchangeIS service starts automatically.<br />
# Start W3SVC.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What newsgroups are available?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">There are two,<br />
* microsoft.public.sharepoint.portalserver and<br />
* microsoft.public.sharepoint.portalserver.development.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is SharePoint from a Technical Perspective?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Technically SharePoint illustrates neatly what Microsoft's .net strategy is all about: integrating Windows with the Web. Microsoft has previously made accessing stuff on a PC easier, (Windows) then on a network (NT) and now on the web (.NET). SharePoint is an application written to let a user access a web accessible directory tree called the Web Storage System. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SharePoint was written with a set of technologies that allow the programmer to pass data, functions, parameters over HTTP, the web's medium. These are XML, XSL and SOAP, to name a few I understand the basics of! <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">To the user it looks easy, like Hotmail, but every time they click a button or a link, a lot has to happen behind the scenes to do what they want to do quickly and powerfully. Not as easy as you might think, but SharePoint does it for you. Accessing this Web storage system and the server itself is also done using technologies like ADO, CDO, PKMCDO, LDAP, DDSC, ADSC. More on these later. SharePoint is a great example of how the Internet Platform can be extended and integrated into an existing well adopted technology, Windows.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is SharePoint from an Administration Perspective?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Administering SharePoint mainly consists of setting it up, which is much easier than you expect, adding the content, which can be just dragging and dropping in whole directory structures and files, and then organizing the files better by giving them categories or other metadata. This is done either through the Web interface or through the SharePoint Client: a program what means you can access SharePoint as a Web folder and then right-click files to select options like "edit profile". Or add files by dragging them in individually or in bulk. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Setting the security is also important, using NT accounts, either NT4 or Active Directory (or both in mixed mode) you can give users access to files/folders the same way as you do in standard Windows. Users can be grouped and the groups given access privileges to help manage this better. Also SharePoint has 3 Roles that a User or Group can be given on a particular item. Readers can see the item (i.e. document/file or folder) but not change it, Authors can see and edit items and coordinators can set security privileges for the part of the system they have control over. Thus, you could set 12 different coordinators for 12 different folder trees, and they could manage who can do what within that area only.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What is SharePoint from a Users Perspective?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">From a Users perspective SharePoint is a way of making documents and folders on the Windows platform accessible over the web. The user visits the SharePoint Portal web page, and from there they can add documents, change documents & delete documents. Through this Portal, these documents are now available for discussion, collaboration, versioning and being managed through a workflow. Hence the name "Share-Point". Details about the document can be saved too, such as: who wrote it, when, for whom, its size, and version, category or target audience. These can then be used to find the document through SharePoint's Search facility. Even documents not "in" SharePoint can be included in the search engine's index so they become part of the portal. All in all, it's a great way to get stuff up on the web for users with average technical skills, and for administrators to manage the content.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the various Sharepoint 2003 and Exchange integration points?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 4;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Link to Outlook<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">This is a button on contacts or events lists that lets Outlook 2003 add a pst file named Sharepoint Folders and it links to the data on the site. It’s read-only, but you could make the home page for that PST be the Sharepoint site for easier viewing. The link to outlook feature seems more to be where some can public a calendar, but not want too much collaboration. For example, a holiday schedule, company meeting schedule, etc, can be made available for people to be able to view from Outlook without having to go to a web browser. Another nice thing about OL2K3 is that you can compare these calendars with others side by side. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 4;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Searching Public Folders<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
With SPS you can index Exchange’s public folders with the search engine so that all that precious public folder content is searchable. You’ll want to look at content sources and indexing in Sharepoint administration. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 4;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Displaying Public Folders in a web part<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
Since exchange web-enables public folders, you can create a web part that displays that content. IE, <a href="http://exchangeserver/Public/IT/Helpdesk" target="_blank"><span style="color: #5588aa; text-decoration: none; text-underline: none;">http://exchangeserver/Public/IT/Helpdesk</span></a> will display the IT/Helpdesk public folder via OWA. So you add the Page Viewer web part to a page and point it at that URL. The key here is to add ?cmd=contents to the end of the url if you don’t want the navigator pane on the left. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 4;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Smart web parts<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;"><br />
Some of the web parts that come with SPS allow you to add a web part to a page that actually takes the users outlook info (calendar, inbox, contacts, tasks) and put them into the page.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· Can SharePoint compare two document versions?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">"In Word 2003, you can compare documents side by side. Open two documents. Then, from the Window menu of one of them, select the Compare Side By Side command. If you have only two documents open, the command will automatically choose to compare them. If you have three or more documents open, you'll have to select which document to compare with the current file. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">A floating toolbar with two buttons will open. If the button on the left is selected, Word will scroll both documents at the same time. Press the button on the right side of the toolbar to return to where the cursor was located when you started comparing."<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; mso-outline-level: 3;"><b><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">· What are the integration differences between SPS 2003 and the various Office versions?<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">SPS webpage can detect you have installed the Office 2003 and run local dll to implement some SPS function, e.g. multi-file upload only works when you have office 2003 installed. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Integration with Office XP is gone. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">You will get guys telling you that you can integrate with SPSv2 if you install a backwards compatible document library - but that’s really just putting a bit of SPS 2001 on the server. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">Believe me, check-in, check-out, which are themselves very basic, are not available from inside Office XP, or even from the context menu in Windows Explorer. <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 19.2pt; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto;"><span style="color: #333333; font-family: Verdana; font-size: 10.0pt;">The ONLY option you have is to use the web interface to check-in or check-out.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-60016086383322569142011-08-15T22:55:00.001+05:302011-08-15T22:55:53.222+05:30SHARE POINT PROGRAMS WITH NEAT STEP BY STEP CODE<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">WSS Object Model<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">1. SPSite Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of sites in a Web application, including a top-level Web site and all its subsites<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">2. SPWeb Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a Windows SharePoint Services Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">3. SPWebCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.aspx">SPWeb</a> objects.</span><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;"><o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">4. SPList Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a list on a SharePoint Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">5. SPListCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx">SPList</a> objects.</span><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;"><o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">6. SPListItem Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents an item or row in a list.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">7. SPListItemCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx">SPListItem</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">8. SPListTemplateType Enumeration<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Specifies the type of a list definition or a list template.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">9. SPView Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a view of the data that is contained in a list on a SharePoint site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">10. SPViewCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spview.aspx">SPView</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">11. SPQuery Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a query in a list view<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">13. SPField Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a field in a list on a Windows SharePoint Services Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">14. SPFieldCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.aspx">SPField</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">15. SPUser Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a user in Microsoft Windows SharePoint Services.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">17. SPUserCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spuser.aspx">SPUser</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">18. SPGroup Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a group on a Windows SharePoint Services Web site<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">19. SPGroupCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.aspx">SPGroup</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">20. SPFolder Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a folder on a SharePoint Web site.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">21. SPFolderCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.aspx">SPFolder</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">22. SPFile Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a file in a SharePoint Web site that can be a Web Part Page, an item in a document library, or a file in a folder.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">23. SPFileCollection<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfile.aspx">SPFile</a> objects.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">24. SPForm Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a form creating, displaying, or editing a list item in a list.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: Arial;">25. SPFormCollection Class<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Represents a collection of <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spform.aspx">SPForm</a> objects</span><span style="font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 1. Program to Get Properties of SharePoint Site<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class DisplaySiteProp : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>//Display Current User<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sCurrentUser = spweb.CurrentUser.ToString();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("The Current User is:" + sCurrentUser + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>//Display title<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sTitle = spweb.Title;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("Title is:" + sTitle + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>//Display all sites in site collection<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWebCollection spwebcoll = spsite.AllWebs;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("The sites in site collection are" + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>for (int icount = 0; icount < spwebcoll.Count; icount++)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(spwebcoll[icount].Title + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(ex.ToString());<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>spsite.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Close(); <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<b><o:p></o:p></b></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">//2.</span></b><b><span style="font-family: Verdana; font-size: 10.0pt;"> Program to create</span></b><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"> Sub Site Creation</span></b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class CreateSite : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sTitle, sName, sDesc, sTemplate;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void btnCreateSite_Click(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; tab-stops: 166.5pt; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>sTitle = txtTitle.Text;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>sName = txtName.Text;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>sDesc = txtDesc.Text;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>sTemplate = spweb.WebTemplate;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWebCollection spwebcoll = spsite.AllWebs;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spwebcoll.Add(sName, sTitle, sDesc, 1033, spweb.WebTemplate,<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>true, false);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("<font size=8>Site Created Successfully</font>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>Response.Write(ex.ToString());<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 3. </span></b><b><span style="font-family: Verdana; font-size: 10.0pt;">Program<span> </span>to d</span></b><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">isplay List available in site<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class DisplayList : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListCollection lstcoll = spweb.Lists;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("Lists in sites");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>foreach (SPList lst in lstcoll)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(lst.Title + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(ex.ToString());<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<span> </span>}<span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 4. </span></b><b><span style="font-family: Verdana; font-size: 10.0pt;">Program to </span></b><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">List Creation</span></b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class _Default : System.Web.UI.Page <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void create_Click(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sName = txtName.Text;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sDesc = txtDesc.Text;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>string sType = ddlType.SelectedItem.ToString();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListCollection lstColl = spweb.Lists;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListTemplateType tempType = new SPListTemplateType();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>switch (sType)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>case "Announcements": tempType = <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>SPListTemplateType.Announcements;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>break;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>case "Tasks": tempType = SPListTemplateType.Tasks;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>break;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>case "GenericList": tempType =<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>SPListTemplateType.GenericList;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>break;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.AllowUnsafeUpdates = true;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>lstColl.Add(sName, sDesc, tempType);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("list of type" + sType + "is created");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(ex.Message);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 5. </span></b><b><span style="font-family: Verdana; font-size: 10.0pt;">Program<span> </span>to </span></b><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">Edit List Items<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class EditItems : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPList splist = spweb.Lists["Employee"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListItem itmToEdit = splist.GetItemById(1);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>itmToEdit["Title"] = "101-edit";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>itmToEdit["EName"] = "abc-edit";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.AllowUnsafeUpdates = true;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>itmToEdit.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>splist.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(ex.ToString());<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Close();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Dispose();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb. Dispose ();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">// 6. </span></b><b><span style="font-family: Verdana; font-size: 10.0pt;">Program to <span style="color: black;">Display List Items<o:p></o:p></span></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class DisplayListItems : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>try<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite = new SPSite("http://system:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPList lst=spweb.Lists["Employee"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListItemCollection itemcoll = lst.Items;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("List of Employees are:" + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>foreach (SPListItem item in itemcoll)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>Response.Write(item["Title"] + "<span> </span>"+item["EName"]+"<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>catch (Exception ex)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(ex.ToString());<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>finally<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spsite.Close();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>spweb.Close();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb.Dispose(); <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><span> </span>spsite.Dispose();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}}</span><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 7.Program to Delete Sites in a Site Collection<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">public partial class DeleteSite : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWebCollection spwebcoll;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spsite = new SPSite("http://technofin:9000/");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spwebcoll = spsite.AllWebs;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>foreach (SPWeb web in spwebcoll)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>ListItem li = new ListItem();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>li.Text = web.Name;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>li.Value = web.Name;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>ddlSitestoDelete.Items.Add(li);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void btnDelete_Click(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spwebcoll.Delete(ddlSitestoDelete.SelectedValue);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>lblMsg.Text = "The site is deleted";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 8. Program to add Item to list<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">public partial class Lists_AddItems : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb.AllowUnsafeUpdates = true;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPList splist= spweb.Lists["Employee"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPListItemCollection lstcoll = myList.Items;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPListItem newItem = lstcoll.Add();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>newItem["Title"] = "105";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>newItem["EName"] = "techno";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>newItem.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>splist.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 9. Program<span> </span>to Create view for list<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using System.Collections.Specialized;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">public partial class AddViews : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPList splist = spweb.Lists["Employee"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPViewCollection viewColl = splist.Views;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>StringCollection fldsinView = new StringCollection();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span><span> </span>fldsinView.Add("EmpID");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>fldsinView.Add("EName");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>fldsinView.Add("Empsal");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb.AllowUnsafeUpdates = true;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>viewColl.Add("Prg_View", fldsinView, "", 100, false, true);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>splist.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>Response.Write("New View Added");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 10. Program to Create Document Library<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">public partial class Libraies_Create_Library : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPListCollection lstColl = spweb.Lists;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb.AllowUnsafeUpdates = true;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>lstColl.Add("Prg_DocLib", "Sample Library From Program",<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPListTemplateType.DocumentLibrary);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spweb.Update();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>Response.Write("New Library Added");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="font-family: Verdana; font-size: 10.0pt;">// 11. Program to See Documents properties in Document Library<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">public partial class Libraies_ViewProperties : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPSite spsite;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPWeb myWeb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>myWeb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPFolder spDocLib = myWeb.GetFolder("Shared Documents");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>SPFileCollection spFiles= spDocLib.Files;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>foreach (SPFile spFile in spFiles)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>Response.Write("<b>" + "Name of the File" +spFile.Name+ "</b><br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>Response.Write("Author" + spFile.Author + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>Response.Write("Size" + spFile.Length + "<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="font-family: Verdana; font-size: 10.0pt;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">Collaboration Apllication Markup Language (CAML) examples<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 12. Program using CAML Query<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class _Default : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPList splst = spweb.Lists["employeeInfo"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPQuery spquery = new SPQuery();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spquery.Query = string.Format("<OrderBy><FieldRef<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Name='Employee_x0020_Name'/></OrderBy>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListItemCollection itemcoll = splst.GetItems(spquery);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("<h1>" + "List Items" + "</h1></br>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>foreach (SPListItem item in itemcoll)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(item["Title"]+"<span> </span>"+item["Employee Name"] +<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>"<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 13. program to display List in a Gridview<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">using Microsoft.SharePoint;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class Default2 : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPSite spsite = new SPSite("http://system:9000");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPWeb spweb;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spweb = spsite.OpenWeb();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPList splst = spweb.Lists["employeeInfo"];<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPQuery spquery = new SPQuery();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>spquery.Query = string.Format("<Where><Gt><FieldRef <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Name='Salary'/><Value Type='Currency'>15000</Value></Gt></Where>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>SPListItemCollection itemcoll = splst.GetItems(spquery);<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("<h1>" + "List Items" + "</h1></br>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>DataTable dtItems = itemcoll.GetDataTable();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>gvItems.DataSource = dtItems;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>gvItems.DataBind();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<b><o:p></o:p></b></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">WebService Example<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 14. Program to display List Names<i><o:p></o:p></i></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class Lists : System.Web.UI.Page<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>ListsWebService.Lists myLstWebServ = new ListsWebService.Lists();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>myLstWebServ.Credentials =<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>System.Net.CredentialCache.DefaultCredentials;<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>myLstWebServ.Url="http://system:2525/_vti_bin/Lists.asmx";<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>System.Xml.XmlNode mynode=myLstWebServ.GetListCollection();<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("<h2>"+"The Lists in the list coll are"+"</h2><br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>foreach (System.Xml.XmlNode node in mynode)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write(node.Attributes["Title"].Value+"<br/>");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">// 15.Program to add User to Group<o:p></o:p></span></b></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">public partial class _Default : System.Web.UI.Page <o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>{<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>usergrpwebservice.UserGroup webserv = new<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>usergrpwebservice.UserGroup();<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>webserv.Credentials = System.Net.CredentialCache.DefaultCredentials;<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>webserv.Url = "http://system:2525/_vti_bin/UserGroup.asmx";<span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>webserv.AddUserToGroup("Viewers","manju","system\\manju",<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>"manju@gmail.com","Hi..am Manjunath");<span> </span><span> </span><o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>Response.Write("Users Added");<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;"><span> </span>}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;"><span style="color: black; font-family: Verdana; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-no-proof: yes;">}<o:p></o:p></span></div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-71421205979509277392011-08-15T22:54:00.001+05:302011-08-15T22:54:48.151+05:30DIFFERENCE BETWEEN LOWLEVEL AND HIGH LEVEL DESIGN IN PROJECT<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">what is the main difference between high and low level<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 1<span> </span><span style="color: maroon;">High level design is the over all architechture means root <o:p></o:p></span></span></div><div class="MsoNormal"><span style="color: maroon; font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">requirement to leaf requirement but low level design's <o:p></o:p></span></div><div class="MsoNormal"><span style="color: maroon; font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">consists internal logic requirement of that soft ware.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 2<span> </span>High level design:<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"><span> </span>Overall architecture of the appplication (e.g) data <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">flow, flow chart, data structure ect.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Low level design:<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"><span> </span>Detailed description<span> </span>of the each and every module.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 3<span> </span>HLD - High Level Design <o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">HLD is nothing but, heirarchy of all possible functionality <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">as module in the application.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">eg. flograph, flochart, data structure.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">LLD - Low Level Design <o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">LLD is nothing but, static logic bet. every sub module.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">eg. ER Diagram, Algorithm<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 4<span> </span>High level Design:<span> </span>to test the function modules ,operators<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">etc,.....<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Low lwvwl design means to test the <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">functions,operatus,submodules<span> </span>this is called the LLd<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 5<span> </span>Higher level means overall goal of this application like <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">application backborn. and lower level design is details <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">describe every requriment or every terms. like <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">process.decision.document for flowchart.<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 6<span> </span>HLD: DFD , FLOW CHART showing ligh view of app.<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">LLD : Class diagram with all information like methods etc , <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">state diagram<o:p></o:p></span></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Re: what is the main difference between high and low level design in sdlc<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">Answer<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;"># 7<span> </span>HLD-level Design gives the overall System Design in terms <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">of Functional Architecture and Database design.it will show <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">system using usecase,class diagram,seqence...deployment <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">diagram.<o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">LLD-During the detailed phase, the view of the application <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">developed during the high level design is broken down into <o:p></o:p></span></div><div class="MsoNormal"><span style="font-size: 15.0pt; mso-bidi-font-size: 12.0pt;">modules and programs.<o:p></o:p></span></div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-22133123681466972742011-08-15T22:50:00.003+05:302011-08-15T22:50:52.169+05:30CTS SAMPLE PAPER<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal"><br />
</div><div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-bottom-alt: 0in; mso-padding-top-alt: 0in; mso-table-layout-alt: fixed;"><tbody>
<tr> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div class="MsoNormal"><span lang="EN-AU" style="font-size: 18.0pt; mso-bidi-font-size: 12.0pt;">CTS Sample Test Paper#1</span></div></td> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/index.html" title="Back to home page">Home</a></span></div></td> </tr>
</tbody></table></div><div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/CTS/CTS.htm">Back To CTS Page</a></span></div><strong><span lang="EN-AU">This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.</span></strong><br />
<strong><span lang="EN-AU">SECTION-1:</span></strong><span lang="EN-AU"><br />
<br />
Find the next in the sequence:<br />
<br />
1. BC CE EG GK ?<br />
<br />
a)KN <br />
b)KU <br />
c)KM <br />
d)None</span><br />
<span lang="EN-AU"><br />
2. AA AB BC CE?<br />
<br />
a)EG <br />
b)EH <br />
c)EI <br />
d)None</span><br />
<span lang="EN-AU"><br />
3. AB EF JK QR ?<br />
<br />
a)YZ <br />
b)ZA <br />
c)AB <br />
d)None</span><br />
<span lang="EN-AU"><br />
4.ACD EGL IKT MOB?<br />
<br />
a)QST <br />
b)QSZ <br />
c)QSY <br />
d)None</span><br />
<span lang="EN-AU"><br />
5.AC CG GO OE?<br />
<br />
a)EJ <br />
b)EI <br />
c)EL <br />
d)None</span><br />
<span lang="EN-AU"><br />
6.AE BH CM DU?<br />
<br />
a)EH <br />
b)EZ <br />
c) EB <br />
d)None</span><br />
<span lang="EN-AU"><br />
7. AD <st1:address w:st="on"><st1:street w:st="on">DP PL</st1:street> <st1:city w:st="on">LV</st1:city></st1:address><br />
<br />
a)VS<br />
b)VK <br />
c)VI <br />
d)None</span><br />
<span lang="EN-AU"><br />
8. SE QU EN TI?<br />
<br />
a)CN <br />
b)BM <br />
c)AI or AZ <br />
d)None</span><br />
<span lang="EN-AU"><br />
<br />
<strong>SECTION-II:</strong><br />
<br />
<em>Find the values for the following problem:</em><br />
f(X)= 2X-1 + f(X-1) if X is not equal to zero and if f(X=0)=0</span><br />
<span lang="EN-AU">9. Value of f(5)<br />
<br />
a)15 <br />
b)24 <br />
c)22 <br />
d)None</span><br />
<span lang="EN-AU"><br />
10. Value of f(f(2))</span><br />
<span lang="EN-AU"><br />
11. Value of f(16)- f(15)</span><br />
<span lang="EN-AU"><br />
12. Value of f(16)+f(15)-480</span><br />
<span lang="EN-AU"><br />
13. If f(f(X))=81 then the value of X=?</span><br />
<span lang="EN-AU"><br />
14. If f(X)=4f(X-1) then the value of X=?</span><br />
<span lang="EN-AU"><br />
15.If f(X)= f(X-1)+f(X-2) for X>1 then X= ?</span><br />
<span lang="EN-AU"><br />
16. If f(X)-f(X-1)=f(X-8) for X>5 then X=</span><br />
<br />
<strong><span lang="EN-AU">SECTION -III:</span></strong><b><span lang="EN-AU"><br />
</span></b><span lang="EN-AU"><br />
<em>In the following questions a ‘word’ is given which may not have any meaning.Find differnet possible words or palindromes for the word as per the question.</em><i><br />
</i><br />
<em>For the following find no of distinct words that can be formed.</em><br />
<br />
17. TYGHHTT<br />
<br />
a).420 <br />
b)1540 <br />
c)840 <br />
d)None</span><br />
<span lang="EN-AU"><br />
18. TYGHHTY<br />
<br />
19. TYGHHTT</span><br />
<span lang="EN-AU">20. TYGHHTT</span><br />
<span lang="EN-AU">21. TYGHASD</span><br />
<span lang="EN-AU">22. TYGHHTY</span><br />
<span lang="EN-AU"><br />
<em>Find the number of possible palindromes for following</em></span><br />
<span lang="EN-AU"><br />
23. TYGHHTY</span><br />
<span lang="EN-AU">24. TYHHHTYH.</span><br />
<strong><span lang="EN-AU">SECTION-IV:</span></strong><b><span lang="EN-AU"><br />
</span></b><i><span lang="EN-AU"><br />
<em>25 to 32 are based on the figures. You have to analyse them and find the odd one out. </em><br />
<em>Five figures will be given out of which one is not correct</em></span></i><span lang="EN-AU">.</span><br />
<span lang="EN-AU">Refer R.S Agarwal’s book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.</span><br />
<strong><span lang="EN-AU">SECTION -V</span></strong><span lang="EN-AU">:<br />
<br />
<em>For following first find out the anagram and then note the corresponding meaning.</em><br />
<br />
33.TABLET<br />
Hint: anagram means first u arrange the letters in correct order like TABLET===BATTLE . So ans is FIGHT </span><br />
<span lang="EN-AU"><br />
34.RUGGED</span><br />
<span lang="EN-AU">35.GORE.</span><br />
<span lang="EN-AU">36.STASSI.</span><br />
<span lang="EN-AU">For all above choices are.<br />
<br />
a)resentment <br />
b)fight <br />
c)help <br />
d)monster</span><br />
<span lang="EN-AU"><br />
37. ENFOLD</span><br />
<span lang="EN-AU">38. LAMB</span><br />
<span lang="EN-AU">39. RECEDE.</span><br />
<span lang="EN-AU">40. PLEASE.<br />
<br />
For all the above 4 choices are same<br />
<br />
a)cuddle <br />
b)sleeping <br />
c)proclamination <br />
d)ointment.</span><br />
<div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-bottom-alt: 0in; mso-padding-top-alt: 0in; mso-table-layout-alt: fixed;"><tbody>
<tr> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div class="MsoNormal"><span lang="EN-AU" style="font-size: 18.0pt; mso-bidi-font-size: 12.0pt;">CTS Sample Test Paper#2</span></div></td> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/index.html" title="Back to home page">Home</a></span></div></td> </tr>
</tbody></table></div><div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/CTS/CTS.htm">Back To CTS Page</a></span></div><strong><span lang="EN-AU">This is only a sample paper. We are not providing you with all the questions - just some questions to give you a general idea of the test pattern.</span></strong><br />
<span lang="EN-AU"><br />
<strong>SECTION I </strong>- <em>8 questions based on series.</em><br />
<br />
1. These questions involve interchange of letters in a word at particular locations and also interchanging letters adjacent to those particular locations.Certain other conditions may also be given<br />
For eg.<br />
Let the word be ABBAABA<br />
If we apply 25 on this, it means we have to interchange the letters at positions 2 and 5, also we have to change the letters adjacent to positions 2 and 5 i.e.from A to B and B to A. <br />
A B B A A B after Step 1 i.e interchange of 2 and 5 becomes AABABB<br />
Now change adjacent elements of 2 and 5...finally answer becomes<br />
Ans: B A A B B A<br />
<br />
<em>Questions 1-5 are based on the pattern with changed numbers as described above</em></span><br />
<em><span lang="EN-AU">Questions 6-8 are of the following type</span></em><br />
<span lang="EN-AU">To get AAABBD from BBBAAA what number should be applied:-<br />
a) 25 <br />
b) 34 <br />
c) 25 & 34 <br />
d) none</span><br />
<span lang="EN-AU"><br />
<strong>SECTION II</strong><b><br />
</b><br />
1. Given the following functions<br />
(1) f(n a b c ) = ac if n=1<br />
(2) f(n a b c) = f( n-1 a c b) + f( 1 a b c) + f( n-1 b a c ) if n > 1<br />
<br />
Then what is the value f( 2 a b c ) = ?<br />
<br />
<span style="color: maroon;">Ans: f( 2 a c b ) = ab + ac + bc</span>.</span><br />
<span lang="EN-AU"><br />
2. Similar question on functions.</span><br />
<span lang="EN-AU"><br />
3. <em>[ Based on the function in the first question]</em> For the function f( 4 a b c ) the number of terms is...?<br />
<em>Hint</em> f( 4 a b c ) = f( 3 a c b ) + f( 1 a b c ) + f( 3 b a c ) etc.<br />
<br />
<br />
4. What is the value of the function f( 5 a b c ) = ?</span><br />
<span lang="EN-AU"><br />
<strong>SECTION III</strong><br />
<br />
Permutations and Combinations.<br />
8 Questions.<br />
<br />
1. r = number of flags;n = number of poles;<br />
Any number of flags can be accommodated on any single pole.<br />
<br />
1) r=5,n=5 The no. of ways the flags can be arranged ?<br />
<br />
Questions 2-5 are based on the above pattern</span><br />
<span lang="EN-AU"><br />
6. r = 5 n = 3 . If first pole has 2 flags, third pole has 1 flag<br />
How many ways can the remaining be arranged?<br />
<br />
Questions 7.& 8. are similar to Question 6.</span><br />
<span lang="EN-AU"><br />
<strong>SECTION IV</strong><br />
<em>Question consisting of figures - Pattern-matching type.</em></span><br />
<span lang="EN-AU">Refer R.S Agarwal’s book on Analytical Reasoning & TMHs Quantitative ability book by Edgar Thorpe.<br />
<br />
<br />
<br />
<strong>SECTION V</strong><br />
In this section first part of compound word is given. Select meaning of the second part from the choice given:<br />
1. Swan<br />
2. Swans<br />
3. Fool<br />
4. Fools<br />
5. Stare<br />
6. Lady<br />
For all above 4 choices are given.....<br />
<br />
Eg. Swan ---> Swan<span style="color: maroon;">song</span> (compound word)<br />
a) category b) music c) television d) none<br />
Ans: Swansong is compound word. But song is not given as an option. so (b) music is the answer.</span><br />
<div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-bottom-alt: 0in; mso-padding-top-alt: 0in; mso-table-layout-alt: fixed;"><tbody>
<tr> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div class="MsoNormal"><span lang="EN-AU" style="font-size: 18.0pt; mso-bidi-font-size: 12.0pt;">CTS Sample Test Paper#3</span></div></td> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/index.html" title="Back to home page">Home</a></span></div></td> </tr>
</tbody></table></div><div align="right" style="text-align: right;"><span lang="EN-AU"><a href="http://placementpapers.com/CTS/CTS.htm">Back To CTS Page</a></span></div><strong><span lang="EN-AU">Analogies</span></strong><span lang="EN-AU"><br />
<br />
1. slur : speech : : smudge :?<br />
<span style="color: maroon;">Ans. writing </span></span><br />
<span lang="EN-AU">2. epaulet : shoulder : : ring :? <br />
<span style="color: maroon;">Ans.finger</span> </span><br />
<span lang="EN-AU">3. vernacular : place : : fingerprint : ?<br />
<span style="color: maroon;">Ans.identical </span></span><br />
<br />
<strong><span lang="EN-AU">Opposites</span></strong><b><span lang="EN-AU"><br />
</span></b><span lang="EN-AU"><br />
Q. corpulent <br />
<span style="color: maroon;">Ans: emaciated </span></span><br />
<span lang="EN-AU">Q. officious<br />
<span style="color: maroon;">Ans: pragmate </span></span><br />
<span lang="EN-AU">Q. dextrous<br />
<span style="color: maroon;">Ans: clumsy </span></span><br />
<span lang="EN-AU"><br />
The following sentences are broken into 4 sections- A, B, C, D<br />
Choose the part which has a mistake<br />
Mark (E) if you find no mistake.</span><br />
<span lang="EN-AU">Q.A)psychologists point out that B)there are human processes C)which does not involve D) the use of words</span><br />
<span lang="EN-AU" style="color: maroon;">Ans. © which <u>does</u> not involve</span><span lang="EN-AU"> <span style="color: maroon;">(do)</span></span><br />
<span lang="EN-AU"><br />
Q.A)jack ordered for B)two plates of chicken C)and a glass D)of water </span><br />
<span lang="EN-AU" style="color: maroon;">Ans. (A)jack ordered <u>for</u></span><br />
<span lang="EN-AU"><br />
<em>The following is a group of questions is based on a passage or a set of conditions for each question.</em><i><br />
<em>Select the best answer choice given.</em></i></span><br />
<span lang="EN-AU">(i). If it is fobidden by law if the object of agreement is the doing of an act,<br />
that is forbidden by law the agreement is void.</span><br />
<span lang="EN-AU">(ii). If it is of the nature that,it would defeat the provision of any law <br />
is the agreement is void.if the object of agreement is such that thing got <br />
directly forbidden by law it would defeat the provision of statuary law.</span><br />
<span lang="EN-AU">(iii). If the object of agreement is fraddulent it is void.</span><br />
<span lang="EN-AU">(iv). An object of agreement is void if it involves or implies to the personnal property of another.</span><br />
<span lang="EN-AU">(v). An object of agreement is void where the constant regards as ignored.</span><br />
<span lang="EN-AU">(vi). An object of agreement is void where the constant regards is as opposed to public policy.</span><br />
<span lang="EN-AU">Q. An algorithm follws a six step process za,zb,zc,zd,ze,zf, it is governed by the following</span><br />
<span lang="EN-AU">(i) zd should follow ze<br />
(ii) the first may be za,zd or zf<br />
(iii) zb and zc have to be performed after zd<br />
(iv) zc must be immediately after zb</span><br />
<span lang="EN-AU"><br />
Q. If za is the first set zd must be</span><br />
<span lang="EN-AU">a) 3<sup>rd</sup> <br />
b) 5<sup>th</sup> <br />
c) 2<sup>nd</sup> <br />
d) 4<sup>th</sup></span><br />
<br />
<span lang="EN-AU">Q. If zb must follow za then za can be</span><br />
<span lang="EN-AU">a) third or fourth<br />
b) first or second <br />
c) can not be third <br />
d) fouth or fifth <br />
e) none</span><br />
<span lang="EN-AU"><br />
Q. If ze is third term the number of different operations possible are</span><br />
<em><span lang="EN-AU">The following questions are based on the given statements</span></em><i><span lang="EN-AU"><br />
</span></i><span lang="EN-AU">Ravi plants six seperate saplings—x,y,z,w,u,v in rows no 1 to 6 ,according to the follwing conditions<br />
He must plant x before y and u<br />
He must plant y and w<br />
The third has to be z</span><br />
<span lang="EN-AU">Q. Which of the following is acceptable</span><br />
<span lang="EN-AU">a) xuywzv <br />
b) xvzyuw <br />
c) zuyxwv <br />
d) zvxuwy <br />
e) wyzuvx</span><br />
<span lang="EN-AU">Q. Which of the following is true</span><br />
<span lang="EN-AU">a) z before v <br />
b) z before x <br />
c) w before u <br />
d) y before u<br />
e) x before w</span><br />
<span lang="EN-AU">Q. If he plants v first, then which can be planted second</span><br />
<span lang="EN-AU">a) x<br />
b) y<br />
c) z<br />
d) w<br />
e) u</span><br />
<span lang="EN-AU"><br />
Q. Which of the following describes a correct combination of sapling and row?</span><br />
<span lang="EN-AU">a) x,3 <br />
b) y,6 <br />
c) z,1 <br />
d) w,2 <br />
e) u,6</span><br />
<span lang="EN-AU"><br />
Q. If he plants b 6<sup>th</sup> which would be planted first and second</span><br />
<span lang="EN-AU">a) x and w <br />
b) x and y <br />
c)y and x <br />
d)w and z <br />
e) w and u</span><br />
<span lang="EN-AU"><br />
Q. If he plants w before u and after v he should plant w at </span><br />
<span lang="EN-AU">a) first <br />
b) second <br />
c) fourth <br />
d) fifth <br />
e) sixth</span><br />
<span lang="EN-AU"><br />
Q. At a certain moment a watch shows 2 min lag although it is running fast.<br />
If it showed a 3 min lag at that moment, but also gains by ½ min more a day than its current speed<br />
it would show the true time one day sooner than it usually does. <br />
How many mins does the watch gain per day.</span><br />
<span lang="EN-AU">a).2 <br />
b).5 <br />
c).6 <br />
d).4 <br />
e).75</span><br />
<span lang="EN-AU">Q. In 400m race A gives B a start of 7 sec and beats him by 24 sec.<br />
In another race A beats B by 10 sec.the speeds are in the ratio</span><br />
<span lang="EN-AU">a)8:7 <br />
b)7:6 <br />
c)10:8 <br />
d)6:8 <br />
e)12:10</span><br />
<span lang="EN-AU"><br />
Q. 3x+4y=10<br />
x<sup>3</sup> + y<sup>3</sup>=6 <br />
What is the minimum value of 3x+11y=?</span><br />
<span lang="EN-AU"><br />
Q. There are 600 tennis players <br />
4% wear wrist band on one wrist<br />
Of the remaining, 25% wear wrist bands on both hands <br />
How many players don’t wear a wrist band?</span><br />
<span lang="EN-AU" style="color: maroon;">Ans. 432</span><br />
<span lang="EN-AU"><br />
Q. Three types of tea the a,b,c costs Rs. 95/kg,100/kg and70/kg respectively.<br />
How many kgs of each should be blended to produce 100 kg of mixture worth Rs.90/kg,<br />
given that the quntities of band c are equal</span><br />
<span lang="EN-AU">a)70,15,15 <br />
b)50,25,25 <br />
c)60,20,20 <br />
d)40,30,30 </span><br />
<span lang="EN-AU" style="color: maroon;">Ans. (b)</span><br />
<div style="border-bottom: dotted windowtext 3.0pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <div style="border: none; mso-border-bottom-alt: dotted windowtext 3.0pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><span lang="EN-AU"><br />
Q. Two distinct no’s are taken from 1,2,3,4......28 <br />
Find the probability that their sum is less than 13</span></div></div><div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-21613707976627357842011-08-15T22:50:00.001+05:302011-08-15T22:50:17.976+05:30BAAN COMPANY SAMPLE TEST WITNSWERES<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal"><br />
</div><div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-bottom-alt: 0in; mso-padding-top-alt: 0in; mso-table-layout-alt: fixed;"><tbody>
<tr> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <strong><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">BAAN Sample Test</span></strong><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span><br />
</td> <td style="padding: 0in .75pt 0in .75pt; width: 210.65pt;" width="281"> <div align="right" style="text-align: right;"><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;"><a href="http://placementpapers.com/index.html" title="Back to home page">Home</a><o:p></o:p></span></div></td> </tr>
</tbody></table></div><div align="right" style="text-align: right;"><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;"><a href="http://placementpapers.com/BAAN/BAAN.htm">Back To BAAN Page</a><o:p></o:p></span></div><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;"><br />
<b><u>Paper Pattern 1 </u></b>from R.S.Agarwal <o:p></o:p></span><br />
<span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">Please check out the following questions from the book<o:p></o:p></span><br />
<span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">Section 1 -- Analogy 1c(1-20)[pg 15-17]<br />
Section 2 -- Directions sense test 7b[1-10]<br />
Section 3 -- Logic deduction 17b[30-50]<br />
Section 4 -- Mathematical modeling 15a[1-20]<o:p></o:p></span><br />
<b><u><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">Paper Pattern 2<br />
</span></u></b><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;"><br />
Q1.<br />
For a motorist there are three ways going from City A to City C. By way of bridge the distance is 20 miles and toll is $0.75. A tunnel between the two cities is a distance of 10 miles and toll is $1.00 for the vehicle and driver and $0.10 for each passenger. A two-lane highway without toll goes east for 30 miles to city B and then 20 miles in a northwest direction to City C.<br />
<br />
<br />
1. Which is the shortest route from B to C<br />
<br />
(a) Directly on toll free highway to City C<br />
(b) The bridge<br />
(c) The Tunnel<br />
(d) The bridge or the tunnel<br />
(e) The bridge only if traffic is heavy on the toll free highway<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
2. The most economical way of going from City A to City B, in terms of toll and distance is to use the<br />
<br />
(a) tunnel<br />
(b) bridge<br />
(c) bridge or tunnel<br />
(d) toll free highway<br />
(e) bridge and highway<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
3. Jim usually drives alone from City C to City A every working day. His firm deducts a percentage of employee pay for lateness. Which factor would most influence his choice of the bridge or the tunnel ?<br />
<br />
(a) Whether his wife goes with him<br />
(b) scenic beauty on the route<br />
(c) Traffic conditions on the road, bridge and tunnel<br />
(d) saving $0.25 in tolls<br />
(e) price of gasoline consumed in covering additional 10 miles on the bridge<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
4. In choosing between the use of the bridge and the tunnel the chief factor(s) would be:<br />
I. Traffic and road conditions<br />
II. Number of passengers in the car<br />
III. Location of one’s homes in the center or outskirts of one of the cities<br />
IV. Desire to save $0.25<br />
<br />
(a) I only<br />
(b) II only<br />
(c) II and III only<br />
(d) III and IV only<br />
(e) I and II only<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
Q2.<br />
The letters A, B, C, D, E, F and G, not necessarily in that order, stand for seven consecutive integers from 1 to 10<br />
D is 3 less than A<br />
B is the middle term<br />
F is as much less than B as C is greater than D<br />
G is greater than F<br />
<br />
1. The fifth integer is<br />
(a) A<br />
(b) C<br />
(c) D<br />
(d) E<br />
(e) F<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
2. A is as much greater than F as which integer is less than G<br />
(a) A<br />
(b) B<br />
(c) C<br />
(d) D<br />
(e) E<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
3. If A = 7, the sum of E and G is<br />
(a) 8<br />
(b) 10<br />
(c) 12<br />
(d) 14<br />
(e) 16<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
4. A - F = ?<br />
(a) 1<br />
(b) 2<br />
(c) 3<br />
(d) 4<br />
(e) Cannot be determined<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
5. An integer T is as much greater than C as C is greater than E. T can be written as A + E. What is D?<br />
(a) 2<br />
(b) 3<br />
(c) 4<br />
(d) 5<br />
(e) Cannot be determined<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
6. The greatest possible value of C is how much greater than the smallest possible value of D?<br />
(a) 2<br />
(b) 3<br />
(c) 4<br />
(d) 5<br />
(e) 6<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
<br />
Q3.<br />
1. All G’s are H’s<br />
2. All G’s are J’s or K’s<br />
3. All J’s and K’s are G’s<br />
4. All L’s are K’s<br />
5. All N’s are M’s<br />
6. No M’s are G’s<br />
<br />
<br />
1. If no P’s are K’s, which of the following must be true?<br />
<br />
(a) All P’s are J’s<br />
(b) No P is a G<br />
(c) No P is an H<br />
(d) If any P is an H it is a G<br />
(e) If any P is a G it is a J<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
2. Which of the following can be logically deduced from the conditions stated?<br />
<br />
(a) No M’s are H’s<br />
(b) No M’s that are not N’s are H’s<br />
(c) No H’s are M’s<br />
(d) Some M’s are H’s<br />
(e) All M’s are H’s<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
3. Which of the following is inconsistent with one or more of the conditions?<br />
<br />
(a) All H’s are G’s<br />
(b) All H’s that are not G’s are M’s<br />
(c) Some H’s are both M’s and G’s<br />
(d) No M’s are H’s<br />
(e) All M’s are H’s<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
4. The statement “No L’s are J’s” is<br />
I. Logically deducible from the conditions stated<br />
II. Consistent with but not deducible from the conditions stated<br />
III. Deducible from the stated conditions together with the additional statement “No J’s are K’s”<br />
<br />
(a) I only<br />
(b) II only<br />
(c) III only<br />
(d) II and III only<br />
(e) Neither I, II nor III<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
<br />
Q5.<br />
In country X, democratic, conservative and justice parties have fought three civil wars in twenty years. TO restore stability an agreement is reached to rotate the top offices President, Prime Minister and Army Chief among the parties so that each party controls one and only one office at all times. The three top office holders must each have two deputies, one from each of the other parties. Each deputy must choose a staff composed of equally members of his or her chiefs party and member of the third party.<br />
<br />
1. When Justice party holds one of the top offices, which of the following cannot be true<br />
<br />
(a) Some of the staff members within that office are justice party members<br />
(b) Some of the staff members within that office are democratic party members<br />
(c) Two of the deputies within the other offices are justice party members<br />
(d) Two of the deputies within the other offices are conservative party members<br />
(e) Some of the staff members within the other offices are justice party members.<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
2. When the democratic party holds presidency, the staff of the prime minister’s deputies are composed<br />
I. One-fourth of democratic party members<br />
II. One-half of justice party members and one-fourth of conservative party members<br />
III. One-half of conservative party members and one-fourth of justice party members.<br />
<br />
(a) I only<br />
(b) I and II only<br />
(c) II or III but not both<br />
(d) I and II or I and III<br />
(e) None of these<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
3. Which of the following is allowable under the rules as stated:<br />
<br />
(a) More than half of the staff within a given office belonging to a single party<br />
(b) Half of the staff within a given office belonging to a single party<br />
(c) Any person having a member of the same party as his or her immediate superior<br />
(d) Half the total number of staff members in all three offices belonging to a single party<br />
(e) Half the staff members in a given office belonging to parties different from the party of the top office holder in that office.<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
4. The office of the Army Chief passes from Conservative to Justice party. Which of the following must be fired.<br />
<br />
(a) The democratic deputy and all staff members belonging to Justice party<br />
(b) Justice party deputy and all his or hers staff members<br />
(c) Justice party deputy and half of his Conservative staff members in the chief of staff office<br />
(d) The Conservative deputy and all of his or her staff members belonging to Conservative party<br />
(e) No deputies and all staff members belonging to conservative parties.<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
<br />
Q6.<br />
In recommendations to the board of trustees a tuition increase of $500 per year, the president of the university said “There were no student demonstrations over the previous increases of $300 last year and $200 the year before”. If the president’s statement is accurate then which of the following can be validly inferred from the information given:<br />
I. Most students in previous years felt that the increases were justified because of increased operating costs.<br />
II. Student apathy was responsible for the failure of students to protest the previous tuition increases.<br />
III. Students are not likely to demonstrate over new tuition increases.<br />
<br />
(a) I only<br />
(b) II only<br />
(c) I or II but not both<br />
(d) I, II and III<br />
(e) None<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
Part II—Problems on ages ( Simple Linear Equations etc.)<o:p></o:p></span><br />
<span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">Part III—Blood Relations (Check R S Aggarwal)<br />
<br />
Part IV—Series problems<br />
<br />
6,9,14,21,(30)<br />
2,10,(30),68,130,(222)<br />
9,15,23,33,(45)<br />
5,11,19,29,(41),55<br />
2,12,30,56,90,(132)<br />
1,3,7,(15)31<br />
3,9,21,(45),93<br />
35,24,15,8,(3)<br />
2,12,30,56,90,(132)<br />
3,11,19,29,(39),51<o:p></o:p></span><br />
<div style="border-bottom: dotted windowtext 3.0pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <div style="border: none; mso-border-bottom-alt: dotted windowtext 3.0pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><span lang="EN-AU" style="font-size: 14.0pt; mso-bidi-font-size: 12.0pt;">Part V—Analogy<br />
<br />
1. fans : bleachers::<br />
<br />
(a) cheerleaders : pompoms<br />
(b) audience:seats<br />
(c) team:goalposts<br />
(d) conductor:podium<br />
(e) referee:decision<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
2. archipelago:islands::<br />
<br />
(a) arbor:bower<br />
(b) garden:flower<br />
(c) mountain:valley<br />
(d) sand:dune<br />
(e) constellation:star<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
3. crow:boastful ::<br />
<br />
(a) smirk:witty<br />
(b) conceal:s;y<br />
(c) pout:sulky<br />
(d) blush:coarse<br />
(e) bluster:unhappy<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
4. bracket:shelf ::<br />
<br />
(a) hammer:anvil<br />
(b) girder:rivet<br />
(c) strut:rafter<br />
(d) valve:pipe<br />
(e) bucket:well<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
5. taxonomy:classification ::<br />
<br />
(a) etymology:derivation<br />
(b) autonomy:authorization<br />
(c) economy:rationalization<br />
(d) tautology:justification<br />
(e) ecology:urbanisation<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
6. moderator:debate ::<br />
<br />
(a) legislator:election<br />
(b) chef:banquet<br />
(c) auditor:lecture<br />
(d) conspirator:plot<br />
(e) umpire:game<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
7. glossary:words ::<br />
<br />
(a) catalogue:dates<br />
(b) atlas:maps<br />
(c) almanac:synonyms<br />
(d) thesaurus:rhymes<br />
(e) lexicon:numbers<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
8. lumber: bear ::<br />
<br />
(a) roost:hen<br />
(b) bray:donkey<br />
(c) waddle:goose<br />
(d) swoop:hawk<br />
(e) chirp:sparrow<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
9. celerity:snail ::<br />
<br />
(a) indolence:sloth<br />
(b) cunning:weasel<br />
(c) curiosity:cat<br />
(d) humility:peacock<br />
(e) obstinacy:mule<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
<br />
10. wood:sand ::<br />
<br />
(a) coal:burn<br />
(b) brick:lay<br />
(c) oil:polish<br />
(d) metal:burnish<br />
(e) stone:quarry<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
11. carpenter:saw ::<br />
<br />
(a) stenographer:typist<br />
(b) painter:brush<br />
(c) lawyer:brief<br />
(d) runner:sneakers<br />
(e) seamstress:scissors<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
12. horns:bull ::<br />
<br />
(a) mane:lion<br />
(b) wattles:turkey<br />
(c) antlers:stag<br />
(d) hooves:horse<br />
(e) wings:eagle<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
13. gullible:duped ::<br />
<br />
(a) credible:cheated<br />
(b) careful:cautioned<br />
(c) malleable:moulded<br />
(d) myopic:mislead<br />
(e) articulate:silenced<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
14. marathon:stamina ::<br />
<br />
(a) relay:independence<br />
(b) hurdle:perseverance<br />
(c) sprint:celerity<br />
(d) job:weariness<br />
(e) ramble:directness<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
15. Skin:man ::<br />
<br />
(a) hide:animal<br />
(b) jump:start<br />
(c) peel:potato<br />
(d) eat:food<br />
(e) wool:cloth<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
16. Bamboo:Shoot ::<br />
<br />
(a) Bean:Sprout<br />
(b) Peas:Pod<br />
(c) Potato:Eye<br />
(d) Carrot:Root<br />
(e) Leaf:Stem<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
18. Deflect:Missile ::<br />
<br />
(a) Siege:Castle<br />
(b) Distract:Attraction<br />
(c) Protect:Honour<br />
(d) Drop:Catch<br />
(e) Score:Goal<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
19. Editor:magazine ::<br />
<br />
(a) captain:ship<br />
(b) actor:movie<br />
(c) director:film<br />
(d) player:team<br />
(e) jockey:horse<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
21. Volcano : Lava ::<br />
<br />
(a) Fault:earthquate<br />
(b) crack:wall<br />
(c) tunnel:dig<br />
(d) water:swim<br />
(e) floor:polish<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
Other Sample Analogies:<br />
<br />
22. Agitator : Firebrand :: <span style="color: purple;">Renegade : Turncoat</span><br />
<br />
23. Burst : Sound :: <span style="color: purple;">Tinder : Fire</span><br />
<br />
24. Star : cluster :: <span style="color: purple;">Tree : clump</span><br />
<br />
25. Piston : Cylinder :: <span style="color: purple;">elevator : shaft</span><br />
<br />
26. Mitigate : punishment :: <span style="color: purple;">commute : sentence</span><br />
<br />
27. Erudite : scholar :: <span style="color: purple;">illiterate : ignorant</span><br />
<br />
28. Fire : Ashes :: <span style="color: purple;">explosion : debris </span><br />
<br />
29. mason : wall :: <span style="color: purple;">Author : Book </span><br />
<br />
30. Fire : Ashes :: <span style="color: purple;">Event : memories</span><br />
<br />
<br />
<br />
<br />
<b><u>SECTION II CODING<br />
</u></b><br />
1. If LOAD = MPBE and DRIVE = ESJWF<br />
Then LADDLER = ?<br />
<br />
<span style="color: purple;">Ans. MBEEMFS</span><br />
<br />
<br />
2. START = WALKA and BUDPI = XZFMR<br />
Then STUPID = ?<br />
<br />
<span style="color: purple;">Ans. WAZMRF</span><br />
<br />
<br />
Q3 - Q7<br />
<br />
If A=Z, B=Y, C=X, .......... Z=A<br />
Then<br />
<br />
3. LIMIT = ?<br />
<br />
<span style="color: purple;">Ans. ORNRG</span><br />
<br />
<br />
4. SOUR = ?<br />
<br />
<span style="color: purple;">Ans. HLFI</span><br />
<br />
<br />
5. POCKET = ?<br />
<br />
<span style="color: purple;">Ans. KLXPUG</span><br />
<br />
<br />
6. GROUP = ?<br />
<br />
<span style="color: purple;">Ans. TILFK</span><br />
<br />
<br />
7. ZERD = ?<br />
<br />
<span style="color: purple;">Ans. AVIL</span><br />
<br />
<br />
<br />
Q8 - Q9<br />
Here each letter is coded as<br />
A = D, B=E, C=F<br />
<br />
<br />
8. SHOOT = ?<br />
<br />
<span style="color: purple;">Ans. VKRRW</span><br />
<br />
<br />
9. VWDUW = ?<br />
<br />
<span style="color: purple;">Ans. YZGXZ</span><br />
<br />
<br />
10. If DBMDVUUB = <st1:city w:st="on">CALCUTTA</st1:city><br />
Then <st1:city w:st="on"><st1:place w:st="on">BOMBAY</st1:place></st1:city> = ?<br />
<br />
<span style="color: purple;">Ans. ANLAZX</span><br />
<br />
<br />
<br />
<br />
<br />
<b><u>TECHNICAL :<br />
</u></b><br />
1. Binary equivalent of 52<br />
<br />
<span style="color: purple;">Ans. 110100<br />
</span><br />
<br />
2. Hexadecimal equivalent of 3452<br />
<br />
<span style="color: purple;">Ans. 72A<br />
</span><br />
<br />
3. Explain Just In Time Concept ?<br />
<br />
<span style="color: purple;">Ans. Elimination of waste by purchasing manufacturing exactly when needed<br />
</span><br />
<br />
4. A good way of unit testing s/w program is<br />
<br />
<span style="color: purple;">Ans. User test<br />
</span><br />
<br />
5. A lowest level of security by most RDBMS is<br />
<br />
<br />
6. OOT uses<br />
<br />
<span style="color: purple;">Ans. Encapsulated of detect methods<br />
</span><br />
<br />
7.EDI useful in<br />
<br />
<span style="color: purple;">Ans. Electronic Transmission<br />
</span><br />
<br />
8. MRPII different from MRP<br />
<br />
<span style="color: purple;">Ans. Modular version of man redundant initials<br />
</span><br />
<br />
9. Hard disk time for R/W head to move to correct sector<br />
<br />
<span style="color: purple;">Ans. Latency Time<br />
</span><br />
<br />
10. The percentage of times a page number bound in associate register is called<br />
<br />
<span style="color: purple;">Ans. Bit ratio<br />
</span><br />
<br />
11. Expand MODEM<br />
<br />
<span style="color: purple;">Ans. Modulator and Demodulator</span><br />
<br />
<br />
12. RDBMS file system can be defined as<br />
<br />
<span style="color: purple;">Ans. Interrelated<br />
</span><br />
<br />
13. Super Key is<br />
<br />
<span style="color: purple;">Ans. Primary key and Attribute<br />
</span><br />
<br />
14. Windows 95 supports<br />
<br />
(a) Multiuser<br />
(b) n tasks<br />
(c) Both<br />
(d) None<br />
<br />
<span style="color: purple;">Ans. (a)<br />
</span><br />
<br />
15.The difference between printf and fprintf is ?<br />
<br />
<br />
16. To change permission r&w to owner group to no permission to others<br />
<br />
(a) chmod 614<br />
(b) chmod 604<br />
(c) chmod 640<br />
(d) chmod 310<br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div></div><div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-13634309137092651802011-07-19T21:59:00.002+05:302011-07-19T21:59:36.759+05:302010 .net features<a href="http://www.codeproject.com/KB/aspnet/Whatis_New_ASP_Net_4.aspx">http://www.codeproject.com/KB/aspnet/Whatis_New_ASP_Net_4.aspx</a><br />
<br />
<a href="http://www.techrepublic.com/blog/programming-and-development/whats-new-in-visual-studio-2010-and-net-4/2475">http://www.techrepublic.com/blog/programming-and-development/whats-new-in-visual-studio-2010-and-net-4/2475</a><br />
<br />
new 2010 .net featuresnanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-82280685001237743582011-07-19T21:56:00.002+05:302011-07-19T21:56:54.389+05:30nice website for vb.net<a href="http://www.startvbdotnet.com/">http://www.startvbdotnet.com</a>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-8889853789835689342011-07-19T21:56:00.000+05:302011-07-19T21:56:03.313+05:30vb.net multi threading<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Multithreading</span></strong><br />
<br />
<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Multithreading</span> gives programs the ability to do several things at <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a time</span>. Each stream of execution is called a thread. Multithreading is used to <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">divide</span> lengthy tasks into different segments that would otherwise abort programs. Threads are mainly used to utilize the processor to a maximum extent by avoiding it's idle time. Threading lets a program seem as if it is executing several tasks at once. What actually happens is, the time gets divided by the computer into parts and when a new thread starts, that thread gets a portion of the divided time. Threads in VB .NET are based on the namespace <span style="color: blue;">System.Threading</span><span style="color: black;">.</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Creating Threads</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To create threads lets work with an example. The following example is an extract from Steven Holzner's reference, Programming with <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual</span> Basic.NET- Black Book. Open a<span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">new windows</span> application and name it as Thread and add a class named count1 using the <span style="color: blue;">Projects->Add Class item</span>. This class will count from 1 to a specified value in a data member named CountTo when you call the Count method. After the count has reached the value in CountTo, a FinishedCounting event will occur. <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The code</span> for the Count class looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Public Class Count1<br />
Public CountTo as Integer<br />
Public event FinishedCounting(By Val NumberOfMatches as Integer)<br />
Sub Count()<br />
Dim ind,tot as Integer<br />
tot=0<br />
For ind=1 to CountTo<br />
tot+=1<br />
Next ind<br />
RaiseEvent FinishedCounting(tot)<br />
'makes the FinishedCounting event to occur<br />
End Sub<br />
End Class</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Let's use this class with a new thread. Get back to the main form and create an object of this class, counter1, and a new thread, Thread1. The code looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Public Class Form1 Inherits System.Windows.Forms.Form<br />
Dim counter1 as new Count1()<br />
Dim Thread1 as <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">New System</span>.Threading.Thread(Address of counter.Count)</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Drag <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a Button</span> and two <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">TextBoxes</span> (TextBox1, TextBox2) onto the form. Enter a number in TextBox1. The reason for entering a number in textbox is to allow the code to read the value specified in TextBox1 and display that value in TextBox2, with threading. The code for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table4" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Public Class Form1 Inherits System.Windows.Forms.Form<br />
Dim counter1 as new Count1()<br />
Dim Thread1 as New System.Threading.Thread(Address of counter.Count)<br />
Private Sub Button1_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
<span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Handles</span> Button1.Click<br />
TextBox2.Text=" "<br />
counter1.CountTo=TextBox1.Text<br />
AddHandler counter1.FinishedCounting,AddressOfFinishedCountingEventHandler<br />
'adding handler to handle FinishedCounting Event<br />
Thread1.Start()<br />
'starting the thread<br />
End Sub<br />
Sub FinishedCountingEventHandler(ByVal Count as Integer)<br />
'FinishedCountingEventHandler<br />
TextBox2.Text=Count<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The result of the above code <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> the value entered in TextBox1, in TextBox2 with the difference being the Thread counting the value from 1 to the value entered in TextBox1.</div><div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;"><span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Multithreading</span></span><br />
<br />
<strong>Suspending a Thread</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Threads can be suspended. Suspending a thread stops it temporarily. <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Working with</span> <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the example</span> in the previous section, add a <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">new button</span> Button2 to the main form. When this button is clicked the thread is suspended. <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The code</span> for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table2"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Private</span> Sub Button2_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
<span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Handles</span> Button2.Click<br />
Thread1.Suspend()<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Resuming a Thread</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Threads can be resumed after they are suspended. With the example above, add a new button Button3 to the main form. When this button is clicked the thread is resumed from suspension. The code for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table3"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button3_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
Handles Button3.Click<br />
Thread1.<span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Resume</span>()<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Making a Thread Sleep</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Threads can be made to sleep which means that they can be suspended over a specific period of time. Sleeping a thread is achieved by passing the time (in milliseconds,1/1000 of a second) to the thread's sleep method. With the example above, add a new button Button4 to the main form. When this button is clicked the thread is stopped. The code for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
</div><table bgcolor="Linen" border="0" id="Table4"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button4_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
Handles Button4.Click<br />
Thread1.<span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Sleep</span>(100/1000)<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Stopping a Thread</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Threads can be stopped with it's abort method. With the example above, add a new button Button5 to the main form. When this button is clicked the thread is stopped. The code for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table5"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button5_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
Handles Button5.Click<br />
Thread1.Abort()<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Thread Priorities</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Threads can also be assigned priority for execution. Thread priority can be set by the thread's Priority property and assigning a value from predefined Thread Priority enumeration.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Values for Thread Priority:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><img align="middle" src="http://www.startvbdotnet.com/threading/arrow.gif" />Above Normal -> Gives thread higher priority<br />
<img align="middle" src="http://www.startvbdotnet.com/threading/arrow.gif" />Below Normal ->Gives thread <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">lower</span> priority<br />
<img align="middle" src="http://www.startvbdotnet.com/threading/arrow.gif" />Normal -> Gives thread normal priority<br />
<img align="middle" src="http://www.startvbdotnet.com/threading/arrow.gif" />Lowest -> Gives thread lowest priority<br />
<img align="middle" src="http://www.startvbdotnet.com/threading/arrow.gif" />Highest -> Gives thread highest priority</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Working with the above example, add a new button Button6 to the main form. When this button is clicked the thread is assigned Highest priority .The code for that looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table6"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button6_Click(ByVal sender as System.Object, ByVal e as System.EventArgs)_<br />
Handles Button6.Click<br />
Thread1.Priority=System.Threading.ThreadPriority.Highest<br />
'setting Highest priority for the thread<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">For <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">more information</span> on Threads please refer to <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">MSDN</span>.</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-85626452480639273262011-07-19T21:52:00.000+05:302011-07-19T21:52:28.093+05:30XML SAMPLE CODE<table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10" style="font-family: verdana; font-size: x-small;"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Extensible Markup Language (XML)</span><br />
The markup language most widely used today is undoubtedly <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Hyper Text</span> Markup Language (HTML), which is used to create <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Webpages</span>. A Markup language describes the<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">structure</span> of the document. HTML is based on Standard Generalized Markup Language (SGML), which is an <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">application</span> of SGML. Webpages designed using HTML are designed using HTML predefined tags. These days, as Internet is used widely as general <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">form of communication</span> and as transferring data over the Internet is becoming more intensive and handling that data more complex many Web Developers are turning to XML as their alternative to HTML. It's worth having a brief overview of this wonderful new Markup Language which is changing the way data is handled on the Internet.<br />
<strong>What is XML?</strong><br />
XML is a <span style="color: blue;">meta-markup language</span> which means that it lets us create our own markup language (our own tags).<br />
XML is popular for the following reasons:<br />
<br />
<ul><li style="list-style-type: circle;" type="Disk">It Allows Easy <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Data Exchange</span></li>
<li style="list-style-type: circle;">It Allows to Customize Markup languages</li>
<li style="list-style-type: circle;">Makes the data in the document Self-Describing</li>
<li style="list-style-type: circle;">Allows for Structured and Integrated data</li>
</ul>The current version of XML is 1.0 and XML is case sensitive. Let's follow this meta-markup language with an example. Save the following code with a .xml extension.<ul></ul><br />
<table bgcolor="Linen" border="0" id="Table2" title="XMl Document"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?<span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">xml version</span>="1.0" encoding="UTF-8"?><br />
<DOCUMENT><br />
<WELCOME><br />
Welcome to XML<br />
</WELCOME><br />
</DOCUMENT>></td></tr>
</tbody></table><br />
<strong>Breaking the above code for understanding:</strong><br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The document starts with the <span style="color: blue;">XML processing instruction <?xml version="1.0" encoding="UTF-8"?></span><img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />All XML processing instructions should start and end with <span style="color: blue;">?</span><img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" /><span style="color: blue;">xml version="1.0"</span> means the version of XML, which is currently 1.0<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" /> <span style="color: blue;">UTF-8</span> is a 8-bit condensed version of Unicode<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The document starts with the <DOCUMENT> element which may or may not contain other elements within it and should always end with </DOCUMENT>. All other elements should be between <DOCUMENT> and </DOCUMENT> making <DOCUMENT> the <span style="color: blue;">root element</span> for this XML page.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" /> The next element is <WELCOME> between the <DOCUMENT> and </DOCUMENT> and which contains a message, Welcome to XML.<br />
The above code when opened in a browser looks like <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/xml/images/xml1.gif" /><br />
To format the content of <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the elements</span> created in the document we use a style sheet to tell the browser the way the document should be. Alternatively, programming languages like Java and JavaScript can be used. Lets take a look how the above example looks when <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">formatted</span> using style sheet.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Applying Style to XML Document"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?xml version="1.0" encoding="UTF-8"?><br />
<?xml-stylesheet type="text/css" href="style.css"?><br />
<DOCUMENT><br />
<WELCOME><br />
Welcome to XML<br />
</WELCOME><br />
</DOCUMENT></td></tr>
</tbody></table><br />
The above code includes a new line <span style="color: blue;"><?xml-stylesheet type="text/css" href="style.css"?></span> which means that the type of style sheet being used is CSS (Cascading Style Sheet, XSL can also be used) and it's name is style.css.<br />
The file style.css looks like this: <span style="color: blue;">WELCOME{font-size:40pt;font-family:Arial; color:red}</span><br />
This file states that it's <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">customizing</span> the <WELCOME> element to display it's content in a 40 pt font with arial as it's font and it's color as red.<br />
You can customize different elements to display their content in different fonts and colors.<br />
Make sure that the file style.css is saved in the same directory where the xml file is saved. The output after adding <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the style</span> sheet looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/xml/images/xml2.gif" /><br />
XML is <span style="color: blue;">case sensitive</span>, which means <WeLCOME> and </Welcome> are treated differently. <WELCOME> should be closed with a corresponding</WELCOME> tag.</td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><a href="http://www.startvbdotnet.com/xml/default.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table><table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10" style="font-family: verdana; font-size: x-small;"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Well-Formed XML Documents</span><br />
If an XML document is not understood successfully by an XML processor then the processor cannot format the document. To handle that, XML documents are subject to two constraints: <span style="color: blue;">well formedness</span> and <span style="color: blue;">validity</span>, well formedness being the basic constraint.<br />
<strong>Well-Formed Document</strong><br />
As set by the W3C, for an XML document to be well formed it should follow the document production containing three parts in the document.<br />
<ul><li style="list-style-type: circle;">A <span style="color: blue;">prolog</span></li>
<li style="list-style-type: circle;"><span style="color: blue;"></span></li>
A <span style="color: blue;">root </span>element
<li style="list-style-type: circle;">Optional miscellaneous part</li>
</ul><br />
The <span style="color: blue;">prolog</span> should include an XML declaration such as <?xml version="1.0"?>. It can also contain a Document Type Definition (DTD).<br />
The <span style="color: blue;">root</span> element of a document can hold other elements and the document should contain exactly one root element. All other elements should be enclosed within the root element.<br />
The optional miscellaneous part can be made up of XML comments, processing instructions and whitespaces.<br />
Also the XML document should follow the syntax rules specified in the XML 1.0 recommendation set by W3C.<br />
An example of a well formed document is listed below :<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Well-Formed XML Document"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?xml version="1.0" encoding="UTF-8"?><br />
<DOCUMENT><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
BEN<br />
</FIRST_NAME><br />
<LAST_NAME><br />
HOLLIAKE<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
DVD<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
200<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
ADAM<br />
</FIRST_NAME><br />
<LAST_NAME><br />
ANDERSON<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
VCR<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
150<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
</DOCUMENT></td></tr>
</tbody></table><br />
<strong>Understanding the above document for well-formedness</strong>:<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The document starts with <span style="color: blue;">a prolog</span>, which is the xml declaration.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The First element, which is the <span style="color: blue;">root</span> element is the <DOCUMENT> element which contains all other elements.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />Next is the <CONSUMER> element inside the root element which is for two consumers.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />For each consumer, their name is stored in the <NAME> element which itself contains elements like <FIRST_NAME> and <LAST_NAME>.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The details of the purchases which the consumer made is stored in the <ORDER> element in the <PURCHASE> element which in turn contains the elements <ITEM><QUANTITY><PRICE> which records the item purchased, quantity and price which the consumer purchased.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The document ends with the closing </DOCUMENT> element.<br />
Data can be stored for as many consumers as wanted and handling such kind of data is not a problem for the XML processor.<br />
The following are the basic rules that should be kept on mind when creating a Well-Formed XML document.<br />
<br />
<ul><li style="list-style-type: circle;">The document should start with an XML declaration</li>
<li style="list-style-type: circle;">The document should be included with one or more elements</li>
<li style="list-style-type: circle;">For elements that are not empty include start and end tags</li>
<li style="list-style-type: circle;">All elements of the document should be contained within the root element</li>
<li style="list-style-type: circle;">Elements should be nested correctly</li>
</ul><br />
Documents like the one above can be extended as long as we can. XML doesn't have any problem handling such kind of documents, as long as they are wellformed.</td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><br />
<span class="Apple-style-span" style="font-family: verdana;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Valid XML Documents</span><br />
An XML document is said to be valid if it has a <span style="color: blue;">Document Type Definition (DTD)</span> or <span style="color: blue;">XML schema</span> associated with it and if the document complies with it. DTD's are all about specifying the <span style="color: blue;">structure of the document</span> and not the content of the document. And with a common DTD many XML applications can be shared. Such is the importance of a DTD.<br />
Let's take a look at the example which was created in the section Well-Formed XML documents.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?xml version="1.0" encoding="UTF-8"?><br />
<DOCUMENT><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
BEN<br />
</FIRST_NAME><br />
<LAST_NAME><br />
HOLLIAKE<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
DVD<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
200<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
ADAM<br />
</FIRST_NAME><br />
<LAST_NAME><br />
ANDERSON<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
VCR<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
150<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
</DOCUMENT></td></tr>
</tbody></table><br />
Adding a DTD to the example above makes the code look like this: <br />
<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Valid XML Document"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?xml version="1.0" encoding="UTF-8"?><br />
<!DOCTYPE DOCUMENT[<br />
<!ELEMENT DOCUMENT (CONSUMER)*><br />
<!ELEMENT CONSUMER (NAME,PURCHASE)><br />
<!ELEMENT NAME (FIRST_NAME,LAST_NAME)><br />
<!ELEMENT FIRST_NAME (#PCDATA)><br />
<!ELEMENT LAST_NAME (#PCDATA)><br />
<!ELEMENT PURCHASE (ORDER)*><br />
<!ELEMENT ORDER (ITEM,QUANTITY,PRICE)><br />
<!ELEMENT ITEM (#PCDATA)><br />
<!ELEMENT QUANTITY (#PCDATA)><br />
<!ELEMENT PRICE (#PCDATA)><br />
]><span style="font-family: Verdana; font-size: x-small;"> </span><span style="font-family: Verdana; font-size: x-small;"><?xml version="1.0" encoding="UTF-8"?><br />
<DOCUMENT><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
BEN<br />
</FIRST_NAME><br />
<LAST_NAME><br />
HOLLIAKE<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
DVD<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
200<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
<CONSUMER><br />
<NAME><br />
<FIRST_NAME><br />
ADAM<br />
</FIRST_NAME><br />
<LAST_NAME><br />
ANDERSON<br />
</LAST_NAME><br />
</NAME><br />
<PURCHASE><br />
<ORDER><br />
<ITEM><br />
VCR<br />
</ITEM><br />
<QUANTITY><br />
1<br />
</QUANTITY><br />
<PRICE><br />
150<br />
</PRICE><br />
</ORDER><br />
</PURCHASE><br />
</CONSUMER><br />
</DOCUMENT></span></td></tr>
</tbody></table><br />
<strong>Breaking the DTD for understanding:</strong><br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />Note the first line of the DTD, <span style="color: blue;"><!DOCTYPE DOCUMENT[</span>. That line is the document type declaration.<!DOCTYPE> is the syntax to declare a DTD and it should be followed by the root element, which in this example is the DOCUMENT element.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />Each element should be specified with the syntax <span style="color: blue;"><!ELEMENT>.</span> Using that declaration we can specify whether each element is a parsed character data (<span style="color: blue;">#PCDATA</span>, used for storing plain text) or can contain other elements in it.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />In the example above the CONSUMER element is written like this <!ELEMENT DOCUMENT(CONSUMER)*>.The asterik(*) here indicates that the CONSUMER element can have zero or more occurrences. In the example above, it has two occurrences.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The next element in the CONSUMER element is the NAME element which in turn contains the elements FIRST_NAME and LAST_NAME within it.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />Both the FIRST_NAME and LAST_NAME elements are declared as #PCDATA which allows them to handle plain text.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The next element in the DTD is the PURCHASE element with an asterik(*) which means that it has zero or more occurrences.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The elements within the PURCHASE element is the ORDER element which in turn include the elements ITEM, QUANTITY and PRICE.<br />
<img align="middle" src="http://www.startvbdotnet.com/xml/arrow.gif" />The elements ITEM, QUANTITY and PRICE are declared as #PCDATA as they hold only plain text.<br />
That's how a basic DTD looks like. A DTD like the one above is said to be an <span style="color: blue;">internal DTD</span>. We can also create external DTD's and it's these <span style="color: blue;">external DTD's</span> which allows us to share a common XML document within different organizations.<br />
For more information about how to insert attributes, comments, etc in DTD's please refer to the W3C specification for XML DTD's. The image below shows how the above code when opened in an browser looks like.<br />
<br />
<img src="http://www.startvbdotnet.com/xml/images/valid.gif" /><br />
<br />
</span><a href="http://www.startvbdotnet.com/xml/wellform.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-21575031588702667792011-07-19T21:48:00.001+05:302011-07-19T21:48:05.058+05:30XML WEBSERVICES<table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10" style="font-family: verdana; font-size: x-small;"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">XML Web Services</span><br />
A <span style="color: blue;">Web Service</span> (<span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">XML Web Service</span>) is a unit of code that can be activated using HTTP requests. Stated another way, a <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Service</span> is an <span style="color: blue;">application component</span> that can be<span style="color: blue;">remotely callable</span> using standard <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Internet Protocols</span> such as HTTP and XML. One more definition can be, a Web Service is a <span style="color: blue;">programmable URL</span>. Web Services came into existence to deliver distributed computing over the Internet. A major advantage of the Web services architecture is, it allows programs written in different languages on different platforms to communicate with each other in a <span style="color: blue;">standards-based</span> way. Simply said, a Web service is a <span style="color: blue;">software service</span> exposed on the Web through <span style="color: blue;">SOAP</span>, described with a <span style="color: blue;">WSDL</span> file and registered in <span style="color: blue;">UDDI</span>.<br />
<strong>Why XML Web Services?</strong><br />
Today, available technologies like <span style="color: blue;">Component Object Model</span> (COM), <span style="color: blue;">Remote Method Invocation</span> (RMI), <span style="color: blue;">Common Object Request Broker Architecture</span> (CORBA) and <span style="color: blue;">Internet Inter-ORB Protocol</span> (IIOP) are used to package application logic into reusable components and are called remotely across multiple platforms. The Internet today consists of tremendous number of heterogeneous systems and a key limitation of all the above said technologies is they are not easily interoperable with these different systems and that limits their effectiveness as a <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">standard method</span> for programming the Web. This is because of the dependencies of these technologies on a particular language or a particular Operating System or Object-model specific protocols. Web Services on the other hand are very different when compared to the said technologies as they are built upon widely accepted standards that can interoperate easily on the Internet. A key to the success of Web Services is that they use a <span style="color: blue;">text-based messaging</span> model to communicate which allows them to operate effectively on different platforms.<br />
<strong>Example of a Web Service</strong><br />
There is already an example in the "<strong>.NET Defined</strong>" VB.NET section of this Web site. Here is another example similar to that. Consider a commerce site that allows consumers to shop online. After all the shopping has been done this site calculates all the charges and the <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">shipping costs</span> based on a variety of shipping options. This site will have<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">alliances</span> with different shipping companies to ship the products to it's consumers. This site might maintain a set of database <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">tables</span> that describe the shipping options and costs for each <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">shipping company</span> based on their location and services. With this approach, whenever there is a change in shipping options or costs of an existing shipping company change or if a new shipping company forms an alliance with this commerce site and provides it's services the Webmaster of the commerce site has to restructure the database and update them to fit the changes. This approach is not only time consuming but also requires the commerce site to invest extra IT costs to maintain it's database. Now, imagine this commerce site programmatically calling a Web Service on it's site provided by the shipping company. What happens with this approach is, the commerce site can <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">calculate</span> shipping costs based on the shipping option that a consumer specifies in his request and returns the costs in real time. This approach eliminates the need for the commerce site to maintain a separate database table for shipping companies and also all the shipping costs are calculated on the shipping company site and returned to the commerce site in real time.<br />
Some other <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">applications</span> of Web Services are:<br />
<ul><li style="list-style-type: circle;"><span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Information sources</span> like stock quotes, weather forecasts, sports scores etc that could easily incorporate into applications </li>
<li style="list-style-type: circle;">Services that provide commonly needed functionality for other services. Example, user authentication, usage billing etc </li>
<li style="list-style-type: circle;">Services that integrate a business system with other partners</li>
</ul><span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The image</span> below shows Web Services Architecture.<br />
<br />
<img alt="Web Services Architecture" src="http://www.startvbdotnet.com/aspsite/webservices/images/architecture.gif" /><br />
<br />
<strong>Foundational elements of Web Services</strong><br />
The .NET Framework provides an excellent foundation for building and consuming Web Services. A key to the broad-reach capabilities of these Web Services is a foundation built on Internet Standards that does not rely on any platform, protocol or OS. This foundation provides the following capabilities to Web Services:<br />
<ul><li style="list-style-type: circle;">A standard method for describing data </li>
<li style="list-style-type: circle;">A standard message format for communicating request and response </li>
<li style="list-style-type: circle;">A standard method for describing the capabilities of Web Services </li>
<li style="list-style-type: circle;">A method to discover what Web Services are available at any site </li>
<li style="list-style-type: circle;">A method to describe what sites provide Web Services</li>
</ul><br />
</td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><a href="http://www.startvbdotnet.com/aspsite/webservices/default.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-10115057011941908632011-07-19T21:47:00.001+05:302011-07-19T21:47:05.067+05:30SIMPLE PROCEDURE TO SEND EMAILS FROM ASP.NET<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Sending Email with ASP.NET</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">One of the common functionalities used in Web development is sending email from a Web page. A common use of sending email from a Web page is allowing site visitors to fill in comments via an HTML form and send them to the Webmaster. The .NET Framework makes the task of sending email from a Web page relatively simple. In order to send an email from an ASP.NET Web page you need to use the <span style="color: blue;">SmtpMail</span> class found in the <span style="color: blue;">System.Web.Mail</span> namespace, which contains a static method <span style="color: blue;">Send</span>.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>Sending Email</u></strong> </div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The namespace that needs to be imported to send an email is the System.Web.Mail namespace. We use the <span style="color: blue;">SmtpMail</span> and <span style="color: blue;">MailMessage</span> classes of this namespace for this purpose. The MailMessage class provides properties and methods for constructing an email message. To start, open a Web Forms page, drag a Button control on to the form, switch to code view and paste the following code.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table2" title="Sending Email with ASP.NET"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Imports System.Web.Mail<br />
'namespace to be imported<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
Dim mailMessage As New MailMessage()<br />
'creating an instance of the MailMessage class<br />
mailMessage.From = "xyz@mydomain.com"<br />
'senders email address<br />
mailMessage.To = "abc@sendersemail.com"<br />
'recipient's email address<br />
mailMessage.Cc = "carboncopy@sendersemail.com"<br />
'email address of the Cc recipient<br />
mailMessage.Bcc = "blindcarboncopy@sendersemail.com"<br />
'email address of the Bcc recipient<br />
mailMessage.Subject = "Hello"<br />
'subject of the email message<br />
mailMessage.BodyFormat = MailFormat.Text<br />
'message text format. Can be text or html<br />
mailMessage.Body = "This tutorial is sending email with an ASP.NET app."<br />
'message body<br />
mailMessage.Priority = MailPriority.Normal<br />
'email priority. Can be low, normal or high<br />
SmtpMail.SmtpServer = "mail.yourserver.com"<br />
'mail server used to send this email. modify this line based on your mail server<br />
SmtpMail.Send(mailMessage)<br />
'using the static method "Send" of the SmtpMail class to send the mail<br />
Response.Write("Mail sent")<br />
'message stating the mail is sent<br />
End Sub</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The above code sends an email when the button is clicked. That's fine for the purpose of learning but when you have a feedback form on your Web site with textboxes, labels, etc, you need to slightly modify the above code. The following is the complete, functional code for an ASP.NET page that sends an email to the Webmaster of the site.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To start, drag seven labels, six textboxes and two buttons on to the Web forms page designer. The user interface for this sample can be found at the bottom of this page. The modified code looks as follows:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table3" title="Sending Email using ASP.NET"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Imports System.Web.Mail<br />
<br />
Private Sub SendMail_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles SendMail.Click<br />
Dim mailMessage As New MailMessage()<br />
mailMessage.From = TextBox1.Text<br />
mailMessage.To = "admin@startvbdotnet.com"<br />
'you also can set this to TextBox2.Text<br />
mailMessage.Cc = TextBox3.Text<br />
mailMessage.Bcc = TextBox4.Text<br />
mailMessage.Subject = TextBox5.Text<br />
mailMessage.BodyFormat = MailFormat.Text<br />
mailMessage.Body = TextBox6.Text<br />
'textbox6 TextMode property is set to MultiLine<br />
mailMessage.Priority = MailPriority.Normal<br />
SmtpMail.SmtpServer = "mail.yourserver.com"<br />
'mail server used to send this email. modify this line based on your mail server<br />
SmtpMail.Send(mailMessage)<br />
Label6.Text = "Your mail was sent"<br />
'message stating the mail is sent<br />
End Sub<br />
<br />
Private Sub Reset_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Reset.Click<br />
TextBox1.Text = " "<br />
TextBox2.Text = " "<br />
TextBox3.Text = " "<br />
TextBox4.Text = " "<br />
TextBox5.Text = " "<br />
TextBox6.Text = " "<br />
'resetting all the value to default i.e null<br />
End Sub</td></tr>
</tbody></table><br />
<div align="right" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><a class="mandy" href="http://www.startvbdotnet.com/aspsite/extras/sendmail1.aspx" style="color: blue; font-size: xx-small; font-style: normal; font-weight: normal; text-decoration: none;">Next>>Sending an HTML email with attachment</a></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>Live Code Demo</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><hr color="teal" size="2" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;" /><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label8"><b><span style="color: red;">Sending Email with ASP.NET</span></b></span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label1"><b><span style="color: red;">Label6</span></b></span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label9">Do not enter any values and click the button. The TextBoxes and Button below are provided to give you an idea about the user interface for the sample mentioned above.</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label2">From</span> <input id="TextBox1" name="TextBox1" type="text" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label3">To</span> <input id="TextBox2" name="TextBox2" type="text" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label4">Cc</span> <input id="TextBox3" name="TextBox3" type="text" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label5">Bcc</span> <input id="TextBox4" name="TextBox4" type="text" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label6">Subject</span> <input id="TextBox5" name="TextBox5" type="text" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span id="Label7">Message</span> </div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><textarea id="TextBox6" name="TextBox6"></textarea></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><input id="Button1" name="Button1" type="submit" value="SendMail" /> <input id="Button2" name="Button2" type="submit" value="Reset" /></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-44291856092286521702011-07-19T21:45:00.001+05:302011-07-19T21:45:28.870+05:30asp.net deployment procedure with screen shots<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Deploying ASP.NET <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Applications</span></span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">After creating and testing your ASP.NET application, the next step is to deploy the application. Deployment is the process of distributing the finished application to be<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">installed on</span> other computer. We can use the built-in deployment feature that comes with <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual studio</span> .NET to create a Windows Installer file - a .msi file for the purpose of deploying applications.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Deploying Applications</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To start, open the Web Application project you want to deploy. Say, you have a project named "Deploy" with ten Web pages in it. Select <span style="color: blue;">File->Add Project-><span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">New Project</span></span> from the main menu. From the Project Types pane select <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Setup</span> and Deployment Projects and from the Templates pane select Web Setup Project. Type WebSetup1 for name and specify a location in the location box and click OK. The New project dialogue box looks like <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/deploy1.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">When you click OK on the above dialogue box, the project is added to the solution explorer window and also a File System Editor window appears as shown in the imagebelow.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/deploy2.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The File System Editor window has two panes. Select Web Application Folder in the left pane in this window. From the Action menu (on main menu), select Project Output to open the Add Project Output Group <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dialog box</span>. It looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/deploy3.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Make sure that Deploy is selected in the Project drop-down list and select Primary Output from the list and click OK. You also can select other options depending upon the users of your application.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Now, in the File System Editor window, select Web Application Folder and open it's Properties window. The Properties window for the Web Application Folder looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/prop.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">In this window, set the <span style="color: blue;">VirtualDirectory</span> <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> any name, say FinishedApp. FinshedApp will be the folder on the target machine where you will <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">install</span> this application. The name you set for this VirtualDirectory property should not already <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">exist</span> on the target machine. If it does, the contents in the folder will be overwritten. Also, set the<span style="color: blue;">DefaultDocument</span> property to any page in the application. The page you set in this property will be the default page for the Web Application. Once you are finished with the Properties window build the solution by selecting <span style="color: blue;">Build->Build WebSetup1</span> from the main menu. After the solution is built sucessfully, a WebSetup1.msi file is created in the Debug directory of the Web Setup project. The default path to the debug directory is as follows:<br />
C:\<span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Documents and Settings</span>\Administrator\<span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">My Documents</span>\Visual Studio Projects\deploy\WebSetup1\Debug.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>Installing the Application</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">You can copy the WebSetup1.msi file to the target machine and double-click to install the Web Application. When you double-click the setup file the dialog that opens looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/deploy4.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Click next and you will be taken to the next dialog which looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/deploy5.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">You can use the default Virtual Directory specified by the installer or you can specify one. Click next to install the application.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Deploying ASP.NET <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Applications</span></span><br />
<strong><u>Using the Copy Project Option</u></strong><br />
Another option to deploy your ASP.NET application developed using <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual Studio</span> .NET is to use the copy project option. This option is very helpful if you decide to host your ASP.NET application with a <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">hosting provider</span>. The hosting provider allocates some space for you on his <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> and you are required to deploy your application/Website. To host your ASP.NET application on a hosting provider's server you need to follow these steps.<br />
The first thing you need to do before deploying any ASP.NET Web application is to change the Active Solution <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Configuration</span> from Debug to Release as shown below. This allows the compiler to optimize the code, remove debugging related symbols from code and makes the code run much faster. To open the Configuration Manager, right-click on the Web project in the Solution Explorer window and select <span style="color: blue;">Project->Properties</span>. The properties dialog box looks like <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/cop.gif" /><br />
On this dialog, click on Configuration Properties towards the left and click the "<span style="color: blue;">Configuration Manager</span>" button towards the right side. The Configuration Manager dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/copy.gif" /><br />
On this diaolg select Release from the drop-down list found at top-left.<br />
To copy your Web project onto the target server, select <span style="color: blue;">Project->Copy Project</span> from the main menu. Selecting this option will display a dialog box as shown in the imagebelow.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/copy1.gif" /><br />
The Copy Project dialog provides the following options.<br />
<u>Destination Project Folder</u><br />
Used to specify the location to which you want to copy the project. The location can be on the same machine or on a remote server.<br />
<u>Web access method</u><br />
The Web access method option determines the access method that is used to copy the Web project to the destination folder. There two types of Web access methods:<br />
<span style="color: blue;">File share</span>: Allows to directly access the <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">project files</span> on the Web server through a file share.<br />
<span style="color: blue;">FrontPage</span>: Specifies that you want to use the HTTP-based FrontPage Server Extensions to transfer your project files to the server.<br />
<u>Copy</u><br />
The Copy option provides three types which are as follows:<br />
<br />
<span style="color: blue;">Only files needed to run this application</span>: Copies built output files (DLLs and references from the bin folder) and any content files (.aspx, .asmx). It is recommended to deploy the application using this default option.<br />
<span style="color: blue;">All project files</span>: Copies built outputs (DLLs and references from the bin folder) and all files that are in the project. This includes the project file and source files.<br />
<span style="color: blue;">All Files in the source project folder</span>: Copies all project files and any other files that are in the project folder (or subfolder) being transferred to the destination folder.<br />
To copy the Web Application, select your options based on the application type from the above dialog box and click OK. This will <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">result in</span> the ASP.NET Web application being deployed on the target server as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/copy2.gif" /><br />
<br />
Some <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">hosting providers</span> require you to enable <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">FrontPage</span> Extensions on <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">your account</span> which can be done via <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the control</span> panel. <br />
<br />
<br />
<span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
At times there might be situations where you need to host your ASP.NET applications from your corporate server or your own machine. A scenario where this might be needed is when you have large amounts of data on your Web site and you are concerned about the big bucks your hosting provider will charge you for disk space, bandwidth and database maintenance. Internet Information Services 6 (IIS 6) can be used for hosting your Web site. IIS 6 is a powerful platform for hosting Web sites. Creating and configuring Web sites and Virtual Directories using IIS are as easy as 1-2-3. In this section we will see how we can create a Website using IIS 6.0 and configure it.<br />
<strong><u>Creating a Website</u></strong><br />
The first thing you need before creating a Web site using IIS 6.0 is a unique IP address that identifies your computer on the network. This address takes the form of a string of four numbers separated by periods (.). For your site to be up and running you also need a connection to the Internet. You need to lease a line from an Internet Service Provider (ISP) or a telephone company. When you open IIS Manager in Administrative Tools and select Web sites in the console tree, and right-click on default Web site and open it's properties you will find that the IP address for the default Web site is <span style="color: blue;">All Unassigned</span>. This means any IP address not specifically assigned to another Web site on the machine opens the Default Web site instead. A typical use for the Default Web site is to display general information like a corporate logo and contact information.<br />
Let's assume that we will use the IP address 169.16.13.211 for creating Startvbdotnet.com and C:\Startvbdotnet is the folder where the homepage for this site is located. To create the Startvbdotnet Web site, right-click on the Web Sites node and select <span style="color: blue;">New->Web Site</span> to start the Web Site Creation Wizard as shown in the images below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis1.gif" /><br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis2.gif" /><br />
<br />
Click Next on the Web site creation wizard dialog and type a description for the site as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis3.gif" /><br />
After typing the description click next to open the dialog where you need to specify the IP address and port number for your Web site. As mentioned above, type 169.16.13.211 in the IP address textbox and 80 in the TCP port textbox. The dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis4.gif" /><br />
Click Next and specify C:\Startvbdotnet as the home directory for the site. Notice the checkbox that says "<span style="color: blue;">Allow anonymous access to this Web site</span>". By default, it is<span style="color: black;">checked</span>, which means the Web site which we are creating is accessible by general public on the Internet. If you are creating an intranet site which will be used only by authenticated users then you need to uncheck this checkbox. The image below displays that.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis5.gif" /><br />
Click Next to get to the Web Site Access Permissions dialog. By default, the Read and Run scripts checkboxes are checked which means that your Web site will run scripts such as ASP and is only a read-only Web site where users can't make changes to it. If you want users to download content from your Web site, modify it and upload the modified content then you need to check the Write checkbox. The image below displays that.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis6.gif" /><br />
Click Next and then Finish to create the new Web site. The image below displays the new Web site which we created in IIS.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/iis7.gif" /><br />
<br />
<br />
<br />
<span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
<strong><u>Virtual Directories</u></strong><br />
A <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">virtual</span> directory is a friendly name, or alias, either for a <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">physical</span> directory on your server hard drive that does not reside in <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the home</span> directory, or for the home directory on<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">another computer</span>. Because an alias is usually shorter in length than the path of the physical directory, it is more convenient for users to type. The use of aliases is also secure because users do not know where your files are physically located on the server and therefore cannot use that information to modify your files. Aliases also make it easier for you to move directories in your site. Rather than changing the URL for the directory, you <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">change the</span> mapping between the alias and the physical location of the directory.<br />
You must create virtual <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">directories</span> if your Web site contains files that are located in a directory other than the home directory, or on other computer's hard drive. To use a directory on another computer, you must specify the directory's Universal Naming Convention (UNC) name, and provide a user name and password for access rights.<br />
Also, if you want to publish content from any directory not contained within your home directory, you must create a virtual directory.<br />
<strong><u>Creating a Virtual Directory</u></strong><br />
Let's say Startvbdotnet keeps their <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">contacts</span> in a folder called C:\StartvbdotnetContacts on their <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">web server</span> and would like users to be able to use the URL http://169.16.13.211/contacts when they need to access contact information. To do this we need to create a virtual directory that associates the /contacts portion of the URL, the alias for the virtual directory, with the physical directory C:\StartvbdotnetContacts where these documents are actually located.<br />
To create a new virtual directory, right-click on Startvbdotnet Web site and select <span style="color: blue;">New->Virtual Directory</span> to start the Virtual Directory Creation Wizard. The images below display that.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir.gif" /><br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir1.gif" /><br />
Click Next and type the alias for the virtual directory, say, contacts as shown in <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir2.gif" /><br />
Click Next and specify the physical folder on the local server to map to this alias. The physical folder on the server is C:\StartvbdotnetContacts. The image below shows that.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir3.gif" /><br />
Click Next and specify permissions for this Virtual Directory as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir4.gif" /><br />
Click Next and finish the virtual directory creation wizard. The images below <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> the result. You can<br />
see the new virtual directory, contacts, with a gear symbol in the IIS wizard.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir5.gif" /><br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/vdir6.gif" /><br />
When users type http://169.16.13.211/contacts in their browser they will be shown a page with contact information for Startvbdotnet Web site. What actually happens is the content comes from a directory located outside the <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web site directory</span> but the <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">address bar</span> in the browser shows that the directory is part of the Web site.<br />
<div><br />
</div><div><br />
</div><div><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Configuring Websites in Windows .NET Server/IIS 6.0</span><br />
<strong><u>Controlling Access to Web Site</u></strong><br />
Now that we created a Web site and a virtual directory we will look at some of the administrative tasks that are required to control the Web site. The <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">settings</span> in this article <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">apply</span> only to Startvbdotnet Web site which we created in IIS and not to all Web sites under IIS. The procedure is same if you want to set the properties for all Web sites. If you want to set the following properties for all Web sites under IIS then you need to right-click on Web Sites in IIS and select properties from the menu and follow the steps which are mentioned in this article.<br />
When you right-click on the Startvbdotnet Web site in IIS and select properties, the properties window that is displayed looks like <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/website.gif" /><br />
As you might notice from the above image the <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dialog box</span> <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> information as tabs, all of which are discussed below.<br />
<strong><u>Web Site Information (Web Site Tab)</u></strong><br />
By defaut, the Web site tab is displayed when you right-click and select properties for any of the Web sites in IIS. The information under Web site tab is discussed below.<br />
<u>Web site identification</u><br />
The Web site identification part displays general information like the description of the Website, IP address and the <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">port number</span> it is using.<br />
<u>Connections</u><br />
<u><em>Connection timeout</em></u><br />
Connection timeouts are used to reduce the amount of memory resources that are consumed by idle connections. Time-out settings also allow you to specify how long server resources are allocated to specific tasks or clients. The default connection timeout setting set by IIS is 120 seconds which means that when a visitor accesses your site and has no activity on your site for 2 mins his connection will be timed out.<br />
<em><u>Enable HTTP Keep-Alives</u></em><br />
Most Web browsers request that the server keep the client connection open while the server sends multiple elements like .htm files and .gif or .jpeg files to the client. Keeping the client connection open in this way is referred to as an HTTP Keep-Alive. Keep-Alive is an HTTP specification that improves server performance. HTTP Keep-Alives are enabled by default in IIS.<br />
<u><em>Enable Logging</em></u><br />
The logging feature allows you to collect information about user activity on your site. Information such as who has visited your site, what the visitor viewed, and when the information was last viewed, etc, can be collected with this feature. The default logging format is the W3C Extended Log File Format. You can also <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">change the</span> logging format based on your preferences. To change the logging format you need to make a selection from the active log format drop-down list.<br />
To set how often you want your new log file to be created click the properties button to open the Logging Properties dialog as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/logging.gif" /><br />
The Logging Properties dialog shown in the image above allows you to record log information on an hourly basis or daily or weekly or monthly basis or based on file size. If you select the Weekly option then a log file is created once every week. You can also change the location of the log file on your server in the Logging Properties dialog.<br />
<strong><u>Performance (Performance Tab)</u></strong><br />
The Performance tab let's you control the performance of your Web site, like, setting the amount of bandwidth per second and allowing the number of simultaneous connections accessing the Web site at a given time. The dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/performancetab.gif" /><br />
<u>Bandwidth throttling</u><br />
If the network or Internet connection used by our <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> is also used by other services such as e-mail, then we might want to limit the bandwidth used by our Web server so that it is available for those other services. If our Web server hosts more than one Web site, you can individually throttle the bandwidth used by each site. By default, bandwidth throttling is disabled. If you want to enable it, check the checkbox and enter the bandwidth you want in kbps.<br />
<u>Web site connections</u><br />
Connection limits restrict the number of simultaneous client connections to our Web site. Limiting connections not only conserves memory but also protects against malicious attacks designed to overload our Web server with thousands of client requests. By default, unlimited connections are allowed. If you want to limit the number of connections then you need to select the "<span style="color: blue;">Connections limited to</span>" <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">radio button</span> and enter the number of connections you want to access your site at a given time.<br />
<strong><u>Home Directory</u></strong><br />
<span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The Home</span> Directory tab in the properties dialog for the Web site is displayed below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/homedir.gif" /><br />
As you can see from the image above, the content for this Web site comes from the local path on the server. If you want the content for this Web site to come from another computer located on a network you need to select the radio button which says "<span style="color: blue;"><span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">A share</span> located on another computer</span>" and enter the computer on the network.<br />
<u>Redirecting</u><br />
Sometimes when your site is experiencing technical difficulties or if you are doing maintenance you need to redirect visitors to another site or to another page informing what is going on. IIS lets you redirect a Web site to a different file or folder on the same machine or to an URL on the Internet. To <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">configure</span> redirection you need to select the "<span style="color: blue;">A redirection to a URL</span>" radio button under the home directory and choose the redirection option you want to use and specify the path as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/redirect.gif" /><br />
<br />
<br />
<br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px;"></span><br />
<table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;"><span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Configuring</span> Websites in Windows .NET Server/IIS 6.0</span><br />
<strong><u><span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Controlling</span> Access to Web Site</u></strong><br />
<strong><u>Custom Errors</u></strong><br />
You can <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">configure</span> Internet Information Services (IIS) to send default HTTP 1.1 <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">error messages</span> or custom error messages. Custom error messages can be mapped to a file name or to a URL. <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The image</span> below <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> Custom Errors dialog.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/customerrors.gif" /><br />
You can also configure your own custom error messages. To do that, click the HTTP error that you want to change, and then click Edit to open the Edit Custom Error Properties dialog as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/customerrors1.gif" /><br />
To configure your own custom error, in the Message Type list box, click either File to <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">return</span> a custom error file or URL to direct the request to a custom error URL on the <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">local machine</span>.<br />
Note that you cannot customize the following errors: 400, 403.9, 411, 414, 500, 500.11, 500.14, 500.15, 501, 503, and 505.<br />
<strong><u>Documents (Documents Tab)</u></strong><br />
The Documents dialog is displayed in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/documents.gif" /><br />
<u>Enable default content page</u><br />
The enable default content page lets you designate the default page for your Web site. You can specify names such as index.<span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">aspx</span>, default.aspx, login.aspx, etc. To add a new type you need to click the Add button and add the file which you want to be displayed to your users when they first enter your site.<br />
<u>Enable document footer</u><br />
The enable document footer option lets you add a HTML formatted footer to each and every document on your site. By default, it is disabled.<br />
<strong><u>HTTP Headers (HTTP Headers Tab)</u></strong><br />
The HTTP Headers dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/httpheaders1.gif" /><br />
<u>Enable content expiration</u><br />
By default, this is disabled. If you enable content expiration and set a date then the content on your site expires after the set date. If you notice from the above image, the content for Startvbdotnet is set to expire on Tuesday, Februrary 23, 2010 at 12 AM.<br />
<u>Content rating</u><br />
Content rating allows to classify your site from four predefined values which are Violence, Sex, Nudity and Language. By default, content rating is disabled. To enable content rating, click the edit Ratings button to open the Content Ratings dialog as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/ratings.gif" /><br />
<span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">In the Content</span> Ratings dialog, enable the checkbox which says Enable ratings for this content and select a category under which your site falls and drag the track bar to indicate the level of the rating. You can also include an email address for contact and set an expiration date for this content as shown in the image above.<br />
<strong><u>Directory Security (Directory Security Tab)</u></strong><br />
The Directory Security dialog looks like the image below.<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/dirsecuritytab.gif" /><br />
<u>Authentication and access control</u><br />
Authentication and access control allows us to setup access to our site using Authentication Methods. If you click the Edit button the Authentication Methods dialog that is displayed looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/auth1.gif" /><br />
By default, the enable anonymous access checkbox is checked which means that your site will be accessed by everyone using the IUSR_COMPUTERNAME (default IIS account). If you want to enforce restrictions and want users to be authenticated before they access your site you need to set it in this dialog.<br />
<u>IP address and domain name restrictions</u><br />
The IP address and domain name restrictions allows us to grant or deny access to users based on their IP address. If you click the Edit button the IP Address and Domain Name Restrictions dialog that is displayed looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/grantdeny.gif" /><br />
By default, all computers will be granted access. If you want to deny/block a particular user or a group of computers then you need to select the Denied access <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">radio button</span>and click the Add button to open the Grant Access dialog as shown in the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/grantdeny1.gif" /><br />
<br />
If you want to block a single computer enter the IP address of the machine and click OK. If you want to deny a group of computers then select the Group of computers radio button and enter the network address and Subnet mask number to deny that group. If you want to deny users based on a domain name <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: #009900; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the select</span> the Domain name option and enter the domain name.<br />
<strong><u>Starting and Stopping Web site</u></strong><br />
You can start and stop a Web site in IIS manager. To start a Web site, select the Web site, right-click on it and from the menu select start/stop as shown below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/iis/startstop.gif" /> </td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><a href="http://www.startvbdotnet.com/aspsite/extras/deploy4.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-87702295504709654702011-07-19T21:38:00.000+05:302011-07-19T21:38:02.431+05:30WEB USER CONTROLS IN ASP.NET<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Web User Controls</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">User <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span> are those controls which we create and add to Web pages. Creating a user <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">control for</span> Web Application is very similar to creating a user control in <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Windows Application</span>. User controls in ASP.NET are based on the <span style="color: blue;">System.Web.UI.UserControl</span> class and the class hierarchy is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
TemplateControl<br />
UserControl</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Creating User Controls</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To create a user control select <span style="color: blue;">Project->Add Web User Control</span> from the main menu to add it to an existing project. It looks like <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/web.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">You can also select <span style="color: blue;">File->New->Project-><span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual Basic Projects</span>->Web Control Library</span> to create a new user control. The dialog box looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/web2.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">By default, user control files have an "ascx" extension. The following user control sample which we will create is a simple control that contains hyperlinks. While browsing the Internet you might notice some Web sites that have lots of links towards the bottom of the page and those links are found on each and every Web page of that site. For example, if you hit amazon.com you will notice 17-20 links towards the bottom of the page and on each and every page of amazon.com you will find those links. Creating such kind of links manually on each and every page of the site can be a pain as you need to make sure that each and every link works and none is broken. With a ASP.NET user control you can create just one control of that kind and add that to each and every page without creating the links manually on each and every page.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To start, add a user control file to the project selecting from <span style="color: blue;">Project->Add Web User Control </span>and drag five <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">hyperlink</span> server controls from the toolbox on to the user control file (WebUserControl1.ascx). We are designing the user interface for the user control at this time. Select each hyperlink control and set it's NavigateUrl to a site of your<span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">choice</span> and Target <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> "_parent". The HTML view of this file looks like this:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table2" title="User Control Code Sample"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><%@ Control Language="vb" AutoEventWireup="false" Codebehind="WebUserControl1.ascx.vb"_<br />
Inherits="asp.WebUserControl1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %><br />
<asp:HyperLink id="HyperLink1" runat="server" Target="_parent"_<br />
NavigateUrl="http://www.startvbdotnet.com">Startvbdotnet</asp:HyperLink><br />
&ltasp:HyperLink id="HyperLink2" runat="server" Target="_parent"_<br />
NavigateUrl="http://www.microsoft.com">Microsoft</asp:HyperLink> <br />
<asp:HyperLink id="HyperLink3" runat="server" Target="_parent"_<br />
NavigateUrl="http://www.msdn.microsoft.com">MSDN</asp:HyperLink> <br />
<asp:HyperLink id="HyperLink4" runat="server" Target="_parent"_<br />
NavigateUrl="http://www.msdn.microsoft.com/vbasic">Visual Basic Home</asp:HyperLink> <br />
<asp:HyperLink id="HyperLink5" runat="server" Target="_parent"_<br />
NavigateUrl="http://www.msdn.microsoft.com/net">.NET Home</asp:HyperLink></td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Notice the code above, the code doesn't have any HTML elements like, <HEAD>, <BODY>, etc. By default Web user controls cannot contain the HTML tags that inlcude the <HTML>, <HEAD>, <BODY> and <FORM> tags.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Once you are finished designing the user interface it's now time to use <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the control</span>. To use the newly created user control, in the <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> Designer, open the Web Formspage you want to add the control to, and make sure that the page is in Design View. Select the user control's file in Solution Explorer, and drag it onto the page. That add's the user control to the form. Note that because the Web User Control has not been compiled, VB doesn't know what it will look like at run time, so it gives it a <span style="color: blue;">generic apperance</span> at design time. The image below displays that.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/extras/images/webcontrol.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Adding a User Control Manually</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">We also can add a user control to a Web Forms page in HTML view. The procedure above demonstrated creation of a user control and adding it to a Web form by drag and drop feature. The following two steps will show you how to add it in code.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><u>Register the user control</u></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The first step in the process is to register the user control which we created. To do so, open the Web forms page to which you want to add the user control. Go to design view and switch to HTML view and at the top of the page, before the <HTML> tag, you need to add a directive that registers this control so that it will be recognized when the page is processed. You should use the directive to associate a name and a namespace with the Web user control by specifying TagPrefix, TagName, and Src location values. The line of code for that looks like this:<br />
<br />
<b><%@ Register TagPrefix="uc1" TagName="links" Src="WebUserControl1.ascx" %> </b><br />
<br />
The values for each attribute mentioned on the above line of code are as follows:<br />
<br />
TagPrefix: The TagPrefix determines a unique namespace for the user control. If <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">multiple</span> user controls on the page happen to have the same name, they can be differentiated from each other using this<br />
TagName: The TagName is the name for the user control. This name is used along with <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the tag</span> prefix to uniquely identify the namespace for the control<br />
Src: Src attribute is the virtual path to the user control</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><u>Adding the User Control</u></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The next step is to add the user control to the page. To add the user control to a page use the following line of code:<br />
<br />
<b><uc1:links id="links1" runat="server"/></b><br />
<br />
The above line of code should be placed in the <BODY> region of the page and within the <FORM> element. You can place the line code where you want the control to appear on the page. When you run the application the Web User control will be displayed on the page.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Web User Conrols</span><br />
We also can convert a normal Web forms page to a user control with minor alterations. Web user controls are very similar to Web Forms pages and they are created using the same techniques. When you convert a Web Forms page to a Web user control, you are creating a reusable UI component that can be used on other Web Forms pages.<br />
<strong>Converting a Web Forms Page to a User Control</strong><br />
Select the Web Forms page which you want to convert to a user control, go to design view. Add some controls to the form if you do not have any. Say, you added two labels and two textboxes to create a log-in/password style boxes. To convert a Web page to a user control you need to modify the HTML code of the ASPX file. To do that, switch to HTML view and remove the <HEAD>, <BODY>, <HTML and <FORM> tags. By default, user controls are designed not to contain any HTML tags. Also, you need to change the @Page directive to @ Control directive. After removing the HTML tags the page should look like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code Sample"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><%@ Control Language="vb" AutoEventWireup="false" Codebehind="WebForm7.aspx.vb"_<br />
Inherits="asp.WebForm7"%><br />
<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 179px; POSITION: absolute;_<br />
TOP: 112px" runat="server"></asp:TextBox><br />
<asp:TextBox id="TextBox2" style="Z-INDEX: 102; LEFT: 181px; POSITION: absolute;_<br />
TOP: 152px" runat="server"></asp:TextBox><br />
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 84px; POSITION: absolute; TOP:_<br />
114px" runat="server">Username<asp:Label><br />
<asp:Label id="Label2" style="Z-INDEX: 104; LEFT: 89px; POSITION: absolute; TOP:_<br />
152px" runat="server">Password</asp:Label></td></tr>
</tbody></table><br />
After you are done with the code, save and close it.<br />
<u>Changing the extension of the file</u><br />
This step involves changing the extension of the file from "aspx" to "ascx". The Web forms page which we want to convert to a user control has an "aspx" entension. Say, the Web forms page file is WebForm7.aspx. You need to change the extension of WebForm7.aspx to WebForm7.ascx. To do that, open Solution Explorer window, select WebForm7.aspx, right-click on it and select rename from the menu. Change the extension of WebForm7.aspx tp WebForm7.ascx. Now, your web page is ready to be used as a user control.<br />
<u>Using the user control</u><br />
You can use the user control which you created above in two ways. First method is to drag the user control file and drop it on a Web forms page in which you want to use the newly created control. The second method is a bit different and involves a two step process. The following two steps explains that.<br />
<u>Register the user control</u><br />
The first step in the process is to register the user control which we created. To do so, open the Web forms page to which you want to add the user control. Go to design view and switch to HTML view and at the top of the page, before the <HTML> tag, you need to add a directive that registers this control so that it will be recognized when the page is processed. You should use the directive to associate a name and a namespace with the Web user control by specifying TagPrefix, TagName, and Src location values. The line of code for that looks like this:<br />
<br />
<b><%@ Register TagPrefix="login" TagName="logss" Src="WebForm7.ascx" %> </b><br />
<br />
<u>Adding the User Control</u><br />
The next step is to add the user control to the page. To add the user control to a page use the following line of code:<br />
<br />
<b><uc1:login id="logs" runat="server"/></b><br />
<br />
The above line of code should be placed in the <BODY> region of the page and within the <FORM> element. You can place the line code where you want the control to appear on the page. When you run the application the Web User control will be displayed on the page.<br />
<br />
<br />
<div><br />
</div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-2257792033202320372011-07-19T21:35:00.000+05:302011-07-19T21:35:40.765+05:30ADO.NET CONCEPTS<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">ADO .NET</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Most <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">applications</span> need data access at one point of time making it a crucial component when working with applications. Data access is making the <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">application</span> <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">interact</span> with a database, where all the data is stored. Different applications have different requirements for database access. ASP.NET uses <span style="color: blue;">ADO .NET</span> (Active X Data Object) as it's data access and <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">manipulation</span> protocol which also enables us to work with data on the Internet. </div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>ADO.NET Data Architecture</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Data Access in ADO.NET relies on two components: <span style="color: blue;">DataSet</span> and <span style="color: blue;">Data Provider</span>.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>DataSet</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The dataset is a <span style="color: blue;">disconnected</span>, <span style="color: blue;">in-memory</span> representation of data. It can be considered as a <span style="color: blue;">local copy</span> of the relevant portions of the database. The DataSet is persisted in memory and the data in it can be manipulated and updated independent of the database. When the use of this DataSet is finished, changes can be made back to the central database for updating. The data in DataSet can be loaded from any valid data source like <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Microsoft SQL server database</span>, an Oracle database or from a Microsoft<span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Access database</span>.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Data Provider</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The Data Provider is responsible for <span style="color: blue;">providing</span> and <span style="color: blue;">maintaining</span> the connection to the database. A DataProvider is a set of related components that work together to provide data in an efficient and performance driven manner. The .NET Framework currently comes with two DataProviders: the <span style="color: blue;">SQL Data Provider</span> which is designed only to work with Microsoft's SQL Server 7.0 or later and the <span style="color: blue;">OleDb DataProvider</span> which allows us to connect to other types of databases like Access and Oracle. Each DataProvider consists of the following component classes:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The <span style="color: blue;">Connection </span>object which provides a connection to the database<br />
The <span style="color: blue;">Command </span>object which is used to execute a command<br />
The <span style="color: blue;">DataReader</span> object which provides a forward-only, read only, connected recordset<br />
The <span style="color: blue;">DataAdapter</span> object which populates a disconnected DataSet with data and performs update</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
<u>Data access with ADO.NET can be summarized as follows:</u></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">A connection object establishes the connection for the application with the database. The command object provides direct execution of the command to the database. If the command returns more than a single value, the command object returns a DataReader to provide the data. Alternatively, the DataAdapter can be used to fill the Dataset object. The database can be updated using the command object or the DataAdapter.<br />
<br />
<img alt="ADO .NET Data Architecture" src="http://www.startvbdotnet.com/aspsite/ado/images/adoarc.gif" /></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>Component classes that make up the Data Providers</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>The Connection Object</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The Connection object creates the connection to the database. Microsoft <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual Studio</span> .NET provides two types of Connection classes: the <span style="color: blue;">SqlConnection</span> object, which is designed specifically to connect to Microsoft SQL Server 7.0 or later, and the <span style="color: blue;">OleDbConnection</span> object, which can provide connections to a wide range of database types like<span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Microsoft Access</span> and Oracle. The Connection object contains all of the information required to open a connection to the database.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>The Command Object</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The Command object is represented by two corresponding classes: <span style="color: blue;">SqlCommand</span> and <span style="color: blue;">OleDbCommand</span>. Command objects are used to execute commands to a database across a data connection. The Command objects can be used to execute stored procedures on the database, <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">SQL commands</span>, or <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">return</span> <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">complete</span> <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">tables</span> directly. Command objects provide three methods that are used to execute commands on the database:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span style="color: blue;">ExecuteNonQuery</span>: Executes commands that have no return values such as INSERT, UPDATE or DELETE<br />
<span style="color: blue;">ExecuteScalar</span>: Returns a single value from a database query<br />
<span style="color: blue;">ExecuteReader</span>: Returns a result set by way of a DataReader object</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
<strong>The DataReader Object</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The DataReader object provides a <span style="color: blue;">forward-only</span>, <span style="color: blue;">read-only</span>, <span style="color: blue;">connected stream</span> recordset from a database. Unlike other components of the Data Provider, DataReader objects cannot be directly <span style="color: blue;">instantiated</span>. Rather, the DataReader is returned as the result of the Command object's <span style="color: blue;">ExecuteReader</span> method. The SqlCommand.ExecuteReader method returns a SqlDataReader object, and the OleDbCommand.ExecuteReader method returns an OleDbDataReader object. The DataReader can provide rows of data directly toapplication logic when you do not need to keep the data cached in memory. Because only one row is in memory at a time, the DataReader provides the lowest overhead in terms of system performance but requires the exclusive use of an open Connection object for the lifetime of the DataReader.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>The DataAdapter Object</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">The DataAdapter is the class at the core of ADO .NET's disconnected data access. It is essentially the <span style="color: blue;">middleman</span> facilitating all communication between the database and a DataSet. The DataAdapter is used either to fill a DataTable or DataSet with data from the database with it's <span style="color: blue;">Fill</span> method. After the memory-resident data has been manipulated, the DataAdapter can commit the changes to the database by calling the Update method. The DataAdapter provides four properties that represent database commands:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">SelectCommand<br />
InsertCommand<br />
DeleteCommand<br />
UpdateCommand</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">When the Update method is called, changes in the DataSet are copied back to the database and the appropriate InsertCommand, DeleteCommand, or UpdateCommand is executed. </div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><br />
</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">System.Data.OleDb</span><br />
The System.Data.OleDb namespace provides <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">classes</span> that are required to connect to OLE DB <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">data sources</span>. Let's take a look at the classes provided by System.Data.OleDb.<br />
<strong>OleDbConnection class</strong><br />
The System.Data.OleDb.OleDbConnection class represents a connection to OleDb data <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">source</span>. <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Applications</span> that need to connect to a OleDb data source should use this class.<br />
<strong>OleDbCommand class</strong><br />
The System.Data.OleDb.OleDbCommand class represents a SQL statement or stored <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">procedure</span> that is executed in a database by an OLE DB provider. The OleDbCommand class can be used to create <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the Select</span>, Insert, Update and Delete commands that need to be sent to the data source.<br />
<strong>OleDbDataReader</strong><br />
The System.Data.OleDb.OleDbDataReader class creates a data reader. It is used to read a row of data from the database. The data is read as forward-only, read-only stream which means that data is read sequentially, one row after another. The DataReader is <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">independent</span> of the OleDb data source from which the data is retrieved.<br />
<strong>OleDbDataAdapter</strong><br />
The System.Data.OleDb.OleDbDataAdapter acts as a middleman between the application and OleDb data source. We use the Select, Insert, Delete and Update command properties of this class for loading and updating the data.<br />
<strong>DataSet</strong><br />
The System.Data namespace contains a DataSet class which is a disconnected, in-memory representation of data. It can be considered as a local copy of all the relevant portions of the database. The DataSet is persisted in memory and the data in it can be manipulated and updated independent of the database.<br />
<strong><u>Code Samples</u></strong><br />
The following code samples will put the System.Data.OleDb namespace and the classes within it to work. The following code samples assume that you have an <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Access database</span> named Books (Books.mdb) with three columns (BookName, Publisher, ISBN) on the C: drive of your machine.<br />
<u>Select Command</u><br />
Open a new <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> page, add <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a Button</span> control to it an paste the following code.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Select Statement"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Imports System.Data.OleDb<br />
'namespace to be imported<br />
<br />
Public Class WebForm5 Inherits System.Web.UI.Page<br />
#Region " <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Form</span> Designer Generated Code "<br />
#End Region<br />
<br />
Dim myConn As OleDbConnection<br />
Dim myComm As OleDbCommand<br />
Dim dr As OleDbDataReader<br />
Private Sub Select_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Select.Click<br />
Try<br />
myConn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;_<br />
Data Source=C:\sandeep\books.mdb;")<br />
myConn.Open()<br />
myComm = New OleDbCommand("Select* from Table1", myConn)<br />
dr = myComm.ExecuteReader<br />
Do While dr.Read<br />
'reading from the datareader<br />
Response.Write(dr(0) & " ")<br />
Response.Write(dr(1) & " ")<br />
Response.Write(dr(2) & "<br>")<br />
'displaying data from the table<br />
'html break is used to display data in a tabular format<br />
Loop<br />
Catch<br />
End Try<br />
End Sub<br />
End Class<br />
<br />
<br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">System.Data.SqlClient</span><br />
The System.Data.SqlClient namespace provides <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">classes</span> that are required to <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">connect to SQL Server</span>. Let's take a look at the classes provided by System.Data.SqlClient.<br />
<strong>SqlConnection Class</strong><br />
The SqlConnection class represents a connection to SQL Server data source.<br />
<strong>SqlCommand Class</strong><br />
The SqlCommand class represents a SQL statement or stored <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">procedure</span> for use in a database with SQL Server.<br />
<strong>SqlDataReader</strong><br />
The SqlDataReader class creates a data reader to be used with SQL Server.<br />
<strong>SqlDataAdapter</strong><br />
The SqlDataAdapter class represents a bridge between the dataset and the SQL Server database. It includes <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the Select</span>, Insert, Delete and Update <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">commands</span> for loading and updating the data.<br />
<strong><u>Code Samples</u></strong><br />
The following code samples will put the System.Data.SqlClient namespace and the classes within it to work.<br />
<u>Select <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Command</span></u><br />
Open a new <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> page, add <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a Button</span> to it and paste the following code. The following code will display data from Discounts table in <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Pubs</span> sample database.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Select Command"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Imports System.Data.SqlClient<br />
<br />
Dim myConnection As SqlConnection<br />
Dim myCommand As SqlCommand<br />
<br />
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Handles</span> MyBase.Load<br />
<br />
End Sub<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
myConnection = New SqlConnection("server=<span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">localhost</span>;uid=sa;pwd=;database=pubs")<br />
'establishing connection. you need to provide password for sql server<br />
Try<br />
myConnection.Open()<br />
'opening the connection<br />
myCommand = New SqlCommand("Select * from discounts", myConnection)<br />
Dim dr As SqlDataReader = myCommand.ExecuteReader()<br />
While dr.Read()<br />
'reading from the datareader<br />
Response.Write(dr(0).ToString())<br />
Response.Write(dr(1).ToString())<br />
Response.Write(dr(2).ToString())<br />
Response.Write(dr(3).ToString())<br />
Response.Write(dr(4).ToString())<br />
'displaying data from the table<br />
End While<br />
dr.Close()<br />
myConnection.Close()<br />
Catch<br />
End Try<br />
End Sub</td></tr>
</tbody></table><br />
<u>Insert Command</u><br />
Add a Button control to the Web Forms page and paste the following code. The following code will insert a record into the Jobs table in Pubs sample database.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Insert Command"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button2_Click(ByVal sender As System.Object, ByVal e_<br />
As System.EventArgs) Handles Button2.Click<br />
Dim ra As Integer<br />
myConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=pubs")<br />
'you need to provide password for sql server<br />
myConnection.Open()<br />
myCommand = New SqlCommand("Insert into Jobs values 12,'IT Manager',100,300 ", myConnection)<br />
ra= myCommand.ExecuteNonQuery()<br />
'Since no value is returned we use ExecuteNonQuery<br />
Response.Write("Records Inserted" & ra)<br />
myConnection.Close()<br />
End Sub</td></tr>
</tbody></table><br />
<u>Delete Command</u><br />
Add a Button to the Web Forms page and paste the following code. The following code will delete a record from the Authors table in Pubs sample database.<br />
<br />
<table bgcolor="Linen" border="0" id="Table4" title="Delete Command"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button3.Click<br />
Dim ss As Integer<br />
myConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=pubs")<br />
myConnection.Open()<br />
myCommand = New SqlCommand("Delete from Authors where city='<span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Oakland</span>' ", myConnection)<br />
ss = myCommand.ExecuteNonQuery()<br />
Response.Write("Records affected" & ss)<br />
myConnection.Close()<br />
End Sub</td></tr>
</tbody></table><br />
<u>Update Command</u><br />
Add a Button to the Web Forms page and paste the following code. The following code will update a record in Authors table.<br />
<br />
<table bgcolor="Linen" border="0" id="Table5" title="Update Command"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button4.Click<br />
Dim sss As Integer<br />
myConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=pubs")<br />
myConnection.Open()<br />
myCommand = New SqlCommand("Update Authors Set city='Oakland' where city='San Jose' ",_ myConnection)<br />
sss = myCommand.ExecuteNonQuery()<br />
Response.Write("Records affected" & sss)<br />
myConnection.Close()<br />
End Sub</td></tr>
</tbody></table></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;"><span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Data Adapter</span> <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 16px !important; font-style: normal !important; font-weight: bold !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Configuration</span> Wizard</span><br />
The DataAdapter Configuration wizard let's you <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">customize your</span> data adapter as you want, like displaying the whole table or displaying selected <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">columns</span> from the table and so on. To start, open a new database in Access, name it as books, create <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a table</span>, Table1 with some fields in it and save the database in the C: drive of your machine. To start creating your own DataAdapter, open a <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">blank form</span> and add <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a button</span> (Button1) and a <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">DataGrid</span> control to it from the toolbox. Our intention here is to display the table or some columns in the table which we created in Access in the DataGrid control when Button1 is clicked. To do that, click on the Data tab in the toolbox and double-click OleDbDataAdapter object. We are using OleDbDataAdapter here as we are working with an OleDb data source. After you select OleDbDataAdapter from the data tab in the toolbox it gets added to the component tray beneath the Web Forms designer and opens the Data Adapter Configuration wizard <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dialog box</span> which looks like <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span>below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dacw.gif" /><br />
Click the Next> button in the Data Adapter Configuration wizard to select the data connection you want to use. The dialog box that opens up look like the image below.<br />
<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dacw1.gif" /><br />
Since we are working with our own table, select the <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">New Connection</span> button in that dialog box which opens up the Data Link properties dialog. The Data Link Properties dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/datalink.gif" /><br />
In the Data Link properties dialog click the Provider tab and select "Microsoft Jet 4.0 OLE DB Provider" from the list of available providers. After selecting the provider from the Provider tab click Next> button to take you to the Connection tab. Click on the ellipse where it says "Select or enter a database name" and browse for the database on the local drive. Since we are working with our own database (Books.mdb) located on the C: drive, select that. Click on the "Test Connection" button to test the connection and if the connection succeeds, click OK. Clicking OK displays a dialog box like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dacwsql.gif" /><br />
It's here where we will generate the SQL Statement we use with this data adapter. Click next on this dialog box which takes you to another dialog like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/generatesql.gif" /><br />
It's here where we build our SQL Queries. To build your query click the Query Builder button on this dialog. Once you click that button, the Query Builder dialog opens with a list that displays all the <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">tables</span> in the database with which we are working. In this case it displays only one table as we created only one table in the books database. The Query Builder dialog looks like the image below. Select Table1 in this dialog and click Add to add Table1 to the Query Builder dialog. You can select entire table to be displayed in the DataGrid or just some columns. To display entire table in the DataGrid select the checkbox named "All Columns" in the small dialog named "Table1" which automatically builds the SQL statement for us. If you want to display specific columns from the table in the DataGrid, check on the columns you want to display. Once you finish with that, click next. <br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/querybuilder.gif" /><br />
The dialog that opens when you click next looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/viewresult.gif" /><br />
This dialog lists the configuration of the data adapter and lists the results. Click finish to close the Data Adapter Configuration wizard.<br />
<br />
</span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Data Form Wizard</span><br />
The Data Form Wizard is the easiest and fastest way to develop database <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">applications</span> without writing a single line of code. We will see the Data Form Wizard in action and work with <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a table</span> from the sample Books database. Before you start, create a new database in Access and name it as Books. Create a table, Table1 in Books, add some fields to the table, enter some values in Table1 and close the <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Access database</span>. To start working with the Data Form Wizard select <span style="color: blue;">Project->Add New Item->Data Form Wizard</span>from the main menu. The dialogue box for that looks like <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataformmain.gif" /><br />
Select Data Form Wizard, type a name for it and click Open. Once you click open, a new dialog opens up which is the Data Form wizard and it looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/df.gif" /><br />
Click Next on this <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dialog box</span>. Clicking next takes you to a new dialog box which looks like the image below. Here you need to specify the name for your DataSet.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataform1.gif" /><br />
Select the <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">radio button</span> which display "<span style="color: blue;">create new dataset named</span>", type a name for the DataSet, and click next. Clicking next opens a dialog box like the image below.<br />
<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataform2.gif" /><br />
Here we need to establish a connection to the database. Click on the "<span style="color: blue;"><span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">New Connection</span></span>" button which opens up the "Data Link Properties" dialog. Set a connection to the database in the Data Link properties dialog. Here, I am using an Access Books database, you can use any database you wish to work with. Once you finish with the Connection click next. Clicking next takes you to a new dialog box like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataform3.gif" /><br />
This dialog box <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> all the <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">tables</span> available in your Books database. Select the table you want to work with and add it using the forward arrow button. I am selecting Table1 from my sample books database. Click next once you are finished. The next dialog box looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataform4.gif" /><br />
This dialog box allows us to display <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">columns</span> from more than one table by establishing a master-detail relationship and providing a name for that relation. A master-detail relationship can only be established if you have a common column in both the tables. Since we are working with one table, click next on this dialog box. Clicking next takes to a dialog like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/dataform5.gif" /><br />
This dialog allows you to select the columns you want to display. Select the columns you wish to display and click finish. That finishes configuring the Data Form Wizard. You will notice a Load button and the columns you selected being added to the <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> designer. Run the DataWebForm and click the load button. The data will be dsiplayed<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">on the Web page</span><br />
<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;"><br />
</span><br />
<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;"><br />
</span></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: verdana;"><table bgcolor="#ffffff" border="0" cellpadding="10" cellspacing="10"><tbody>
<tr><td class="mittu" style="color: black; font-family: verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-align: justify; text-transform: none; word-spacing: normal;" valign="top" width="60%"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">DataBinding</span><br />
Data Binding is binding <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span> to data from databases. With data binding we can bind a control to a particular column in <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a table</span> from the database or we can bind the whole table to the data grid. Data binding provides simple, convenient, and powerful way to create a read/write link between the controls on a form and the data in their application. Working with Data Binding in ASP.NET is <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">slightly different</span> to working with it in VB .NET. Generally, Datasets don't <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">maintain</span> a current record that is displayed in bound controls. In VB .NET, the BindingContext object handles that and it lets us set the record bound control display. In ASP.NET, there is no BindingContext object to handle that. In ASP.NET, we use a <span style="color: blue;">DataView</span> to let the user select which record should be displayed in bound controls. We bind the controls using data view and use the<span style="color: blue;">RowFilter</span> property of the data view to select the record we want the bound control to display. Simply said, in VB .NET we use the Dataset to bind records to the bound control and in ASP.NET we use a DataView.<br />
<strong><u>Sample Application</u></strong><br />
Let's understand data binding in ASP.NET with a sample. To start, create a database in Access, name it as Books.mdb. Create a table, Table1 with three columns, BookName, Publisher and ISBN. Enter some values in Table1, save and close it. On a new Web Forms page add three TextBoxes and four Buttons. The user interface should look like <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/db1.gif" /><br />
From the Data tab of the toolbox (as shown in the image below) drag a OledbDataAdapter object and <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">configure</span> it to Table1 of the Books database. <a href="http://www.startvbdotnet.com/aspsite/ado/dataadapter.aspx" style="color: blue; text-decoration: none;">Click here</a> to read how toconfigure a <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Data Adapter</span>. Once you are finished configuring the data adapter, generate the dataset by selecting <span style="color: blue;">Data->Generate DataSet</span> from the main menu.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/db2.gif" /><br />
<br />
Since we will use a DataView instead of a Dataset to navigate through the record, drag a DataView object on to the Web Forms page and set the <span style="color: blue;">Table</span> property of the data view to Dataset11.Table1.<br />
Select TextBox1, click on the ellipse button for it's <span style="color: blue;">DataBindings</span> <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> open the DataBinding's dialog box. The data binding's dialog looks like the image below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/ado/images/db3.gif" /><br />
In the Data Binding's dialog we need to bind TextBox1 to the BookName field, TextBox2 to Publisher field and TextBox3 to the ISBN field using the DataView (DataView1). You should not use DataSet as you would in a Windows Application. Open the Code designer window and paste the following code for each button.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Page_Load(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles MyBase.Load<br />
DataSet41.Clear()<br />
OleDbDataAdapter1.Fill(DataSet41)<br />
TextBox1.DataBind()<br />
TextBox2.DataBind()<br />
TextBox3.DataBind()<br />
'filling the dataadapter and displaying the first record from the table when the<br />
'page loads<br />
End Sub<br />
<br />
Private Sub First_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles First.Click<br />
Dim abc As String<br />
Dim index As Integer = 0<br />
Me.ViewState("index") = index<br />
'creating a variable named index to keep track of the record that is currently being<br />
'displayed and saving it's state across server round trips using the ViewState property<br />
abc = DataSet41.<span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Tables</span>(0).Rows(index).Item("BookName")<br />
'selecting a record in the dataview using it's RowFilter property and specifying<br />
'the text value of a field<br />
DataView1.RowFilter = "Bookname='" & abc & " '"<br />
TextBox1.DataBind()<br />
TextBox2.DataBind()<br />
TextBox3.DataBind()<br />
'using the abc value with the RowFilter property and binding the <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">text boxes</span><br />
to the newly selected record<br />
End Sub<br />
<br />
Private Sub Previous_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Previous.Click<br />
Dim abc As String<br />
Dim index As Integer<br />
index = Me.ViewState("index")<br />
index -= 1<br />
'checking the index value and setting it to a value less than the current one so that<br />
'it <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> the previous record each time the previous button is clicked<br />
< 0 Then<br />
If index index = 0<br />
End If<br />
'if first record is reached it will display the first record each time the previous<br />
'button is clicked<br />
Me.ViewState("index") = index<br />
abc = DataSet41.Tables(0).Rows(index).Item("BookName")<br />
DataView1.RowFilter = "Bookname='" & abc & "'"<br />
TextBox1.DataBind()<br />
TextBox2.DataBind()<br />
TextBox3.DataBind()<br />
End Sub<br />
<br />
Private Sub Next_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Next.Click<br />
Dim abc As String<br />
Dim index As Integer<br />
index = Me.ViewState("index")<br />
index += 1<br />
'checking the index value and setting it to a value one more than the current one<br />
'so that it displays next record each time the next button is clicked<br />
If index > DataSet41.Tables(0).Rows.Count - 1 Then<br />
index = DataSet41.Tables(0).Rows.Count - 1<br />
index = 0<br />
End If<br />
'if <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">last record</span> is reached it displays the last record each time the next button is<br />
'clicked. the code counts for the number of rows in the table and sets the last row to the<br />
'index variable once the last row is reached<br />
Me.ViewState("index") = index<br />
abc = DataSet41.Tables(0).Rows(index).Item("BookName")<br />
DataView1.RowFilter = "Bookname='" & abc & "'"<br />
TextBox1.DataBind()<br />
TextBox2.DataBind()<br />
TextBox3.DataBind()<br />
End Sub<br />
<br />
Private Sub Last_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Last.Click<br />
Dim abc As String<br />
Dim index As Integer<br />
index = DataSet41.Tables(0).Rows.Count - 1<br />
'the code counts for the number of rows in the table and sets the last row to the<br />
'index variable so that last record is displayed each time the last button is clicked<br />
Me.ViewState("index") = index<br />
abc = DataSet41.Tables(0).Rows(index).Item("BookName")<br />
DataView1.RowFilter = "Bookname='" & abc & "'"<br />
TextBox1.DataBind()<br />
TextBox2.DataBind()<br />
TextBox3.DataBind()<br />
End Sub</td></tr>
</tbody></table><br />
Once you are finished with the code, run the page. The first record from the table is displayed when the page loads. You can click the button to navigate through the records.</td></tr>
<tr><td bgcolor="papayawhip" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="80%"><a href="http://www.startvbdotnet.com/aspsite/ado/databinding.aspx#top" style="color: blue; text-decoration: none;"></a></td></tr>
</tbody></table></span></td></tr>
</tbody></table>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-54499718222660165582011-07-19T21:31:00.000+05:302011-07-19T21:31:00.235+05:30WEB CONTROLS IN ASP.NET<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Web Controls </span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">A control is an object that can be drawn on to the <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Form</span> to enable or enhance user interaction with the application. <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Examples</span> of these <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span> include the <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">TextBoxes</span>,<span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Buttons</span>, Labels, <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Radio Buttons</span> etc. All these <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> controls are based on the <span style="color: blue;">System.Web.UI.Contro</span>l class and the class hierarchy is as follows:<br />
<br />
<span style="color: blue;"> Object<br />
Control</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Notable properties of <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the Control</span> objects are summarized in the table below:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" bordercolor="Black" id="Table2" title="Control Object Properties"><tbody>
<tr bgcolor="Maroon"><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Property</b></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Description</b></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">ClientID</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the ASP.NET control identifier for the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Controls</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets a collection of child controls in a control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">EnableViewState</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets whether the control maintains it's state between server round trips</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">ID</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the ID for the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Page</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the page object that contains the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Parent</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the control parent control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Site</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the control's Web site</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">UniqueID</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the Unique ID for the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Visible</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets whether the control is visible or not</td></tr>
</tbody></table><br />
<div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>The WebControl Class</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Web server controls in ASP.NET are not based directly on the Control class but are based on the WebControl class, which is based on the Control class. The class hierarchy for the WebControl class is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl</span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Notable properties of the WebControl class are summarized in the table below:</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" bordercolor="Black" id="Table3"><tbody>
<tr bgcolor="Maroon"><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Property</b></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Description</b></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">AccessKey</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the access key for the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%"><span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Attributes</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets a collection of attributes used to render the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">BackColor</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's background color</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">BorderColor</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the controls border color</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">BorderStyle</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's border style</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">BorderWidth</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's border width</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">ControlStyle</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the control's style</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">CssClass</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's CSS class</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Enabled</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets whether the control is enabled</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Font</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the font for the control</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">ForeColor</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's foreground color</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Height</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's height</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Style</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets the HTML style of the control as a collection of text attributes</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">TabIndex</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's tab index</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">ToolTip</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Gets/Sets the control's <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">tool tip</span> text</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="30%">Width</td><td style="font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span class="Apple-style-span" style="font-family: Verdana; font-size: xx-small;">Gets/Sets the control's width</span><br />
<span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Label</span><br />
The Label <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Server</span> control is used to label other parts of the <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">application</span>. They are used to <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">display text</span> which the user can't change. To display text on a label we use the<span style="color: blue;">text</span> property. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label</span><br />
A label <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">control with</span> <span style="color: blue;">BorderStyle</span> property as solid and <span style="color: blue;">BorderColor</span> property as blue is shown below.<br />
<span id="Label1" title="Label Control">I am Label</span><br />
<strong>Literal</strong><a href="" name="literal"></a><br />
A Literal Web Server control doesn't have any <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">visual</span> appearance on a <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Form</span> but is used to insert literal text into a Web Form. This control makes it possible to add HTML code directly in <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the code</span> designer window without switching to design view and clicking the HTML button to edit the HTML. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
Literal</span><br />
The notable property of this control is the <span style="color: blue;">text</span> property which is the text that is inserted into the Web Form. A literal control with text "I am Literal" is displayed below.<br />
I am Literal<br />
<strong>Editing HTML with Literal Control</strong><br />
As mentioned above, we can use a literal control to edit the HTML directly in the code designer. The following line of code demonstrates that.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Literal1.Text = "<b><u>I am Literal</b></u>"</td></tr>
</tbody></table><br />
To test the above line of code click <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the button</span> below. The text "I am Literal" displayed beside the Button will be underlined and will be displayed in bold format. The difference is we added HTML code directly in the code designer window instead of switching and editing it in HTML view.<br />
<strong><u></u></strong><br />
<strong><u>Live Code Demo</u></strong><br />
<hr color="teal" size="2" />I am Literal <input id="Button1" name="Button1" type="submit" value="Button" /><br />
<br />
<br />
</span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">TextBox</span><br />
The TextBox Web Server control is used to accept input from the user. They appear like a box and allows the user to enter some text, like, username, password, etc. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
TextBox</span><br />
Below is a ReadOnly TextBox with <span style="color: blue;">BackColor</span> property set to Silver,<span style="color: blue;"> BorderColor</span> property set to Brown and <span style="color: blue;">BorderStyle</span> property set to solid.<br />
<input id="TextBox1" name="TextBox1" readonly="readonly" type="text" value="I am a TextBox" /><br />
<strong><u>Notable properties</u></strong><br />
Notable properties of the TextBox control are as follows:<br />
<br />
<span style="color: blue;">AutoPostBack</span>: Gets/Sets whether events will be automatically posted to the server<br />
<span style="color: blue;">Columns</span>: Gets/Sets the textbox's width in columns<br />
<span style="color: blue;">MaxLength</span>: Gets/Sets the maximum number of characters that can be displayed in the textbox<br />
<span style="color: blue;">ReadOnly</span>: Gets/Sets whether the textbox is readonly<br />
<span style="color: blue;">Rows</span>: Gets/Sets a multiline textbox's display height<br />
<span style="color: blue;">Text</span>: Gets/Sets the text in a textbox<br />
<span style="color: blue;">TextMode</span>: Gets/Sets whether a textbox should be single line, multiline or a password control<br />
<span style="color: blue;">Wrap</span>: Gets/Sets whether text wraps in a textbox<br />
<strong><u>Code Examples</u></strong><br />
<u>Sample 1</u><br />
Drag a TextBox and a Button control onto the WebForm. When you click the button some text is displayed in a TextBox. The code for that looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles Button1.Click<br />
TextBox1.Text = "Welcome to TextBoxes"<br />
End Sub</td></tr>
</tbody></table><br />
<u>Sample2, Multiline TextBox</u><br />
Drag a TextBox, Button and a Label control onto the form. We will make this TextBox a Multiline textbox and display the text entered in this multiline textbox on a label. Before you proceed, select the textbox, open it's properties window and set it's <span style="color: blue;">TextMode</span> property to <span style="color: blue;">Multiline</span>. The code to achieve the desired functionality looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button2_Click(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles Button2.Click<br />
Label2.Text = TextBox2.Text<br />
End Sub</td></tr>
</tbody></table><br />
<u>Sample3, Password Character</u><br />
Drag a Textbox, Button and a Label control onto the form. Select the textbox, open it's properties window and set the TextMode property to <span style="color: blue;">Password</span>. When you set TextMode property to password, the text you enter in the textbox is masked with asteriks (*). The following code displays the text you entered in the textbox as text for the label.<br />
<br />
<table bgcolor="Linen" border="0" id="Table4" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button3_Click(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles Button3.Click<br />
Label3.Text = TextBox3.Text<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<u>Sample1</u><br />
<u><input id="TextBox2" name="TextBox2" type="text" /><br />
<input id="Button1" name="Button1" type="submit" value="ClickMe" /></u></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Buttons</span><br />
<span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">A Button</span> <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Server</span> control is a control which we click and release <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">to perform</span> <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">some action</span>. The class hierarchy for <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the Button</span> control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Button</span><br />
<strong><u>Button Event</u></strong><br />
The default event of the Button is the <span style="color: blue;">Click</span> event which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table3"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Handles</span> Button1.Click<br />
<br />
'Implementation Omitted<br />
<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Notable Properties</u></strong><br />
<br />
<span style="color: blue;">CausesValidation</span>: Gets/Sets the button that causes validation<br />
<span style="color: blue;">CommandArgument</span>: Gets/Sets the <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">command</span> argument which is passed to the command event handler<br />
<span style="color: blue;">CommandName</span>: Gets/Sets the command name which is passed to the command event handler<br />
<span style="color: blue;">Text</span>: Gets/Sets the <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">caption</span> on the button<br />
<strong><u>Command Button</u></strong><br />
To create a command button you need to add a command name to the button. You add a command name to the button with the CommandName property and a commandargument with the CommandArgument property. Both these properties can hold text which can be recovered in code.<br />
<u>Sample Code1</u><br />
Drag a Button onto the form from the toolbox and set it's text as ClickMe. When you click the button it changes it's text from ClickMe to "You clicked Me". <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The code</span> for that looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table4" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles Button1.Click<br />
Button1.Text = "You clicked me"<br />
End Sub</td></tr>
</tbody></table><br />
<u>Sample code to create a Command Button</u><br />
Drag two TextBoxes and <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Buttons</span> from the toolbox. Select Button one and in it's properties window set the <span style="color: blue;">CommandName</span> <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> Command1 and <span style="color: blue;">CommandArgument</span>property to I am Command one. Repeat the same for Button two. When you click Button1, the CommandName of Button1 will be displayed in TextBox1 and CommandArgument of Button2 in TextBox2. To get those values we need to use the command event for the button and not <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the click</span> event. The code for that looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Command(ByVal sender As System.Object,_<br />
ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Button1.Command<br />
TextBox1.Text = e.CommandName<br />
End Sub<br />
<br />
Private Sub Button2_Command(ByVal sender As System.Object,_<br />
ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Button2.Command<br />
TextBox2.Text = e.CommandArgument<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<hr color="teal" size="2" /><u>Sample 1</u><br />
<strong><input id="Button1" name="Button1" type="submit" value="ClickMe" /></strong></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Link Button</span><br />
The LinkButton <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> control is a <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">hyperlink</span> style button control. It looks like a hyperlink control but is actually <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a button</span> <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">control with</span> click and command events. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
LinkButton</span><br />
Below is a LinkButton Web server control.<br />
<a href="http://www.startvbdotnet.com/aspsite/controls/linkbutton.aspx" id="LinkButton1" style="color: blue; text-decoration: none;">I am a LinkButton</a><br />
<strong>Notable Properties</strong><br />
Below are some notable properties of the LinkButton control.<br />
<br />
<span style="color: blue;">CausesValidation</span>: Gets/Sets whether the link button performs validation in other <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span><br />
<span style="color: blue;">CommandArgument</span>: Gets/Sets an optional argument <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">holding</span> data about the command specified with CommandName<br />
<span style="color: blue;">CommandName</span>: Gets/Sets the command name for this button<br />
<span style="color: blue;">Text</span>: Gets/Sets the text displayed in the link button<br />
<u>Sample</u><br />
Drag a LinkButton and a Label control on to the <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Form</span>. When you click the link button the label <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> some text. The code for that looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles LinkButton1.Click<br />
Label1.Text = "Working with LinkButton"<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>HyperLink Control</u></strong><a href="" name="hlink"></a><br />
The HyperLink Web server control is used to create a link to another Web page. The text in the HyperLink control is specified using the Text property. We can also display a image on this control instead of text. To display an image we should set the <span style="color: blue;">ImageUrl</span> property. If both the Text and ImageUrl properties are set, the ImageUrl property takes precedence. If <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> is unavailable, the text in the Text property is displayed. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
HyperLink</span><br />
<strong>Notable Properties</strong><br />
Below are some notable properties of the Hyperlink control.<br />
<br />
<span style="color: blue;">ImageUrl</span>: Gets/Sets the image to be displayed in the hyperlink<br />
<span style="color: blue;">NavigateUrl</span>: Gets/Sets the URL to navigate to when the hyperlink is clicked<br />
<span style="color: blue;">Target</span>: Gets/Sets the target window or frame to display the new content when the hyperlink is clicked<br />
<span style="color: blue;">Text</span>: Gets/Sets the text in the hyperlink control<br />
Note the target property. You can set the target <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> the values displayed below. The target property allows us to set new page/content to be displayed in a new browser window, same window, etc. The values are as follows:<br />
<br />
_blank: displays the linked content in a new window without frames<br />
_parent: displays the linked content in the immediate frameset parent<br />
_self: displays the linked content in the frame with focus<br />
_top: displays the linked content in the full window without frames<br />
<u>Sample</u><br />
Drag a hyperlink control on to the form. Select <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the control</span> and open it's properties window. From the properties window set the NavigateUrl property to your <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">favorite</span> website (in the form http://www.xyz.com), Target property to _blank and Text property to some text. When you run the application and click the hyperlink your favourit website opens in a new window.<br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<u>LinkButton Sample</u><br />
<span id="Label1">Label</span> <a href="http://www.startvbdotnet.com/aspsite/controls/linkbutton.aspx" id="LinkButton2" style="color: blue; text-decoration: none;">LinkButton</a><br />
<u>Hyperlink Sample</u><br />
<a href="http://www.startvbdotnet.com/aspsite/asp/" id="HyperLink1" style="color: blue; text-decoration: none;" target="_blank">My Favourite Site</a><br />
<br />
</span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px;"><div style="font-family: verdana; font-size: x-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Image</span></div><div style="font-family: verdana; font-size: x-small;">The Image Web server control is used to display an image on a Web page. To set the image to be displayed for this control we use the <span style="color: blue;">ImageUrl</span> property. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Image</span></div><div style="font-family: verdana; font-size: x-small;">Look at the sample at the bottom of this page for a demo.</div><div style="font-family: verdana; font-size: x-small;"><strong><u>ImageButton Control</u></strong><a href="" name="ibutton"></a></div><div style="font-family: verdana; font-size: x-small;">The ImageButton Web server control is used to display images and responds to mouse clicks on the image. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Image<br />
ImageButton</span></div><div style="font-family: verdana; font-size: x-small;">To set the Image for this control we use the <span style="color: blue;">ImageUrl</span> property. Image buttons support both Click and Command events. When we handle Click events, we are passed the actual location of the mouse in the image. We can use Command event handlers to make the image button work like a command button. </div><div style="font-family: verdana; font-size: x-small;"><u>Sample</u></div><div style="font-family: verdana; font-size: x-small;">Drag a Label and an ImageButton Control on to the form and paste the following code:</div><div style="font-family: verdana; font-size: x-small;"></div><table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As _<br />
System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click<br />
Label1.Text = "You clicked the image button at" & e.X & " " & e.Y<br />
End Sub</td></tr>
</tbody></table><br />
<div style="font-family: verdana; font-size: x-small;">When you run the code and click on the image button, the X and Y coordinates are displayed on the label.</div><div style="font-family: verdana; font-size: x-small;"><strong><u>Live Code Demo</u></strong></div><div style="font-family: verdana; font-size: x-small;"></div><hr color="teal" size="2" style="font-family: verdana; font-size: x-small;" /><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"></div><div style="font-family: verdana; font-size: x-small;"><u><br />
</u></div></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><u><br />
</u></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">DropDownList </span><br />
The DropDownList <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> control is same as the ListBox control but it supports only single selection and <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">displays</span> <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">items</span> in a drop-down manner. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
ListControl<br />
DropDownList</span><br />
<strong>DropDownList Event</strong><br />
The default event of the drop-down list is the <span style="color: blue;">SelectedIndexChanged</span> which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="DropDownList Event"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Handles</span> DropDownList1.SelectedIndexChanged<br />
'Implementation Omitted<br />
End Sub</td></tr>
</tbody></table><br />
Notable property of the drop-down list is the <span style="color: blue;">Items</span> property with which we add items to <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the control</span>. Like ListBoxes this control doesn't support <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">multiple</span> selections.<br />
<u>DropDownList Sample</u><br />
Drag a DropDownList, Button and a TextBox control on to the form. Add some items to the DropDownList control using it's <span style="color: blue;">Item</span> property. The following code will display the item selected from the drop-down list in a textbox when the button is clicked.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _<br />
System.EventArgs) Handles Button1.Click<br />
TextBox1.Text = "You Selected:" & DropDownList1.SelectedItem.Text<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<input id="TextBox1" name="TextBox1" type="text" /> <br />
<select id="DropDownList1" name="DropDownList1"> <option value="Select City">Select City</option> <option value="New Delhi">New Delhi</option> <option value="Sydney">Sydney</option> <option value="Lisbon">Lisbon</option> <option value="Moscow">Moscow</option> <option value="New York">New York</option> </select> <br />
<input id="Button1" name="Button1" type="submit" value="Button" /></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">ListBox </span><br />
The ListBox Web server control displays a list of items from which we can make a selection. We can select one or more items from the list of items displayed. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
ListControl<br />
ListBox</span><br />
<strong>ListBox Event</strong><br />
The default event of the list box is the <span style="color: blue;">SelectedIndexChanged</span> which looks like this is code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="ListBox Event"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles ListBox1.SelectedIndexChanged<br />
'Implementation Omitted<br />
End Sub</td></tr>
</tbody></table><br />
Notable Properties of the ListBox are as follows:<br />
<br />
<span style="color: blue;">Items</span>: Gets/Sets the collection of items in the control<br />
<span style="color: blue;">Rows</span>: Gets/Sets the number of rows in the list box<br />
<span style="color: blue;">SelectionMode</span>: Gets/Sets the list box's selection mode, can be set to single or multiple<br />
<strong>ListBox Samples</strong><br />
<u>Single Selection ListBox</u><br />
Drag a ListBox, Button and a TextBox control on to the form. Add some items to the ListBox using the Items property. The following lines of code will display the item you select from the list box in a textbox when the button is clicked.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
TextBox1.Text = "You Selected" & " " & ListBox1.SelectedItem.Text<br />
End Sub</td></tr>
</tbody></table><br />
<u>Multiple Selection ListBox</u><br />
Modifying the above sample to make the ListBox allow us to select multiple items, select the ListBox and in it's properties window set the <span style="color: blue;">SelectionMode</span> proeprty to Multiple. The following lines of code will display the selected items in the textbox when the button is clicked:<br />
<br />
<table bgcolor="Linen" border="0" id="Table4" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
Dim i As Integer<br />
TextBox1.Text = "You Selected" & " "<br />
For i = 0 To ListBox1.Items.Count - 1<br />
If ListBox1.Items(i).Selected Then<br />
TextBox1.Text = TextBox1.Text & ListBox1.Items(i).Text & " "<br />
End If<br />
Next<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label1"><u>Single Selection ListBox</u></span> <input id="TextBox1" name="TextBox1" type="text" /><br />
<select id="ListBox1" name="ListBox1" size="4"> <option value="VB.NET">VB.NET</option> <option value="C#">C#</option> <option value="ASP.NET">ASP.NET</option> <option value="JScript">JScript</option> <option value="VBA">VBA</option> </select><br />
<input id="Button1" name="Button1" type="submit" value="Button" /><br />
<span id="Label2"><u>Multiple Selection Listbox</u></span> <input id="TextBox2" name="TextBox2" type="text" /><br />
<select id="ListBox2" multiple="multiple" name="ListBox2" size="4"> <option value="VB.NET">VB.NET</option> <option value="C#">C#</option> <option value="ASP.NET">ASP.NET</option> <option value="JScript">JScript</option> <option value="VBA">VBA</option> </select><br />
<input id="Button2" name="Button2" type="submit" value="Button" /></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">CheckBox</span><br />
The CheckBox Web server control gives us an option to select, say, yes/no or true/false. A checkbox is clicked to select and clicked again to deselect some option. When a checkbox is selected, a check (a tick mark) appears indicating a selection. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
CheckBox</span><br />
<strong>CheckBox Event</strong><br />
The default event of the CheckBox is the <span style="color: blue;">CheckedChanged</span> event which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="CheckBox Event"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles CheckBox1.CheckedChanged<br />
'Implementation Omitted<br />
End Sub</td></tr>
</tbody></table><br />
<strong>Notable Properties</strong><br />
Notable properties of the CheckBox are as follows:<br />
<br />
<span style="color: blue;">Checked</span>: Gets/Sets whether a checkbox displays a check<br />
<span style="color: blue;">Text</span>: Gets/Sets the text caption for the checkbox<br />
<span style="color: blue;">TextAlign</span>: Gets/Sets the alignment of the text caption<br />
<u>CheckBox Sample</u><br />
Drag two CheckBoxes, a TextBox and a Button control on to the form. Set the Text property for the CheckBoxes as Male and Female. The following code will display the text of the Checkbox that is checked in the textbox when the button is clicked.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
If CheckBox1.Checked Then<br />
TextBox1.Text = "Your Gender" & " " & CheckBox1.Text<br />
ElseIf CheckBox2.Checked Then<br />
TextBox1.Text = "Your gender " & " " & CheckBox2.Text<br />
End If</td></tr>
</tbody></table><br />
<strong><u>CheckBoxList</u></strong><a href="" name="cblist"></a><br />
The CheckBoxList Web server control displays a number of checkboxes at once. This control provides a multi selection check box group that can be dynamically generated with data binding. It contains an Items collection with members that correspond to individual items in the list. To determine which items are checked, we need to test the Selected property of each item in the list. The class hierarchy for his control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
ListControl<br />
CheckBoxList</span><br />
<strong><u>Notable Properties</u></strong><br />
<br />
Notable properties of the CheckBoxList control are as follows:<br />
<br />
<span style="color: blue;">Items</span>: Gets/Sets the collection of items in the list<br />
<span style="color: blue;">RepeatColumns</span>: Gets/Sets the number of displayed columns in the check box list<br />
<span style="color: blue;">RepeatDirection</span>: Gets/Sets the display direction of checkboxes<br />
<span style="color: blue;">RepeatLayout</span>: Gets/Sets the checkbox layout<br />
<span style="color: blue;">TextAlign</span>: Gets/Sets the check box's text alignment<br />
<u>CheckBoxList Sample</u><br />
Drag a CheckBoxList, TextBox and a Button on to the form. Select the CheckBoxList and add some items to it using the Items property. The following code will display the text of the checkbox that is checked in the textbox when the button is clicked.<br />
<br />
<table bgcolor="Linen" border="0" id="Table4" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
TextBox1.Text = CheckboxList1.SelectedItem.Text<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label1">CheckBox Sample</span><br />
<input id="CheckBox1" name="CheckBox1" type="checkbox" /><label for="CheckBox1">Male</label> <input id="TextBox1" name="TextBox1" type="text" /> <br />
<input id="CheckBox2" name="CheckBox2" type="checkbox" /><label for="CheckBox2">Female</label><br />
<input id="Button1" name="Button1" type="submit" value="Button" /></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">RadioButtonList</span> <br />
The RadioButtonList Web server control is used to display a list of radio buttons. This control provides us with a single-selection radio button group that can be dynamically generated via data binding. The Items property of this control allows us to add items to the control. To determine which item is selected, we need to test the SelectedItem property of the list. The class hierarchy of this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
ListControl<br />
RadioButtonList</span><br />
<strong>RadioButtonList event</strong><br />
The default event of the RadioButtonList is the <span style="color: blue;">SelectedIndexChanged</span> which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Event"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles RadioButtonList1.SelectedIndexChanged<br />
'Implementation Omitted<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Notable Properties</u></strong><br />
Notable properties of the RadioButtonList control are as follows:<br />
<br />
<span style="color: blue;">Items</span>: Gets/Sets the collection of items in the list<br />
<span style="color: blue;">RepeatColumns</span>: Gets/Sets the number of displayed columns in the radio button list<br />
<span style="color: blue;">RepeatDirection</span>: Gets/Sets the display direction of radio buttons<br />
<span style="color: blue;">RepeatLayout</span>: Gets/Sets the radio button layout<br />
<span style="color: blue;">TextAlign</span>: Gets/Sets the radio button's text alignment<br />
<u>RadioButtonListSample</u><br />
Drag a RadioButonList, TextBox and a Buton control on to a form. Add some items to the radio button list with it's item property. The following code will display the item you select in the radio button list in the textbox when you click the button.<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
TextBox1.Text = RadioButtonList1.SelectedItem.Text<br />
End Sub</td></tr>
</tbody></table><br />
<u><strong>Live Code Demo</strong></u><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label1">RadioButtonList with 12 items and RepeatColumns property value 4</span><br />
<span id="Label2">Select one from the list and hit the submit button</span><br />
<br />
<table border="0" id="RadioButtonList1"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_0" name="RadioButtonList1" type="radio" value="VB.NET" /><label for="RadioButtonList1_0">VB.NET</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_3" name="RadioButtonList1" type="radio" value="Java" /><label for="RadioButtonList1_3">Java</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_6" name="RadioButtonList1" type="radio" value="ColdFusion" /><label for="RadioButtonList1_6">ColdFusion</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_9" name="RadioButtonList1" type="radio" value="SQLServer" /><label for="RadioButtonList1_9">SQLServer</label></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_1" name="RadioButtonList1" type="radio" value="ASP.NET" /><label for="RadioButtonList1_1">ASP.NET</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_4" name="RadioButtonList1" type="radio" value="C" /><label for="RadioButtonList1_4">C</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_7" name="RadioButtonList1" type="radio" value="Python" /><label for="RadioButtonList1_7">Python</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_10" name="RadioButtonList1" type="radio" value="JavaScript" /><label for="RadioButtonList1_10">JavaScript</label></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_2" name="RadioButtonList1" type="radio" value="C#" /><label for="RadioButtonList1_2">C#</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_5" name="RadioButtonList1" type="radio" value="C++" /><label for="RadioButtonList1_5">C++</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_8" name="RadioButtonList1" type="radio" value="Oracle" /><label for="RadioButtonList1_8">Oracle</label></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Arial; font-size: x-small;"><input id="RadioButtonList1_11" name="RadioButtonList1" type="radio" value="VBScript" /><label for="RadioButtonList1_11">VBScript</label></span></td></tr>
</tbody></table><br />
<input id="TextBox1" name="TextBox1" type="text" /><br />
<input id="Button1" name="Button1" type="submit" value="Submit" /></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">RadioButton</span><br />
The RadioButton Web server control is similar to CheckBox but RadioButtons are displayed as rounded instead of box. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
CheckBox<br />
Radiobutton</span><br />
<strong>Radiobutton Event</strong><br />
The default event of the RadioButton is the <span style="color: blue;">CheckedChanged</span> event which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="RadioButton Event"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As _<br />
System.EventArgs) Handles RadioButton1.CheckedChanged<br />
'Implementation Omitted<br />
End Sub</td></tr>
</tbody></table><br />
Notable property of the RadioButton control is the <span style="color: blue;">GroupName</span> property which sets the radio button's group. The radio button will act in concert with the other members of the group.<br />
<u>RadioButton Sample</u><br />
Drag three radio button's, a textbox and a button on to the form. Select each radio button and set the GroupName property for each to ABC. If you do not set the GroupName property to a common name then each radio button will act differently and when you make a selection all radio buttons will be rounded. In most cases, you want your users to select only one option from a given list and to accompolish that you need to set the GroupName property. The following code will display the text of the radio button selected in a textbox when the button is clicked. Select each radio button and set the Text as shown below and paste the following code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As _<br />
System.EventArgs) Handles Button1.Click<br />
If RadioButton1.Checked Then<br />
TextBox1.Text = "You heard about us through " & " " & RadioButton1.Text<br />
ElseIf RadioButton2.Checked Then<br />
TextBox1.Text = "You heard about us through " & " " & RadioButton2.Text<br />
ElseIf RadioButton3.Checked Then<br />
TextBox1.Text = "You heard about us through " & " " & RadioButton3.Text<br />
End If<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label1">RadioButtons with no GroupName</span><br />
<input id="RadioButton1" name="RadioButton1" type="radio" value="RadioButton1" /><label for="RadioButton1">RB1</label> <input id="RadioButton2" name="RadioButton2" type="radio" value="RadioButton2" /><label for="RadioButton2">RB2</label> <input id="RadioButton3" name="RadioButton3" type="radio" value="RadioButton3" /><label for="RadioButton3">RB3</label><br />
<span id="Label2">When you make a selection all radio buttons can be selected</span><br />
<span id="Label3"><u>RadioButton Sample Demo</u></span><br />
<span id="Label4">How did you hear about us?</span><br />
<input id="RadioButton4" name="Sandeep" type="radio" value="RadioButton4" /><label for="RadioButton4">Internet</label> <br />
<input id="RadioButton5" name="Sandeep" type="radio" value="RadioButton5" /><label for="RadioButton5">NewsPaper</label><br />
<input id="RadioButton6" name="Sandeep" type="radio" value="RadioButton6" /><label for="RadioButton6">Word of Mouth</label><br />
<input id="Button1" name="Button1" type="submit" value="Button" /><br />
<input id="TextBox1" name="TextBox1" type="text" /></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Panel</span><br />
The Panel Web server control is used to contain other controls, say a set of radio buttons, check boxes, etc. This is a very useful control which allows us to show or hide a group of controls at once or add new controls to a page in code. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Panel</span><br />
<strong>Notable Properties</strong><br />
Notable properties of the Panel are as follows:<br />
<br />
<span style="color: blue;">BackImageUrl</span>: Gets/Sets the background image's URL for the panel<br />
<span style="color: blue;">HorizontalAlign</span>: Gets/Sets the horizontal alignment of the parent's contents<br />
<span style="color: blue;">Wrap</span>: Gets/Sets whether the panel's content wraps<br />
<u>Panel Sample</u><br />
Drag a Panel on to the form. Drag two textboxes and a button on to the panel. The following code does nothing special but demonstrates how to use panels. The code displays the text you enter in textbox1 in textbox2 when the button is clicked.<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
TextBox2.Text = TextBox1.Text<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>PlaceHolder</u></strong><a href="" name="placeholder"></a><br />
The PlaceHolder Web server control does not have any visible output and is used as a place holder when we add controls at run time. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
PlaceHolder</span><br />
<u>PlaceHolder Sample</u><br />
Drag a PlaceHolder control on to the form. The following code will create two TextBoxes and a Button in code and will add them to the place holder at run time when a button is clicked. Open the code behind file for the web form and paste the following code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table3" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Dim TextBox11, TextBox12 As New System.Web.UI.WebControls.TextBox()<br />
Dim Button11 As New System.Web.UI.WebControls.Button()<br />
'declaring two textboxes and a button<br />
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As _<br />
System.EventArgs) Handles MyBase.Load<br />
<br />
End Sub<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As_<br />
System.EventArgs) Handles Button1.Click<br />
TextBox11.Text = "Created TextBox11"<br />
TextBox12.Text = "Created TextBox12"<br />
Button11.Text = "Created Button"<br />
'setting text for the textboxes and button<br />
TextBox11.Columns = 15<br />
TextBox11.ReadOnly = True<br />
TextBox12.Columns = 20<br />
PlaceHolder1.Controls.Add(TextBox11)<br />
PlaceHolder1.Controls.Add(TextBox12)<br />
PlaceHolder1.Controls.Add(Button11)<br />
'adding the created textboxes and button to placeholder<br />
End Sub</td></tr>
</tbody></table><br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label1">Panel Demo</span><br />
<br />
<table bgcolor="#FFE0C0" border="0" cellpadding="0" cellspacing="0" height="141" id="Panel1" style="width: 184px;"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><input id="TextBox1" name="TextBox1" type="text" /><br />
<input id="TextBox2" name="TextBox2" type="text" /><br />
<input id="Button2" name="Button2" type="submit" value="Button" /></td></tr>
</tbody></table><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span id="Label2">Place Holder Demo</span><br />
</span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Calendar</span><br />
The Calendar Web server control displays a single month calendar that allows the user to select a date and move to the next or previous month. By default, this control displays the name of the current month, day headings for the days of the weeks, days of the month and arrow characters for navigation to the previuos or next month. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Calendar</span><br />
<strong>Calendar Event</strong><br />
The default event of the Calendar control is the <span style="color: blue;">SelectionChanged</span> event which looks like this in code:<br />
<br />
<table bgcolor="Linen" border="0" id="Table3"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object,_<br />
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged<br />
<br />
'implementation omitted<br />
<br />
End Sub</td></tr>
</tbody></table><br />
<strong>Notable properties</strong><br />
Notable properties of this control that set it's style are as follows:<br />
<br />
<span style="color: blue;">DayHeaderStyle</span>: Sets style for the days of the week<br />
<span style="color: blue;">DayStyle</span>: Sets styles for the dates in a month<br />
<span style="color: blue;">NextPrevStyle</span>: Sets style for the navigation controls<br />
<span style="color: blue;">OtherMonthStyle</span>: Sets style for the dates that are not in the displayed month<br />
<span style="color: blue;">SelectedDayStyle</span>: Sets style for the selected date<br />
<span style="color: blue;">SelectorStyle</span>: Sets style for the for week and month selection column<br />
<span style="color: blue;">TitleStyle</span>: Sets style for the title<br />
<span style="color: blue;">TodayDayStyle</span>: Sets style for today's date<br />
<span style="color: blue;">WeekendDayStyle</span>: Sets style for weekend dates<br />
In addition to the properties mentioned above there are some more properties than can be set to control different parts of the calendar. They are as follows:<br />
<br />
<span style="color: blue;">ShowDayHeader</span>: Shows or hides the days of the week<br />
<span style="color: blue;">ShowGridLines</span>: Shows or hides grid lines<br />
<span style="color: blue;">ShowNextPrevMonth</span>: Shows or hides the navigation controls to the next or previous month<br />
<span style="color: blue;">ShowTitle</span>: Shows or hides the title<br />
Other properties are as follows:<br />
<br />
<span style="color: blue;">CellPadding</span>: Gets/Sets the space used for cell padding in the calendar<br />
<span style="color: blue;">CellSpacing</span>: Gets/Sets the space between cells in the calendar<br />
<span style="color: blue;">DayNameFormat</span>: Gets/Sets the day of the week's name format<br />
<span style="color: blue;">FirstDayOfWeek</span>: Gets/Sets the day of the week displayed in the first column<br />
<span style="color: blue;">NextMonthText</span>: Gets/Sets the text for next month navigation control<br />
<span style="color: blue;">NextPrevFormat</span>: Gets/Sets the format for the next and previous month navigation controls<br />
<span style="color: blue;">OtherMonthDayStyle</span>: Gets the style for the days not displyed in current month<br />
<span style="color: blue;">PrevMonthText</span>: Gets/Sets the text for previous month navigation control<br />
<span style="color: blue;">SelectedDate</span>: Gets/Sets the selected date<br />
<span style="color: blue;">SelectedDates</span>: Gets a collection of DateTime objects for the selected dates<br />
<span style="color: blue;">SelectionMode</span>: Gets/Sets the date selection mode determining if you can select a day, a week, or a month<br />
<span style="color: blue;">SelectMonthText</span>: Gets/Sets the text for the month selection element<br />
<span style="color: blue;">SelectWeekText</span>: Gets/Sets the text for week selection element<br />
<span style="color: blue;">TitleFormat</span>: Gets/Sets the format for the title<br />
<span style="color: blue;">TodaysDate</span>: Gets/Sets today's date<br />
<span style="color: blue;">VisibleDate</span>: Gets/Sets a date making sure it's visible<br />
<strong>Calendar Sample</strong><br />
Drag a Calendar and a TextBox control on to the form. The following code will display the date selected from the Calendar control in the TextBox. The code looks like this:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, _<br />
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged<br />
TextBox1.Text = Calendar1.SelectedDate<br />
End Sub</td></tr>
</tbody></table><br />
You can test the above sample below.<br />
<strong><u>Live Code Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<input id="TextBox1" name="TextBox1" type="text" /><br />
<br />
<table border="0" cellpadding="2" cellspacing="0" id="Calendar2"><tbody>
<tr><td bgcolor="Silver" colspan="7" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><table border="0" cellspacing="0"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="15%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;"><</a></td><td align="Center" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="70%">July</td><td align="Right" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="15%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">></a></td></tr>
</tbody></table></td></tr>
<tr><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Sun</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Mon</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Tue</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Wed</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Thu</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Fri</td><td align="Center" bgcolor="Bisque" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Sat</td></tr>
<tr><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">26</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">27</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">28</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">29</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">30</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">1</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">2</a></td></tr>
<tr><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">3</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">4</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">5</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">6</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">7</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">8</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">9</a></td></tr>
<tr><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">10</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">11</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">12</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">13</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">14</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">15</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">16</a></td></tr>
<tr><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">17</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">18</a></td><td align="Center" bgcolor="Tan" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">19</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">20</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">21</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">22</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">23</a></td></tr>
<tr><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">24</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">25</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">26</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">27</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">28</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">29</a></td><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">30</a></td></tr>
<tr><td align="Center" bgcolor="LightGoldenrodYellow" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">31</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">1</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">2</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">3</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">4</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">5</a></td><td align="Center" bgcolor="MistyRose" style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="14%"><a href="http://www.startvbdotnet.com/aspsite/controls/calendar.aspx" style="color: black; text-decoration: none;">6</a><br />
</td></tr>
</tbody></table></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">AdRotator</span><br />
The AdRotator is a special control in ASP.NET that is used to display flashing banner ads. The control is capable of displaying ads randomly or sequentially as set by the user. Each time the page is refreshed or reloaded a new ad can be displayed to the user. Also, we can assign priorities in such a way that certain ads are displayed frequently than others. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
AdRotator</span><br />
Notable properties of the AdRotator control are as follows:<br />
<br />
AdvertisementFile<br />
KeywordFilter<br />
Target<br />
<strong>AdvertisementFile</strong><br />
The AdvertisementFile property specifies the path to an Advertisement File. The Advertisement file is a<br />
well-formed XML document that contains information for the image that needs to be displayed and the page to which the user should be redirected when he clicks the ad. The syntax for the Advertisement file is as follows:<br />
<br />
<table bgcolor="Linen" border="0" id="Table2" title="Code"><tbody>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><?xml version="1.0" encoding="utf-8" ?><br />
<Advertisements><br />
<Ad><br />
<ImageUrl><br />
URL of the image to be displayed<br />
</ImageUrl><br />
<NavigateUrl><br />
URL of the page to which the user should be taken<br />
</NavigateUrl><br />
<AlternateText><br />
Text to be displyed as tooltip<br />
</AlternateText><br />
<Keyword><br />
Keyword used to filter<br />
</Keyword><br />
<Impressions><br />
Weight of the ad<br />
</Impressions><br />
</Ad><br />
</Advertisements></td></tr>
</tbody></table><br />
<br />
The different elements of the Advertisement File:<br />
<span style="color: blue;">ImageUrl</span>: Specifies the image URL that presents the image for the advertisement<br />
<span style="color: blue;">NavigateUrl</span>: Specifies the URL of the page to which the user should be taken to when he clicks on the image<br />
<span style="color: blue;">AlternateText</span>: An optional parameter that specifies the text when the user moves his mouse pointer over the image<br />
<span style="color: blue;">Keyword</span>: Optional parameter that specifies the keyword (category) like books, programming, etc<br />
<span style="color: blue;">Impressions</span>: Optional parameter that provides a number that indicates the weight of the ad in the order of rotation with respect to other ads in the file<br />
<strong>KeywordFilter</strong><br />
The KeywordFilter property specifies a keyword to filter for specific types of advertisements in the XML advertisement file. Each advertisement in the XML advertisement file can be assigned a category keyword. The KeywordFilter property filters the advertisements for the specified keyword. Only advertisements containing the keyword will be selected for the AdRotator control and it is not possible to specify more than one keyword in the KeywordFilter property, nor it is possible to declare multiple keywords in the advertisement file.<br />
<strong>Target</strong><br />
The Target property specifies the name of the browser window or frame that displays the contents of the Web page linked to when the AdRotator control is clicked. This property can also take the following HTML<br />
frame-related keywords.<br />
<span style="color: blue;">_blank</span>: displays the linked content in a new window without frames<br />
<span style="color: blue;">_parent</span>: displays the linked content in the parent window of the window that contains the link<br />
<span style="color: blue;">_self</span>: displays the linked content in the same window<br />
<span style="color: blue;">_top</span>: displays the linked content in the topmost window </span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Table </span><br />
<strong><span style="font-size: medium;"></span></strong>The Table <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> control allows us to build an <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">HTML table</span> and helps us organize data in a tabular form. <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Tables</span> can be created at design time or run time. To create <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">a table</span> we also need the TableRow and TableCell web <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span>. If you create a table at design time you often fill it's contents with static data but if you create it at run time then you can fill it with <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dynamic content</span> like binding it to a data source. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Table</span><br />
<strong>Notable Properties</strong><br />
Notable properties of the Table control are as follows:<br />
<br />
<span style="color: blue;">CellPadding</span>: Gets/Sets the <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">distance between</span> the border and the contents of the table cell<br />
<span style="color: blue;">CellSpacing</span>: Gets/Sets the distance between table cells<br />
<span style="color: blue;">GridLines</span>: Gets/Sets the gridline property of the table class<br />
<span style="color: blue;">HorizontalAlign</span>: Gets/Sets the horizontal <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">alignment</span> of the table within the page<br />
<span style="color: blue;">Rows</span>: Gets/Sets the collection of rows within the table<br />
<strong>TableRow Control</strong><br />
The TableRow class is used to create the table rows we use in the Table control. It controls how the contents of the table are displayed. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
TableRow</span><br />
<strong>Notable Properties</strong><br />
Notable properties of the TableRow class are as follows:<br />
<br />
<span style="color: blue;">Cells</span>: Gets a collection of the table cells for the table row<br />
<span style="color: blue;">HorizontalAlign</span>: Gets/Sets the horizontal alignment of the row contents<br />
<span style="color: blue;">VerticalAlign</span>: Gets/Sets the <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">vertical</span> alignment of the row contents<br />
<strong>TableCell Control</strong><br />
The TableCell class represents a cell in the Table contol. We use the Text <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">property to</span> set the contents of the cell. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
TableCell</span><br />
<strong>Notable Properties</strong><br />
Notable proeprties of the TableCell class are as follows:<br />
<br />
<span style="color: blue;">ColumnSpan</span>: Gets/Sets the number of columns the cell spans<br />
<span style="color: blue;">HorizontalAlign</span>: Gets/Sets the cell content's horizontal alignment<br />
<span style="color: blue;">RowSpan</span>: Gets/Sets the number of rows the cell spans<br />
<span style="color: blue;">Text</span>: Gets/Sets the text in the cell<br />
<span style="color: blue;">VerticalAlign</span>: Gets/Sets the cell content's vertical alignment<br />
<span style="color: blue;">Wrap</span>: Gets/Sets whether the cell content wraps<br />
<strong>Creating Tables</strong><br />
Creating a table at design time is fairly simple. Drag a table control on to the form and add some rows and columns to it using the<span style="color: blue;"> Rows</span> property. When you click the <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">ellipse</span>button in the Rows property it opens the <span style="color: blue;">TableRow Collection Editor</span> window as shown in <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the image</span> below. You need to click the Add button found on this dialog to add rows to the table. Once you add a row to the table you can notice the properties for the newly added row in the right column of the TableRow Collection Editor window. You can set properties for the row in this column. To add a cell to a row, select the row and click the ellipse button found in the <span style="color: blue;">Cells</span> property to open the <span style="color: blue;">TableCell Collection Editor</span>Window. You need to click the Add button found on this window to add cells to the row. Once you add a cell to the row you can notice the properties of the newly added row in the right column of the TableCell Collection Editor window. You can add any number of cells to a row depending upon your requirements. You can view a table at work below.<br />
<br />
<img src="http://www.startvbdotnet.com/aspsite/controls/tree.gif" /><br />
<strong><u>Live Demo</u></strong><br />
<br />
<hr color="teal" size="2" /><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table bgcolor="Linen" border="0" bordercolor="Black" id="Table2" title="Table Web Server Control"><tbody>
<tr bgcolor="Maroon"><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Programming Languages</b></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Database</b></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">C#</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">SQlServer</span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">VB .NET</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">DB2</span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">Java</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">Oracle</span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">C++</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">MYSQL</span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">C</span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="font-family: Verdana; font-size: x-small;">FireBird<br />
<br />
</span></td></tr>
</tbody></table></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-size: xx-small;"><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Validation Controls</span><br />
Validation is the process of making sure that the user enters correct information into a form. Validation controls provided by .NET Framework work in the client browser if the browser supports Javascript and DHTML and checks the data the user entered before sending it to the server. All the validation takes place in the browser and nothing is sent back to the server. If the browser doesn't support DHTML and scripting then validation is done on the server. All validation controls in the .NET Framework are derived from the <span style="color: blue;">BaseValidator</span> class. This class serves as the base abstract class for the validation controls and provides the implementation for all validation controls that derive from this class.<br />
The validation controls that are provided by the .NET Framework are as follows:<br />
<span style="color: blue;">RequiredFieldValidator<br />
CompareValidator<br />
RangeValidator<br />
RegularExpressionValidator<br />
CustomValidator</span><br />
Common to all the above said controls are the <span style="color: blue;">ErrorMessage</span> and <span style="color: blue;">ControlToValidate</span> properties. The ErrorMessage property is used to set an error to be displayed and the ControlToValidate property is used to set the control you want to check.<br />
<strong><u>RequiredFieldValidator</u></strong><br />
Simplest of all, the RequiredField validator makes sure that the user enters data into a form. For example, on a registration form you might want your users to enter their date of birth in a textbox. If they leave this field empty, this validation control will display an error. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label<br />
BaseValidator<br />
RequiredFieldValidator</span><br />
Notable property of the RequiredFieldValidator is the <span style="color: blue;">InitialValue </span>property which sets an initial value in the control.<br />
<strong><u>CompareValidator</u></strong><br />
Comparison validators are used to compare the values entered by the user into a control (textbox) with the value entered into another control or with a constant value. We indicate the control to validate by setting the <span style="color: blue;">ControlToValidate </span>property and if we want to compare a specific control with another control we need to set the<span style="color: blue;">ControlToCompare</span> property to specify the control to compare with. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label<br />
BaseValidator<br />
BaseCompareValidator<br />
CompareValidator</span><br />
<strong><u>RangeValidator</u></strong><br />
Range Validators are used to test if the value of a control is inside a specified range of values. The three main properties of this control are the <span style="color: blue;">ControlToValidate</span> property which contains the control to validate and <span style="color: blue;">Maximum</span> and <span style="color: blue;">Minimum</span> values which hold the maximum and minimum values of the valid range. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label<br />
BaseValidator<br />
BaseCompareValidator<br />
RangeValidator</span><br />
<strong><u>RegularExpressionValidator</u></strong><br />
RegularExpression validators are used to check if the value in a control matches a pattern defined by the regular expression. Notable property for this control is the<span style="color: blue;">ValidationExpression</span> property which allows us to select a predefined expression which we want to match with the data entered in a control. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label<br />
BaseValidator<br />
RegularExpressionValidator</span><br />
<u><strong>CustomValidator</strong></u><br />
Custom validators are used to perform our own validation for the data in a control. For example, you can check the value entered by a user is even or odd with this control which is not possible with any of the above mentioned validation controls. You write the script for the validation using Javascript or VBScript and associate that script function to the <span style="color: blue;">ClientValidationFunction</span> property of this control. The class hierarchy for this control is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
Label<br />
BaseValidator<br />
CustomValidator</span><br />
<strong><u>ValidationSummary</u></strong><br />
Validation summary control is used to display a summary of all validation errors (from all validation controls) on a Web page. This class is supported by the<span style="color: blue;">ValidationSummary</span> class and the hierarchy is as follows:<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
WebControl<br />
ValidationSummary</span><br />
Notable property of this control is the <span style="color: blue;">DisplayMode</span> property which allows us to display the errors in a specific format, example, as a list, paragraph or as a bulletlist.<br />
<div><br />
</div></span></td></tr>
</tbody></table>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-80705968727262356242011-07-19T21:07:00.000+05:302011-07-19T21:07:07.212+05:30ASP.NET FEATURES AND DEVELOPMENT ENVIRONMENT<strong><span style="color: black; font-family: Verdana; font-size: 13.5pt;">ASP.NET</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET, the next version of ASP, is a programming framework used to create enterprise-class Web Applications. These applications are accessible on a global basis leading to effecient information managment. The advantages ASP.NET offers is more than just the next version of ASP.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Why ASP.NET?</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">Since 1995, Microsoft has been constantly working to shift it's focus from Windows-based platforms to the Internet. As a result, Microsoft introduced ASP (Active Server Pages) in November 1996. ASP offered the efficiency of ISAPI applications along with a new level of<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD5" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">simplicity</span></span><span class="apple-converted-space"> </span>that made it easy to understand and use. However,<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD2" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">ASP script</span></span>was an interpreted script and consisted unstructured code and was difficult to debug and<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD3" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">maintain</span></span>. As the web consists of many different technologies, software integration for Web development was<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD12" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">complicated</span></span><span class="apple-converted-space"> </span>and required to understand many different technologies. Also, as applications grew bigger in size and became more complex, the number of lines of source code in ASP applications increased dramatically and was hard to<span class="apple-converted-space"> </span>maintain. Therefore, an architecture was needed that would allow development of Web applications in a structured and consistent way.<o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">The .NET Framework was introduced with a vision to create globally distributed software with Internet functionality and interoperability. The .NET Framework consists of many class libraries, includes multiple language support and a common execution platform. It's a very flexible foundation on which many different types of top class applications can be developed that do different things. Developing Internet applications with the .NET Framework is very easy. ASP.NET is built into this framework, we can create ASP.NET applications using any of the built-in languages.<o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">Unlike ASP, ASP.NET uses the Common Language Runtime (CLR) provided by the .NET Framework. This CLR manages execution of the code we write. ASP.NET code is a compiled CLR code instead of interpreted code (ASP). CLR also allows objects<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD11" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">written</span></span><span class="apple-converted-space"> </span>in different languages to interact with each other. The CLR makes developement of Web applications simple.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Advantages Using ASP.NET</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<ul type="circle"><li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET drastically reduces the amount of code required to build large applications<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET makes development simpler and easier to<span class="apple-converted-space"> </span>maintain<span class="apple-converted-space"> </span>with an event-driven, server-side programming model<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET pages are easy to write and<span class="apple-converted-space"> </span>maintain<span class="apple-converted-space"> </span>because the source code and HTML are together<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">The source code is executed on the server. The pages have lots of power and flexibility by this approach<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">The source code is compiled the<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD8" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">first time</span></span><span class="apple-converted-space"> </span>the page is requested. Execution is fast as the<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD6" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">Web Server</span></span><span class="apple-converted-space"> </span>compiles the page the<span class="apple-converted-space"> </span>first time<span class="apple-converted-space"> </span>it is requested. The server saves the compiled version of the page for use next time the page is requested<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">The HTML produced by the ASP.NET page is sent back to the browser. The application source code you write is not sent and is not easily stolen<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET makes for easy deployment. There is no need to register components because the configuration information is built-in<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">The<span class="apple-converted-space"> </span>Web server<span class="apple-converted-space"> </span>continuously monitors the pages, components and applications<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD10" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">running on</span></span><span class="apple-converted-space"> </span>it. If it noticies<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD4" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">memory leaks</span></span>, infinite loops, other illegal software or activities, it seamlessly kills those activities and restarts itself<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET validates information (validation<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD9" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">controls</span></span>) entered by the user without writing a single line of code<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET easily works with <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> .NET using data-binding and page formatting features<o:p></o:p></span></li>
<li class="MsoNormal" style="color: black; mso-list: l0 level1 lfo1; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ASP.NET applications run fater and counters large volumes of users without performance problems<o:p></o:p></span></li>
</ul><strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Differences between ASP.NET and Client-Side Technologies</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">Client-side refers to the browser and the machine running the browser. Server-side on the other hand refers to a<span class="apple-converted-space"> </span><a href="http://www.webhostingsearch.com/asp-hosting.php" target="blank"><span style="text-decoration: none; text-underline: none;">ASP hosting<span class="apple-converted-space"> </span></span></a>Web server.<o:p></o:p></span><br />
<u><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Client-Side Scripting</span></u><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">Javascript and VBScript and generally used for Client-side scripting. Client-side scripting executes in the browser after the page is loaded. Using client-side scripting you can add some cool features to your page. Both, HTML and the script are together in the same file and the script is download as part of the page which anyone can view. A client-side script runs only on a browser that supports scripting and specifically the<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD1" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">scripting language</span></span><span class="apple-converted-space"> </span>that is used. Since the script is in the same file as the HTML and as it executes on the machine you use, the page may take longer time to download.<o:p></o:p></span><br />
<u><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Server-Side Scripting</span></u><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET is purely server-side technology. ASP.NET code executes on the server before it is sent to the browser. The code that is sent back to the browser is pure HTML and not ASP.NET code. Like client-side scripting, ASP.NET code is similar in a way that it allows you to write<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD7" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">your code</span></span><span class="apple-converted-space"> </span>alongside HTML. Unlike client-side scripting, ASP.NET code is executed on the server and not in the browser. The script that you write alongside your HTML is not sent back to the browser and that prevents others from stealing the code you developed.<o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 13.5pt;"></span>ASP.NET Features</b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET is not just a simple upgrade or the<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD6" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">latest version</span></span><span class="apple-converted-space"> </span>of ASP. ASP.NET combines unprecedented developer productivity with performance, reliability, and deployment. ASP.NET redesigns the whole process. It's still easy to grasp for new comers but it provides many new ways of<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD9" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">managing projects</span></span>. Below are the features of ASP.NET.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Easy Programming Model</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET makes building real world Web<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD7" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">applications</span></span><span class="apple-converted-space"> </span>dramatically easier. ASP.NET server controls enable an<span class="apple-converted-space"> </span><br />
HTML-like style of declarative programming that let you build great pages with far less code than with classic ASP. Displaying data, validating user input, and uploading files are all amazingly easy. Best of all, ASP.NET pages work in all browsers including Netscape, Opera, AOL, and Internet Explorer.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Flexible Language Options</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET lets you leverage your current programming language skills. Unlike classic ASP, which supports only interpreted VBScript and JScript, ASP.NET now supports more than 25 .NET languages (built-in support for VB.NET, C#, and JScript.NET), giving you unprecedented flexibility in your<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD2" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">choice</span></span><span class="apple-converted-space"> </span>of language.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Great Tool Support</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">You can harness the full power of ASP.NET using any<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD11" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">text editor</span></span>, even Notepad. But<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD8" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">Visual Studio</span></span><span class="apple-converted-space"> </span>.NET adds the productivity of Visual Basic-style development to the Web. Now you can visually design ASP.NET Web Forms using familiar drag-drop-doubleclick techniques, and enjoy full-fledged code support including statement<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD5" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">completion</span></span>and color-coding. VS.NET also provides integrated support for debugging and deploying ASP.NET Web<span class="apple-converted-space"> </span>applications. The <st1:city w:st="on"><st1:place w:st="on">Enterprise</st1:place></st1:city> versions of<span class="apple-converted-space"> </span>Visual Studio<span class="apple-converted-space"> </span>.NET deliver life-cycle features to help organizations plan, analyze, design, build, test, and coordinate teams that develop ASP.NET Web<span class="apple-converted-space"> </span>applications. These include UML class modeling, database modeling (conceptual, logical, and physical models), testing tools (functional, performance and scalability), and enterprise frameworks and templates, all available within the integrated<span class="apple-converted-space"> </span>Visual Studio<span class="apple-converted-space"> </span>.NET environment.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Rich Class Framework</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">Application features that used to be hard to implement, or required a 3rd-party component, can now be added in just a few lines of code using the .NET Framework. The .NET Framework offers over 4500 classes that encapsulate rich functionality like XML, data access, file upload, regular expressions, image generation,<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD12" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">performance monitoring</span></span><span class="apple-converted-space"> </span>and logging, transactions, message queuing, SMTP mail, and much more. With Improved Performance and Scalability ASP.NET lets you use serve more users with the same hardware.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Compiled execution</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET is much faster than classic ASP, while preserving the "just hit save" update model of ASP. However, no explicit compile step is required. ASP.NET will automatically detect any changes, dynamically compile the files if needed, and store the compiled results to reuse for subsequent requests. Dynamic compilation ensures that your application is always up to date, and compiled execution makes it fast. Most<span class="apple-converted-space"> </span>applications<span class="apple-converted-space"> </span>migrated from classic<span class="apple-converted-space"> </span><br />
ASP see a 3x to 5x increase in pages served.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Rich output caching</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET output caching can dramatically improve the performance and scalability of your application. When output caching is enabled on a page, ASP.NET executes the page just once, and saves the<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD1" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">result in</span></span><span class="apple-converted-space"> </span>memory in addition to sending it to the user. When another user requests the same page, ASP.NET serves the cached result from memory without re-executing the page. Output caching is configurable, and can be used to cache individual regions or an entire page. Output caching can dramatically improve the performance of data-driven pages by eliminating the need to query the database on every request.<o:p></o:p></span><br />
<st1:place w:st="on"><st1:placename w:st="on"><strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Web-Farm</span></strong></st1:placename><strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <st1:placename w:st="on">Session</st1:placename> <st1:placetype w:st="on">State</st1:placetype></span></strong></st1:place><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET session state lets you share session data user-specific state values across all machines in your Web farm. Now a user can hit different servers in the Web farm over multiple requests and still have full access to her session. And since business components created with the .NET Framework are free-threaded, you no longer need to worry about thread affinity.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Enhanced Reliability</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET ensures that your application is always available to your users.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Memory Leak, DeadLock and Crash Protection </span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET automatically detects and recovers from errors like deadlocks and memory leaks to ensure your application is always available to your users. For example, say that your application has a small memory leak, and that after a week the leak has tied up a significant percentage of your server's virtual memory. ASP.NET will detect this condition, automatically start up another copy of the ASP.NET worker process, and direct<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD3" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">all new</span></span><span class="apple-converted-space"> </span>requests to the new process. Once the old process has finished processing its pending requests, it is gracefully disposed and the leaked memory is released. Automatically, without administrator intervention or any interruption of service, ASP.NET has recovered from the error. <o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Easy Deployment</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET takes the pain out of deploying server<span class="apple-converted-space"> </span>applications. "No touch" application deployment. ASP.NET dramatically simplifies installation of your application. With ASP.NET, you can deploy an entire application as easily as an HTML page, just copy it to the server. No need to run regsvr32 to register any components, and configuration settings are stored in an XML file within the application.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Dynamic update of running application</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET now lets you update compiled components without restarting the web server. In the past with classic COM components, the developer would have to restart the web server each time he deployed an update. With ASP.NET, you simply copy the component over the existing DLL, ASP.NET will automatically detect the change and start using the new code.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Easy Migration Path</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">You don't have to migrate your existing<span class="apple-converted-space"> </span>applications<span class="apple-converted-space"> </span>to start using ASP.NET. ASP.NET runs on IIS side-by-side with classic ASP on Windows 2000 and Windows XP platforms. Your existing ASP<span class="apple-converted-space"> </span>applications<span class="apple-converted-space"> </span>continue to be processed by ASP.DLL, while new ASP.NET pages are processed by the new ASP.NET engine. You can migrate application by application, or single pages. And ASP.NET even lets you continue to use your existing classic COM business components. <o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">XML Web Services</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">XML Web services allow<span class="apple-converted-space"> </span>applications<span class="apple-converted-space"> </span>to communicate and share data over the Internet, regardless of<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD10" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">operating system</span></span><span class="apple-converted-space"> </span>or programming language. ASP.NET makes exposing and calling XML Web Services simple. Any class can be converted into an<span class="apple-converted-space"> </span><span class="ilad"><span id="IL_AD4" style="background-attachment: scroll; background-clip: initial !important; background-origin: initial !important; background-position-x: 0%; background-position-y: 50%; background-repeat: repeat !important; cursor: pointer !important; float: none;">XML Web Service</span></span><span class="apple-converted-space"> </span>with just a few lines of code, and can be called by any SOAP client. Likewise, ASP.NET makes it incredibly easy to call XML Web Services from your application. No knowledge of networking, XML, or SOAP is required.<o:p></o:p></span><br />
<strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Mobile Web Device Support</span></strong><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> <o:p></o:p></span><br />
<span style="color: black; font-family: Verdana; font-size: 10.0pt;">ASP.NET Mobile Controls let you easily target cell phones, PDAs and over 80 mobile Web devices. You write your application just once, and the mobile controls automatically generate WAP/WML, HTML, or iMode as required by the requesting device. <o:p></o:p></span><br />
<div class="MsoNormal"><o:p> </o:p><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"><strong><span style="font-size: medium;">ASP.NET Development Environment</span></strong></span><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: xx-small;"> </span></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Most of the programming languages with which we work require a development environment to code, test and run the programs. You may purchase a copy of that software at your local computer store and work with it. With ASP.NET things are different. ASP.NET is a development technology that is built into the .NET Framework. You can create ASP.NET applications with a simple editor like a notepad. If you prefer to work in a development environment then you have many to choose from. Visual Studio .NET (should purchase) is one development environment from Microsoft. Another development environment from Microsoft which is prefered by many developers is Microsoft Web Matrix. The best thing about ASP.NET Web Matrix is it's free (available as a 1.4 MB free download) and provides most of the features Visual Studio .NET provides.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong><u>Setting Up the Development Environment</u></strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">As you already know, ASP.NET is based on the CLR, class libraries and other tools which are integrated into the .NET Framework. To develop and run a ASP.NET application you need to have the .NET Framework installed on your machine. .NET Framework comes pre installed with Operating Systems like Windows 2003 Server and Windows XP. For other operating systems (Windows 2000, 98, Me, NT 4.0) you need to instal the .NET Framework manually. You can install .NET Framework manually in two ways: <span style="color: blue;">.NET Framework SDK</span> or <span style="color: blue;">VS .NET</span>.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Installing the .NET Framework with SDK is simple. Download .NET Framework from Microsoft.com and<br />
double-click setup file and follow the instructions. Installing .NET Framework with Visual Studio .NET is simple too. When you install Visual Studio .NET (set of five cd's) you will be prompted to insert the disk that contains the .NET Framework.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>IIS</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To develop a Web Application you need IIS (Internet Information Server) on your machine. IIS comes pre installed in Operating Systems like Windows 2000, XP and 2003. You need to configure IIS to run ASP.NET Web applications. You should configure IIS prior to the installation of Visual Studio .NET software on your machine to avoid errors. In most cases configuring IIS after the installation of VS .NET will result in many errors and unexpected behaviour by the application.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">By default, IIS creates a folder on the server's hard drive with the name Inetpub. The Inetpub folder contains a subfolder called wwwroot. The wwwroot folder is the root for the Web site. All the ASP.NET applications you develop using VS .NET are saved in this wwwroot folder.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Web Hosting</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">You also can test and run your applications on a server owned by <a href="http://www.webhostingsearch.com/" style="color: blue; text-decoration: none;" target="_blank">hosting providers</a>. The host will give you details you need to know to upload files onto his server, test those files, etc. Web Hosting providers charge some amount for providing service. There are some hosting providers who provide some space for a certain period of time on their servers for ASP.NET developers to test their applications free of charge. You can find about them on the resources page of this site.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Visual Studio .NET</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">Visual Studio .NET consists of five cd's. Please follow the guide lines on installing the software.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>ASP.NET Web Matrix</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To use Web Matrix you need to download Web Matrix software which is a small 1.4 MB file and run the installation. To use Web Matrix you should have the .NET Framework installed on your machine. Developers who decide to code their applications using ASP .NET Web matrix need not worry about IIS. Web Matrix server comes with it's own built-in server that helps you to test and run your applications.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"><strong>Database</strong></div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;">To develop ASP.NET database applications you need to install SQL Server 2000 or higher or Oracle depending on the database you wish to use. Use of SQL Server with ASP.NET is recommended as it's said that SQL Connections are 70% faster than OLEDB Connections. Also, performance improves dramatically when you use SQL Server with ASP.NET.</div><div style="-webkit-border-horizontal-spacing: 10px; -webkit-border-vertical-spacing: 10px; font-family: verdana; font-size: x-small;"></div><span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Web Forms</span><br />
<span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> are based on ASP.NET. Working with Web Forms is similar to working with Windows Forms. But the difference is that we will <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">create Web pages</span> with Web formsthat will be accessible by a Web browser. Web Forms are Web pages that serve as the user interface for a Web application. A Web Forms page presents information to the user in any browser or client device and implements application logic using server-side code. Web Forms are based on the <span style="color: blue;">System.Web.UI.Page</span> class. The class hierarchy for the page class is shown below.<br />
<br />
<span style="color: blue;">Object<br />
Control<br />
TemplateControl<br />
Page</span><br />
<strong>Components of Web Forms</strong><br />
In Web Forms pages, the user interface programming is divided into two parts: the <span style="color: blue;">visual component</span> (design page) and the <span style="color: blue;">logic</span> (code behind page).<br />
The visual element is the Web Forms page. The page consists of a file with static HTML, or ASP.NET server <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">controls</span>, or both simultaneously. The Web Forms page works as a container for the static text and the controls we want to display. Using the <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Visual Studio</span> Web Forms Designer and ASP.NET server controls, we can design the form just like in any Visual Studio application.<br />
The logic for the Web Forms page consists of code that we create to interact with the form. The programming logic is in a separate file from the user interface file. This file is the "<span style="color: blue;">code-behind</span>" file and has an ".<span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">aspx</span>.vb" (VB) or ".aspx.cs" (C-Sharp) extension. The logic we write in the code-behind file can be <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">written</span> <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">in Visual Basic</span> or Visual C#.<br />
The code-behind class files for all Web Forms pages in a project are compiled into the project dynamic-link library (.dll) file. The .aspx page file is also compiled, but differently. The first time a user loads the aspx page, ASP.NET automatically generates a .NET <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">class file</span> that represents the page, and compiles it to a second .dll file. The generated class for the aspx page inherits from the code-behind class that was compiled into the project .dll file. When the user requests the Web page URL, the .<span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">dll files</span>run on the server and dynamically produces the HTML output for your page<br />
<br />
<span class="heading" style="color: black; font-family: Verdana; font-size: small; font-style: normal; font-variant: normal; font-weight: bold;">Web Forms Page Life Cycle </span><br />
In general, the life cycle for a <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web Forms</span> page is similar to that of any Web process that runs on the server. Certain <span class="IL_AD" id="IL_AD5" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">characteristics</span> of Web <span class="IL_AD" id="IL_AD3" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">processing information</span> is passed via HTTP protocol, the stateless nature of Web pages, and so on. However, the ASP.NET page framework performs many Web <span class="IL_AD" id="IL_AD9" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">application services</span> for us. It is important to understand the sequence of events that occur when a Web Forms page is processed.<br />
<strong><u>The Life Cycle of a Web Forms Page</u></strong><br />
It will be helpful to understand some fundamental characteristics of how Web Forms pages work in Web <span class="IL_AD" id="IL_AD7" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">applications</span> before we examine <span class="IL_AD" id="IL_AD4" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the details</span> of what goes on inside a page when it is processed.<br />
<strong>Round Trips</strong><br />
Most Web pages require processing on the server. For example, consider a products page used to check the <span class="IL_AD" id="IL_AD1" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">availability</span> of a certain product. When a user selects his product and hits the submit button the page must check on the server to see whether the selected product is available or not. This kind of functionality is achieved by handling server control events. Whenever a user interaction requires processing on the server, the Web page is posted back to the server, processed and is returned back to the browser. This sequence is called round trip. <span class="IL_AD" id="IL_AD6" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">The image</span> below demonstrates server round trip.<br />
<br />
<img alt="Server Round Trip" src="http://www.startvbdotnet.com/aspsite/forms/images/roundtrip.gif" /><br />
In any Web scenario, Web pages are recreated with every round trip. When the server finishes processing and sends the page to the browser, it discards the page information. This frees server resources after each request and a Web application can scale to support hundreds or thousands of simultaneous users. The next time the page is posted, the server starts over in creating and processing it, and for this reason, Web pages are said to be stateless. Stateless means the values of a page's variables and controls are not saved on the server.<br />
ASP.NET works around the above said limitations in the following ways:<br />
<ul><li style="list-style-type: circle;">ASP.NET saves page and control properties between round trips. This is referred to as saving the view state of <span class="IL_AD" id="IL_AD11" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">the control</span>. </li>
<li style="list-style-type: circle;">It provides state <span class="IL_AD" id="IL_AD10" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">management facilities</span> so that you can save your own variable and application-specific or session-specific information between round trips. </li>
<li style="list-style-type: circle;">It can detect when a form is requested for the first time versus when the form is posted, and allows you to program accordingly. You may want a different behavior during a page postback versus an initial request.</li>
</ul><strong>Stages in Web Forms Processing</strong><br />
<br />
<table bgcolor="Linen" border="0" bordercolor="White" id="Table2"><tbody>
<tr bgcolor="Maroon"><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" valign="Top" width="25%"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Stage</b></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;" width="35%"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Means</b></span></td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;"><span style="color: white; font-family: Verdana; font-size: x-small;"><b>Use</b></span></td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Page Initialization</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">The page's Page_Init event is raised, and the page and control view state are restored.</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">During this event, the ASP.NET page framework restores the controlproperties and postback data.</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">User Code Initialization</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">The page's Page_Load event is raised.</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Read and restore values stored previously, Using the Page.IsPostBack property, check whether this is the first time the page is being processed. If this is the first time the page is being processed then perform initial data binding. Otherwise, restore control values. Read and update control properties.</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Validation</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">The Validate method of any validator <span class="IL_AD" id="IL_AD8" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">Web server</span> controls is invoked <span class="IL_AD" id="IL_AD12" style="background-attachment: scroll !important; background-clip: initial !important; background-color: transparent !important; background-image: none !important; background-origin: initial !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 153, 0) !important; border-bottom-style: solid !important; border-bottom-width: 1px !important; color: rgb(0, 153, 0) !important; cursor: pointer !important; display: inline !important; float: none !important; font-family: Verdana !important; font-size: 10px !important; font-style: normal !important; font-weight: normal !important; padding-bottom: 1px !important; padding-left: 0px !important; padding-right: 0px !important; padding-top: 0px !important; position: static; text-decoration: underline !important;">to perform</span> the control's specified validation.</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Test the outcome of validation in an event handler</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Event Handling</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">If the page was called in response to a form event, the corresponding event handler in the page is called during this stage</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Perform application-specific processing and handle the specific event raised.</td></tr>
<tr><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Cleanup</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">The Page_Unload event is called because the page has finished rendering and is ready to be discarded.</td><td style="font-family: Verdana; font-size: x-small; font-weight: normal; letter-spacing: normal; text-transform: none; word-spacing: normal;">Perform final cleanup work. Close files, closing database connections and discard objects.</td></tr>
</tbody></table>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-36531933968267235612011-06-14T21:45:00.000+05:302011-06-14T21:45:26.914+05:30Fresher Sample Resume for MCA<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div align="center" class="MsoNormal" style="margin-left: 4.25in; text-align: center; text-indent: -4.25in;"><b><u><span style="font-family: Verdana; font-size: 10.0pt;">CURRICULUM VITAE<o:p></o:p></span></u></b></div><div align="center" class="MsoNormal" style="text-align: center;"><br />
</div><div align="center" style="margin-bottom: .0001pt; margin: 0in; text-align: center;"><b><span style="font-family: Verdana; font-size: 10.0pt;">Mr.</span></b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span></div><div align="center" style="margin-bottom: .0001pt; margin: 0in; tab-stops: 171.0pt; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt;">Banglore-67.<o:p></o:p></span></div><div align="center" style="margin-bottom: .0001pt; margin: 0in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt;">Mobile No.: 91-<o:p></o:p></span></div><div align="center" style="margin-bottom: .0001pt; margin: 0in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt;">Email:<a href="mailto:nandananeelapalem@gmail.com">gmail.com</a></span><span style="color: black;"><o:p></o:p></span></div><div align="center" style="margin-bottom: .0001pt; margin: 0in; text-align: center;"><br />
</div><div style="border-top: solid windowtext 1.0pt; border: none; mso-border-top-alt: solid windowtext .5pt; mso-element: para-border-div; padding: 1.0pt 0in 0in 0in;"> <h1 style="border: none; mso-border-top-alt: solid windowtext .5pt; mso-padding-alt: 1.0pt 0in 0in 0in; padding: 0in;"><span style="font-family: Verdana; mso-bidi-font-size: 10.0pt;"><o:p> </o:p></span></h1></div><h1><u><span style="font-family: Verdana; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; text-transform: uppercase;">Objective<o:p></o:p></span></u></h1><div class="MsoNormal"><br />
</div><div style="border-bottom: solid windowtext 1.5pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <div class="MsoNormal" style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-style: italic;">To work in a challenging and competitive environment and be a part of an organization that has core interest in the software industry and to achieve its defined goals and objectives.<o:p></o:p></span></div><div class="MsoNormal" style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><br />
</div></div><table align="left" border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; margin-left: 6.75pt; margin-right: 6.75pt; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-anchor-horizontal: margin; mso-table-anchor-vertical: paragraph; mso-table-layout-alt: fixed; mso-table-left: left; mso-table-lspace: 9.0pt; mso-table-rspace: 9.0pt; mso-table-top: 23.6pt;"><tbody>
<tr style="height: 34.1pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; page-break-inside: avoid;"> <td style="background: #BFBFBF; border: solid windowtext 1.0pt; height: 34.1pt; mso-border-alt: solid windowtext .5pt; mso-pattern: gray-25 black; mso-shading: white; padding: 0in 5.4pt 0in 5.4pt; width: 130.65pt;" width="174"> <div align="center" class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Degree <o:p></o:p></span></div></td> <td style="background: #BFBFBF; border-left: none; border: solid windowtext 1.0pt; height: 34.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-pattern: gray-25 black; mso-shading: white; padding: 0in 5.4pt 0in 5.4pt; width: 151.0pt;" width="201"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Institute<o:p></o:p></span></div></td> <td style="background: #BFBFBF; border-left: none; border: solid windowtext 1.0pt; height: 34.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-pattern: gray-25 black; mso-shading: white; padding: 0in 5.4pt 0in 5.4pt; width: 75.7pt;" width="101"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Year of completion<o:p></o:p></span></div></td> <td style="background: #BFBFBF; border-left: none; border: solid windowtext 1.0pt; height: 34.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-pattern: gray-25 black; mso-shading: white; padding: 0in 5.4pt 0in 5.4pt; width: 80.05pt;" width="107"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Specialization<o:p></o:p></span></div></td> <td style="background: #BFBFBF; border-left: none; border: solid windowtext 1.0pt; height: 34.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-pattern: gray-25 black; mso-shading: white; padding: 0in 5.4pt 0in 5.4pt; width: 1.0in;" width="96"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Percentage<o:p></o:p></span></div></td> </tr>
<tr style="height: 45.4pt; mso-yfti-irow: 1; page-break-inside: avoid;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 45.4pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 130.65pt;" width="174"> <div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Master of Computer Applications,<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><br />
</div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 151.0pt;" width="201"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">,<o:p></o:p></span></div><div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Sri Venkateswara University-Tirupati<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 75.7pt;" width="101"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">August-20<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 80.05pt;" width="107"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Computer Applications<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 45.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.0in;" width="96"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">73.24%<o:p></o:p></span></div></td> </tr>
<tr style="height: 44.75pt; mso-yfti-irow: 2; page-break-inside: avoid;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 44.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 130.65pt;" width="174"> <div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Bachelor of Science,<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><br />
</div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 44.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 151.0pt;" width="201"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Emerald’s <st1:place w:st="on"><st1:placename w:st="on">Degree</st1:placename> <st1:placetype w:st="on">College</st1:placetype></st1:place>, Sri Venkateswara University-Tirupati<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 44.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 75.7pt;" width="101"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">April-20<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 44.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 80.05pt;" width="107"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Computer Applications<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 44.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.0in;" width="96"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">73.03%<o:p></o:p></span></div></td> </tr>
<tr style="height: 25.65pt; mso-yfti-irow: 3; page-break-inside: avoid;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 25.65pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 130.65pt;" width="174"> <div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Board of Intermediate-AP,<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><br />
</div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 25.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 151.0pt;" width="201"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Junior College, Sri Venkateswara University-Tirupati<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 25.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 75.7pt;" width="101"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">March-20<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 25.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 80.05pt;" width="107"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><br />
</div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 25.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.0in;" width="96"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">70.12%*<o:p></o:p></span></div></td> </tr>
<tr style="height: 36.25pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes; page-break-inside: avoid;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 36.25pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 130.65pt;" width="174"> <div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Board of Secondary Education-AP,<o:p></o:p></span></div><div class="MsoNormal" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly;"><br />
</div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 36.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 151.0pt;" width="201"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;"><span style="mso-spacerun: yes;"> </span>High School-Tirupati<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 36.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 75.7pt;" width="101"> <div class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">March-1<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 36.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 80.05pt;" width="107"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">-<o:p></o:p></span></div></td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 36.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.0in;" width="96"> <div align="center" class="MsoHeader" style="margin-bottom: 1.0pt; margin-left: 0in; margin-right: 0in; margin-top: 1.0pt; mso-element-anchor-horizontal: margin; mso-element-anchor-vertical: paragraph; mso-element-frame-hspace: 9.0pt; mso-element-top: 23.6pt; mso-element-wrap: around; mso-element: frame; mso-height-rule: exactly; tab-stops: .5in; text-align: center;"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">59.09%<o:p></o:p></span></div></td> </tr>
</tbody></table><div class="MsoCaption">Education Profile</div><div class="MsoNormal" style="margin-left: .25in;"><br />
</div><div class="MsoNormal"><span style="font-family: Verdana; font-size: 10.0pt; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>* - Accomplished college 2<sup>nd</sup> rank<o:p></o:p></span></div><div class="MsoNormal"><!--[if gte vml 1]><v:line id="_x0000_s1027" style='position:absolute;
z-index:2' from="0,8.55pt" to="513pt,8.55pt" strokeweight="1.5pt"/><![endif]--><!--[if !vml]--><span style="height: 13px; left: -1px; mso-ignore: vglayout; position: relative; top: 10px; width: 686px; z-index: 2;"><img height="3" src="file:///C:/DOCUME~1/nandu/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_s1027" width="686" /></span><!--[endif]--><o:p> </o:p></div><br clear="ALL" style="mso-ignore: vglayout;" /> <h5><span style="mso-fareast-font-family: "Times New Roman";">Technical Skills and job profieciency<o:p></o:p></span></h5><div class="MsoNormal" style="margin-left: .25in;"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l1 level1 lfo1; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Languages<span style="mso-tab-count: 2;"> </span>C, C++,.NET Languages(C#,VB,ASP)<o:p></o:p></span></li>
</ul><div class="MsoNormal"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l1 level1 lfo1; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Web Development<span style="mso-spacerun: yes;"> </span>HTML, JavaScript<o:p></o:p></span></li>
</ul><div class="MsoNormal"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l1 level1 lfo1; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">ERP Package<span style="mso-spacerun: yes;"> </span>SAR R/3<o:p></o:p></span></li>
</ul><div class="MsoNormal"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l1 level1 lfo1; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">SAP Specialization <span style="mso-spacerun: yes;"> </span>SAP Basis <o:p></o:p></span></li>
</ul><div class="MsoNormal" style="margin-left: .25in;"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l1 level1 lfo1; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Databases<span style="mso-tab-count: 2;"> </span>Oracle (sql),SQL Server 2000,2005<o:p></o:p></span></li>
</ul><div class="MsoNormal"><br />
</div><div class="MsoNormal" style="margin-left: .25in; mso-list: l1 level1 lfo1; tab-stops: list .25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;">Other Concepts<span style="mso-tab-count: 1;"> </span>Possess knowledge in Software Engineering Concepts.<o:p></o:p></span></div><div style="border-bottom: solid windowtext 1.5pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <h1 style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><span style="font-family: Verdana; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt;"><o:p> </o:p></span></h1></div><div class="MsoNormal"><br />
</div><div class="MsoNormal"><br />
</div><div class="MsoBodyText3"><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: Verdana; font-size: 10.0pt;">ELECTIVES PURSUED IN MCA</span></u></b><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;">:<span style="mso-spacerun: yes;"> </span><o:p></o:p></span></b></div><div class="MsoBodyText3" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l3 level1 lfo2; tab-stops: list .5in; text-align: justify; text-indent: .25in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span>Network Security.<b style="mso-bidi-font-weight: normal;"><o:p></o:p></b></span></div><div class="MsoBodyText3" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l3 level1 lfo2; tab-stops: list .5in; text-align: justify; text-indent: .25in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span>User Interface Design.<b style="mso-bidi-font-weight: normal;"><o:p></o:p></b></span></div><div class="MsoBodyText3" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l3 level1 lfo2; tab-stops: list .5in; text-align: justify; text-indent: .25in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span>Multimedia Systems.<b style="mso-bidi-font-weight: normal;"><o:p></o:p></b></span></div><div class="MsoBodyText3" style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l3 level1 lfo2; tab-stops: list .5in; text-align: justify; text-indent: .25in;"><!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span>Decision Support System.<b style="mso-bidi-font-weight: normal;"><o:p></o:p></b></span></div><div style="border-bottom: solid windowtext 1.5pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <h1 style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in;"><span style="font-family: Verdana; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt;"><o:p> </o:p></span></h1></div><div class="MsoBodyText"><br />
</div><div class="MsoBodyText"><b style="mso-bidi-font-weight: normal;"><u><span style="font-family: Verdana; font-size: 10.0pt; text-transform: uppercase;">Major project in MCA<o:p></o:p></span></u></b></div><div class="MsoBodyText" style="margin-left: .75in; text-indent: -.75in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;">Title:<span style="mso-spacerun: yes;"> </span>******** (PSS).<o:p></o:p></span></b></div><div class="MsoBodyText" style="margin-left: .75in; text-indent: -.75in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;">Client: ************<o:p></o:p></span></b></div><div class="MsoBodyText" style="margin-left: .75in; text-indent: -.75in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;">Platform: ASP.Net with C#.Net.<o:p></o:p></span></b></div><div class="MsoBodyTextIndent" style="margin-left: 0in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span>Description:<span style="mso-spacerun: yes;"> </span>***********************************************************************************************************************************************************************************************************************</span></b><span style="font-family: Verdana; font-size: 10.0pt;">. Various reports are generated month/year wise, auditor wise, organization wise, surveillance wise, Quotation wise etc.<o:p></o:p></span></div><div style="border-bottom: solid windowtext 1.5pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <div class="MsoBodyText" style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in; tab-stops: 0in;"><br />
</div></div><h5>B.Sc. Project</h5><div class="MsoNormal"><br />
</div><div class="MsoNormal"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt; mso-fareast-font-family: Batang;">Title: Library</span></b><span style="font-family: Verdana; font-size: 10.0pt; mso-fareast-font-family: Batang;"> <b style="mso-bidi-font-weight: normal;">Management System.</b><o:p></o:p></span></div><div class="MsoBodyText" style="tab-stops: 0in;"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt;">Platform: VB.Net.<o:p></o:p></span></b></div><div class="MsoBodyText"><b style="mso-bidi-font-weight: normal;"><span style="font-family: Verdana; font-size: 10.0pt; mso-fareast-font-family: Batang;">Description: </span></b><span style="font-family: Verdana; font-size: 10.0pt; mso-fareast-font-family: Batang;">Project is designed to deal with daily management system in Library Maintenance; it includes the modules to deal with Purchase, Issues, Returns and Routine informations.<span style="mso-spacerun: yes;"> </span>The project has a fast operational menu activating facility which is helpful for fast data accessing. The system provides overall information about books available in Library. Whenever a book was issued /returned then user has to just enter the details of date of issue and book number. Calculation of fine and the other complexities are handled by the system without any manual involvement. </span><span style="font-family: Verdana; font-size: 10.0pt;"><o:p></o:p></span></div><div style="border-bottom: solid windowtext 1.5pt; border: none; mso-element: para-border-div; padding: 0in 0in 1.0pt 0in;"> <div class="MsoBodyText" style="border: none; mso-border-bottom-alt: solid windowtext 1.5pt; mso-padding-alt: 0in 0in 1.0pt 0in; padding: 0in; tab-stops: 0in;"><br />
</div></div><h5><span style="mso-fareast-font-family: "Times New Roman";">Extra Curricular Activities & hobbies<o:p></o:p></span></h5><div class="MsoNormal"><br />
</div><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l2 level1 lfo3; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Qualified in examinations conducted by Soceity ************* during ****.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo3; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Qualified in the test held by Central Institute of General Knowledge Learning during -----.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo3; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Passed English Typewriting Lower.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo3; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Passed ********** and got State 5<sup>th</sup> rank.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l2 level1 lfo3; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Actively participated in all internal events conducted by *** college<o:p></o:p></span></li>
</ul><div class="MsoNormal"><!--[if gte vml 1]><v:line id="_x0000_s1028" style='position:absolute;
z-index:3' from="0,7.65pt" to="522pt,7.65pt"/><![endif]--><!--[if !vml]--><span style="height: 11px; left: -1px; mso-ignore: vglayout; position: relative; top: 9px; width: 698px; z-index: 3;"><img height="2" src="file:///C:/DOCUME~1/nandu/LOCALS~1/Temp/msohtml1/01/clip_image002.gif" v:shapes="_x0000_s1028" width="698" /></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><o:p> </o:p></span></div><div class="MsoNormal"><br />
</div><br clear="ALL" style="mso-ignore: vglayout;" /> <h5><span style="mso-fareast-font-family: "Times New Roman";">Personal Profile<o:p></o:p></span></h5><ul style="margin-top: 0in;" type="disc"><li class="MsoNormal" style="mso-list: l0 level1 lfo4; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Father’s Name<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>Mr. .<span style="mso-tab-count: 1;"> </span><o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo4; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Date of Birth<span style="mso-tab-count: 3;"> </span>.<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo4; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Languages known<span style="mso-tab-count: 2;"> </span>English, Hindi & Telugu<o:p></o:p></span></li>
<li class="MsoNormal" style="mso-list: l0 level1 lfo4; tab-stops: list .5in;"><span style="font-family: Verdana; font-size: 10.0pt;">Passport Number<span style="mso-tab-count: 2;"> </span><o:p></o:p></span></li>
</ul><div class="MsoNormal" style="margin-left: .25in;"><br />
</div><div class="MsoNormal" style="margin-left: .25in;"><!--[if gte vml 1]><v:line id="_x0000_s1026"
style='position:absolute;left:0;text-align:left;z-index:1' from="0,1.55pt"
to="513pt,1.55pt" strokeweight="1.5pt"/><![endif]--><!--[if !vml]--><span style="height: 3px; left: 0px; margin-left: -1px; margin-top: 1px; mso-ignore: vglayout; position: absolute; width: 686px; z-index: 1;"><img height="3" src="file:///C:/DOCUME~1/nandu/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_s1026" width="686" /></span><!--[endif]--><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><o:p></o:p></span></div><div class="MsoNormal" style="margin-left: .25in;"><br />
</div><div class="MsoNormal" style="margin-left: .25in;"><span style="font-family: Verdana; font-size: 10.0pt;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>Signature: (<span style="mso-spacerun: yes;"> </span>)<o:p></o:p></span></div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-61746804316301341252011-05-03T13:48:00.001+05:302011-05-03T13:48:43.849+05:30.NET TECHNICAL INTERVIEW QUESTIONS AND ANSWERES<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<h1><span class="interview-heading"><span style="color: black; font-family: Arial; font-size: 15.0pt;"><span style="mso-spacerun: yes;"> </span>Asp .Net Technical Interview Questions and Answers</span></span><span style="color: black;"><o:p></o:p></span></h1><span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>How many languages .NET is supporting now?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How is .NET able to support multiple languages?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How ASP .NET different from ASP?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is smart navigation?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is view state?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you validate the controls in an ASP .NET page?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Using special validation controls that are meant for this. We have Range Validator, Email Validator.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can the validation be done in the server side? Or this can be done only in the Client side?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How to manage pagination in a page?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is <st1:city w:st="on">ADO</st1:city> .NET and what is difference between <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Explain the differences between Server-side and Client-side code?</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<div class="answers1"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn’t have some of the functionality like sockets, uploading, etc. For these you have to make a custom components usually in VB or VC++. Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript. Download time, browser compatibility, and visible code - since JavaScript and VBScript code is included in the HTML page, then anyone can see the code by viewing the page source. Also a possible security hazards for the client computer.<o:p></o:p></span></div><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What type of code (server or client) is found in a Code-Behind class?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">C#</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Should validation (did the user enter a real date) occur server-side or client-side? Why?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-size: 13.5pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What does the "EnableViewState" property do? Why would I want it on or off?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Enable ViewState turns on the automatic state management feature that enables server controls to re-populate their values on a round trip without requiring you to write any code. This feature is not free however, since the state of a control is passed to and from the server in a hidden form field. You should be aware of when ViewState is helping you and when it is not. For example, if you are binding a control to data on every round trip (as in the datagrid example in tip #4), then you do not need the control to maintain it’s view state, since you will wipe out any re-populated data in any case. ViewState is enabled for all server controls by default. To disable it, set the EnableViewState property of the control to false.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between Server.Transfer and Response.Redirect?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Why would I choose one over the other? Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist across the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive. Response.Dedirect() :client know the physical location (page name and query string as well). Context.Items loses the persistence when navigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they’re difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems. As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">When to Use Web Services:</span><br />
<span class="answers">* Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.</span><br />
<br />
<span class="answers">* Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.</span><br />
<br />
<span class="answers">* Business-to-Business Integration This is an enabler for B2B integration which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.</span><br />
<br />
<span class="answers">* Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary component-based reuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of several other Applications. Each of these functions could be performed by individual apps, but there is value in perhaps combining the multiple apps to present a unified view in a Portal or Intranet.</span><br />
<br />
<span class="answers">* When not to use Web Services: Single machine Applications When the apps are running on the same machine and need to communicate with each other use a native API. You also have the options of using component technologies such as COM or .NET Components as there is very little overhead.</span><br />
<br />
<span class="answers">* Homogeneous Applications on a LAN If you have Win32 or Winforms apps that want to communicate to their server counterpart. It is much more efficient to use DCOM in the case of Win32 apps and .NET Remoting in the case of .NET Apps.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>Can you explain the difference between an ADO.NET Dataset and an <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> Recordset?</b><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city>, the in-memory representation of data is the RecordSet. In ADO.NET, it is the dataset. There are important differences between them.</span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<br />
<span class="answers">* A RecordSet looks like a single table. If a recordset is to contain data from multiple database tables, it must use a JOIN query, which assembles the data from the various database tables into a single result table. In contrast, a dataset is a collection of one or more tables. The tables within a dataset are called data tables; specifically, they are DataTable objects. If a dataset contains data from multiple database tables, it will typically contain multiple DataTable objects. That is, each DataTable object typically corresponds to a single database table or view. In this way, a dataset can mimic the structure of the underlying database. A dataset usually also contains relationships. A relationship within a dataset is analogous to a foreign-key relationship in a database —that is, it associates rows of the tables with each other. For example, if a dataset contains a table about investors and another table about each investor’s stock purchases, it could also contain a relationship connecting each row of the investor table with the corresponding rows of the purchase table. Because the dataset can hold multiple, separate tables and maintain information about relationships between them, it can hold much richer data structures than a recordset, including self-relating tables and tables with many-to-many relationships.</span><br />
<br />
<span class="answers">* In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> you scan sequentially through the rows of the recordset using the ADO MoveNext method. In ADO.NET, rows are represented as collections, so you can loop through a table as you would through any collection, or access particular rows via ordinal or primary key index. DataRelation objects maintain information about master and detail records and provide a method that allows you to get records related to the one you are working with. For example, starting from the row of the Investor table for "Nate Sun," you can navigate to the set of rows of the Purchase table describing his purchases. A cursor is a database element that controls record navigation, the ability to update data, and the visibility of changes made to the database by other users. ADO.NET does not have an inherent cursor object, but instead includes data classes that provide the functionality of a traditional cursor. For example, the functionality of a forward-only, read-only cursor is available in the ADO.NET DataReader object. For more information about cursor functionality, see Data Access Technologies.</span><br />
<br />
<span class="answers">* Minimized Open Connections: In ADO.NET you open connections only long enough to perform a database operation, such as a Select or Update. You can read rows into a dataset and then work with them without staying connected to the data source. In <st1:city w:st="on">ADO</st1:city> the recordset can provide disconnected access, but <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> is designed primarily for connected access. There is one significant difference between disconnected processing in <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET. In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to an OLE DB provider or the APIs provided by the underlying data source. The important difference is that in ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database — by optimizing for performance, performing data validation checks, or adding any other extra processing. Data adapters, data connections, data commands, and data readers are the components that make up a .NET Framework data provider. Microsoft and third-party providers can make available other .NET Framework data providers that can be integrated into Visual Studio.</span><br />
<br />
<span class="answers">* Sharing Data Between Applications. Transmitting an ADO.NET dataset between applications is much easier than transmitting an <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> disconnected recordset. To transmit an <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> disconnected recordset from one component to another, you use COM marshalling. To transmit data in ADO.NET, you use a dataset, which can transmit an XML stream.</span><br />
<br />
<span class="answers">* Richer data types.COM marshalling provides a limited set of data types — those defined by the COM standard. Because the transmission of datasets in ADO.NET is based on an XML format, there is no restriction on data types. Thus, the components sharing the dataset can use whatever rich set of data types they would ordinarily use.</span><br />
<br />
<span class="answers">* Performance. Transmitting a large <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> recordset or a large ADO.NET dataset can consume network resources; as the amount of data grows, the stress placed on the network also rises. Both <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET let you minimize which data is transmitted. But ADO.NET offers another performance advantage, in that ADO.NET does not require data-type conversions. <st1:city w:st="on">ADO</st1:city>, which requires COM marshalling to transmit records sets among components, does require that <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> data types be converted to COM data types.</span><br />
<br />
<span class="answers">* Penetrating Firewalls.A firewall can interfere with two components trying to transmit disconnected <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> recordsets. Remember, firewalls are typically configured to allow HTML text to pass, but to prevent system-level requests (such as COM marshalling) from passing.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?</span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">If I’m developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are ASP.NET Web Forms? How is this technology different than what is available though ASP?</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Web Forms are the heart and soul of ASP.NET. Web Forms are the User Interface (UI) elements that give your Web applications their look and feel. Web Forms are similar to Windows Forms in that they provide properties, methods, and events for the controls that are placed onto them. However, these UI elements render themselves in the appropriate markup language required by the request, e.g. HTML. If you use Microsoft Visual Studio .NET, you will also get the familiar drag-and-drop interface used to create your UI for your Web application.</span></span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How does VB.NET/C# achieve polymorphism?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">By using Abstract classes/functions.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can you explain what inheritance is and an example of when you might use it?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based on the work of other programmers, adding only new features that are needed.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How would you implement inheritance using VB.NET/C#?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of some other application or .NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties, and events of that base class ? including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors. Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What's an assembly?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">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.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Describe the difference between inline and code behind - which is best in a loosely coupled solution?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ASP.NET supports two modes of page development: Page logic code that is written inside <script runat=server> blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked "behind" the .aspx file at run time.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Explain what a diffgram is, and a good use for one?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A DiffGram is an XML format that is used to identify current and original versions of data elements. The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">One of ASP.NET’s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">In what order do the events of an ASPX page execute. As a developer is it important to understand these events?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Every Page object (which your .aspx page is) has nine events, most of which you will not have to worry about in your day to day dealings with ASP.NET. The three that you will deal with the most are: Page_Init, Page_Load, Page_PreRender.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Which method do you invoke on the DataAdapter control to load your generated dataset with data?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">System.Data.Common.DataAdapter.Fill(System.Data.DataSet);</span><span class="apple-converted-space"> </span><br />
<span class="answers">If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way:</span><span class="apple-converted-space"> </span><br />
<span class="answers">sqlDataAdapter.Fill(dsUsers);</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Which template must you provide, in order to display data in a Repeater control?</span></b></span><span class="apple-converted-space"><b><span style="color: red; font-size: 13.5pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ItemTemplate</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How can you provide an alternating color scheme in a Repeater control?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What base class do all Web Forms inherit from?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">System.Web.UI.Page</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What method do you use to explicitly kill a user’s session?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The Abandon method destroys all the objects stored in a Session object and releases their resources.</span><br />
<span class="answers">If you do not call the Abandon method explicitly, the server destroys these objects when the session times out.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Syntax: Session.Abandon</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you turn off cookies for one page in your site?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Which two properties are on every validation control?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ControlToValidate & ErrorMessage properties</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you create a permanent cookie?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Setting the Expires property to MinValue means that the Cookie never expires.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Which method do you use to redirect the user to another page without performing a round trip to the client?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Server.transfer()</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is the transport protocol you use to call a Web service?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Answer1:</span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">SOAP. Transport Protocols: It is essential for the acceptance of Web Services that they are based on established Internet infrastructure. This in fact imposes the usage of of the HTTP, SMTP and FTP protocols based on the TCP/IP family of transports. Messaging Protocol: The format of messages exchanged between Web Services clients and Web Services should be vendor neutral and should not carry details about the technology used to implement the service. Also, the message format should allow for extensions and different bindings to specific transport protocols. SOAP and ebXML Transport are specifications which fulfill these requirements. We expect that the W3C XML Protocol Working Group defines a successor standard.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">SOAP is not the transport protocol. SOAP is the data encapsulation protocol that is used but the transport protocol is fairly unlimited. Generally HTTP is the most common transport protocol used though you could conceivanly use things like SMTP or any others. SOAP is not dependant on any single transport protocol or OS, it is a syntactical and logical definition, not a transport protocol.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">True or False: A Web service can only be written in .NET.?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">False.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What does WSDL stand for?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Web Services Description Language</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Where on the Internet would you look for Web services?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">UDDI repositaries like uddi.microsoft.com, IBM UDDI node, UDDI Registries in Google Directory, enthusiast sites like XMethods.net.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What tags do you need to add within the asp:datagrid tags to bind columns manually?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Column tag and an ASP:databound tag.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How is a property designated as read-only?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">In VB.NET:</span><br />
<span class="answers">Public ReadOnly Property PropertyName As ReturnType</span><br />
<span class="answers">Get ‘Your Property Implementation goes in here</span><br />
<span class="answers">End Get</span><br />
<span class="answers">End Property</span><br />
<br />
<span class="answers">in C#</span><br />
<span class="answers">public returntype PropertyName</span><br />
</span><span style="color: black; font-size: 13.5pt;">{</span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">get{</span><br />
<span class="answers">//property implementation goes here</span><br />
</span><span style="color: black; font-size: 13.5pt;">}</span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">// Do not write the set implementation</span><br />
<span class="answers">}</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Which control would you use if you needed to make sure the values in two different controls matched?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Use the CompareValidator control to compare the values of 2 different controls.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">True or False: To test a Web service you must create a windows application or Web application to consume this service?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">False.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How many classes can a single .NET DLL contain?</span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Unlimited.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Describe session handling in a webfarm, how does it work and what are the limits?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Set the sessionState mode in the web.config file to “StateServer”.</span><br />
<span class="answers">StateServer mode uses an out-of-process Windows NT Server to store state information.</span><br />
<span class="answers">It solves the session state loss problem in InProc mode.</span><br />
<span class="answers">Allows a webfarm to store session on a central server.</span><br />
<span class="answers">It provides a Single point of failure at the State Server.</span><br />
<br />
<span class="answers">Follow these simple steps:</span><br />
<span class="answers">- In a web farm, make sure you have the same in all your web servers.</span><br />
<span class="answers">- Also, make sure your objects are serializable.</span><br />
<span class="answers">- For session state to be maintained across different web servers in the web farm, the Application Path of the website in the IIS Metabase should be identical in all the web servers in the web farm.</span></span><span class="apple-converted-space"><span style="color: black; font-size: 13.5pt;"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are the disadvantages of viewstate/what are the benefits?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">Disadvantage of viewstate is that additional data is sent to the browser. The benefits are that you do not have to manually manage refreshing the page fields after a submit, (when re-displaying the same page).</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">Automatic view-state management is a feature of server controls that enables them to repopulate their property values on a round trip (without you having to write any code). This feature does impact performance, however, since a server control’s view state is passed to and from the server in a hidden form field. You should be aware of when view state helps you and when it hinders your page’s performance.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What tags do you need to add within the asp:datagrid tags to bind columns manually?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">Set AutoGenerateColumns Property to false on the datagrid tag</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">tag and either or tags (with appropriate attributes of course)</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Web pages are recreated each time the page is posted to the server. In traditional Web programming, this would ordinarily mean that all information associated with the page and the controls on the page would be lost with each round trip.</span><br />
<span class="answers">To overcome this inherent limitation of traditional Web programming, the ASP.NET page framework includes various options to help you preserve changes — that is, for managing state. The page framework includes a facility called view state that automatically preserves property values of the page and all the controls on it between round trips.</span><br />
<span class="answers">However, you will probably also have application-specific values that you want to preserve. To do so, you can use one of the state management options.</span><br />
<span class="answers">Client-Based State Management Options:</span><br />
<st1:placename w:st="on"><span class="answers">View</span></st1:placename><span class="answers"> <st1:placetype w:st="on">State</st1:placetype></span><br />
<span class="answers">Hidden Form Fields</span><br />
<span class="answers">Cookies</span><br />
<span class="answers">Query Strings</span><br />
<span class="answers">Server-Based <st1:place w:st="on"><st1:placetype w:st="on">State</st1:placetype> <st1:placename w:st="on">Management</st1:placename> <st1:placename w:st="on">Options</st1:placename><br />
<st1:placename w:st="on">Application</st1:placename> <st1:placetype w:st="on">State</st1:placetype><br />
<st1:placename w:st="on">Session</st1:placename> <st1:placetype w:st="on">State</st1:placetype></st1:place></span><br />
<span class="answers">Database Support</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What tag do you use to add a hyperlink column to the DataGrid?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Depends on who’s definition of hyperlink your using. Manually a std html anchor tag (a) will work or you can use the micro-magical tag</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the standard you use to wrap up a call to a Web service?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Several possible answers depending on your interpretation of the quesiton, but I think you were aiming for SOAP (with the caveat that this is MS’s version of SOAP)</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between boxing and unboxing ?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Boxing allows us to convert value types to reference types. Basically, the runtime creates a temporary reference-type box for the object on heap.</span><br />
<span class="answers">Eg:</span><br />
<span class="answers">int i=20;</span><br />
<span class="answers">object o=i;</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Describe the difference between a Thread and a Process?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">Thread - is used to execute more than one program at a time.</span><span class="apple-converted-space"> </span><br />
<span class="answers">process - executes single program</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer3:</span><br />
<span class="answers">The operating system creates a process for the purpose of running a program. Each process executes a single program. Processes own resources allocated by the operating system. Resources include memory, file handles, sockets, device handles, and windows. Processes do not share address spaces or file resources except through explicit methods such as inheriting file handles or shared memory segments, or mapping the same file in a shared way.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Threads allow a program to do multiple things concurrently. At least one thread exists within each process. If multiple threads can exist within a process, then they share the same memory and file resources.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer4:</span><br />
<span class="answers">Thread is a light weight process, which is initialized itself by a process. Light weigt processes does not loads resources required by it itself, these are loaded by its parent process which has generated it.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is a Windows Service and how does its lifecycle differ from a “standard” EXE?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Windows Service applications are long-running applications that are ideal for use in server environments. The applications do not have a user interface or produce any visual output; it is instead used by other programs or the system to perform operations. Any user messages are typically written to the Windows Event Log. Services can be automatically started when the computer is booted. This makes services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. They do not require a logged in user in order to execute and can run under the context of any user including the system. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is the difference between an EXE and a DLL?</b></span><b><span style="color: red; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is strong-typing versus weak-typing? Which is preferred? Why?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Strong type is checking the types of variables as soon as possible, usually at compile time. While weak typing is delaying checking the types of the system as late as possible, usually to run-time. Which is preferred depends on what you want. For scripts & quick stuff you’ll usually want weak typing, because you want to write as much less code as possible. In big programs, strong typing can reduce errors at compile time.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are PDBs? Where must they be located for debugging to work?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">To debug precompiled components such as business objects and code-behind modules, you need to generate debug symbols. To do this, compile the components with the debug flags by using either Visual Studio .NET or a command line compiler such as Csc.exe (for Microsoft Visual C# .NET) or Vbc.exe (for Microsoft Visual Basic .NET).</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Using Visual Studio .NET</span><span class="apple-converted-space"> </span><br />
<span class="answers">1. Open the ASP.NET Web Application project in Visual Studio .NET.</span><span class="apple-converted-space"> </span><br />
<span class="answers">2. Right-click the project in the Solution Explorer and click Properties.</span><span class="apple-converted-space"> </span><br />
<span class="answers">3. In the Properties dialog box, click the Configuration Properties folder.</span><span class="apple-converted-space"> </span><br />
<span class="answers">4. In the left pane, select Build.</span><span class="apple-converted-space"> </span><br />
<span class="answers">5. Set Generate Debugging Information to true.</span><span class="apple-converted-space"> </span><br />
<span class="answers">6. Close the Properties dialog box.</span><span class="apple-converted-space"> </span><br />
<span class="answers">7. Right-click the project and click Build to compile the project and generate symbols (.pdb files).</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program.</span><span class="apple-converted-space"> </span><br />
<span class="answers">The linker creates project.PDB, which contains debug information for the project’s EXE file. The project.PDB contains full debug information, including function prototypes, not just the type information found in VCx0.PDB. Both PDB files allow incremental updates.</span><span class="apple-converted-space"> </span><br />
<span class="answers">They should be located at bin\Debug directory</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is cyclomatic complexity and why is it important?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally measure the complexity of a program. It directly measures the number of linearly independent paths through a program’s source code.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The concept, although not the method, is somewhat similar to that of general text complexity measured by the Flesch-Kincaid Readability Test.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Cyclomatic complexity is computed using a graph that describes the control flow of the program. The nodes of the graph correspond to the commands of a program. A directed edge connects two nodes, if the second command might be executed immediately after the first command. By definition,</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">CC = E - N + P</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">where</span><span class="apple-converted-space"> </span><br />
<span class="answers">CC = cyclomatic complexity</span><span class="apple-converted-space"> </span><br />
<span class="answers">E = the number of edges of the graph</span><span class="apple-converted-space"> </span><br />
<span class="answers">N = the number of nodes of the graph</span><span class="apple-converted-space"> </span><br />
<span class="answers">P = the number of connected components.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is FullTrust? Do GAC’ed assemblies have FullTrust?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. The GAC has FullTrust because it’s on the local HD, and that has FullTrust by default, you can change that using caspol</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What does this do? gacutil /l | find /i “about”<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">This command is used to install strong typed assembly in GAC</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">gacutil.exe is used to install strong typed assembly in GAC. gacutil.exe /l is used to lists the contents of the global assembly cache. |(pipe) symbol is used to filter the output with another command. find /i “about” is to find the text “about” on gacutil output. If any lines contains the text “about” then that line will get displayed on console window.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Contrast OOP and SOA. What are tenets of each</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Service Oriented Architecture. In SOA you create an abstract layer that your applications use to access various “services” and can aggregate the services. These services could be databases, web services, message queues or other sources. The Service Layer provides a way to access these services that the applications do not need to know how the access is done. For example, to get a full customer record, I might need to get data from a SGL Server database, a web service and a message queue. The Service layer hides this from the calling application. All the application knows is that it asked for a full customer record. It doesn’t know what system or systems it came from or how it was retrieved.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How does the XmlSerializer work? What ACL permissions does a process using it require?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">XmlSerializer requires write permission to the system’s TEMP directory.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Why is catch(Exception) almost always a bad idea?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between Debug. Write and Trace. Write? When should each be used?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">The Debug. Write call won’t be compiled when the DEBUG symbol is not defined (when doing a release build). Trace. Write calls will be compiled. Debug. Write is for information you want only in debug builds, Trace. Write is for when you want it in release build as well. And in any case, you should use something like log4net because that is both faster and better</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">Debug. Write & Trace. write - both works in Debug mode, while in Release Mode,Trace.write only will work .Try changing the Active Config property of Solution in Property page nd find the difference. Debug.write is used while debugging a project and Trace.write is used in Released version of Applications.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Debug build contain debug symbols and can be debugged while release build doesn’t contain debug symbols, doesn’t have [Conational(”DEBUG”)] methods calls compiled, can’t be debugged (easily, that is), less checking, etc. There should be a speed difference, because of disabling debug methods, reducing code size etc but that is not a guarantee (at least not a significant one)</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Contrast the use of an abstract base class against an interface?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">In the interface all methods must be abstract, in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">Whether to Choose VB.NET/C#.</span><br />
<span class="answers">Both the languages are using same classes and namespaces. Once it compile and generates MSIL, there is no meaning of which language it was written. If you are Java/C++ programmer better to choose C# for same coding style otherwise you can choose VB.net.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is the difference between a.Equals(b) and a == b?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Answer1:</span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">a=b is used for assigning the values (rather then comparison) and a==b is for comparison.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">a == b is used to compare the references of two objects</span><span class="apple-converted-space"> </span><br />
<span class="answers">a.Equals(b) is used to compare two objects</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer3:</span><br />
<span class="answers">A equals b -> copies contents of b to a</span><br />
<span class="answers">a == b -> checks if a is equal to b</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer4:</span><br />
<span class="answers">Equals method compares both type and value of the variable, while == compares value.</span><span class="apple-converted-space"> </span><br />
<span class="answers">int a = 0;</span><br />
<span class="answers">bool b = 0</span><br />
<br />
<span class="answers">if(a.Equals(b))</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer5:</span><br />
<span class="answers">a.Equals(b) checks whether the Type of a is equal to b or not! Put it in another way,</span><br />
<span class="answers">Dim a As Integer = 1</span><br />
<span class="answers">Dim b As Single = 1</span><br />
<br />
<span class="answers">a.Equals(b) returns false. The Equals method returns a boolean value.</span><span class="apple-converted-space"> </span><br />
<span class="answers">a == b is a simple assignment statement.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer6:</span><br />
<span class="answers">a.equals(b) will check whether the “b” has same type as “a” has and also has the same data as “a” has.</span><span class="apple-converted-space"> </span><br />
<span class="answers">a==b will do the same thing.</span><span class="apple-converted-space"> </span><br />
<span class="answers">if you have done this in c++ under “operator overloading” than you guys must be aware of this sytaxts. they are doing the same thing there is only sytaxtical difference.</span><span class="apple-converted-space"> </span><br />
<span class="answers">let me explain it in different manner.</span><br />
<span class="answers">a==b : means compare “b” with “a”. always left hand side expression evaluated first so here in this case “a” (considered an object) will call the overloaded operator “=” which defines “Equals(object)” method in it’s class. thus, ultimately a.equals(b) goanna called.</span><span class="apple-converted-space"> </span><br />
<span class="answers">so the answer is: both will perform the same task. they are different by syntaxt</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer7:</span><br />
<span class="answers">Difference b/w a==b,a.Equals(b)</span><br />
<span class="answers">a.Equals(b):</span><br />
<span class="answers">The default implementation of Equals supports reference equality only, but derived classes can override this method to support value equality.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">For reference types, equality is defined as object equality; that is, whether the references refer to the same object. For value types, equality is defined as bitwise equality</span><br />
<span class="answers">== :</span><br />
<span class="answers">For predefined value types, the equality operator (==) returns true if the values of its operands are equal, false otherwise. For reference types other than string, == returns true if its two operands refer to the same object. For the string type, == compares the values of the strings.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How would one do a deep copy in .NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">System.Array.CopyTo() - Deep copies an Array</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">How would one do a deep copy in .NET?</span><br />
<span class="answers">The First Approach.</span><br />
<span class="answers">1.Create a new instance.</span><br />
<span class="answers">2.Copy the properties from source instance to newly created instance.</span><br />
<span class="answers">[Use reflection if you want to write a common method to achive this]</span><br />
<br />
<span class="answers">The Second Approach.</span><br />
<span class="answers">1. Serialize the object and deserialize the output.</span><br />
<span class="answers">: Use binary serialization if you want private variables to be copied.</span><br />
<span class="answers">: Use xml Serialization if you dont want private variable to be copied.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is boxing?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Boxing is an implicit conversion of a value type to the type object</span><span class="apple-converted-space"> </span><br />
<span class="answers">int i = 123; // A value type</span><span class="apple-converted-space"> </span><br />
<span class="answers">Object box = i // Boxing</span><span class="apple-converted-space"> </span><br />
<span class="answers">Unboxing is an explicit conversion from the type object to a value type</span><span class="apple-converted-space"> </span><br />
<span class="answers">int i = 123; // A value type object box = i; // Boxing</span><span class="apple-converted-space"> </span><br />
<span class="answers">int j = (int)box; // Unboxing</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Is string a value type or a reference type?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1:</span><br />
<span class="answers">String is Reference Type.</span><br />
<span class="answers">Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort</span><br />
<span class="answers">Value types are stored in the Stack</span><br />
<span class="answers">Reference type - class, delegate, interface, object, string</span><br />
<span class="answers">Reference types are stored in the Heap</span><br />
<br />
<br />
<span class="answers">Answer2:</span><br />
<span class="answers">Yes String is reference type. C# gives two types of variable reference and value type. string and object are reference type.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How does the lifecycle of Windows services differ from Standard EXE?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Windows services lifecycle is managed by “Service Control Manager” which is responsible for starting and stopping the service and the applications do not have a user interface or produce any visual output, but “Standard executable” doesn’t require Control Manager and is directly related to the visual output</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s wrong with a line like this? DateTime.Parse(myString)<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">the result returned by this function is not assigned to anything, should be something like varx = DateTime.Parse(myString)</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">NET is Compile Time OR RunTime Environment?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">.Net’s framework has CLS,CTS and CLR.CTS checks declartion of types at the time when u write code and CLS defines some rules and restrictions.and CLR comile everything at runtime with following benefits: Vastly simplified development Seamless integration of code written in various languages Evidence-based security with code identity Assembly-based deployment that eliminates DLL Hell Side-by-side versioning of reusable components Code reuse through implementation inheritance Automatic object lifetime management Self describing objects</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s the difference between Response.Write() andResponse.Output.Write()?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The latter one allows you to write formattedoutput.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What methods are fired during the page load?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Init() - when the pageis</span><br />
<span class="answers">instantiated, Load() - when the page is loaded into server memory,PreRender()</span><br />
<span class="answers">- the brief moment before the page is displayed to the user asHTML, Unload()</span><br />
<span class="answers">- when page finishes loading.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Where does the Web page belong in the .NET Framework class hierarchy?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">System.Web.UI.Page</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Where do you store the information about the user’s locale?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">System.Web.UI.Page.Culture</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">CodeBehind is relevant to Visual Studio.NET only.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s a bubbled event?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It’s the Attributesproperty,</span><br />
<span class="answers">the Add function inside that property. So</span><br />
<br />
<span class="answers">btnSubmit.Attributes.Add("onMouseOver","someClientCode();")</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">A simple”Javascript:ClientCode();” in the button control of the .aspx page will attach the handler (javascript function)to the onmouseover event.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What data type does the RangeValidator control support?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Integer,String and Date.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-5893237910432188582011-05-03T13:44:00.000+05:302011-05-03T13:44:00.234+05:30DOT NET INTERVIEW QUESTIONS FOR FREHSERS<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<h1><span class="interview-heading"><span style="color: black; font-family: Arial; font-size: 15.0pt;">.Net Interview Questions and Answers</span></span><span style="color: black;"><o:p></o:p></span></h1><span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is .NET?</span></b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">.NET is essentially a framework for software development. It is similar in nature to any other software development framework (J2EE etc) in that it provides a set of runtime containers/capabilities, and a rich set of pre-built functionality in the form of class libraries and APIs</span></span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How many languages .NET is supporting now?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How is .NET able to support multiple languages?</span></b></span><span class="apple-converted-space"><span style="color: black; font-size: 13.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How ASP .NET different from ASP?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is smart navigation?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is view state?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you validate the controls in an ASP .NET page?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Using special validation controls that are meant for this. We have Range Validator, Email Validator.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can the validation be done in the server side? Or this can be done only in the Client side?</span></b><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<div class="answers1"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done.<o:p></o:p></span></div><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How to manage pagination in a page?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is <st1:city w:st="on">ADO</st1:city> .NET and what is difference between <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Observations between VB.NET and VC#.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Choosing a programming language depends on your language experience and the scope of the application you are building. While small applications are often created using only one language, it is not uncommon to develop large applications using multiple languages.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">For example, if you are extending an application with existing XML Web services, you might use a scripting language with little or no programming effort. For client-server applications, you would probably choose the single language you are most comfortable with for the entire application. For new enterprise applications, where large teams of developers create components and services for deployment across multiple remote sites, the best choice might be to use several languages depending on developer skills and long-term maintenance expectations.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The .NET Platform programming languages - including Visual Basic .NET, Visual C#, and Visual C++ with managed extensions, and many other programming languages from various vendors - use .NET Framework services and features through a common set of unified classes. The .NET unified classes provide a consistent method of accessing the platform's functionality. If you learn to use the class library, you will find that all tasks follow the same uniform architecture. You no longer need to learn and master different API architectures to write your applications.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In most situations, you can effectively use all of the Microsoft programming languages. Nevertheless, each programming language has its relative strengths and you will want to understand the features unique to each language. The following sections will help you choose the right programming language for your application.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Visual Basic .NET</span><br />
<span class="answers">Visual Basic .NET is the next generation of the Visual Basic language from Microsoft. With Visual Basic you can build .NET applications, including Web services and ASP.NET Web applications, quickly and easily. Applications made with Visual Basic are built on the services of the common language runtime and take advantage of the .NET Framework.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Visual Basic has many new and improved features such as inheritance, interfaces, and overloading that make it a powerful object-oriented programming language. Other new language features include free threading and structured exception handling. Visual Basic fully integrates the .NET Framework and the common language runtime, which together provide language interoperability, garbage collection, enhanced security, and improved versioning support. A Visual Basic support single inheritance and creates Microsoft intermediate language (MSIL) as input to native code compilers.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Visual Basic is comparatively easy to learn and use, and Visual Basic has become the programming language of choice for hundreds of thousands of developers over the past decade. An understanding of Visual Basic can be leveraged in a variety of ways, such as writing macros in Visual Studio and providing programmability in applications such as Microsoft Excel, Access, and Word.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Visual Basic provides prototypes of some common project types, including:</span><br />
<span class="answers">• Windows Application.</span><br />
<span class="answers">• Class Library.</span><br />
<span class="answers">• Windows Control Library.</span><br />
<span class="answers">• ASP.NET Web Application.</span><br />
<span class="answers">• ASP.NET Web Service.</span><br />
<span class="answers">• Web Control Library.</span><br />
<span class="answers">• Console Application.</span><br />
<span class="answers">• Windows Service.</span><br />
<span class="answers">• Windows Service.</span><br />
<span class="answers">Visual C# .NET</span><br />
<br />
<br />
<span class="answers">Visual C# (pronounced C sharp) is designed to be a fast and easy way to create .NET applications, including Web services and ASP.NET Web applications. Applications written in Visual C# are built on the services of the common language runtime and take full advantage of the .NET Framework.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">C# is a simple, elegant, type-safe, object-oriented language recently developed by Microsoft for building a wide range of applications. Anyone familiar with C and similar languages will find few problems in adapting to C#. C# is designed to bring rapid development to the C++ programmer without sacrificing the power and control that are a hallmark of C and C++. Because of this heritage, C# has a high degree of fidelity with C and C++, and developers familiar with these languages can quickly become productive in C#. C# provides intrinsic code trust mechanisms for a high level of security, garbage collection, and type safety. C# supports single inheritance and creates Microsoft intermediate language (MSIL) as input to native code compilers.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">C# is fully integrated with the .NET Framework and the common language runtime, which together provide language interoperability, garbage collection, enhanced security, and improved versioning support. C# simplifies and modernizes some of the more complex aspects of C and C++, notably namespaces, classes, enumerations, overloading, and structured exception handling. C# also eliminates C and C++ features such as macros, multiple inheritance, and virtual base classes. For current C++ developers, C# provides a powerful, high-productivity language alternative.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Visual C# provides prototypes of some common project types, including:</span><br />
<span class="answers">• Windows Application.</span><br />
<span class="answers">• Class Library.</span><br />
<span class="answers">• Windows Control Library.</span><br />
<span class="answers">• ASP.NET Web Application.</span><br />
<span class="answers">• ASP.NET Web Service.</span><br />
<span class="answers">• Web Control Library.</span><br />
<span class="answers">• Console Application.</span><br />
<span class="answers">• Windows Service.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>Advantages of migrating to VB.NET ?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading that make it a powerful object-oriented programming language. As a Visual Basic developer, you can now create multithreaded, scalable applications using explicit multithreading. Other new language features in Visual Basic .NET include structured exception handling, custom attributes, and common language specification (CLS) compliance.</span></span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<br />
<span class="answers">The CLS is a set of rules that standardizes such things as data types and how objects are exposed and interoperate. Visual Basic .NET adds several features that take advantage of the CLS. Any CLS-compliant language can use the classes, objects, and components you create in Visual Basic .NET. And you, as a Visual Basic user, can access classes, components, and objects from other CLS-compliant programming languages without worrying about language-specific differences such as data types.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">CLS features used by Visual Basic .NET programs include assemblies, namespaces, and attributes.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">These are the new features to be stated briefly:</span><br />
<span class="answers">Inheritance</span><br />
<span class="answers">Visual Basic .NET supports inheritance by allowing you to define classes that serve as the basis for derived classes. Derived classes inherit and can extend the properties and methods of the base class. They can also override inherited methods with new implementations. All classes created with Visual Basic .NET are inheritable by default. Because the forms you design are really classes, you can use inheritance to define new forms based on existing ones.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Exception Handling</span><br />
<span class="answers">Visual Basic .NET supports structured exception handling, using an enhanced version of the Try...Catch...Finally syntax supported by other languages such as C++.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Structured exception handling combines a modern control structure (similar to Select Case or While) with exceptions, protected blocks of code, and filters. Structured exception handling makes it easy to create and maintain programs with robust, comprehensive error handlers.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Overloading</span><br />
<span class="answers">Overloading is the ability to define properties, methods, or procedures that have the same name but use different data types. Overloaded procedures allow you to provide as many implementations as necessary to handle different kinds of data, while giving the appearance of a single, versatile procedure. Overriding Properties and Methods The Overrides keyword allows derived objects to override characteristics inherited from parent objects. Overridden members have the same arguments as the members inherited from the base class, but different implementations. A member's new implementation can call the original implementation in the parent class by preceding the member name with MyBase.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Constructors and Destructors</span><br />
<span class="answers">Constructors are procedures that control initialization of new instances of a class. Conversely, destructors are methods that free system resources when a class leaves scope or is set to Nothing. Visual Basic .NET supports constructors and destructors using the Sub New and Sub Finalize procedures.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Data Types</span><br />
<span class="answers">Visual Basic .NET introduces three new data types. The Char data type is an unsigned 16-bit quantity used to store Unicode characters. It is equivalent to the .NET Framework System. Char data type. The Short data type, a signed 16-bit integer, was named Integer in earlier versions of Visual Basic. The Decimal data type is a 96-bit signed integer scaled by a variable power of 10. In earlier versions of Visual Basic, it was available only within a Variant.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Interfaces</span><br />
<span class="answers">Interfaces describe the properties and methods of classes, but unlike classes, do not provide implementations. The Interface statement allows you to declare interfaces, while the Implements statement lets you write code that puts the items described in the interface into practice.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Delegates</span><br />
<span class="answers">Delegates objects that can call the methods of objects on your behalf are sometimes described as type-safe, object-oriented function pointers. You can use delegates to let procedures specify an event handler method that runs when an event occurs. You can also use delegates with multithreaded applications. For details, see Delegates and the AddressOf Operator.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Shared Members</span><br />
<span class="answers">Shared members are properties, procedures, and fields that are shared by all instances of a class. Shared data members are useful when multiple objects need to use information that is common to all. Shared class methods can be used without first creating an object from a class.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">References</span><br />
<span class="answers">References allow you to use objects defined in other assemblies. In Visual Basic .NET, references point to assemblies instead of type libraries. For details, see References and the Imports Statement. Namespaces prevent naming conflicts by organizing classes, interfaces, and methods into hierarchies.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Assemblies</span><br />
<span class="answers">Assemblies replace and extend the capabilities of type libraries by, describing all the required files for a particular component or application. An assembly can contain one or more namespaces.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Attributes</span><br />
<span class="answers">Attributes enable you to provide additional information about program elements. For example, you can use an attribute to specify which methods in a class should be exposed when the class is used as a XML Web service.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<div class="answers1"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Multithreading<br />
Visual Basic .NET allows you to write applications that can perform multiple tasks independently. A task that has the potential of holding up other tasks can execute on a separate thread, a process known as multithreading. By causing complicated tasks to run on threads that are separate from your user interface, multithreading makes your applications more responsive to user input.<o:p></o:p></span></div><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Using ActiveX Control in .Net<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ActiveX control is a special type of COM component that supports a User Interface. Using ActiveX Control in your .Net Project is even easier than using COM component. They are bundled usually in .ocx files. Again a proxy assembly is made by .Net utility AxImp.exe (which we will see shortly) which your application (or client) uses as if it is a .Net control or assembly.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Making Proxy Assembly For ActiveX Control: First, a proxy assembly is made using AxImp.exe (acronym for ActiveX Import) by writing following command on Command Prompt:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">C:> AxImp C:MyProjectsMyControl.ocx</span><br />
<span class="answers">This command will make two dlls, e.g., in case of above command</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">MyControl.dll</span><br />
<span class="answers">AxMyControl.dll</span><br />
<span class="answers">The first file MyControl.dll is a .Net assembly proxy, which allows you to reference the ActiveX as if it were non-graphical object.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The second file AxMyControl.dll is the Windows Control, which allows u to use the graphical aspects of activex control and use it in the Windows Form Project.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Adding Reference of ActiveX Proxy Assembly in your Project Settings: To add a reference of ActiveX Proxy Assembly in our Project, do this:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">o Select Project A Add Reference (Select Add Reference from Project Menu).</span><br />
<span class="answers">o This will show you a dialog box, select .Net tab from the top of window.</span><br />
<span class="answers">o Click Browse button on the top right of window.</span><br />
<span class="answers">o Select the dll file for your ActiveX Proxy Assembly (which is MyControl.dll) and click OK o Your selected component is now shown in the ‘Selected Component’ List Box. Click OK again Some More On Using COM or ActiveX in .Net</span><br />
<br />
<br />
<span class="answers">.Net only provides wrapper class or proxy assembly (Runtime Callable Wrapper or RCW) for COM or activeX control. In the background, it is actually delegating the tasks to the original COM, so it does not convert your COM/activeX but just imports them.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">A good thing about .Net is that when it imports a component, it also imports the components that are publically referenced by that component. So, if your component, say MyDataAcsess.dll references ADODB.dll then .Net will automatically import that COM component too!</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The Visual Studio.NET does surprise you in a great deal when u see that it is applying its intellisense (showing methods, classes, interfaces, properties when placing dot) even on your imported COM components!!!! Isn’t it a magic or what?</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">When accessing thru RCW, .Net client has no knowledge that it is using COM component, it is presented just as another C# assembly.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">U can also import COM component thru command prompt (for reference see Professional C# by Wrox)</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">U can also use your .Net components in COM, i.e., export your .net components (for reference see Professional C# by Wrox)</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is Machine.config?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Machine configuration file: The machine.config file contains settings that apply to the entire computer. This file is located in the %runtime install path%Config directory. There is only one machine.config file on a computer. The Machine.Config file found in the "CONFIG" subfolder of your .NET Framework install directory (c:WINNTMicrosoft.NETFramework{Version Number} CONFIG on Windows 2000 installations). The machine.config, which can be found in the directory $WINDIR$Microsoft.NETFrameworkv1.0.3705CONFIG, is an XML-formatted configuration file that specifies configuration options for the machine. This file contains, among many other XML elements, a browser Caps element. Inside this element are a number of other elements that specify parse rules for the various User-Agents, and what properties each of these parsing supports.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">For example, to determine what platform is used, a filter element is used that specifies how to set the platform property based on what platform name is found in the User-Agent string. Specifically, the machine.config file contains:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">platform=Win95</span><br />
<span class="answers">platform=Win98</span><br />
<span class="answers">platform=WinNT</span><br />
<span class="answers">...</span><br />
<br />
<br />
<span class="answers">That is, if in the User-Agent string the string "Windows 95" or "Win95" is found, the platform property is set to Win95. There are a number of filter elements in the browserCaps element in the machine.config file that define the various properties for various User-Agent strings.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Hence, when using the Request.Browser property to determine a user's browser features, the user's agent string is matched up to particular properties in the machine.config file. The ability for being able to detect a user's browser's capabilities, then, is based upon the honesty in the browser's sent User-Agent string. For example, Opera can be easily configured to send a User-Agent string that makes it appear as if it's IE 5.5. In this case from the Web server's perspective (and, hence, from your ASP.NET Web page's perspective), the user is visiting using IE 5.5, even though, in actuality, he is using Opera.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is Web.config?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">In classic ASP all Web site related information was stored in the metadata of IIS. This had the disadvantage that remote Web developers couldn't easily make Web-site configuration changes. For example, if you want to add a custom 404 error page, a setting needs to be made through the IIS admin tool, and you're Web host will likely charge you a flat fee to do this for you. With ASP.NET, however, these settings are moved into an XML-formatted text file (Web.config) that resides in the Web site's root directory. Through Web.config you can specify settings like custom 404 error pages, authentication and authorization settings for the Web sitempilation options for the ASP.NET Web pages, if tracing should be enabled, etc.</span><br />
<span class="answers">The Web.config file is an XML-formatted file. At the root level is the tag. Inside this tag you can add a number of other tags, the most common and useful one being the system.web tag, where you will specify most of the Web site configuration parameters. However, to specify application-wide settings you use the tag.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">For example, if we wanted to add a database connection string parameter we could have a Web.config file like so.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<st1:city w:st="on"><st1:place w:st="on"><span class="answers">ADO</span></st1:place></st1:city><span class="answers"> uses Recordsets and cursors to access and modify data. Because of its inherent design, Recordset can impact performance on the server side by tying up valuable resources. In addition, COM marshalling - an expensive data conversion process - is needed to transmit a Recordset. ADO.NET addresses three important needs that <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> doesn't address:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">1. Providing a comprehensive disconnected data-access model, which is crucial to the Web environment</span><br />
<span class="answers">2. Providing tight integration with XML, and</span><br />
<span class="answers">3. Providing seamless integration with the .NET Framework (e.g., compatibility with the base class library's type system). From an ADO.NET implementation perspective, the Recordset object in <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> is eliminated in the .NET architecture. In its place, ADO.NET has several dedicated objects led by the DataSet object and including the DataAdapter, and DataReader objects to perform specific tasks. In addition, ADO.NET DataSets operate in disconnected state whereas the ADO RecordSet objects operated in a fully connected state.</span><br />
<br />
<span class="answers">In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city>, the in-memory representation of data is the RecordSet. In ADO.NET, it is the dataset. A RecordSet looks like a single table. If a RecordSet is to contain data from multiple database tables, it must use a JOIN query, which assembles the data from the various database tables into a single result table. In contrast, a dataset is a collection of one or more tables. The tables within a dataset are called data tables; specifically, they are DataTable objects. If a dataset contains data from multiple database tables, it will typically contain multiple DataTable objects. That is, each DataTable object typically corresponds to a single database table or view. In this way, a dataset can mimic the structure of the underlying database.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> you scan sequentially through the rows of the RecordSet using the ADO MoveNext method. In ADO.NET, rows are represented as collections, so you can loop through a table as you would through any collection, or access particular rows via ordinal or primary key index. A cursor is a database element that controls record navigation, the ability to update data, and the visibility of changes made to the database by other users. ADO.NET does not have an inherent cursor object, but instead includes data classes that provide the functionality of a traditional cursor. For example, the functionality of a forward-only, read-only cursor is available in the ADO.NET DataReader object.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">There is one significant difference between disconnected processing in <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> and ADO.NET. In <st1:city w:st="on"><st1:place w:st="on">ADO</st1:place></st1:city> you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to an OLE DB provider or the APIs provided by the underlying data source.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"></span>Now VB.NET is object-oriented language. The following are some of the differences:</span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<br />
<span class="answers">Data Type Changes</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The .NET platform provides Common Type System to all the supported languages. This means that all the languages must support the same data types as enforced by common language runtime. This eliminates data type incompatibilities between various languages. For example on the 32-bit Windows platform, the integer data type takes 4 bytes in languages like C++ whereas in VB it takes 2 bytes. Following are the main changes related to data types in VB.NET:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">. Under .NET the integer data type in VB.NET is also 4 bytes in size.</span><br />
<span class="answers">. VB.NET has no currency data type. Instead it provides decimal as a replacement.</span><br />
<span class="answers">. VB.NET introduces a new data type called Char. The char data type takes 2 bytes and can store Unicode characters.</span><br />
<span class="answers">. VB.NET do not have Variant data type. To achieve a result similar to variant type you can use Object data type. (Since every thing in .NET including primitive data types is an object, a variable of object type can point to any data type).</span><br />
<span class="answers">. In VB.NET there is no concept of fixed length strings.</span><br />
<span class="answers">. In VB6 we used the Type keyword to declare our user-defined structures. VB.NET introduces the structure keyword for the same purpose.</span><br />
<span class="answers">Declaring Variables</span><br />
<span class="answers">Consider this simple example in VB6:</span><br />
<span class="answers">Dim x,y as integer</span><br />
<br />
<br />
<span class="answers">In this example VB6 will consider x as variant and y as integer, which is somewhat odd behavior. VB.NET corrects this problem, creating both x and y as integers.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Furthermore, VB.NET allows you to assign initial values to the variables in the declaration statement itself:</span><span class="apple-converted-space"> </span><br />
<span class="answers">br> Dim str1 as string = Hello</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">VB.NET also introduces Read-Only variables. Unlike constants Read-Only variables can be declared without initialization but once you assign a value to it, it cannot be changes.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Initialization here</span><br />
<span class="answers">Dim readonly x as integer</span><br />
<span class="answers">In later code</span><br />
<span class="answers">X=100</span><br />
<span class="answers">Now x can’t be changed</span><br />
<span class="answers">X=200 *********** Error **********</span><br />
<span class="answers">Property Syntax</span><br />
<span class="answers">In VB.NET, we anymore don't have separate declarations for Get and Set/Let. Now, everything is done in a single property declaration. This can be better explained by the following example.</span><br />
<span class="answers">Public [ReadOnly | WriteOnly] Property PropertyName as Datatype</span><br />
<span class="answers">Get</span><br />
<span class="answers">Return m_var</span><br />
<span class="answers">End Get</span><br />
<span class="answers">Set</span><br />
<span class="answers">M_var = value</span><br />
<span class="answers">End Set</span><br />
<span class="answers">End Property</span><br />
<span class="answers">Example:</span><br />
<span class="answers">Private _message as String</span><br />
<span class="answers">Public Property Message As String</span><br />
<span class="answers">Get</span><br />
<span class="answers">Return _message</span><br />
<span class="answers">End Get</span><br />
<span class="answers">Set</span><br />
<span class="answers">_message = Value</span><br />
<span class="answers">End Set</span><br />
<span class="answers">End Property</span><br />
<br />
<span class="answers">ByVal is the default - This is a crucial difference betwen VB 6.0 and VB.NET, where the default in VB 6.0 was by reference. But objects are still passed by reference.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Invoking Subroutines In previous versions of VB, only functions required the use of parentheses around the parameter list. But in VB.NET all function or subroutine calls require parentheses around the parameter list. This also applies, even though the parameter list is empty.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">User-Defined Types - VB.NET does away with the keyword Type and replaces it with the keyword Structure</span><br />
<span class="answers">Public Structure Student</span><br />
<span class="answers">Dim strName as String</span><br />
<span class="answers">Dim strAge as Short</span><br />
<span class="answers">End Structure</span><br />
<span class="answers">Procedures and Functions</span><br />
<br />
<span class="answers">In VB6 all the procedure parameters are passed by reference (ByRef) by default. In VB.NET they are passed by value (ByVal) by default. Parantheses are required for calling procedures and functions whether they accept any parameters or not. In VB6 functions returned values using syntax like: FuntionName = return_value. In VB.NET you can use the Return keyword (Return return_value) to return values or you can continue to use the older syntax, which is still valid.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Scoping VB.NET now supports block-level scoping of variables. If your programs declare all of the variables at the beginning of the function or subroutine, this will not be a problem. However, the following VB 6.0 will cause an issue while upgrading to VB .NET</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Do While objRs.Eof</span><br />
<span class="answers">Dim J as Integer</span><br />
<span class="answers">J=0</span><br />
<span class="answers">If objRs("flag")="Y" then</span><br />
<span class="answers">J=1</span><br />
<span class="answers">End If</span><br />
<span class="answers">objRs.MoveNext</span><br />
<span class="answers">Wend</span><br />
<span class="answers">If J Then</span><br />
<span class="answers">Msgbox "Flag is Y"</span><br />
<span class="answers">End If</span><br />
<br />
<span class="answers">In the above example the variable J will become out of scope just after the loop, since J was declared inside the While loop.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Exception Handling</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The most wanted feature in earlier versions of VB was its error handling mechanism. The older versions relied on error handlers such as "On Error GoTo and On Error Resume Next. VB.NET provides us with a more stuructured approach. The new block structure allows us to track the exact error at the right time. The new error handling mechanism is refered to as Try...Throw...Catch...Finally. The following example will explain this new feature.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Sub myOpenFile()</span><br />
<span class="answers">Try</span><br />
<span class="answers">Open "myFile" For Output As #1</span><br />
<span class="answers">Write #1, myOutput</span><br />
<span class="answers">Catch</span><br />
<span class="answers">Kill "myFile"</span><br />
<span class="answers">Finally</span><br />
<span class="answers">Close #1</span><br />
<span class="answers">End try</span><br />
<span class="answers">End Sub</span><br />
<br />
<span class="answers">The keyword SET is gone - Since everything in VB.NET is an object. So the keyword SET is not at all used to differentiate between a simple variable assignment and an object assignment. So, if you have the following statement in VB 6.0</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Set ObjConn = Nothing</span><br />
<span class="answers">Should be replaced as</span><br />
<span class="answers">ObjConn = Nothing.</span><br />
<span class="answers">Constructor and Destructor</span><br />
<br />
<span class="answers">The constructor procedure is one of the many new object-oriented features of VB.NET. The constructor in VB.NET replaces the Class_Initialize in VB 6.0. All occurance of Class_Initialize in previous versions of VB should now be placed in a class constructor. In VB.NET, a constructor is added to a class by adding a procedure called New. We can also create a class destructor, which is equivalent to Class_Terminate event in VB 6.0, by adding a sub-procedure called Finalize to our class. Usage of Return In VB.NET, we can use the keyword return to return a value from any function. In previous versions, we used to assign the value back with the help of the function name itself. The following example explains this:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Public Function Sum (intNum1 as Integer, intNum2 as Integer) as Integer</span><br />
<span class="answers">Dim intSum as Integer</span><br />
<span class="answers">intSum = intNum1 + intNum2</span><br />
<span class="answers">Return intSum</span><br />
<span class="answers">End Function</span><br />
<span class="answers">Static Methods</span><br />
<br />
<span class="answers">VB.NET now allows you to create static methods in your classes. Static methods are methods that can be called without requiring the developer to create instance of the class. For example, if you had a class named Foo with the non-static method NonStatic() and the static method Static(), you could call the Static() method like so:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Foo.Static()</span><br />
<br />
<span class="answers">However, non-static methods require than an instance of the class be created, like so:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Create an instance of the Foo class</span><br />
<span class="answers">Dim objFoo as New Foo()</span><br />
<span class="answers">Execute the NonStatic() method</span><br />
<span class="answers">ObjFoo.NonStatic()</span><br />
<br />
<span class="answers">To create a static method in a VB.NET, simply prefix the method definition with the keyword Shared.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is a Strong Name?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A strong name consists of the assembly's identity its simple text name, version number, and culture information (if provided) plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make up the assembly), using the corresponding private key. Assemblies with the same strong name are expected to be identical.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Strong names guarantee name uniqueness by relying on unique key pairs. No one can generate the same assembly name that you can, because an assembly generated with one private key has a different name than an assembly generated with another private key.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">When you reference a strong-named assembly, you expect to get certain benefits, such as versioning and naming protection. If the strong-named assembly then references an assembly with a simple name, which does not have these benefits, you lose the benefits you would derive from using a strong-named assembly and revert to DLL conflicts. Therefore, strong-named assemblies can only reference other strong-named assemblies.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">There are two ways to sign an assembly with a strong name:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">1. Using the Assembly Linker (Al.exe) provided by the .NET Framework SDK.</span><br />
<span class="answers">2. Using assembly attributes to insert the strong name information in your code. You can use either the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, depending on where the key file to be used is located.</span><span class="apple-converted-space"> </span><br />
<br />
<br />
<span class="answers">To create and sign an assembly with a strong name using the Assembly Linker, at the command prompt, type the following command:</span><br />
<span class="answers">al /out: /keyfile:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In this command, assembly name is the name of the assembly to sign with a strong name, module name is the name of the code module used to create the assembly, and file name is the name of the container or file that contains the key pair.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The following example signs the assembly MyAssembly.dll with a strong name using the key file sgKey.snk.</span><br />
<br />
<span class="answers">al /out:MyAssembly.dll MyModule.netmodule /keyfile:sgKey.snk</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">To sign an assembly with a strong name using attributes</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In a code module, add the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, specifying the name of the file or container that contains the key pair to use when signing the assembly with a strong name. The following code example uses the AssemblyKeyFileAttribute with a key file called sgKey.snk.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">[Visual Basic]</span><span class="apple-converted-space"> </span><br />
<span class="answers">[C#]</span><span class="apple-converted-space"> </span><br />
</span><span style="color: black; font-size: 13.5pt;">[</span><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">assembly:AssemblyKeyFileAttribute(@"....sgKey.snk")]</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is a Manifest?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a PE (Portable Executable) file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a standalone PE (Portable Executable) file that contains only assembly manifest information. The following table shows the information contained in the assembly manifest. The first four items the assembly name, version number, culture, and strong name information make up the assembly's identity.</span></span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<br />
<span class="answers">Assembly name: A text string specifying the assembly's name.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Version number: A major and minor version number, and a revision and build number. The common language runtime uses these numbers to enforce version policy.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Culture: Information on the culture or language the assembly supports. This information should be used only to designate an assembly as a satellite assembly containing culture- or language-specific information. (An assembly with culture information is automatically assumed to be a satellite assembly.) Strong name information: The public key from the publisher if the assembly has been given a strong name. List of all files in the assembly:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">A hash of each file contained in the assembly and a file name. Note that all files that make up the assembly must be in the same directory as the file containing the assembly manifest.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Type reference information: Information used by the runtime to map a type reference to the file that contains its declaration and implementation. This is used for types that are exported from the assembly.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Information on referenced assemblies: A list of other assemblies that are statically referenced by the assembly. Each reference includes the dependent assembly's name, assembly metadata (version, culture, operating system, and so on), and public key, if the assembly is strong named.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Creating a Key Pair?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension. To create a key pair At the command prompt, type the following command:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">sn k</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In this command, file name is the name of the output file containing the key pair. The following example creates a key pair called sgKey.snk.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">sn -k sgKey.snk</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">When u compile a program using command line, u add the references using /r switch. When you compile a program using Visual Studio, it adds those references to our assembly, which are added using "Add Reference" dialog box. While "using" statement facilitates us to use classes without using their fully qualified names.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">For example: if u have added a reference to "System.Data.SqlClient" using "Add Reference" dialog box then u can use SqlConnection class like this:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">System.Data.SqlClient.SqlConnection</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">But if u add a "using System.Data.SqlClient" statement at the start of ur code then u can directly use SqlConnection class.</span><br />
<span class="answers">On the other hand if u add a reference using "using System.Data.SqlClient" statement, but don't add it using "Add Reference" dialog box, Visual Studio will give error message while we compile the program.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is GAC?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer. You should share assemblies by installing them into the global assembly cache only when you need to. Assemblies deployed in the global assembly cache must have a strong name. When an assembly is added to the global assembly cache, integrity checks are performed on all files that make up the assembly. The cache performs these integrity checks to ensure that an assembly has not been tampered with, for example, when a file has changed but the manifest does not reflect the change. Use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the .NET Framework SDK or Use Windows Explorer to drag assemblies into the cache. To install a strong-named assembly into the global assembly cache At the command prompt, type the following command:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">gacutil I</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In this command, assembly name is the name of the assembly to install in the global assembly cache.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is a Metadata?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">In .NET, this data is contained in the header portion of a COFF-compliant PE and follows certain guidelines;</span><span class="apple-converted-space"> </span><br />
<span class="answers">it contains information such as the assembly’s name, version, language (spoken, not computera.k.a., culture), what external types are referenced, what internal types are exposed, methods, properties, classes, and much more.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The CLR uses metadata for a number of specific purposes. Security is managed through a public key in the PE’s header.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Information about classes, modules, and so forth allows the CLR to know in advance what structures are necessary. The class loader component of the CLR uses metadata to locate specific classes within assemblies, either locally or across networks.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Just-in-time (JIT) compilers use the metadata to turn IL into executable code.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Other programs take advantage of metadata as well.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">A common example is placing a Microsoft Word document on a Windows 2000 desktop. If the document file has completed comments, author, title, or other Properties metadata, the text is displayed as a tool tip when a user hovers the mouse over the document on the desktop. You can use the Ildasm.exe utility to view the metadata in a PE. Literally, this tool is an IL disassembler.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is managed code and managed data?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Managed code is code that is written to target the services of the Common Language Runtime.</span><span class="apple-converted-space"> </span><br />
<span class="answers">In order to target these services, the code must provide a minimum level of information (metadata) to the runtime.</span><span class="apple-converted-space"> </span><br />
<span class="answers">All C#, Visual Basic .NET, and JScript .NET code is managed by default.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Visual Studio .NET C++ code is not managed by default, but the compiler can produce managed code by specifying a command-line switch (/CLR).</span><span class="apple-converted-space"> </span><br />
<span class="answers">Closely related to managed code is managed data--data that is allocated and de- allocated by the Common Language Runtime's garbage collector. C#, Visual Basic, and JScript .NET data is managed by default.</span><span class="apple-converted-space"> </span><br />
<span class="answers">C# data can, however, be marked as unmanaged through the use of special keywords.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Visual Studio .NET C++ data is unmanaged by default (even when using the /CLR switch), but when using Managed Extensions for C++, a class can be marked as managed using the __gc keyword. As the name suggests, this means that the memory for instances of the class is managed by the garbage collector.</span><span class="apple-converted-space"> </span><br />
<span class="answers">In addition, the class becomes a full participating member of the .NET Framework community, with the benefits and restrictions that it brings. An example of a benefit is proper interoperability with classes written in other languages (for example, a managed C++ class can inherit from a Visual Basic class).</span><span class="apple-converted-space"> </span><br />
<span class="answers">An example of a restriction is that a managed class can only inherit from one base class.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is .NET / .NET Framework?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It is a Framework in which Windows applications may be developed and run. The Microsoft .NET Framework is a platform for building, deploying, and running Web Services and applications. It provides a highly productive, standards-based, multi-language environment for integrating existing investments with next-generation applications and services as well as the agility to solve the challenges of deployment and operation of Internet-scale applications. The .NET Framework consists of three main parts: the common language runtime, a hierarchical set of unified class libraries, and a componentized version of Active Server Pages called ASP.NET. The .NET Framework provides a new programming model and rich set of classes designed to simplify application development for Windows, the Web, and mobile devices. It provides full support for XML Web services, contains robust security features, and delivers new levels of programming power. The .NET Framework is used by all Microsoft languages including Visual C#, Visual J#, and Visual C++.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is Reflection?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It extends the benefits of metadata by allowing developers to inspect and use it at runtime. For example, dynamically determine all the classes contained in a given assembly and invoke their methods. Reflection provides objects that encapsulate assemblies, modules, and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. You can then invoke the type's methods or access its fields and properties. Namespace: System.Reflection</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is "Common Type System" (CTS)?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">CTS defines all of the basic types that can be used in the .NET Framework and the operations performed on those type.</span><br />
<span class="answers">All this time we have been talking about language interoperability, and .NET Class Framework. None of this is possible without all the language sharing the same data types. What this means is that an int should mean the same in VB, VC++, C# and all other .NET compliant languages. This is achieved through introduction of Common Type System (CTS).</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is "Common Language Specification" (CLS)?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">CLS is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow. It is a subsection of CTS and it specifies how it shares and extends one another libraries.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is "Common Language Runtime" (CLR)?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">CLR is .NET equivalent of Java Virtual Machine (JVM). It is the runtime that converts a MSIL code into the host machine language code, which is then executed appropriately. The CLR is the execution engine for .NET Framework applications. It provides a number of services, including:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">- Code management (loading and execution)</span><br />
<span class="answers">- Application memory isolation</span><br />
<span class="answers">- Verification of type safety</span><br />
<span class="answers">- Conversion of IL to native code.</span><br />
<span class="answers">- Access to metadata (enhanced type information)</span><br />
<span class="answers">- Managing memory for managed objects</span><br />
<span class="answers">- Enforcement of code access security</span><br />
<span class="answers">- Exception handling, including cross-language exceptions</span><br />
<span class="answers">- Interoperation between managed code, COM objects, and pre-existing DLL's (unmanaged code and data)</span><br />
<span class="answers">- Automation of object layout</span><br />
<span class="answers">- Support for developer services (profiling, debugging, and so on).</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What are Attributes?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">Attributes are declarative tags in code that insert additional metadata into an assembly. There exist two types of attributes in the .NET Framework: Predefined attributes such as AssemblyVersion, which already exist and are accessed through the Runtime Classes; and custom attributes, which you write yourself by extending the System.Attribute class.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are the Types of Assemblies?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Assemblies are of two types:</span><br />
<span class="answers">1. Private Assemblies</span><br />
<span class="answers">2. Shared Assemblies</span><br />
<span class="answers">Private Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder as the application or in a sub folder. No other application will be able to make a call to this assembly. The advantage of having a private assembly is that, it makes naming the assembly very easy, since the developer need not worry about name clashes with other assemblies. As long as the assembly has a unique name within the concerned application, there won't be any problems.</span><br />
<span class="answers">Shared Assemblies: If the assembly is to be made into a Shared Assembly, then the naming conventions are very strict since it has to be unique across the entire system. The naming conventions should also take care of newer versions of the component being shipped. These are accomplished by giving the assembly a Shared Name. Then the assembly is placed in the global assembly cache, which is a folder in the file system reserved for shared assemblies.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is an Intermediate language?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Assemblies are made up of IL code modules and the metadata that describes them. Although programs may be compiled via an IDE or the command line, in fact, they are simply translated into IL, not machine code. The actual machine code is not generated until the function that requires it is called. This is the just-in-time, or JIT, compilation feature of .NET. JIT compilation happens at runtime for a variety of reasons, one of the most ambitious being Microsoft's desire for cross-platform .NET adoption. If a CLR is built for another operating system (UNIX or Mac), the same assemblies will run in addition to the Microsoft platforms. The hope is that .NET assemblies are write-once-run-anywhere applications. This is a .NET feature that works behind-the-scenes, ensuring that developers are not limited to writing applications for one single line of products. No one has demonstrated whether or not this promise will ever truly materialize.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">CTS/CLS</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">The MSIL Instruction Set Specification is included with the .NET SDK, along with the IL Assembly Language Programmers Reference. If a developer wants to write custom .NET programming languages, these are the necessary specifications and syntax. The CTS and CLS define the types and syntaxes that every .NET language needs to embrace. An application may not expose these features, but it must consider them when communicating through IL.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">ASP.NET Authentication Providers and IIS Security</span></span><span class="apple-converted-space"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"> </span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<br />
<span class="answers">ASP.NET implements authentication using authentication providers, which are code modules that verify credentials and implement other security functionality such as cookie generation. ASP.NET supports the following three authentication providers:</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Forms Authentication: Using this provider causes unauthenticated requests to be redirected to a specified HTML form using client side redirection. The user can then supply logon credentials, and post the form back to the server. If the application authenticates the request (using application-specific logic), ASP.NET issues a cookie that contains the credentials or a key for reacquiring the client identity. Subsequent requests are issued with the cookie in the request headers, which means that subsequent authentications are unnecessary.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Passport Authentication: This is a centralized authentication service provided by Microsoft that offers a single logon facility and membership services for participating sites. ASP.NET, in conjunction with the Microsoft® Passport software development kit (SDK), provides similar functionality as Forms Authentication to Passport users.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Windows Authentication: This provider utilizes the authentication capabilities of IIS. After IIS completes its authentication, ASP.NET uses the authenticated identity's token to authorize access.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">To enable a specified authentication provider for an ASP.NET application, you must create an entry in the application's configuration file as follows:</span><br />
<span class="answers">// web.config file</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between ASP and ASP.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">ASP is interpreted. ASP.NET Compiled event base programming.</span><br />
<span class="answers">Control events for text button can be handled at client javascript only. Since we have server controls events can handle at server side.</span><br />
<span class="answers">More error handling.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET has better language support, a large set of new controls and XML based components, and better user authentication.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET provides increased performance by running compiled code.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET code is not fully backward compatible with ASP.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET also contains a new set of object oriented input controls, like programmable list boxes, validation controls. A new data grid control supports sorting, data paging, and everything you expect from a dataset control. The first request for an ASP.NET page on the server will compile the ASP .NET code and keep a cached copy in memory. The result of this is greatly increased performance.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP .NET. To overcome this problem,</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">ASP .NET uses a new file extension ".aspx". This will make ASP .NET applications able to run side by side with standard ASP applications on the same server.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Using COM Component in .Net ?</span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">As most of you know that .Net does not encourage the development of COM components and provides a different solution to making reusable components through Assemblies. But, there are a lot of COM components present which our .Net application might need to use. Fortunately, .Net provides an extremely simple approach to achieve this. This is achieved by using ‘Wrapper Classes’ and ‘Proxy Components’. .Net wraps the COM component into .Net assembly technically called ‘Runtime Callable Wrapper’ or RCW. Then u can call and use your COM component just as a .Net (or C#, if u are using C#) Assembly.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is an assembly?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more files). All managed types and resources are marked either as accessible only within their implementation unit, or as accessible by code outside that unit. .NET Assembly contains all the metadata about the modules, types, and other elements it contains in the form of a manifest. The CLR loves assemblies because differing programming languages are just perfect for creating certain kinds of applications. For example, COBOL stands for Common Business-Oriented Language because it’s tailor-made for creating business apps. However, it’s not much good for creating drafting programs. Regardless of what language you used to create your modules, they can all work together within one Portable Executable Assembly. There’s a hierarchy to the structure of .NET code. That hierarchy is Assembly - > Module -> Type -> Method." Assemblies can be static or dynamic. Static assemblies can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on). Static assemblies are stored on disk in portable executable (PE) files. You can also use the .NET Framework to create dynamic assemblies, which are run directly from memory and are not saved to disk before execution. You can save dynamic assemblies to disk after they have executed.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is a Web Service?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A web service is a software component that exposes itself through the open communication channels of the Internet. Applications running on remote machines, on potentially different platforms, can access these components in a language and platform-independent manner. A Web Service is a group of functions, packaged together for use in a common framework throughout a network.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">webFarm Vs webGardens<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt.</span><br />
<span class="answers">How they bear it is based on various models.</span><br />
<span class="answers">1. RoundRobin. (All servers share load equally)</span><br />
<span class="answers">2. NLB (economical)</span><br />
<span class="answers">3. HLB (expensive but can scale up to 8192 servers)</span><br />
<span class="answers">4. Hybrid (of 2 and 3).</span><br />
<span class="answers">5. CLB (Component load balancer).</span><br />
<span class="answers">A web garden is a multi-processor setup. i.e., a single server (not like the multi server above).</span><br />
<span class="answers">How to implement webfarms in .Net:</span><br />
<span class="answers">Go to web.config and Here for mode = you have 4 options.</span><br />
<span class="answers">a) Say mode=inproc (non web farm but fast when you have very few customers).</span><br />
<span class="answers">b) Say mode=StateServer (for webfarm)</span><br />
<span class="answers">c) Say mode=SqlServer (for webfarm)</span><br />
<span class="answers">Whether to use option b or c depends on situation. StateServer is faster but SqlServer is more reliable and used for mission critical applications.</span><br />
<span class="answers">How to use webgardens in .Net:</span><br />
<span class="answers">Go to web.config and Change the false to true. You have one more attribute that is related to webgarden in the same tag called cpuMask.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is the difference between a namespace and assembly name?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">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. Such a naming scheme is completely under control of the developer. For example, types MyCompany.FileAccess.A and MyCompany.FileAccess.B might be logically expected to have functionally related to file access. The .NET Framework uses a hierarchical naming scheme for grouping types into logical categories of related functionality, such as the ASP.NET application framework, or remoting functionality. Design tools can make use of namespaces to make it easier for developers to browse and reference types in their code. 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. 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.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s a Windows process?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It’s an application that’s running and had been allocated memory.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s typical about a Windows process in regards to memory allocation?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Explain what relationship is between a Process, Application Domain, and Application?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Each process is allocated its own block of available RAM space, no process can access another process’ code or data. If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.</span><span class="apple-converted-space"> </span><br />
<span class="answers">A process is an instance of a running application. An application is an executable on the hard drive or network. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are possible implementations of distributed applications in .NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">.NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Web Services provide an open-protocol-based exchange of information. Web Services are best when you need to communicate with an external organization or another (non-.NET) technology.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s a proxy of the server object in .NET Remoting?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It’s a fake copy of the server object that resides on the client side and behaves as if it was the server. It handles the communication between real server object and the client object. This process is also known as marshaling.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are remotable objects in .NET Remoting?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Remotable objects are the objects that can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are channels in .NET Remoting?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What security measures exist for .NET Remoting in System.Runtime.Remoting?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is a formatter?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s SingleCall activation mode used for?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s Singleton activation mode?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you define the lease of the object?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">By implementing ILease interface when writing the class code.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Can you configure a .NET Remoting object via XML file?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How can you automatically generate interface for the remotable object in .NET with Microsoft tools?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Use the Soapsuds tool.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is Delegation?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A delegate acts like a strongly type function pointer. Delegates can invoke the methods that they reference without making explicit calls to those methods.</span><br />
<span class="answers">Delegate is an entity that is entrusted with the task of representation, assign or passing on information. In code sense, it means a Delegate is entrusted with a Method to report information back to it when a certain task (which the Method expects) is accomplished outside the Method's class.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What is "Microsoft Intermediate Language" (MSIL)?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">A .NET programming language (C#, VB.NET, J# etc.) does not compile into executable code; instead it compiles into an intermediate code called Microsoft Intermediate Language (MSIL). As a programmer one need not worry about the syntax of MSIL - since our source code in automatically converted to MSIL. The MSIL code is then send to the CLR (Common Language Runtime) that converts the code to machine language, which is, then run on the host machine. MSIL is similar to Java Byte code. MSIL is the CPU-independent instruction set into which .NET Framework programs are compiled. It contains instructions for loading, storing, initializing, and calling methods on objects. Combined with metadata and the common type system, MSIL allows for true cross- language integration Prior to execution, MSIL is converted to machine code. It is not interpreted.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Differences between Datagrid, Datalist and Repeater?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">1. Datagrid has paging while Datalist doesnt.</span><br />
<span class="answers">2. Datalist has a property called repeat. Direction = vertical/horizontal. (This is of great help in designing layouts). This is not there in Datagrid.</span><br />
<span class="answers">3. A repeater is used when more intimate control over html generation is required.</span><br />
<span class="answers">4. When only checkboxes/radiobuttons are repeatedly served then a checkboxlist or radiobuttonlist are used as they involve fewer overheads than a Datagrid.</span><br />
<span class="answers">The Repeater repeats a chunk of HTML you write, it has the least functionality of the three. DataList is the next step up from a Repeater; accept you have very little control over the HTML that the control renders. DataList is the first of the three controls that allow you Repeat-Columns horizontally or vertically. Finally, the DataGrid is the motherload. However, instead of working on a row-by-row basis, you’re working on a column-by-column basis. DataGrid caters to sorting and has basic paging for your disposal. Again you have little contro, over the HTML. NOTE: DataList and DataGrid both render as HTML tables by default. Out of the 3 controls, I use the Repeater the most due to its flexibility w/ HTML. Creating a Pagination scheme isn't that hard, so I rarely if ever use a DataGrid.</span><br />
<span class="answers">Occasionally I like using a DataList because it allows me to easily list out my records in rows of three for instance.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Yes, the code</span><br />
<br />
<span class="answers">System.Drawing.Graphics canvas = new System.Drawing.Graphics();</span><br />
<span class="answers">try</span><br />
</span><span style="color: black; font-size: 13.5pt;">{</span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">//some code</span><br />
</span><span style="color: black; font-size: 13.5pt;">}</span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">finally</span><br />
<span class="answers">canvas.Dispose();</span><br />
<br />
<span class="answers">is functionally equivalent to</span><br />
<br />
<span class="answers">using (System.Drawing.Graphics canvas = new System.Drawing.Graphics())</span><br />
</span><span style="color: black; font-size: 13.5pt;">{</span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">//some code</span><br />
<span class="answers">} //canvas.Dispose() gets called automatically</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How do you trigger the Paint event in System.Drawing?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Invalidate the current form, the OS will take care of repainting. The Update method forces the repaint.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">With these events, why wouldn’t Microsoft combine Invalidate and Paint, so that you wouldn’t have to tell it to repaint, and then to force it to repaint?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Painting is the slowest thing the OS does, so usually telling it to repaint, but not forcing it allows for the process to take place in the background.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How can you assign an RGB color to a System.Drawing.Color object?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Call the static method FromArgb of this class and pass it the RGB values.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it?</span></b></span><span class="apple-converted-space"><b><span style="color: black; font-size: 13.5pt;"> </span></b></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">No, Icon lives in System.Drawing namespace. It’s not a Bitmap by default, and is treated separately by .NET. However, you can use ToBitmap method to get a valid Bitmap object from a valid Icon object.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Before in my VB app I would just load the icons from DLL. How can I load the icons provided by .NET dynamically?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">By using System.Drawing.SystemIcons class, for example System.Drawing.SystemIcons.Warning produces an Icon with a warning sign in it.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">When displaying fonts, what’s the difference between pixels, points and ems?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">A pixel is the lowest-resolution dot the computer monitor supports. Its size depends on user’s settings and monitor size. A point is always 1/72 of an inch. An em is the number of pixels that it takes to display the letter M.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is the difference between VB 6 and VB.NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Answer1</span><br />
<span class="answers">VB</span><br />
<br />
<span class="answers">1,Object-based Language</span><br />
<span class="answers">2,Doesnot support Threading</span><br />
<span class="answers">3,Not powerful Exception handling mechanism</span><br />
<span class="answers">4,Doesnot having support for the console based applications</span><br />
<span class="answers">5,Cannot use more than one version of com objects in vb application called DLL error</span><br />
<span class="answers">6,Doesnot support for the Disconnected data source.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">VB.Net</span><br />
<br />
<span class="answers">1,Object-oriented Language</span><br />
<span class="answers">2,supports Threading</span><br />
<span class="answers">3,powerful Exception handling mechanism</span><br />
<span class="answers">4,having support for the console based applications</span><br />
<span class="answers">5,More than one version of dll is supported</span><br />
<span class="answers">6,supports the Disconnected data source by using Dataset class</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2</span><br />
<span class="answers">VB:</span><br />
<span class="answers">1. Object-based language</span><br />
<span class="answers">2. Does not support inheritance</span><br />
<span class="answers">3. ADO.Net does not give support for disconnected data architecture</span><br />
<span class="answers">4. No interoperability function</span><br />
<span class="answers">5. No support for threading</span><br />
<br />
<span class="answers">VB.Net</span><br />
<span class="answers">1. Object-Oriented Programming lanugage</span><br />
<span class="answers">2. ADO.Net gives support for disconnected data architecture</span><br />
<span class="answers">3. It provides interoperability</span><br />
<span class="answers">4. It uses managed code</span><br />
<span class="answers">5. supports threading</span><br />
<span class="answers">6. provides access to third-party controls like COM, DCOM</span><br />
<br />
<br />
<span class="answers">Answer2</span><br />
<span class="answers">1.The concept of the complete flow of execution of a program from start to finish: Visual Basic hides this aspect of programs from you, so that the only elements of a Visual Basic program you code are the event handlers and any methods in class modules. C# makes the complete program available to you as source code. The reason for this has to do with the fact that C# can be seen, philosophically, as next-generation C++. The roots of C++ go back to the 1960s and predate windowed user interfaces and sophisticated operating systems. C++ evolved as a low-level, closeto- the-machine, all-purpose language. To write GUI applications with C++ meant that you had to invoke the system calls to create and interact with the windowed forms. C# has been designed to build on this tradition while simplifying and modernizing C++, to combine the low-level performance benefits of C++ with the ease of coding in Visual Basic. Visual Basic, on the other hand, is designed specifically for rapid application development of Windows GUI applications. For this reason, in Visual Basic all the GUI boilerplate code is hidden, and all the Visual Basic programmer implements are the event handlers. In C# on the other hand, this boilerplate code is exposed as part of your source code.</span><br />
<span class="answers">2. Classes and inheritance: C# is a genuine object-oriented language, unlike Visual Basic, requiring all code to be a part of a class. It also includes extensive support for implementation inheritance. Indeed, most well-designed C# programs will be very much designed around this form of inheritance, which is completely absent in Visual Basic.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="forquestionsblue"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"></span>What are the authentication methods in .NET?</b></span><b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
</span></b><span class="answers"><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;">There are 4 types of authentications.</span></span><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">1.WINDOWS AUTHENTICATION</span><br />
<span class="answers">2.FORMS AUTHENTICATION</span><br />
<span class="answers">3.PASSPORT AUTHENTICATION</span><br />
<span class="answers">4.NONE/CUSTOM AUTHENTICATION</span><br />
<br />
<span class="answers">The authentication option for the ASP.NET application is specified by using the tag in the Web.config file, as shown below:</span><span class="apple-converted-space"> </span><br />
<span class="answers">other authentication options</span><span class="apple-converted-space"> </span><br />
<span class="answers">1. WINDOWS AUTHENTICATION Schemes</span><br />
<span class="answers">I. Integrated Windows authentication</span><br />
<span class="answers">II. Basic and basic with SSL authentication</span><br />
<span class="answers">III. Digest authentication</span><br />
<span class="answers">IV. Client Certificate authentication</span><br />
<br />
<span class="answers">2. FORMS AUTHENTICATION</span><br />
<span class="answers">You, as a Web application developer, are supposed to develop the Web page and authenticate the user by checking the provided user ID and password against some user database</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">3.PASSPORT AUTHENTICATION</span><br />
<span class="answers">A centralized service provided by Microsoft, offers a single logon point for clients. Unauthenticated users are redirected to the Passport site</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">4 NONE/CUSTOM AUTHENTICATION:</span><br />
<span class="answers">If we don’t want ASP.NET to perform any authentication, we can set the authentication mode to “none”. The reason behind this decision could be: We don’t want to authenticate our users, and our Web site is open for all to use. We want to provide our own custom authentication</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is Serialization in .NET?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Anwer1</span><br />
<span class="answers">The serialization is the process of converting the objects into stream of bytes.</span><br />
<span class="answers">they or used for transport the objects(via remoting) and persist objects(via files and databases)</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Answer2</span><br />
<span class="answers">When developing smaller applications that do not have a database (or other formal storage mechanism) or data that doesn’t need to be stored in a database (such as the state of a web application), you often still would like to save the data for later retrieval. There are many ways to do this, but many of them are subject to a lot of extra code (work) and extra time spent debugging. With .NET, there is now an easy way to add this functionality to your code with only a few lines of easily tested code. This easy way is called serialization.</span><span class="apple-converted-space"> </span><br />
<br />
<span class="answers">Serialization is the process of storing an object, including all of its public and private fields, to a stream. Deserialization is the opposite – restoring an object’s field values from a stream. The stream is generally in the form of a FileStream, but does not have to be. It could be a memory stream or any other object that is of type IO.Stream. The format can be anything from XML to binary to SOAP.</span><span class="apple-converted-space"> </span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What’s the use of System.Diagnostics.Process class?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">By using System.Diagnostics.Process class, we can provide access to the files which are presented in the local and remote system.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Example: System.Diagnostics.Process(”c:\mlaks\example.txt”) — local file</span><br />
<span class="answers">System.Diagnostics.Process(”http://www.mlaks.com\example.txt”) — remote file</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What are the authentication methods in .NET?</span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Abstract class: This class has abstract methods (no body). This class cannot be instantiated. One needs to provide the implementation of the methods by overriding them in the derived class. No Multiple Inheritance.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Interfaces: Interface class contains all abstract methods which are public by default. All of these methods must be implemented in the derived class. One can inherit from from more than one interface thus provides for Multiple Inheritance.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">re-clarification of object based:<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">VB6 DOES support polymorphism and interface inheritance. It also supports the “Implements” keyword. What is not supported in vb6 is implementation inheritance.</span><span class="apple-converted-space"> </span><br />
<span class="answers">Also, from above, vb6 DOES “provides access to third-party controls like COM, DCOM ” That is not anything new in .NET.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">How to achieve Polymorphism in VB.Net?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">We can achieve polymarphism in .Net i.e Compile time polymarphism and Runtime polymarphism. Compiletime Polymarphism achieved by method overloading. Runtime polymarphism achieved by Early Binding or Late Binding. Provide the function pointer to the object at compile time called as Early Binding.</span><br />
<span class="answers">provide the function pointer to the object at runtime called as Late Binding</span><br />
<span class="answers">class emp having the method display()</span><br />
<span class="answers">class dept having the method display()</span><br />
<br />
<span class="answers">create objects as in the main function</span><br />
<span class="answers">// Early binding</span><br />
<span class="answers">dim obj as new emp</span><br />
<span class="answers">dim ob as new dept</span><br />
<br />
<span class="answers">obj.display()-to call the display method of emp class</span><br />
<span class="answers">ob.display-to call the display method of the dept class</span><br />
<span class="answers">// Late binding</span><br />
<br />
<span class="answers">create object in the main class as</span><br />
<span class="answers">object obj</span><br />
<span class="answers">obj=new emp</span><br />
<span class="answers">obj.display()-to call the display of emp class</span><br />
<span class="answers">obj=new dept</span><br />
<span class="answers">obj.display()-to call the display of dept class</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">Difference between Class And Interface<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">Class is logical representation of object. It is collection of data and related sub procedures with defination.</span><br />
<span class="answers">Interface is also a class containg methods which is not having any definations.</span><br />
<span class="answers">Class does not support multiple inheritance. But interface can support.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What doesu mean by .NET framework?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is assembly?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It is a single deployable unit that contains all the information abt the implimentation of classes , stuctures and interfaces</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">What is namespaces?<span class="apple-converted-space"> </span></span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">It is a logical group of related classes and interfaces and that can be used byany language targeting the .net framework.</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<span class="style15"><b><u><span style="color: red; font-size: 18.0pt;">.NET framework programming interview questions</span></u></b></span><span class="apple-converted-space"><b><u><span style="color: red; font-size: 18.0pt;"> </span></u></b></span><span style="color: black; font-size: 13.5pt;"><br />
</span><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><br />
.NET framework overview</span></b><span style="color: black; font-family: "Bookman Old Style"; font-size: 10.5pt;"><br />
<span class="answers">1. Has own class libraries. System is the main namespace and all other namespaces are subsets of this.</span><br />
<span class="answers">2. It has CLR(Common language runtime, Common type system, common language specification)</span><br />
<span class="answers">3. All the types are part of CTS and Object is the base class for all the types.</span><br />
<span class="answers">4. If a language said to be .net complaint, it should be compatible with CTS and CLS.</span><br />
<span class="answers">5. All the code compiled into an intermediate language by the .Net language compiler, which is nothing but an assembly.</span><br />
<span class="answers">6. During runtime, JIT of CLR picks the IL code and converts into PE machine code and from there it processes the request.</span><br />
<span class="answers">7. CTS, CLS, CLR</span><br />
<span class="answers">8. Garbage Collection</span><br />
<span class="answers">9. Dispose, finalize, suppress finalize, Idispose interface</span><br />
<span class="answers">10. Assemblies, Namespace: Assembly is a collection of class/namespaces. An assembly contains Manifest, Metadata, Resource files, IL code</span><br />
<span class="answers">11. Com interoperability, adding references, web references</span><br />
<span class="answers">12. Database connectivity and providers</span><br />
<br />
<br />
<span class="answers">Application Domain</span><br />
<span class="answers">1. Class modifiers: public, private, friend, protected, protected friend, mustinherit, NotInheritable</span><br />
<span class="answers">2. Method modifiers: public, private</span><br />
<span class="answers">3. Overridable</span><br />
<span class="answers">4. Shadows</span><br />
<span class="answers">5. Overloadable</span><br />
<span class="answers">6. Overrides</span><br />
<span class="answers">7. Overloads</span><br />
<span class="answers">8. Set/Get Property</span><br />
<span class="answers">9. IIF</span><br />
<span class="answers">10. Inheritance</span><br />
<span class="answers">11. Polymorphism</span><br />
<span class="answers">12. Delegates</span><br />
<span class="answers">13. Events</span><br />
<span class="answers">14. Reflection</span><br />
<span class="answers">15. Boxing</span><br />
<span class="answers">16. UnBoxing</span><br />
<br />
<br />
<span class="answers">ASP.Net</span><br />
<span class="answers">1. Web Controls: Data grid (templates, sorting, paging, bound columns, unbound columns, data binding), Data list, repeater controls</span><br />
<span class="answers">2. HTML Controls</span><br />
<span class="answers">3. Code behind pages, system.web.ui.page base class</span><br />
<span class="answers">4. Web.config: App settings, identity (impersonate), authentication (windows, forms, anonymous, passport), authorization</span><br />
<span class="answers">5. Databind.eval</span><br />
<span class="answers">6. Trace, Debug</span><br />
<span class="answers">7. Output cache</span><br />
<span class="answers">8. Session management</span><br />
<span class="answers">9. Application, Session</span><br />
<span class="answers">10. Global.asax httpapplication</span><br />
<span class="answers">11. User controls, custom controls, custom rendered controls (postback event, postdatachanged event) usercontrol is the base class</span><br />
<span class="answers">12. Directives</span><br />
<br />
<br />
<span class="answers">ADO.Net</span><br />
<span class="answers">1. Command object (ExecuteNonquery, ExecuteReader, ExecuteXMLReader, ExecuteScalar)</span><br />
<span class="answers">2. DataAdapter object (Fill)</span><br />
<span class="answers">3. Dataset (collection of tables)</span><br />
<span class="answers">4. CommandBuiler object</span><br />
<span class="answers">5. Transaction Object</span><br />
<span class="answers">6. Isolation levels</span></span><span style="color: black; font-size: 13.5pt;"><o:p></o:p></span><br />
<div class="MsoNormal"><br />
</div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0tag:blogger.com,1999:blog-9000360924308992885.post-3830516657436684272011-05-03T10:12:00.000+05:302011-05-03T10:12:31.446+05:30TCS APPTITUDE QUESTIONS 2011<div dir="ltr" style="text-align: left;" trbidi="on">TCS APPTITUDE QUESTIONS 2011<br />
<br />
<br />
<div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; width: 115.68%;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="padding: 0in 0in 0in 0in; width: 100.0%;" valign="top" width="100%"> <div align="center" class="MsoNormal" style="text-align: center;"><br />
</div><div align="center"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="padding: 0in 0in 0in 0in;" valign="top"> <table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0in; mso-padding-alt: 0in 0in 0in 0in; width: 100.0%;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="padding: 0in 0in 0in 0in;" valign="top"> <div class="MsoNormal"><br />
</div></td> </tr>
</tbody></table><div class="MsoNormal"><o:p></o:p></div></td> <td style="padding: 0in 0in 0in 0in;" valign="top"> <table border="0" cellpadding="0" class="MsoNormalTable" style="mso-cellspacing: 1.5pt; width: 100.0%;"><tbody>
<tr style="mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;"> <td style="padding: .75pt .75pt .75pt .75pt;"> <div align="center" class="MsoNormal" style="text-align: center;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;">TCS Aptitude</span></b></div><div align="center" class="MsoNormal" style="text-align: center;"><b><span style="color: black; font-family: Verdana; font-size: 10.0pt;"><br />
</span></b></div></td> </tr>
</tbody></table><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">I have appeared for TCS on campus on 12th January at GNIT along with other 1300 students(JIS + Narula+ GNIT) .TCS had previously (in the month of December) given away their Demo paper to many colleges and we were no exception. We practiced them repeatedly. On the day of the aptitude test we found that each & every question in the aptitude was from those papers given previously by TCS. We were very happy; we answered around 28(correct) on an avg. I personally answered 30(correct), could have answered >32 but didn't due to the fear of uppercut off. In general cases it remains (lower cutoff 18 & upper cutoff >32). But Eventually when results were out. ------BELIEVE IT OR NOT, THE LOWER CUTOFF WAS 33!!!!!!!!!!!!!!!!!!!!! OUT OF 35.THOSE WHO HAVE ANY DOUBT CAN ASK THIS TO ANY STUDENT OF JIS/GNIT/NARULA OF BATCH 2011 PASSOUT.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">Questionsare:<span class="apple-converted-space"> </span><br />
SET1: There is a toy train that can make 10 musical sounds. It makes 2 musical sounds after being defective. What is the probability that me musical sound would be produced 5 times consecutively? (1 of_______)?<span class="apple-converted-space"> </span><br />
2: Peter and Paul ate two friends. The sum of their ages is 35 years. Peter is twice as old as Paul was when Peter was as old as Paul is now. What is the preset ate of Peter?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">3:the ages of two friends is in the ratio 6:5. The sum of their ages is 66. After how many years will the ages be in the ratio 8:7? <span class="apple-converted-space"> </span>Ans-12<span class="apple-converted-space"> </span><br />
4: There are 5 materials to make a perfume: Lilac, Balsalmic, Lemon, Woody and Mimosaic. To make a perfume that is in demand the following conditions are to be followed: Lilac and Balsalmic go together. Woody and Minosaic go together, Woody and balsalmic never go together. Lemon can be added with any material. All of the following combinations are possible to make a perfume EXCEPT: 1) Balsalmic and Lilac 2) Woody and Lemon 3) Mimosaic and Woody 4) Minosaic and Lilac <span class="apple-converted-space"> </span>Ans-4<span class="apple-converted-space"> </span><br />
5: A girl has a make pizza with different toppings. There are 8 different toppings. In how many ways can she make pizzas with 2 different toppings? <span class="apple-converted-space"> </span> Ans-nC2 * 2<span class="apple-converted-space"> </span><br />
6: A triangle is made from a rope. The sides of the triangle are 25 cm, 11 cm and 31 cm. what will be the area of the square made from the same rope? <span class="apple-converted-space"> </span>Ans-16.752 cm2<span class="apple-converted-space"> </span><br />
7: what is the distance between the z-intercept from the x0intercept in the equation ax+by+cz+d=0. <span class="apple-converted-space"> </span>Ans— (- d/a)<span class="apple-converted-space"> </span><br />
8: An athlete decides to run the same distance in 1/4th less time that she usually took. By how percent will she have to increase her average speed? <span class="apple-converted-space"> </span>Ans-300%<span class="apple-converted-space"> </span><br />
9: A horse chases a pony 3 hours after the pony runs. Horse takes 4 hours to reach the pony. If the average speed of the horse is 35 kmph, what is the average speed of the pony? <span class="apple-converted-space"> </span>Ans-20kmph<span class="apple-converted-space"> </span><br />
10: There is 7 friends (A1,A2,A3…….A7). If A1 have to have shake with all without repeat. How many hands shakes possible? <span class="apple-converted-space"> </span>Ans-6<span class="apple-converted-space"> </span><br />
11: there are two pipes A and B. If A filled 10 liters in an hour B can fills 20 liters in same time. Likewise B can fill 10, 20, 40, 80, 160, .if B filled in (1/6) the of the tank in 3 hours, how much time will it take to fill completely?<span class="apple-converted-space"> </span><br />
12: 10 tables, 4chairs per table, each table has different number of people then how many tables will leave without at least one person.<span class="apple-converted-space"> </span><br />
13: The age of two friends is in the ratio 5:6, after how many years will the ages be in the ratio 7:8?<span class="apple-converted-space"> </span><br />
14: A men whose age is 45 yrs has 3 sons named johan, Jill and Jack. He went to a park weekly twice. He loves his sons very much. On a certain day he finds shopkeepers selling different things. An apple cost 1penny, 2chocalate costs 1penny, & 3 bananas cost 1penny. He has bought equal no. of apple, chocolate and banana for each son. If the total amount he invest is 7 penny then how many he has bought from each piece for his son? a) 1app, 1 chow, q banana b) 1app, 2cho, 3banana c) 1app, 2cho, 1banana <span class="apple-converted-space"> </span>Ans-c<span class="apple-converted-space"> </span><br />
15: A scientist was researching on animal behavior in his lab. He was very interested in analyzing the behavior of bear. For some reason he traveled 1mile in north direction and reached at North Pole. There he saw a bear he then followed the bear around 1hr with a speed of 2km/hr in east direction. After that he traveled in south direction and reached at his lab in 2 hrs. Then what is the colour of the bear? a) white, b) black, c)grey, d) brown<span class="apple-converted-space"> </span><br />
16: Ina particular city there are 100 homes numbered from 1,2,3……..100. The city was build by a builder from Chennai. There was 4 to 5 shops in the town which was build by a builder from Mumbai. THE 2nd builder in can build in ½ time as compared to 1st builder. If the 2nd builder builds in 15 days, then how many 2's are used by the builder from Chennai in numbering the 100 homes? a) 17, b) 18, c) 19 d) 20<span class="apple-converted-space"> </span><br />
17: Mr. Das has 3 sons whose ages are respectively a, b, c. The grandfather has bought a cycle for the eldest son, mother has bought a bag for the youngest one which cost Rs. 150/. The sum of two age of the elder son and one son is 15. The difference of the age of sons is 3 & 2. Then what of the age of the elder son? a) 10, b) 11, c) 12, d) 13 Ans-10<span class="apple-converted-space"> </span><br />
18: We all know that Aryabhatta is the greatest mathematician who belongs to <st1:country-region w:st="on"><st1:place w:st="on">India</st1:place></st1:country-region>. When his daughter Mayabati was in her teen age he discovered a problem. At that the time the age of Mayabati is a prime number, let that age is A . After some years her age becomes B. then AryaBhatta was able to solve that problem with the help of his daughterMayabati. If a-b=5 & product of a & b is 26 then what is the sum of two squares? Ans-77<span class="apple-converted-space"> </span><br />
19: How many 13 digit numbers are possible by using the digits 1,2,3,4,5 which are divisible by 4 if repetition of digits is allowed?<span class="apple-converted-space"> </span><br />
20: (40*40*40-31)/(40*40*40*31+31*31)=?<span class="apple-converted-space"> </span><br />
21: x/2y=2a, then 2x/x-2ay=? <span class="apple-converted-space"> </span>Ans-(4-x)/2<span class="apple-converted-space"> </span><br />
22: Mr. behera wants to build a house for his wife. In this there are 5 rooms each having equal area. The length of each room is 4m,, breadth is 5m. The height of the rooms is 2m. If to make a sq meter we need 17 bricks, then how many bricks are needed to make the floor of a particular room? <span class="apple-converted-space"> </span>Ans-140<span class="apple-converted-space"> </span><br />
23: On <st1:place w:st="on"><st1:placename w:st="on">Tuesday</st1:placename> <st1:placetype w:st="on">College</st1:placetype></st1:place> parking palace have only 4wheelers and bicycles, total no of wheels was 182, then what is the possible no of bicycles? a) 20, b)19, c) 18, d)17<span class="apple-converted-space"> </span><br />
24: On average age something like a, b, c weighted separately 1st a, b, c, then a & b, then b &c , then c 7 a at last abc, then last weight was 167, then what will be the avg weight of the 7 weight?<span class="apple-converted-space"> </span><br />
25: Arrange the jumbled letters to make a perfect word RGTEI. Find to which category it belongs? a) Town, b) vegetable, c) animal, d) bird<span class="apple-converted-space"> </span><br />
26: 3 persons a, b, c were there A always says truth, B lies on Monday, Tuesday and Wednesday. But C lies on Thursday, Friday and Saturday. One day A said” that B and C said to A that" B said" yesterday way one of the days when I lies", C said that" yesterday way one of the days when I lies too". Then which day was that? a) Sunday, b) Thursday, c) Saturday d) Tuesday<span class="apple-converted-space"> </span><br />
27: A mathematical series present like 8 6 17 35 30 71 _ 143.<span class="apple-converted-space"> </span><br />
28: One man want to build a wall the length and breadth of the wall are 20, 30 respectively, he need 35 bricks for one square centimeter then how many bricks he need?<span class="apple-converted-space"> </span><br />
29: One person had three children. He has 7 pennies. Then how he can distribute the fruits among his child by following conditions. a) He can get one water millon for 1 penny. b) He can get 2 oranges for 1 penny. c) He can get 3 grapes for 1 penny.<span class="apple-converted-space"> </span><br />
30: 1/3rd of a number are more 3 than the 1/6th of a number then find the number?<span class="apple-converted-space"> </span><br />
31: In T nagar many buildings were under residential category for buildings they number as 1 to 100. For shops, corporation numbered between 150 and 200 only prime numbers. How many times 6 will appear in building numbering? <span class="apple-converted-space"> </span>Ans-26<span class="apple-converted-space"> </span><br />
32: One grand father has 3 grand children. Eldest one are is 3 times of the youngest child age. Sum of two youngest child age is more than two of eldest one age. Find the eldest one age?<span class="apple-converted-space"> </span><br />
33: The difference b/w two numbers is 4. And their product is 17. Then find the sum of their squares?<span class="apple-converted-space"> </span><br />
34: Find category from following Jumbles=d letters, PARAKEET<span class="apple-converted-space"> </span><br />
35: Which is the smallest digit when divides the 2880 gives perfect square? <span class="apple-converted-space"> </span>Ans-5<span class="apple-converted-space"> </span><br />
36: I don't have any brothers and sisters. By pointing a picture that man said that his father is my fathers Son then who is he? <span class="apple-converted-space"> </span> Ans- is the man<span class="apple-converted-space"> </span><br />
37: 6 persons standing in queue with different age group, After two years their average are will be 43 and seventh person joined with them. Hence the current average age has become 45. Find the age of seventh parson?<span class="apple-converted-space"> </span><br />
38: The ratio b/w the ages of two persons is 6:5 and sum of there ages is 77 then how many years later there ratio becomes 8:7?<span class="apple-converted-space"> </span><br />
39: Horse started to chase a dog as it relieved stable two hrs ago. And horse started to ran with average speed 22km/hr, horse crossed 10 mts road and two small pounds with depth 3m, and it crossed two small streets with 200 mts length. After traveling 6hrs, 2hrs after sunset it got dog. Compute the speed of dog?<span class="apple-converted-space"> </span><br />
40: If six friend go to pizza corner there r 2 type s of pizzas. And six different flavors are there, they have to select 2 flavors from 6 flavors what's chances to select?<span class="apple-converted-space"> </span><br />
41: 3, 22, 7, 45, 15, ?, 31 Complete the series. <span class="apple-converted-space"> </span>Ans 76<span class="apple-converted-space"> </span><br />
42: A & B takes are there 1/8th of the tank B filled in 22 Hrs. what is time to fill the tank full?<span class="apple-converted-space"> </span><br />
43: 5 friends went for week end party to Mc Donald's restaurant and there they measure there weights final measure is 155 kg then find the average w=weight of 5 people? Ans-31<span class="apple-converted-space"> </span><br />
44: 2 post are there. 1st pot is filled with ink and 2nd pot is filled with water take 1 spoon of ink from 1st pot and pore it in 2nd pot. And take 1 spoon pf mixture from 2 and pot ad pore it in 2nd pot then which one of following is true? Lion said that today is one of those days when I lie. Tiger said that today is one of those days when I lie too. Then find the day when both lie together?<span class="apple-converted-space"> </span><br />
45: 6 persons standing in queue with different age group, after two years their average age will be 43 and seventh person joined with them. Hence the current average age has become 45. Find the age of seventh person?<span class="apple-converted-space"> </span><br />
46: ((4x+3y)+5x+9y)/(5x+5y)=? As (x/2y)=2<span class="apple-converted-space"> </span><br />
47: If we subtract a number with y, we get 4 increase of number, once it got divided by y itself….Find the number??<span class="apple-converted-space"> </span><br />
48: I'm only son for my parents. The man in picture is my father's son. Who is he? Ans-the man<br />
49: A toy train can make 10 sounds sound changes after every 4 min now train is defective and can make only 2 sounds, find probability that same sound is repeated 3 times consecutively? 1) 16, 2) 8, 3) 12, 4) 4<span class="apple-converted-space"> </span><br />
50: I have 3 grandsons. The age diff btw 2 of grandsons is X yrs. 1st grandson is twice elder than younger one addition off ages of all the three is y then what is age of eldest grandson? Ans=2(x+y)/5<span class="apple-converted-space"> </span><br />
51: Ferrari is leading car manufacturer car . It has enjoyed great success. If Mohan's Ferrari is 3 times faster than his old MERCEDES which gave him 35 kmph if Mohan traveled 490 km in his Ferrari, then how much time (hours) he took?? 1).8, 2). 4, 3) 7, 4) 7 <span class="apple-converted-space"> </span> Ans-aprrox-4<span class="apple-converted-space"> </span><br />
52: Lion and rat stay in jungle happily. Lion lies on : MON TUE WED, RAT lies on : WED THURS SAT, if lion says : I didn't lie yesterday, RAT says : e1 didn't lie yesterday, so what day is today?? <span class="apple-converted-space"> </span>Ans-Sunday<span class="apple-converted-space"> </span><br />
53: The ratio of current age of x and y is 5:7, after how many years their age ratio will b 7:9?<span class="apple-converted-space"> </span><br />
54: inspired by Fibonacci series sanket decided to create is own series which is 1, 2, 3, 7, 7, 22, 15, 67,…..what number come immediately before 67?<span class="apple-converted-space"> </span><br />
55: By using 1,2,3,4,5 how many 5 digit no. cam be formed which is divisible by 4, repetition of no. is allowed?? <span class="apple-converted-space"> </span>Ans-30 expl-(5!/1!)/4=30<span class="apple-converted-space"> </span><br />
56: The cost 1 plum is 1 cent, 2 apples is 1 cent, 3 bananas is 1% if Rahul buys same amount of fruits for his 3 sans appending 7 cent den what amount of fruit each child will get??<span class="apple-converted-space"> </span><br />
57: 2880 is divided by which smallest no. so we get no. l which is perfect square? Ans=5<span class="apple-converted-space"> </span><br />
58: There are two prime numbers, the addition of two prime no is 13, and multiplication is 21, den what is the some of there squares? <span class="apple-converted-space"> </span>Ans=107<span class="apple-converted-space"> </span><br />
59: Smita was making 1 design, size of larger cube to be made is 5*5*5using smaller cubes of 1*1*1. She created solid larger cube.. Then she decided to make hollow cube. Then how many 1*1*1 cubes required to make hollow larger cube <span class="apple-converted-space"> </span>Ans 6L2 -8=150-8=142<span class="apple-converted-space"> </span><br />
60: 2x/5y=5x/3y…den what is x/y<span class="apple-converted-space"> </span><br />
61: A pizza parlor provides pizzas. There were 2 topping available initially pepperoni and salami. but not they ,have introduces 8jnew toppings to select from. A person whishes to buy two DIFFERENT pizzas of NEW topping in how many ways he can do that??<span class="apple-converted-space"> </span><br />
62: Person travels to a place. If he goes from A to B with speed of 4kmph and return back to B with speed of 5 kmph. What is his avg. speed of journey? <span class="apple-converted-space"> </span>Ans-(20/9)=2.22kmph<span class="apple-converted-space"> </span><br />
63: There is a dice having value from 1 to 6 on each face and a pack of cards having face card aces. When 2 dices are thrown and their scores are added then which sum will come max number of times?? 1) *, 2) 9, 3) 10 , 4) 11.<span class="apple-converted-space"> </span><br />
64: "Susha brought terilon cloth and rope to make a thing. If rope is 153 mtr long and it is to be cut into pieces of 1 mtr long then how many times will she have to cut it?? Ans-151times<span class="apple-converted-space"> </span><br />
65: There are some 2 wheelers and 4 wheelers parked total number of wheels present is 240. Then how many 4 wheelers were there? <span class="apple-converted-space"> </span> Ans-max(15)<span class="apple-converted-space"> </span><br />
66: 1/3 of a number is 6 more than 1/6 of that number then what is the number?Ans-36 67: The cost of making a robot consists of material cost, repairing cost, coloring cost and is in the ratio 3:4:5, if the material cost is 1200 then find out the cost of the robot. 68: there are pepsi 1 liter and oil 1 liter. It is given is 1 spoon of Pepsi is taken and is mixed with Oil. Then 1 spoon oil and Pepsi is taken and is mixed with Pepsi then which of the condition holds true.<span class="apple-converted-space"> </span><br />
69: A tank is filled with water in first hour 10 lit, Second hour 20 lit and in 3 rd hour time 40 lit. If time taken fill ¼ of the tank is 5 hr. what is the time required to fill up the tank. Ans-10.45hr<span class="apple-converted-space"> </span><br />
70: Which is the smallest no divides 2880 and gives a perfect square? Ans-5.<span class="apple-converted-space"> </span><br />
71: Two bowls are taken, one contains water and another contains tea. One spoon of water is added to second bowl and mixed well, and a spoon of mixture is taken from second bowl and added to the second bowl. Which statement will hold good for the above?<span class="apple-converted-space"> </span><br />
72: From 8 digit numbers from by using 1,2,3,4,5 with repetition is allowed and must be divisible by 4? a) 31250, b) 97656 c) 78125 d) 97657<span class="apple-converted-space"> </span><br />
73: Rearrange and categorize the word 'RAPETEKA'? Ans-katerpeta<span class="apple-converted-space"> </span><br />
74: In school there are some bicycles and 4 wheeler wagons. One Tuesday there are 190 wheels in the campus. How many bicycles are there? Ans-95<span class="apple-converted-space"> </span><br />
75: A lies on mon, tues, wed and speak truth on other days, B lies on thur, fri, sat and speaks truths on other days ….one day a said I lied today and B said I too lied today. What is the day? Ans-sunday<span class="apple-converted-space"> </span><br />
76: A father has 7 penny's with him and 1 water melon is for 1 p, 2chickoos for 1 p, 3 grapes foe 1p, he has three sons. How can he share the fruits equally?<span class="apple-converted-space"> </span><br />
77: (1/2) of a number is 3 times more than the (1/6) of the same number?<span class="apple-converted-space"> </span><br />
78: A man is standing before a painting a man and he says I have no bro and sis and his father is my father's son?<span class="apple-converted-space"> </span><br />
79: One question has last part like difference between two terms is 9 and product of two numbers is 14, what is the squares of sum of numbers? Ans-119<span class="apple-converted-space"> </span><br />
80: What is the value of [(3x+8y)/(x-2y); if x/2y=2?Ans-10<span class="apple-converted-space"> </span><br />
81: A pizza shop made pizzas with to flavours in home. there are 'N' different flavors, in that 'M' flavors are taken to made pizza. In how many ways they can arrange?Ans-nCm<span class="apple-converted-space"> </span><br />
82: One grandfather had three grandchildren, two fathers their age difference is 3, eldest child age is 3 times youngest child's age and eldest child's age is two times of sum of other two children. What is the age is eldest child?<span class="apple-converted-space"> </span><br />
83: In one organization material, labor and maintenance are in the ratio of 4:6:7, the material cost is 100, what is the total cost?Ans-525<span class="apple-converted-space"> </span><br />
84: In a market 4 man are standing the average age of the four before 4 years is 45, after some days one man is added and his age is 49, what is the average weight of all? 85: In school for a student out of 100 got 74 of average for 7 subjects and he got 79 marks in 8th subjects. What is the average of all the subjects?<span class="apple-converted-space"> </span><br />
86: In a question, last part has the age of two people has the ratio of 6:6 and by adding the numbers we get 44, after how many years the ratio would be 8:7?<span class="apple-converted-space"> </span><br />
87: One train travels 200m from A to B with 70 km/ph and returns to A with 80kmph, what is the average of their speed?Ans-75 km/hr<span class="apple-converted-space"> </span><br />
88: Two years before Paul's age is 2 times the Alice age and the present age of Paul is 6times the Alice. What is the presents Paul's age?Ans–(-3)<span class="apple-converted-space"> </span><br />
89: There is Ferrari and Benz car, Benz speed is say 10kmph and it cover 10 km. and if fernery goes with 3 times faster than Benz. So in how much time Ferrari could take to cover same distance.Ans-1/3<span class="apple-converted-space"> </span><br />
90: If one land has 3 daughters and any out of 3 have difference of ages is 3 and oldest is 3 times of more than 2 then youngest ate 2 then tell the age of oldest daughter.<span class="apple-converted-space"> </span><br />
91: If a person moves 15km straight and turns 45km right and moves 15km straight then how much distance he needs to walk to reach starting point?Ans-45km<span class="apple-converted-space"> </span><br />
92: If there are 30 cans out of them one is poisoned if a person tastes very little he will die within 14 hours so if there are mice to test and 24 h0urs how many mices are required to find the poisoned can?<span class="apple-converted-space"> </span><br />
93: If A and B mixed in 3:5 ration and B, C are mixed in 8:5 ration if the final mixture is 35 liters, find the amount of b in the final mixture.Ans-(40/99)*35=14.14<span class="apple-converted-space"> </span><br />
94: 1!+2!+….50!=3*10<span class="apple-converted-space"> </span><span style="font-family: Tahoma;">̂</span>64?<span class="apple-converted-space"> </span><br />
95: 6 persons standing in queue with different age group, after two years their average age will be 43 and seventh person joined with them. Hence in the current average age has become 45. Find the age of seventh person?Ans-59<span class="apple-converted-space"> </span><br />
96: If we subtract a number with y, we get 4 increase of number, once it got divided by y itself….find that number??Ans-3<span class="apple-converted-space"> </span><br />
97: It is the class with the seating arrangement in 4 rows and 8 columns. When the teachers says 'start the girl who is sitting in first row and first column will say 1, then the next girl sitting behind her will say 4, the next girl sitting behind that girl will say 7, in a particular order each girl is telling a number, the following girls told 10, 13 next turn is yours what u will say?<span class="apple-converted-space"> </span><br />
98: It is drunk in my bedroom and I want to get two socks of the same color from my drawer, which contains 24 red and 24 blue socks. How many socks do I have to take from the drawer to gate at least two socks of the same color? a) 2, b) 3, c) 48, d) 25 99: 100 the cost 1 plum is 1 cent, 2 apples is 1 cent, 3 bananas is 1 cent, if rahul buys same amount of fruits for his 3 sons spending 7 cent den what amount of fruit each child will get??Ans-1plum,2apples,1bananas.<span class="apple-converted-space"> </span><br />
<br />
<br />
SET : 2</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">1. Here are 2 cans A and B one of MILK and other of Water resp., both of same quantity first one teaspoon of milk from a can was added to a can then which of the following is true. A. Can A contain more milk than water in can B B. Can A contain less milk than water in can B C. Both contain same quantity of milk and water</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">2. If a pipe can fill the tank within 6 hours but due to leak it took 30 minutes more now if the tank was full how much time will it take to get emptied through the leak? <span class="apple-converted-space"> </span>Ans-78hur</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">3. The average weight of class is X kg( some number) after adding wt of the teacher avgwt of class becomes Y kg then what is the weight of the teacher?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">4. 20 men shake hand with each other. What is the maximum no of handshakes without cyclic handshakes?Ans=20C2=190</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">5. 100 men & women dance with each other. What is the probability that a man cannot dance with more than two women?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">6. A man goes North 37 km turns left goes 2 km turns right goes 17 km turns right goes 2 km, find the distance between starting & ending point.Ans=54</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">7. Lady has 2 select gloves & hat from a basket is in the dark. She can distinguish hat 7 gloves, 14 red, 20 blue, 18 green are there. Find the probability that any selected glove pair has same color.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">8. Peter is 2 times Paul's age was when peter's age is same as Paul's present age. Find the Paul's age.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">9. From a rope a triangle is made of sides 21 cm, 24 cm, 28 cm from this a square is made. Find the area of square.Ans =330 sq cm</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">10. In a supermarket average of 4 peoples standing in queue taken 2 yrs before is 55 yrs .Now a person of 45 yrs is added. Find the current age.Ans=68.25 year</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">11. A toy can produce 10 different sounds. Now toy is defective to produce 2 sounds in 3 minutes, find the probability that it produces 6 consecutive in 1 second?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">12. 1/6th of a number is 4 times more than 2/3 of a number. Find number.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">13. A jogger jogs@1/6th of his usual speed. How much % she has to increase to reach normal pace of walking.Ans = 500%</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">14. X is 3 years younger to Y, X's father is a businessman who invested 10000/- at 8% rate of interest and obtained his amount after 10 years .Y's father is a job holder who invested around 20000 at 2% rate and obtained his amount after 20 years . Now compounded both of them get around ABC rs/- . After 5 years the ratio of ages of X & Y is 1:2. Now X's father is 20 years older to Y and Y's father is 30 years more than X. After 20 years again X's mother asks X's father to purchase a LCD TV which costs around 45000/-. What is the age of X and Y together?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">15. The bacteria had a probability of splitting into three and a probability to die is one third of total bacteria. Let the probability be P. Some of them survived with probability 1/5 than which among the following relation is true? a. P=1/3+1/5*3 b. P=1/5*(1/8-3)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">16. If a tank A can be filled within 10 hrs and tank B is 1/4th filled in 19 hrs, then what is the duration of the tank to fill completely?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">17. A lady had fine gloves and hats, 25 blue, 7 red and 9 grey . She had to select a pair among them. But there was no light so she had to select in darkness the correct pair with glove and a hat. Therefore how many combinations of same color she can select?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">18. A man looks at a painting and tells "Neither I have brothers nor sisters, but the person in the painting is my father's son". Then who is in the painting?Ans=man</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">19. An old toy had three grandchildren, the difference between two children was 3 years. Her eldest grandchild was 3 times elder than the youngest one and the elder one 2 years more than the sum of the other two. Then what is the age of the eldest child?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">20. There was a grandmother in a village that had a grandchild. Upon asking her grandchild's age she told that she is older as many days old as her daughter's age in weeks and as many days as her own age in years. The sum of the three is 130, then how old is the child?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">21. (98*98*98-73*73*73)/ (98*98*98+73*73*73)= ? Ans=(1003 - 703)/(1003+ 703) = nearly 5</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">22. Which is the smallest number which on dividing 2880 to make it a perfect square? a. 6 b.5 c.4 d.3Ans=2880</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">23. Leena cut small cubes of 10 cubic cms each, which she joined to form a cube with 10 cm length, 5 cm in depth and 5 cm wide. How many more small cubes does she require to form a perfect cube?Ans= (100 – 25) = 75</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">24. The age of two people is in the ratio 6:8, the sum of their ages is 77 after 2 years the ratio of their ages becomes 5:7, what is their present age?Ans=33&44</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">25. If a and b are mixed in 3:5 ratio and b,c are mixed in 8:5 ratio if the final mixture is 35 liters, find the amount of b in the final mixture.?Ans =40/89 *35</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">26. A vendor sells 1 apple for 1 penny, 2 grapes for 1 penny, 3 bananas for 1 penny. A man spends 7 penny and gives equal amount of fruits to each of his three daughters. What is the possible number of fruits each daughter gets?Ans=1:2:1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">27. 5 persons standing in queue with different age group two years ago their average age will be X and 6th person joined with them; hence the current average age has become Y. Find the age of seventh person?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">28. 5,9,12,18,26,36,47,72,……? .Here odd terms have difference as multiples of 7 and even terms adds with themselves to form the next number.Ans=47+28=75</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">29. Lion tells lies on Mondays, Tuesday and Wednesday, Rat tells lie on Thursday, Friday and Saturday, Both of them speak truth on other days. Lion tells, "Yesterday was one of the days which, I tell lying", Rat also tells "Yesterday was one of the days which I tell lying:. What day was yesterday?Ans=thursday</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">30. There were three different gloves 13 red, 27 black and 40 green. How many gloves one has to take so as to ensure that there is at least one pair in each color?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">31. One person has no siblings and says." The guy in the photo is the only son of my father's son", what is the relation of the guy to the person?Ans = man</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">32. Difference of two numbers is 6. Product of them is 13.what is the sum of their squares?Ans=62</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">33. Speed and distance were given and time taken was asked. T=D/S.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">34. A lady builds 9cm length, 10 cm width,3 cm height box using 3 cubic cm cubes. What is the minimum number of cubes required to build the box?Ans = 90</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">35. When a pair of dice is thrown, what number has the higher probability to occur the sum of 8 or 9 or 10?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">36. A person has to make 146 pieces of a long bar. He takes 4 seconds to cut a piece . What is the total time taken by him in seconds to make 146 pieces?Ans=480 sec</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">37. 6 persons standing in queue with different age group, after two years their average age will be 43 and seventh person joined with them, hence the current average age has become 45, find the age of seventh person?Ans=71 year</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">38. Horse started to chase dog as it relieved stable two hrs ago. And horse started to ran with average speed 22km/hr, horse crossed 10 mts road and two small pounds with depth 3 m,and it crossed two small streets with 200 mts length . After traveling 6 hrs ,2hrs after sunset it got dog. Compute the speed of the dog?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">39. 3,22,7,45,15,?,31Ans=91</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">40. ((4x+3y)+5x+9y))/(5x+5y)=? as (x/2y)=2</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">41. If we subtract a number with y, we get 4 increase of number. Once it got divided by y itself .Find that number?Ans= x-y=4+x x/y=x</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">42. (209*144)^2 +(209*209)+ (209*144)+(144*144)=?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">43. By which number should we divide the number 2880 to make it perfect square?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">44. 1/3 of some number is 5 more than 1/6th of that number . Find the number?Ans=30</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">45. Difference of two numbers is 4 and their product is 13. Find the sum of squares of that number?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">46. How many of 14 digit numbers we can make with 1,2,3,4,5 that are divisible by 4 . Repetitions allowed.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">47. Rearrange the alphabets REGHFTYD, find the type of rearranged word belongs to: a. Animal b. Tree c. Bird d. Thing</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">48. There is a factory which is producing the bicycles and four wheelers . One day the total production of wheels is 158. Find out the possible no. of bicycles produced a. 6 b.7 c.8 d.9</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">49. Four years hence the average of 6 members is 45 . Now a person is added and the average becomes 48. What is the age of added person?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">50. A dog started two hours early before the horse started. The horse reached the dog after 6 hours with the speed of 16 km/hr, find the speed of the dog?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">51. There are bacteria which have the probability of die 1/3 of its total number or it may triple . Found out the probability? A.P=1/3+ (2/3*p^3) B. P=2/3+(2/3* p^3) C.P=2/3+(1/3* p^3) D. P=2/3+ (2/3* p^3)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">52. There are two tanks A,B .A will fill up 1ltr in one hour. B tank will fill up double in every hour (like10, 20, 40, 80,160…..) if the tank B is filled 1/16 in 13 hours how much time it will take to fill up totally.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">53. In a hotel we can order two types of varieties, but we can make 6 more varieties in home. One can want the four varieties with two from hotel must. Find how many ways one can order.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">54.There is a series 13,14,27,30,55,62 ?, 126. Find the missing.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">55.There are three friends x,y,z . They go to excursion with their girl friends. There they wanted to find weights but their GF's are not accept to check their weight. Then they check weights as x,y,z individually and then x and y, y and z,x and z , then all(x,y,z) , the last measure is 171. Then find the average of all these seven measures.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">56. Two tanks A and B ,A fills 1 ltr/1 hr….B fill 10,20,30,……. Per hour . If 1/4th tank of B takes 15 hrs to fill how much it time will t take to fill complete tank.?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">57. Out of 7 children the youngest is boy than find the probability that all the remaining children are boys?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">58.The three sides of a triangle are given 16,14,21 cm and this triangle is converted into square. So what will be the area of the square generated?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">59.An equation of the form 4x+6y-2z =32. Find the difference between x intercept and z intercept.?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">60. 20 men and 20 women are there, they dance with each other, is there possibility that 2 men are dancing with same women and vice versa.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">61.10 people are there, they are shaking hands together, how many had shakes possible, if they are in no pair of cyclic sequence.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">62.In a school there are some bicycles and 4 wheeler wagons. One Tuesday there are 234 wheels in the campus. How many bicycles are there.?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">63.A father has 7 penny's with him and 1 water melon is for 1p,2chickkos for 1p, 3 grapes for 1p has three sons. How can he share the fruits equally.?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">64.In one organization , materials , labor and maintenance are in the ratio of 4:6:7, if the material cost is 272, what is the total cost?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">65. 4 years before paul's age is 3 times the <st1:city w:st="on">Alice</st1:city> age and the present age of Paul's is 6 times the <st1:place w:st="on"><st1:city w:st="on">Alice</st1:city></st1:place> , what is the present age of Paul?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">66.The ages of two people has the ratio of 6:5 and by adding the numbers we get 55 , after how many years the ratio would be 8:7?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">67.A volume of X are having in a container of sphere , how many semi hemispheres of volume each will be required to transfer all the A into semi hemispheres?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">68. Peter and Paul are two friends. The sum of their ages is 42 years. Peter is twice as old as paul was when Peter was as old as paul is now. What is the present age of peter?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">69. A horse chases a pony 2 hours after the pony runs. Horse takes 4 hours to reach the pony. If the average speed of the horse is 81 kmpr, what is the average speed of the pony?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">70. A,B,C,D,E are there among A,B,C are boys and D, E are girls>>>>>>>> D is to the left of A and no girl sits at the middle and at the extremes . Then what is the order of their sittings.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">71.A man goes 50km NORTH , then turned left walked 40 km , then turned RIGHT? .In which direction is he in?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">72. Out of 6 children the youngest is boy then find the probability that all the remaining children are boys.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">73. A man went 1 mile to east then 1 mile to north and killed a bear what is the color of the bear?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">74.In a market 4 man are standing , the average age of the four before n4 years is 45, after some days one man is added and his age is 49, what is the average weight of all?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">75. One train travels 200m from A to B with 70 km/hr and returns to A with 80 kmph, what is the average of their speed?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">76. The three sides of a triangle are given 18, 18, 28 cms and this triangle is converted into a square. So what will be the area of the square generated?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">77. An equation of the form 7x+17y+3z=54. Find the difference between x intercept and z intercept?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">78. There are 1000 pillars for a temple 3 friends Linda, Chelsey, Juli visited that temple, Linda is taller than Chelsey and taller than 2 of 1000 pillars Juli is shorter than Linda. Find the correct sentence? a. Linda is shorter among them b.Chelsey is taller than Juli c.Chelsey is shorter than Juli d. Cannot determine who is taller among Chelsey and Juli.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">79. Entry ticket to an exhibition ranges from 1p to 7p. You need to provide exact change at the counter . You have 7p coin . In how many parts will you divide 7p so that you will provide the exact change required and carry as less coins as possible? a.8 b.7 c.5 d.3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">80. Dhoni and Pointing are waiting for the toss to happen, Umpire found that the coin to be tossed is missing .pointing then takes a dice 91-6) from his pocket and asks the umpire to toss with it. Umpire feels both the captains may not get which then would give fair chance to both captains. What would be the idea of Dhoni?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">81. 23 people are there, they are shaking hands together, how many hands shakes possible, if they are in pair of cyclic sequence.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">82.10 men and 10 women are there, they dance with each other , is there possibility that 2 men are dancing with same women and vice versa.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">83. A lady took out jacket and gloves , which are available in blue 26,yellow 30 and red 56.Power goes off, she can distinguish between gloves and jacket but not in colors. What's the possibility their she will pick up pair of gloves of each color?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">84. Sangakara and pointing selects batting by using a dice , but dice is biased so to resolve ponty takes out a coin, what is the probability that dice shows correct option?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">85. In school there are some bicycles and 4 wheeler wagons. One Tuesday there are 58 wheels in the campus. How many bicycles are there?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">86.Two bowls are taken , one contains water and another contains tea. One spoon of water is added to second bowl and mixed well, and a spoon of mixture is taken from second bowl and added to the second bowl. Which statement will hold good for the above?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">87. From 8 digit numbers from by using 1,2,3,4,5 with repetition is allowed and must be divisible by 4? a.31250 b.97656 c.78125 d.97657</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">88.(a3-b3)/(a2+ab+b2)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">89. A lies on mon, tues, wed and speak truths on other days, B lies on thur,fri,sat and speaks truths on other days. One day a said I lied today and B said I too lied today. What is the day?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">90.(1/2) of a number is 3 times more than the 91/6) of the same number?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">91. There are two pipes A and B , if A filled 10 liters in hour B can fills 20 liters in same time. Likewise B can fill 10, 20, 40, 80,160….., if b filled in (1/16) the of a tank in 3 hours , how much time will it take to fill completely.?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">92.One question has last part like difference between two terms is 9 and product of two numbers is 14, what is the squares of sum of numbers?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">93.A man is standing before a painting of a man and he says I have no bro and sis and his father is my father's son?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">94. What is the value of [(3x+8y)/(x-2y)], if x/2y=2?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">95. One grandfather has three grandchildren, two of their age difference is 3, eldest child age is 3 times youngest child's age and eldest child's age is two times of sum of other two children. What is the age of eldest child?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">96.in a market 4 man are standing, the average age of the four before 4 years is 45,after some days one man is added and age is 49, what is the average age of all?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">97. In a school for a student out of a 100 he got 74 of average for 7 subjects and he got 79 marks in 8th subject, what is the average of all the subjects?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">98. The ages of two people has the ratio of 6:5 and by adding the numbers we get 44, after how many years the ratio would be 8:7?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">99. Two years before Paul's age is 2 times the <st1:city w:st="on">Alice</st1:city> age and the present age of Paul is 6 times the <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>. What is the presents Paul's age?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">100. One train travels 200m from A to B with 70km/hr and returns to A with 80kmph, what is the average of their speed?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">101.A man whose age is 45 years has 3 sons named John,Jill,jack,he went to a park weekly twice , he loves his sons very much. On a certain day he find # shopkeepers sailing different things. An apple cost 1 penny,2 chocolates costs 1penny&3 bananas cost 1 penny, he has bought equal no of apples, chocolate & banana for each son. If the total amount he invest is 7 penny then how many he has bought from each piece for his son? a.1 app,1 cho,1 banana b.1 app,2cho,3 bananas c.1app,2cho,1 banana d.2app,2cho,2 bananas</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">102.A scientist was researching on animal behavior in his lab. He was very interested in analyzing the behavior of bear. For some reason he traveled 1 mile in north direction & reached at north pole, there he saw a bear, he then followed the bear around 1 hr with a speed of 2kmph in east direction , after that he traveled in south direction & reached at his lab min 2 hrs. Then what is the color of the bear? a. white b.black c.gray d.brown 103.How many 9 digit numbers are possible by using the digits 1,2,3,4,5, which are divisible by 4 if repetition of digits is allowed?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">104.3 persons a,b,c were there A always says truth , B lies on Monday, Tuesday & Wednesday, but C lies on Thursdays, Friday & Saturday, one Das A said that B & C said to A that B said yesterday way one of the days when I lies said that yesterday way one of the days when I lies too, then which day was that?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">105.A girl has to make pizza with different toppings . There are 8 different toppings, in how many ways can she make pizzas with 2 different toppings.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">106.Peter& Paul are two friends . The sum of their ages is 35 years . Peter is twice as old as Paul was when Peter was as old as Paul is now . What is the present age of Peter?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">107.2 pots are there , 1st pot is filled with ink and 2nd pot is filled with water, take 1 spoon of ink from 1st pot and pore it in 2nd pot and take 1 spoon of mixture from 2nd pot and pore it in 2nd then which one of following is true?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">108.There are ten spots in library and each spot has 4 tables and ten readers are there, 10 students come into library and want 2 studies in how many ways that they sit in d library so that no chair would be blank?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">109.There is a toy train that can make 10m musical sounds . It makes 2 musical sounds after being defective . What is the probability that same musical sound would be produced 5 times consecutively?( 1 of __________)?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">110.There are 5 materials to make a perfume ,Lilac,Balsalmic,Lemon,Woody and Mimosaic, To make a perfume that is in demand the following conditions are to be followed :Lilac and Balsalmic go together,Woody and Mimisaic go together,woody and Balsalmic never go together. Lemon can be added with any material. All of the following combinations are possible to make a perfume EXCEPT. 1. balsalmic and lilac 2.Woody and Lemon 3. Mimosaic and lilac 4. Mimosaic and Lilac</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">111. A triangle is made from a rope . The sides of the triangle are 25 cm, 11 cm, and 31 cm. What will be the area of the square made from the same rope?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">112. What is the distance between the Z-intercept from the X-intercept in the equation ax+by+cz+d=0. 113. An athlete decides to run the same distance in ¼ the less time that she usually took. By how much percent will she have to increase her average speed? 114.Two pipes A and B fill at A certain rate B is filled at 10,20,40,80, if 1/16 of B if filled in 17 hours what time it will take to get completely filled . 115. In a shopping mail with a staff of 5 members the average age is 45 years. After 5 years a person joined them and the average age is again 45 years . What's the age of the 6th person? 116. Find (4x+2y)/(4x-2y) if x/2y=2?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">117.Find the average speed if a man travels at speed of 24kmph up and 36kmph down at an altitude of 200 m. Formula is 2xy/(x=y).</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">118. Six friends go to pizza corner there are 2 types of pizzas and six different flavors are there they have to select 2 flavors from 6 flavors in how many ways we can select?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">119.3 friends A,B,C went for week end party to McDonald's restaurant and there they measure there weights in some order In 7 rounds.A:B:C,AB:BC,AC:ABC. Final round measure is 155 kg then find the average weight of all the 7 rounds?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">120. There is a toy train that can make 10 musical sounds . It makes 2 musical sounds after being defective. What is the probability that same musical sound would be produced 5 times consecutively?(1 of )?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">121. What is the distance of the z-intercept from the x-intercept in the equation ax+by+cz=d ( I do not remember the values of a,b,c,d)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">122. A scientist in Antarctic region conducts research on bears came to know that bears changes according to the location . Once he moves 1 mile towards north, then he moves 2 miles towards east, then 1 mile towards south. Now the color of bear he found will be in: 123. 91/30 of a number is 3 times more than the (1/60 of the same number?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">124.There are 11 Boys in a family . Youngest child is a boy . What is the probability of all are boys? a.2 b.2! c.2048 d.1024</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">125. A boy bought a roll A of 56 inches wide and 141 yards long. He also bought B of 77 inches wide of length 333 yards. Time taken for cutting A into 1 yard piece is 2 seconds. Time taken to cut into 141 pieces of 1 yard each is?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">126.A person buys a horse for 15 ponds after one year he sells it for 20 pounds .After one year , again he buys the same horse at 30 pounds and sells it for 40 pounds. What is the profit for that person?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">127. John buys a cycle for 31 dollars and given a cheque of amount 35 dollars. Shop keeper exchanged the cheque with his neighbor and gave change to John. After 2 days it is known that cheque is bounced. Shop keeper paid the amount to his neighbor. The cost price of cycle is 19 dollars. What is the profit/loss for shop keeper?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">128. In a family there are some boys and girls. All boys told that they are having equal no of brothers and sisters and girls told that they are having twice the no. of brothers than sisters. How many boys and girls present in a family?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">129. There are certain number of hats and gloves in box. They are of 41 red, 23 green, 11 orange. But a woman can differentiate between hats and gloves. How many draws are required to obtain a pair of each color?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">130. 2 years ago of A is x times that of B. 3years hence the age of A is 4/3 times of B. What is the present age of B in binary form?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">131. A metal strip of width x cm, 2 metal strips are placed one over the other, then the combine length of 2 strips is y , if z strips are placed in that number manner. What is the final width of that arrangement?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">132. There are 100 men and 100 women on the dance floor. They want to dance with each other. Then which of the following statements is always true: a. There are 2 men who danced with equal no. of women's b.There are 2 women who danced with equal no of men</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">133. A game is played between 2 players and one player is declared as winner. All the winners from first round are played in second round. All the winners from second round are played in third round and so on. If 8 rounds are played to declare only one player as winner, how many players are played in first round.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">134. There are 3 boys A,B,C and 2 girls D,E,.D always sit right to A, Girls never sit in extreme positions and in the middle position always sits in the extreme positions. Who is sitting immediate right to E?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">135.49 members attended the party, in that 22 are males, 17 are females. The shake hands between males, females, male and female. Total 12 people given shake hands. How many such kinds of such shake hands are possible?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">136. Entry ticket to an exhibition ranges from 1p to 31p. You need to provide exact change at the counter. You have 31p coin. In how many parts will you divide 31p so that you will provide that exact change required and carry as less coins as possible? a.22 b.31 c.6 d.32</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">137. There are 2 friends Peter and Paul, Peter age is twice as old as Paul when Peter was as old as Paul is now. Sum of the present ages of Peter and Paul is 35. What is the present age of Peter?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">138. A lady took out jacket and gloves, which are available in blue 26, yellow 30 and red 56.Power goes off, she can distinguish between gloves and jacket but not in color. What's the possibility their she will pick up pair of gloves of each color.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">139. Two bowls are taken, one contains water and another contains tea. One spoon of water is added to second bowl and mixed well, and a spoon of mixture is taken from second bowl and added to the second bowl. Which statement will hold good for the above 140. One grandfather has three grandchildren, two of their age difference is 3, eldest child age is 3 times youngest child's age and eldest child's age is two times of sum of other two children. What is the age of eldest child?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">141.10 men and 10 women are there, they dance with each other, is there possibility that 2 men are dancing with same women and vice versa.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">142. Two bowls are taken, one contains water and another contains tea. One spoon of water is added to second bowl and mixed well, and a spoon of mixture is taken from second bowl and added to the second bowl. Which statement will hold good for the above.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">143.From 8 digit number from by using 1,2,3,4,5 with repetition is allowed and must be divisible by 4? a.31250 b.97656 c.78125 d.97657</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">144.One question has last part like difference between two terms is 9 and product of two numbers is 14.What is the square of the sum of numbers?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">145. One grandfather has three grandchildren, two of their age difference is 3, eldest child age is 3 times youngest child's age and eldest child's age is two times of sum of other two children. What is the age of eldest child?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">146. In a market 4 man are standing. The average age of the four before 4 years is 45, after some days one man is added and his age is 49. What is the average weight of all?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">147. In a school for a student out of a 100 he got 74 of average for 7 subjects and he got 79 marks in 8th subject. What is the average of all the subjects?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">149. One train travels 200 m from A to B with 70 km/ph and returns to A with 80 km/ph, what is the average of their speed?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">150. There are 10 reading spots in a room. Each reading spot has a round table .Each round table has 4 chair; if different no of persons are sitting at each reading spot. And if there are 10 persons inside the room then how many reading spots do not have at least a single reader. a.5 b.6 c.7 d.None</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">151. A person does rock climbing at an altitude of 800 m. He goes up by 7mph and come down by 9 mph.What was his average speed.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">152.A boy want to make a cuboid of dimension 5m,6m,7m from small cubes of .03 m3.later he realized ,he can make same cuboid by making it hollow. Then it take some cubes less. What is the no of these cube.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">153. Two years ago A was 6 times older than B . Now he is 2 times older than B. What is the age of A.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">154. What is the value of (78*78*78*-45*45*45)/(78*78+78*45+45*45)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">155.In a shopping mall with a staff of 5 members the average age is 45 years. After 5 years a person joined them and the average age is again 45 years . What is the age of 6th person?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">156. Find (4x+2y)/(4x-2y) if x/2y=2</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">157.Find the average speed if a man travels at speed of 24kmph up and 36 kmph down at an altitude of 200m, formula is 2xy/(x+y)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">158.A triangle is made from a rope .The sides of the triangle are A cm,B cm& C cm. What will be the area of the square made from the same rope?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">159. What is the distance of the z-intercept from the x-intercept in the equation ax+by+cz=d ( I do not remember the values of a,b,c,d)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">160.A scientist in Antarctic region conducts research on bears came to know that bears changes according to the location. Once he moves 1 mile towards north, then he moves 2 miles towards east, then 1 mile towards south . Now the color of bear he found will be in. 161.(1/3) of a number is 3 times more than the (1/6) of the same number?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">162. There are 11 boys in a family .Youngest child is a boy . What is the probability of all are boys? a.2 b.2! c.2048 d.1024</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">163. A boy bought a roll A of 56 inches wide and 141 yards long. He also bought B of 77 inches wide of length 333 yards. We don't want any details of B.Final question is time taken for cutting A into 1 yard piece is 2 seconds. Time taken to cut into 141 piece of 1 yard each is?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">164. A person buys a horse for 15 ponds, after one year he sells it for 20 pounds, after one year, again he buys the same horse at 30 pounds and sells for 40 pounds. What is the profit for that person?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">165. John buys a cycle for 31 dollars and given a cheque of amount 35 dollars. Shop Keeper exchanged the cheque with his neighbor and gave change to john. After 2 days, it is known that cheque is bounded .Shop Keeper paid the amount to his neighbor. The cost price of cycles is 19 dollars. What is the profit/loss for shopkeeper?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">166. There is a die with 10 faces .It is not known that fair or not 2 captains want to toss die for batting selection. What is the possible solution among the following? a. if no. is odd it is head, if no is even it is tails b. if no is odd it is tail, if no is even it is head C.Toss a die until all the 10 digits appear on top face.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">167. In a family there are some boys and gilrs. All boys told that they are having equal no of brothers and sisters and girls told that they are having twice the no of brothers than sisters. How many boys and girls present in a family?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">168.2 years ago of A is x times that of B. 3 years hence the age of A is 4/3 times of B. What is the present age of B in binary form?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">169. A metal strip of width x cm, 2 metal strips are placed one over the other, then the combine length of 2 strips is y , if z strips are placed in that number manner. What is the final width of that arrangement?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">170. There are 100 men and 100 women on the dance floor. They want to dance with each other. Then which of the following statements is always true: a. There are 2 men who danced with equal no. of women's b.There are 2 women who danced with equal no of men</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">171. A game is played between 2 players and one player is declared as winner. All the winners from first round are played in second round. All the winners from second round are played in third round and so on. If 8 rounds are played to declare only one player as winner, how many players are played in first round.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">172. There are 3 boys A,B,C and 2 girls D,E,.D always sit right to A, Girls never sit in extreme positions and in the middle position always sits in the extreme positions. Who is sitting immediate right to E?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">173. 49 members attended the party, in that 22 are males, 17 are females. The shake hands between males, females, male and female. Total 12 people given shake hands. How many such kinds of such shake hands are possible?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">174. There are 1000 pillars for a temple 3 friends Linda, Chelsey, Juli visited that temple, Linda is taller than Chelsey and taller than 2 of 1000 pillars Juli is shorter than Linda. Find the correct sentence? a. Linda is shorter among them b.Chelsey is taller than Juli c.Chelsey is shorter than Juli d. Cannot determine who is taller among Chelsey and Juli. 175. Entry ticket to an exhibition ranges from 1p to 31p. You need to provide exact change at the counter. You have 31p coin. In how many parts will you divide 31p so that you will provide that exact change required and carry as less coins as possible? a.22 b.31 c.6 d.32</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;"><br />
</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;"><br />
</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">SET : 3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">1. Alok and Bhanu play the following min-max game. Given the expression N=40+X+Y-Z, where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable. Assuming both play to their optimal strategies, the value of N at the end of the game would be • 49 • 51 • 31 • 58</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">2. The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in <st1:country-region w:st="on"><st1:place w:st="on">India</st1:place></st1:country-region>. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ? • 19 • 5 • 14 • 70</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">3. 14 people meet and shake hands. The maximum number of handshakes possible if there is to be no 'cycle' of handshakes is (A cycle of handshakes is a sequence of people a1, a2,…ak, k>2 such that the pairs {a1,a2}, {a2,a3},…, {a(k-1), ak}, {ak, a1} shake hands). • 11 • 12 • 10 • 13</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">4. 45 suspects are rounded by the police and questioned about a bank robbery. Only one of them is guilty. The suspects are made to stand in a line and each person declares that the person next to him on his right is guilty. The rightmost person is not questioned. Which of the following possibilities are true? A. All the suspects are lying. B. The leftmost suspect is guilty. C. The rightmost suspect is guilty. • A only • A and C • B only • A and B</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">5. The dynamics of crowd behaviour are hard to study because usually people are not reliable witnesses of their own behaviour. Now consider 4 people standing in the queue of a supermarket. You want to predict their behaviour based on their age group. You get to know from the supermarket records that their average age 4 years ago was 43 years. After a while, another person joins the queue and the present average of all the 5 is 40 years. The present age of the last person in the queue is : • 28 years • 12 years • 32 years • 24 years</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">6. One day Snow-white meets Pal and Unicorn in the Fairyland. She knows the Pal lies on Mondays, Tuesdays and Wednesdays, and tells the truth on the other days of the week. Unicorn, on the other hand, lies on Thursdays, Fridays and Saturdays, but tells the truth on the other days of the week. Now they make the following statements to Snow-white – Pal: Yesterday was one of those days when I lie. Unicorn: Yesterday was one of those days when I lie too. What day is it? • Tuesday • Monday • Thursday • Sunday</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">7. The Barnes Foundation in <st1:city w:st="on"><st1:place w:st="on">Philadelphia</st1:place></st1:city> has one of the most extra-ordinary and idiosyncratic collections in French impressionist art. Dr. Barnes who put together this collection has insisted that the paintings be hung in a particular manner specified by him at a museum designed by the French architect Paul Philippe Cret who also designed the <st1:place w:st="on"><st1:placename w:st="on">Rodin</st1:placename> <st1:placetype w:st="on">Museum</st1:placetype></st1:place>. The museum has, say, seven galleries – Eugene Boudin, Cassatt, Boudin, Forain, Gonzales, Manet and Monet. Visitors reach the main Eugene Boudin by an elevator, and they can enter and leave the exhibition only through Eugene Boudin gallery. Once inside, visitors are free to move as they choose. The following list includes all of the doorways that connect the seven galleries: There is a doorway between Eugene Boudin and Cassatt, a doorway between Eugene BoudinandBoudin, and a doorway between Eugene Boudin and Gonzales galleries. There is a doorway between Cassatt and Boudin galleries. There is a doorway between Gonzales and Forain and a doorway between Gonzales and Manet galleries. There is a doorway between Manet and Monet galleries. Which of the following rooms CANNOT be the third gallery that any visitor enters ? • Monet • Boudin • Forain • Cassatt</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">8. Mr. Beans visited a magic shop and bought some magical marbles of different colours along with other magical items. While returning home whenever he saw a coloured light, he took out marbles of similar colours and counted them. So he counted the pink coloured marbles and found that he has bought 25 of them. Then he counted 14 green marbles and then 21 yellow marbles. He later counted 30 purple coloured marbles with him. But when he reached a crossing, he looked at a red light and started counting red marbles and found that he had bought 23 Red marbles. As soon as he finished counting, it started raining heavily and by the time he reached home he was drenched. After reaching home he found that the red, green and yellow marbles had magically changed colours and became white, while other marbles were unchanged. It will take 1 day to regain its colours, but he needs to give atleast one pair of marbles to his wife now. So how many white marbles must be choose and give to his wife so as to ensure that there is atleast one pair of red, yellow and green marbles ? • 46; • 35 • 29 • 48</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">9. A greengrocer was selling watermelon at a penny each, chickoos at 2 for a penny and peanuts at 3 for a penny. A father spent 7p and got the same amount of each type of fruit for each of his three children, Jane, Joe and Jill. Jane is three years older than Jill and Joe is exactly half the age of Jane and Jill together. What did each child get ? • 1 watermelon, 3 chickoos, 2 peanuts • 1 watermelon, 1 chickoo, 1 peanus • 1 watermelon, 2 chickoos, 2 peanuts • 1 watermelon, 2 chickoos, 1 peanut</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">10. Given 3 lines in the plane such that the points of intersection from a triangle with sides of length 20, 20 and 20, the number of points equidistant from all the 3 lines is • 4 • 3 • 0 • 1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">11. 33 people {a1, a2,…,a33} meet and shake hands in a circular fashion. In other words, there are totally 33 handshakes involving the pairs, {a1,a2}, {a2,a3},…,{a32, a33}, {a33, a1}. Then the size of the smallest set of people such that the rest have shaken hands with at least one person in the set is • 10 • 11 • 16 • 12</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">12. Consider two vessels, the first containing on litre of water and the second containing one litre of pepsi. Suppose you take one glass of water out of the first vessel and pour it into the second vessel. After mixing you take one glass of the mixture from the second vessel and pour it back into the first vessel. Which one of the following statements holds now? • None of the statements holds true. • There is less Pepsi in the first vessel than water in the second vessel. • There is more Pepsi in the first vessel than water in the second vessel. • There is as much Pepsi in the first vessel as there is water in the second vessel.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">13. Amok is attending a workshop 'How to do more with less' and today's theme is Working with fever digits. The speakers discuss how a lot of miraculous mathematics can be achieved if mankind (as well as womankind) had only worked with fever digits. The problem posed at the end of the workshop is 'How many 10 digit numbers can be formed using the digits 1, 2, 3, 4, 5 (but with repetition) that are divisible by 4?' Can you help Amok find the answer? • 1953125 • 781250 • 2441407 • 2441406</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">14. For the FIFA world cup, Paul the octopus has been predicting the winner of each match with amazing success. It is rumored that in a match between 2 teams A and B, Paul picks A with the same probability as A's chances of wining. Let's assume such rumors to be true and that in a match between <st1:country-region w:st="on">Ghana</st1:country-region> and <st1:country-region w:st="on">Bolivia</st1:country-region>, <st1:country-region w:st="on"><st1:place w:st="on">Ghana</st1:place></st1:country-region> the stronger team has a probability of 11/12 of winning the game. What is the probability that Paul with correctly pick the winner of the Ghana-Bolivia game? • .92 • .01 • .85 • .15</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">15. There are two boxes, one containing 39 red balls and the other containing 26 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is • .60 • .50 • .80 • .30</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">16. After the typist writes 40 letters and addresses 40 envelopes, she inserts the letters randomly into the envelopes (1 letter per envelope). What is the probability that exactly 1 letter is inserted in an improver envelope? • 1 – 1/40 • 1/40 • 1/401 • 0</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">17. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/3 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/4 of the distance. By what factor should be hare increase its speed so as the win the race? • 4 • 3 • 12 • 5.00</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">18. A sheet of paper has statements numbered from 1 to 20. For each value of n from 1 to 20, statements n says 'At least n of the statements on this sheet are true.' Which statements are true and which are false? • The odd numbered statements are true and the even numbered are false. • The first 13 statements are false and the rest are true. • The first 6 statements are true and the rest are false. • The even numbered statements are true and the odd numbered are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">19. The question is followed by two statements, A and B. Answer the question using the following instructions: Choose 1: if the question can be answered by using one of the statements alone but not by using the other statement alone. Choose 2: if the question can be answered by using either of the statements alone. Choose 3: if the question can be answered by using both statements together but not by either statement alone. Choose 4: if the question cannot be answered on the basis of the two statements. Zaheer spends 30% of his income on his children's education, 20% on recreation and 10 % on healthcare. The corresponding percentages for Sandeep are 40%, 25% and 13%. Who spends more on children's education? A" Zaheer spends more on recreation that Sandeep B: Sandeep spends more on healthcare than Zaheer. • 3 • 2 • 1 • 4</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">20. Subha Patel is an olfactory scientist working for International Flavors and Fragrances. She specializes in finding new scents recorded and reconstituted from nature thanks to Living Flower Technology. She has extracted fragrance ingredients from different flowering plants into bottles labeled herbal, sweet, honey, anisic and rose. She has learned that a formula for a perfume is acceptable if and only if it does not violate any of the rules listed: If the perfume contains herbal, it must also contain honey and there must be twice as much honey as herbal. If the perfume contains sweet, it must also contain anisic, and the amount of anisic must equal the amount of sweet. honey cannot be used in combination with anisic. anisic cannot be used in combination with rose. If the perfume contains rose, the amount of rose must be greater than the total amount of the other essence or essences used. Which of the following could be added to an unacceptable perfume consisting of two parts honey and one part rose to make it acceptable? • Two parts rose • One part herbal • Two parts honey • One part sweet</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">21. The citizens of planet Oz are 6 fingered and thus have developed a number system in base 6. A certain street in Oz contains 1000 buildings numbered from 1 to 1000. How many 3's are used in numbering these buildings? Express your answer in base 10. • 144 • 54 • 108 • 36</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">22. Recent reports have suggested that sportsmen with decreased metabolic rates perform better in certain sports. After reading one such report, <st1:country-region w:st="on">Jordan</st1:country-region>, a sportsperson from <st1:city w:st="on"><st1:place w:st="on">Arlington</st1:place></st1:city> decides to undergo a rigorous physical training program for 3 months, where he performs Yoga for 3 hours, walks for 2 hours and swims for 1 hour each day. He says: I began my training on a Wednesday in a prime number month of 2008. I lost 1% of my original weight within the first 30 days. In the next two months combined, I lost 1 Kg. If he walks at 5 mph over a certain journey and walks back over the same route at 7 mph at an altitude of 200 meters, what is his average speed for the journey? • 5.83 • 2.92 • 6.00 • 35.00</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">23. A schoolyard contains only bicycles and 4 wheeled wagons. On Tuesday, the total number of wheels in the schoolyard was 134. What could be possible number of bicycles? • 16 • 15 • 18 • 14</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">24. A sheet of paper has statements numbered from 1 to 20. For all values of n from 1 to 20, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false? • The even numbered statements are true and the odd numbered statements are false. • All the statements are false. • The odd numbered statements are true and the even numbered statements are false. • The second last statement is true and the rest are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">25. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If tank B is 1/8 filled after 5 hours, what is the total duration required to fill it completely? • 9 hours • 7 hours • 3 hours • 8 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">26. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted? • 900 • 488 • 500 • 800</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">27. Alice and Bob play the following coins-on-a-stack game. 100 coins are stacked one above the other. One of them is a special (gold) coin and the rest are ordinary coins. The goal is to bring the gold coin to the top by repeatedly moving the topmost coin to another position in the stack. <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> starts and the players take turns. A turn consists of moving the coin on the top to a position I below the top coin (for some I between 0 and 100). We will call this an i-move (thus a 0-move implies doing nothing). The proviso is that an i-move cannot be repeated; for example once a player makes a 2-move, on subsequent turns neither player can make a 2-move. If the gold coin happens to be on top when it's a player's turn then the player wins the game. Initially, the gold coin is the third coin from the top. Then • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 1-move. • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 0-move. • <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> has no winning strategy. • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move can be a 0-move or a 1-move.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">28. The teacher is testing a student's proficiency in arithmetic and poses the following question: 1/2 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer? • 9 • 8 • 10 • 3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">29. A circular dashboard of radius 1.0 foot is at a distance of 20 feet from you. You throw a dart at it and it hits the dartboard at some point Q in the circle. What is the probability that Q is closer to the center of the circle than the periphery? • 1.00 • .75 • .25 • .50</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">30. A result of global warming is that the ice of some glaciers is melting. 13 years after the ice disappears, tiny plants, called lichens, start to grow on the rocks. Each lichen grows approximately in the shape of a circle. The relationship between the diameter of this circle and the age of the lichen can be approximated with the formula: d=10*(t – 13) for t > 13, where d represents the diameter of the lichen in millimeters, and t represents the number of years after the ice has disappeared. Using the above formula, calculate the diameter of the lichen, 45 years after the ice has disappeared. • 450 • 437 • 13 • 320</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">31. 25 people meet and shake hands. The maximum number of handshakes possible if there is to be no 'cycle' of handshakes is (A cycle of handshakes is a sequence of people a1, a2, …,ak, k>2 such that pairs {a1, a2}, {a2, a3}, …, {a(k-1), ak}, {al, a1} shake hands). • 24 • 22 • 21 • 23</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">32. Consider two cans, the first containing one litre of water and the second containing one litre of Pepsi. Suppose you take one cup of water out of the first can and pour it into the second can. After mixing you take one cup of the mixture from the second can and pour it back into the first can. Which one of the following statements holds now? • There is less Pepsi in the first can than water in the second can. • There is more Pepsi in the first can than water in the second can. • None of the statements holds true. • There is as much Pepsi in the first can as there is water in the second can.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">33. A greengrocer was selling orange at a penny each, olives at 2 for a penny and grapes at 3 for a penny. A father spent 7p and got the same amount of each type of fruit for each of his three children, Jane, Joe, and Jill. Jane is three years older than Jill and Joe is exactly half the age of Jane and Jill together. What did each child get? • 1 orange, 2 olives, 2 grapes • 1 orange, 3 olives, 2 grapes • 1 orange, 1 olive, 1 grape • 1 orange, 2 olives, 1 grape</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">34. A sheet of paper has statements numbered from 1 to 20. For each value of n from 1 to 20, statement n says 'At least n of the statements on this sheet are true.' Which statements are true and which are false? • The even numbered statements are true and the odd numbered are false • The first 13 statements are false and the rest are true. • The fist 6 statements are true and the rest are false. • The odd numbered statements are true and the even numbered are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">35. 45 suspects are rounded by the police and questioned about a bank robbery. Only one of them is guilty. The suspects are made to stand in a line and each person declares that the person next to him on his right is guilty. The rightmost person is not questioned. Which of the following possibilities are true? A. All the suspects are lying. B. The leftmost suspect is guilty. C. The rightmost suspect is guilty. • A and C • A and B • A only • B only</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">36. Ferrari S.p.A. is an Italian sports car manufacturer base in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored driver and manufactured race cars before moving into production of street – legal vehicles in 1947 as Ferrari S.p.A..Throughout its history, the company has bee noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once brought a Ferrari. It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 40 Km/hr and the distance traveled by the Ferrari is 913 Km, find the total time taken for Rohit to drive the distance. • 12 Hours • 22 Hours • 456 Hours • 11.41 Hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">37. The teacher is testing a student's proficiency in arithmetic and poses the following question: 1/3 of a number is 6 more than 1/6 of the same number. What is the number? Can you help the student find the answer? • 35 • 6 • 37 • 36</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">38. Recent report have suggested that sportsmen with decreased metabolic rates perform better in certain sports. After reading one such report, Jordon, a sportsperson from <st1:city w:st="on"><st1:place w:st="on">Arlington</st1:place></st1:city> decides to undergo a rigorous physical training program for 3 months, where he performs Yoga for 3 hours, walks for 2 hours and swims for 1 hour each day. He says: I began my training on a Wednesday in a prime number month of 2008. I lost 1% of my original weight within the first 30 days. In the next two months combined, I lost 1 Kg. If he walks at 5 mph over a certain journey and walks back the same route at 8 mph at an altitude of 200 meters, what is his average speed for the journey? • 6.15 • 3.08 • 6.50 • 26.67</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">39. The result of global warming is the ice of some glaciers is melting. 19 years after the ice disappears, tiny planets, called lichens, start to grow on the rock. Each lichen grows approximately in the shape of a circle. The relationship between the diameter of the circle and the age of the lichen can be approximated with the formula: d =12* (t-19) for t>19, where d represents the diameter of the lichen in millimeters, and t represents the number of years after the ice has disappeared. Using the above formula, calculate the diameter of the lichen, 32 years after the ice has disappeared. • 384 • 156 • 19 • 365</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">40. There are two boxes, one contains 12 red balls and the other containing 47 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is: • .59 • .20 • .10 • .50</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">41. The citizens of planet Oz are fingered and thus have developed a number system in base 6. A certain street in Oz contains 1000 buildings numbered from 1 to 1000. How many 2's are used in numbering these buildings? Express your answer in base 10. • 144 • 24 • 108 • 36</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">42. The question is followed by two statements, A and B. Answer the question using the following instructions: Choose1: if the question can be answered by using one of the statements alone but not by using the other statement alone. Choose2: if the question can be answered by using either of the statements alone. Choose3: if the question can be answered by using both statements together but not by either statement alone. Choose4: if the question cannot be answered on the basis of the two statements. Zayed spends 30% of his income on his children's education, 20% on recreation and 10% on healthcare. The corresponding percentage for Sandeep are 40%, 25% and 13%. Who spends more on children's education? A: Zayed spends more on recreation than Sandeep B: Sandeep spends more on healthcare than Zayed. • 4 • 3 • 2 • 1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">43. The question is followed by two statements, A and B. Answer the question using the following instructions: Choose1: if the question can be answered by using one of the statements alone but not by using the other statement alone. Choose2: if the question can be answered by using either of the statements alone. Choose3: if the question can be answered by using both statements together but not by either statement alone. Choose4: if the question cannot be answered on the basis of two statements. Tarun is standing 2 steps to the left of a green mark and 3 steps to the right of a black mark. He tosses a coin. If it comes up heads, he moved one step to the right, otherwise he moves one step to the left. He keeps doing this until he reaches one of the two marks, and then he stops. At which mark does he stops? A: he stops at 21 coin tosses. B: he obtains three more tails than heads. • 1 • 3 • 4 • 2</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">44. There are two water tank A and B, A is much smaller than B. While water fills at rate of one liter every hour in A, it gets filled up like 10, 20, 40, 80, 16..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If tank B is 1/8 filled after 7 hours, what is the total duration required to fill it completely? • 10 hours • 9 hours • 11 hours • 3 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">45. A sheet of paper has statements numbered from 1 to 10. For all values of n from 1 to 10, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false? • The even numbered statements are true and the odd numbered statements are false. • The second last statement is true and the rest are false. • The odd numbered statements are true and the even numbered statements are false. • All the statements are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">46. Alok is attending a workshop 'How to do more with less' and today's theme is working with fewer digits. The speakers discuss how a lot of miraculous mathematics can be achieved if mankind (as we as womankind) had only worked with fewer digits. The problem posed at the end of the workshop is 'How many 6 digit numbers can be formed using the digits 1,2,3,4,5, (but with repetition) that are divisible by 4?' Can you help Alok find the answer? • 3906 • 3907 • 3125 • 1250</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">47. The dynamics of crowd behaviour are hard to study because usually people are not reliable witness of their own behaviour. Now consider 4 people standing in the queue of a supermarket. You want to predict their behaviour based on their age group. You get to know fro the supermarket records that their average age 3 years ago was 48 years. After a while, another person joins the queue and the present average of all the 5 is 46 years. The present age of the last person in the queue is: • 38 years • 35 years • 41 years • 26 years 48. Alice and Bob play the following coins-on-a-stack game. 100 coins are stacked one above the other. One of them is a special (gold) coin and the rest are ordinary coins. The goal is to bring the gold coin to the top of the repeatedly moving the topmost coin to another position in the stack. <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> starts and the players take turns. A turn consists of moving the coin on the top to a position I below the top coin (for some I between 0 and 100). We will call this as i-move (thus a 0-move implies doing nothing). The proviso is that an i-move cannot be repeated, for example once a player makes a 2-move, on subsequent turns neither player can make a 2-move. If the gold coin happen to be on the top when it's a player's turn then the player wins the game. Initially, the gold coin is the third coin from the top. Then • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 1-move. • <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> has no winning strategy. • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move can be a 0-moveor a 1-move. • In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 0-move.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">49. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If tank B is 1/16 filled after 16 hours, what is total duration required to fill it completely? • 19 hours • 20 hours • 4 hours • 21 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">50. Consider two tumblers, the first containing one litre of milk ad the second containing one litre of coffee. Suppose you take one glass of milt out of the first tumbler and pour it into the second tumbler. After mixing you take one glass of the mixture from the second tumbler and pour it back into the first tumbler. Which one of the following statements holds now? • None of the statements holds true. • There is less coffee in the first tumbler than milk in the second tumbler. • There is as much coffee in the first tumbler as there is milk in the second tumbler. • There is more coffee in the first tumbler than milk in the second tumbler.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">51. A circular dashboard of radius 2.0 foot is at a distance of 20 feet from you. You throw a dart at it and it hits the dartboard at some point Q in the circle. What is the probability that Q is closer to the center of the circle than the periphery? • .75 • 1.00 • .25 • .50</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">52. A sheet of paper has statements numbered from 1 to 10. For all values of n from 1 to 10, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false? • All the statements are false. • The second last statement is true and the rest are false. • The even numbered statements are true and the odd numbered statements are false. • The odd numbered statements are true and the even numbered statements are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">53. Consider two vessels, the first containing one litre of oil and the second containing one litre of coffee. Suppose you take one spoon of oil out of the first vessel and pour it into the second vessel. After mixing you take one spoon of mixture from the second vessel and pour it back into the first vessel. Which one of the following statements holds now? • None of the statements holds true. • There is less coffee in the first vessel than oil in the second vessel. • There is more coffee in the first vessel than oil in the second vessel. • There is as much coffee in the first vessel as there is oil in the second vessel.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">54. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If tank B is 1/32 filled after 19 hours, what is total duration required to fill it completely? • 5 hours • 23 hours • 24 hours • 25 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">55. The question is followed by two statements, A and B. Answer the question using the following instructions: Choose1: if the question can be answered by using one of the statements alone but not by using the other statement alone. Choose2: if the question can be answered by using either of the statements alone. Choose3: if the question can be answered by using both statements together but not by either statement alone. Choose4: if the question cannot be answered on the basis of two statements. Zayed spends 30% of his income on his children's education, 20% on recreation and 10% on healthcare. The corresponding percentage for Sandeep are 40%, 25% and 13%. Who spends more on children's education? A: Zayed spends more on recreation than Sandeep B: Sandeep spends more on healthcare than Zayed. • 1 • 3 • 4 • 2</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">56. The question is followed by two statements, A and B. Answer the question using the following instructions: Choose1: if the question can be answered by using one of the statements alone but not by using the other statement alone. Choose2: if the question can be answered by using either of the statements alone. Choose3: if the question can be answered by using both statements together but not by either statement alone. Choose4: if the question cannot be answered on the basis of two statements. Tarak is standing 2 steps to the left of a yellow mark and 3 steps to the right of a grey mark. He tosses a coin. If it comes up heads, he moves one step to the right, otherwise he moves one step to the left. He keeps doing this until he reaches one of the two marks, and then he stops. At which mark does he stops? A: he stops at 21 coin tosses. B: he obtains three more tails than heads. • 2 • 3 • 4 • 1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">57. A sheet of paper has statements numbered from 1 to 10. For all values of n from 1 to 10, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false? • The even numbered statements are true and the odd numbered statements are false. • The second last statement is true and the rest are false. • The odd numbered statements are true and the even numbered statements are false. • All the statements are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">58. There are two boxes, one contains 47 red balls and the other containing 46 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is • .75 • .50 • .25 • .51</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">59. Consider two vessels, the first containing one litre of ink and the second containing one litre of cola. Suppose you take one glass of ink out of the first vessel and pour it into the second vessel. After mixing you take one glass of mixture from the second vessel and pour it back into the first vessel. Which one of the following statements holds now? • There is as much cola in the first vessel as there is ink in the second vessel. • None of the statements holds true. • There is more cola in the first vessel than ink in the second vessel. • There is less cola in the first vessel than ink in the second vessel.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">60. 36 people {a1, a2, ….., a36} meet and shake hand in a circular fashion. In other words, there are totally 36 handshakes involving in the pairs, {a1,a2}, {a2,a3}, ….., {a35, a36}, {a36, a1}. Then the size of the smallest set of people such that the rest have shaken hands with at least one person in the set is • 11 • 18 • 12 • 13</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;"><br />
</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;"><br />
</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;"><br />
</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">SET :4</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">• Instructions • Preview duration will be 40 minutes. • The clock starts when you login using your registered email id for preview. • Count down timer at the top right corner will display time to closure. • The system will log you out of the preview at the end of 40 minutes. • Click one of the option buttons to select your choice. • To change a choice, simply click the desired option button. • To deselect your choice, click the Reset button. • To save your choice before moving to the next screen, click on Save & Next. The next screen will automatically be displayed. • Click on Skip to move to the next screen. This will not save your current option. The next screen will automatically be displayed. • To go to a specific screen, click the number on the preview palette. • The color coded diagram on the preview palette shows the status.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">1. The teacher is testing a student's proficiency in arithmetic and poses the following question. 1/3 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer? (a)12 (b)18 (c)21 (d) 6</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">2. Ferrari S.p.A. is an Italian sports car manufacturer based in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.p.A.. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once bought a Ferrari.It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 32 km/hr and the distance travelled by the Ferrari is 952 km, find the total time taken for Rohit to drive that distance. (a)14.88 (b)476 (c)29.75 (d)15.88</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">3. A man is standing in front of a painting of a man, and he tells us the following: Brothers and sisters have I none, but this man's father is my father's son. Who is on the painting? (a)He himself (b)His father (c)His son (d)His grandfather</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">4. One day Rapunzel meets Dwarf and Byte in the <st1:place w:st="on">Forest</st1:place> of forgetfulness. She knows that Dwarf lies on Mondays, Tuesdays and Wednesdays, and tells the truth on the other days of the week. Byte, on the other hand, lies on Thursdays, Fridays and Saturdays, but tells the truth on the other days of the week. Now they make the following statements to Rapunzel - Dwarf: Yesterday was one of those days when I lie. Byte: Yesterday was one of those days when I lie too. What day is it? (a)Tuesday (b)Sunday (c)Thursday (d)Monday</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">5. A greengrocer was selling apple at a penny each, chickoos at 2 for a penny and peanuts at 3 for a penny. A father spent 7p and got the same amount of each type of fruit for each of his three children. What did each child get? a)1 apple, 2 chickoos, 1 peanut b)1 apple, 1 chickoo, 1 peanut c)1 apple, 3 chickoos, 2 peanuts d)1 apple, 2 chickoos, 2 peanuts.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">7. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted? 900 800 500 488</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">8. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 37/38 1/2 14/19 3/4</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">9. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 7 hours 9 hours 8 hours 10 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">10. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race? 8 37.80 40 5</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">11. Planet fourfi resides in 4-dimensional space and thus the currency used by its residents are 3-dimensional objects. The rupee notes are cubical in shape while their coins are spherical. However the coin minting machinery lays out some stipulations on the size of the coins. The diameter of the coins should be at least 64mm and not exceed 512mm. Given a coin, the diameter of the next larger coin is at least 50% greater. The diameter of the coin must always be an integer. You are asked to design a set of coins of different diameters with these requirements and your goal is to design as many coins as possible. How many coins can you design?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">12. The pace length P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pace length in meters. Bernard knows his pace length is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph. On the planet Oz, there are 8 days in a week- Sunday to Saturday and another day called Oz day. There are 36 hours in a day and each hour has 90 min while each minute has 60 sec. As on earth, the hour hand covers the dial twice every day. Find the approximate angle between the hands of a clock on Oz when the time is 12:40 am.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">13. The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in <st1:country-region w:st="on"><st1:place w:st="on">India</st1:place></st1:country-region>. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 12 such programmers take 12 minutes to write 12 lines of code in total. How many lines of code can be written by 72 programmers in 72 minutes?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">14. Given a collection of points P in the plane, a 1-set is a point in P that can be separated from the rest by a line; i.e. the point lies on one side of the line while the others lie on the other side. The number of 1-sets of P is denoted by n1(P). The maximum value of n1(P) over all configurations P of 10 points in the plane is ----?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">15. Alok and Bhanu play the following min-max game. Given the expression N = 12 + X*(Y - Z) where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable. Assuming both plays to their optimal strategies, the value of N at the end of the game would be</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">16. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 37/38 14/19 3/4</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">17. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">18. A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? All statements are false. The odd numbered statements are true and the even numbered are false. The even numbered statements are true and the odd numbered are false. All statements are true.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">19. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">20. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 7 hours 9 hours 10 hours 8 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">21. Anoop managed to draw 7 circles of equal radii with their centres on the diagonal of a square such that the two extreme circles touch two sides of the square and each middle circle touches two circles on either side. Find the ratio of the radius of the circles to the side of the square. 1:(2+ 6) 1:(2+ 6√2) 1:(4+ 7 1:(4+ 7√3) 1 1:(2+ 7 1:(2+ 7√2) (2+ 7√2):1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">22. The teacher is testing a student's proficiency in arithmetic and poses the following question. 1/3 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">23. The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in <st1:country-region w:st="on"><st1:place w:st="on">India</st1:place></st1:country-region>. At Tirnop, all programmers are equal in every respect. They receive identical salaries ans also write code at the same rate. Suppose 12 such programmers take 12 minutes to write 12 lines of code in total. How long will it take 72 programmers to write 72 lines of code in total? 72 6 12 18</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">24. .Alok and Bhanu play the following min-max game. Given the expression N = 12 + X*(Y - Z) where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable. Assuming both play to their optimal strategies, the value of N at the end of the game would be -69 93 12 30</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">25. Given a collection of points P in the plane, a 1-set is a point in P that can be separated from the rest by a line; i.e. the point lies on one side of the line while the others lie on the other side. The number of 1-sets of P is denoted by n1(P). The maximum value of n1(P) over all configurations P of 10 points in the plane is 5 10 3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">26. On the planet Oz, there are 8 days in a week- Sunday to Saturday and another day called Oz day. There are 36 hours in a day and each hour has 90 min while each minute has 60 sec. As on earth, the hour hand covers the dial twice every day. 4.Find the approximate angle between the hands of a clock on Oz when the time is 12:40 am. 251 111 71 89</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">27. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race? 37.80 8 5 40</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">29. Anoop managed to draw 7 circles of equal radii with their centres on the diagonal of a square such that the two extreme circles touch two sides of the square and each middle circle touches two circles on either side. Find the ratio of the radius of the circles to the side of the square. 1:(2+ 6 1:(2+ 6√2) (2+ 7√2):1 1:(2+ 7√2) 1:(4+ 7√3)</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">30. A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? The odd numbered statements are true and the even numbered are false. All statements are false. All statements are true. The even numbered statements are true and the odd numbered are false.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">31. The pace length P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pace length in meters. Bernard knows his pace length is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph. 11.39 23.62 8.78 236.16</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">32. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 14/19 3/4 1/2 37/38</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">33. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted? 500 800 488 900</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">34. The teacher is testing a student's proficiency in arithmetic and poses the following question. 1/3 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer? 6 18 21 12</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">35. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 8 hours 9 hours 10 hours 7 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">36. Planet fourfi resides in 4-dimensional space and thus the currency used by its residents are 3-dimensional objects. The rupee notes are cubical in shape while their coins are spherical. However the coin minting machinery lays out some stipulations on the size of the coins. •The diameter of the coins should be at least 64mm and not exceed 512mm. •Given a coin, the diameter of the next larger coin is at least 50% greater. •The diameter of the coin must always be an integer. You are asked to design a set of coins of different diameters with these requirements and your goal is to design as many coins as possible. How many coins can you design? 6 9 8</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">37. Ferrari S.p.A. is an Italian sports car manufacturer based in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.p.A.. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once bought a Ferrari. It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 32 km/hr and the distance travelled by the Ferrari is 952 km, find the total time taken in hours for Rohit to drive that distance. 15.88 29.75 14.88 476</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">38. For the FIFA world cup, Paul the octopus has been predicting the winner of each match with amazing success. It is rumored that in a match between 2 teams A and B, Paul picks A with the same probability as A's chances of winning. Let's assume such rumors to be true and that in a match between <st1:country-region w:st="on">Ghana</st1:country-region> and <st1:country-region w:st="on">Bolivia</st1:country-region>, <st1:country-region w:st="on"><st1:place w:st="on">Ghana</st1:place></st1:country-region> the stronger team has a probability of 2/3 of winning the game. What is the probability that Paul will correctly pick the winner of the Ghana-Bolivia game? 4/9 5/9 1/9 2/3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">39. A sheet of paper has statements numbered from 1 to 40. For each value of n from 1 to 40, statement n says "At least n of the statements on this sheet are true." Which statements are true and which are false? The first 13 statements are true and the rest are false. The first 26 statements are false and the rest are true. The odd numbered statements are true and the even numbered are false. The even numbered statements are true and the odd numbered are false</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">40. Alice and Bob play the following coins-on-a-stack game. 20 coins are stacked one above the other. One of them is a special (gold) coin and the rest are ordinary coins. The goal is to bring the gold coin to the top by repeatedly moving the topmost coin to another position in the stack. <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> starts and the players take turns s. A turn consists of moving the coin on the top to a position i below the top coin (0 ≤ i ≤ 20). We will call this an i-move (thus a 0-move implies doing nothing). The proviso is that an i-move cannot be repeated; for example once a player makes a 2-move on subsequent turns neither player can make a 2-move. If the gold coin happens to be on top when it's a player's turn then the player wins the game. Initially, the gold coins the third coin from the top. Then <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city> has no winning strategy. In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 0-move. In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move can be a 0-move or a 1-move. In order to win, <st1:city w:st="on"><st1:place w:st="on">Alice</st1:place></st1:city>'s first move should be a 1-move</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">41. A circular dartboard of radius 1 foot is at a distance of 20 feet from you. You throw a dart at it and it hits the dartboard at some point Q in the circle. What is the probability that Q is closer to the center of the circle than the periphery? 0.5 0.75 0.25 1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">42. Suspects are rounded by the police and questioned about a bank robbery. Only one of them is guilty. The suspects are made to stand in a line and each person declares that the person next to him on his right is guilty. The rightmost person is not questioned. Which of the following possibilities are true? A. All suspects are lying or the leftmost suspect is innocent. B. All suspects are lying and the leftmost suspect is innocent. B only Neither A nor B Both A and B A only</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">43. A sheet of paper has statements numbered from 1 to 40. For all values of n from 1 to 40, statement n says: 'Exactly n of the statements on this sheet are false.' Which statements are true and which are false? All the statements are false. The odd numbered statements are true and the even numbered statements are false. The even numbered statements are true and the odd numbered statements are false. The 39th statement is true and the rest are false</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">44. 36 people {a1, a2, ..., a36} meet and shake hands in a circular fashion. In other words, there are totally 36 handshakes involving the pairs, {a1, a2}, {a2, a3}, ..., {a35, a36}, {a36, a1}. Then size of the smallest set of people such that the rest have shaken hands with at least one person in the set is 11 12 18 13</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">45. After the typist writes 12 letters and addresses 12 envelopes, she inserts the letters randomly into the envelopes (1 letter per envelope). What is the probability that exactly 1 letter is inserted in an improper envelope? 1/12 0 11/12 12/212</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">46. Alok is attending a workshop "How to do more with less" and today's theme is Working with fewer digits . The speakers discuss how a lot of miraculous mathematics can be achieved if mankind (as well as womankind) had only worked with fewer digits. The problem posed at the end of the workshop is How many 5 digit numbers can be formed using the digits 1, 2, 3, 4, 5 (but with repetition) that are divisible by 4? Can you help Alok find the answer? 3125 500 375 625</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">47. 10 people meet and shake hands. The maximum number of handshakes possible if there is to be no "cycle" of handshakes is (A cycle of handshakes is a sequence of k people a1, a2, ......,ak (k > 2) such that the pairs {a1, a2}, {a2, a3}, ......, {ak-1, ak}, {ak, a1} shake hands). 9 6 7 8</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">48. Given 3 lines in the plane such that the points of intersection form a triangle with sides of length 20, 20 and 30, the number of points equidistant from all the 3 lines is 1 4 3 0</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">49. The citizens of planet nigiet are 8 fingered and have thus developed their decimal system in base 8. A certain street in nigiet contains 1000 (in base 8) buildings numbered 1 to 1000. How many 3s are used in numbering these buildings? 54 192 64 256</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">50. On planet zorba, a solar blast has melted the ice caps on its equator. 8 years after the ice melts, tiny planetoids called echina start growing on the rocks. echina grows in the form of a circle and the relationship between the diameter of this circle and the age of echina is given by the formula d = 4 * d = 4 * √ (t - 8) for t ≥ 8 where d represents the diameter in mm and t the number of years since the solar blast.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">51. Jagan recorded the radius of some echina at a particular spot as 8mm. How many years back did the solar blast occur? 24 16 (t - 8) for t e∠8 where d represents the diameter in mm and t the number of years since the solar blast. Jagan recorded the radius of some echina at a particular spot as 8mm. How many years back did the solar blast occur? 24 16</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">52. Planet fourfi resides in 4-dimensional space and thus the currency used by its residents are 3-dimensional objects. The rupee notes are cubical in shape while their coins are spherical. However the coin minting machinery lays out some stipulations on the size of the coins. The diameter of the coins should be at least 64mm and not exceed 512mm. Given a coin, the diameter of the next larger coin is at least 50% greater. The diameter of the coin must always be an integer. You are asked to design a set of coins of different diameters with these requirements and your goal is to design as many coins as possible. How many coins can you design?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">53. The pace length P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pace length in meters. Bernard knows his pace length is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph. 236.16 23.62 11.39 8.78 3</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">54. Ferrari S.p.A. is an Italian sports car manufacturer based in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.p.A.. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once bought a Ferrari. It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 32 km/hr and the distance travelled by the Ferrari is 952 km, find the total time taken in hours for Rohit to drive that distance. 15.88 29.75 14.88 55. On the planet Oz, there are 8 days in a week- Sunday to Saturday and another day called Oz day. There are 36 hours in a day and each hour has 90 min while each minute has 60 sec. As on earth, the hour hand covers the dial twice every day. Find the approximate angle between the hands of a clock on Oz when the time is 12:40 am.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">56. Given a collection of points P in the plane, a 1-set is a point in P that can be separated from the rest by a line; i.e. the point lies on one side of the line while the others lie on the other side. The number of 1-sets of P is denoted by n1(P). The maximum value of n1(P) over all configurations P of 10 points in the plane is --------?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">58. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 37/38 14/19 3/4</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">59. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">60. A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? All statements are false. The odd numbered statements are true and the even numbered are false. The even numbered statements are true and the odd numbered are false. All statements are true.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">61. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">62. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 7 hours 9 hours 10 hours 8 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">63. The teacher is testing a student's proficiency in arithmetic and poses the following question. 1/3 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">65. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">66. A man is standing in front of a painting of a man, and he tells us the following: Brothers and sisters have I none, but this man's father is my father's son. Who is on the painting? His son He himself His grandfather His father</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">67. A man is standing in front of a painting of a man, and he tells us the following: Brothers and sisters have I none, but this man's father is my father's son. Who is on the painting? His son He himself His grandfather His father</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">68. A hunter leaves his cabin early in the morning and walks one mile due south. Here he sees a bear and starts chasing it for one mile due east before he is able to shoot the bear. After shooting the bear, he drags it one mile due north back to his cabin where he started that morning. What color is the bear? White Black</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">69. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">70. One day Rapunzel meets Dwarf and Byte in the <st1:place w:st="on">Forest</st1:place> of forgetfulness. She knows that Dwarf lies on Mondays, Tuesdays and Wednesdays, and tells the truth on the other days of the week. Byte, on the other hand, lies on Thursdays, Fridays and Saturdays, but tells the truth on the other days of the week. Now they make the following statements to Rapunzel - Dwarf Yesterday was one of those days when I lie. Byte: Yesterday was one of those days when I lie too. What day is it? Monday Thursday Tuesday Sunday</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">71. Rearrange the following letters to make a word and choose the category in which it fits. <st1:place w:st="on"><st1:placename w:st="on">RAPETEKA</st1:placename> <st1:placename w:st="on">Vegetable</st1:placename> <st1:placetype w:st="on">City</st1:placetype></st1:place></div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">72. Ferrari S.p.A. is an Italian sports car manufacturer based in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.p.A.. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once bought a Ferrari. It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 32 km/hr and the distance traveled by the Ferrari is 952 km, find the total time taken for Rohit to drive that distance. 14.88 29.75</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">73. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is ----?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">74. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 9 hours 10 hours 8 hours 7 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">75. The difference between the ages of two of my three grandchildren is 3. My eldest grandchild is three times older than the age of my youngest grandchild and my eldest grandchild's age is two years more than the ages of my two youngest grandchildren added together. How old is my eldest grandchild?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">76. One day Rapunzel meets Dwarf and Byte in the <st1:place w:st="on">Forest</st1:place> of forgetfulness. She knows that Dwarf lies on Mondays, Tuesdays and Wednesdays, and tells the truth on the other days of the week. Byte, on the other hand, lies on Thursdays, Fridays and Saturdays, but tells the truth on the other days of the week. Now they make the following statements to Rapunzel - Dwarf: Yesterday was one of those days when I lie. Byte: Yesterday was one of those days when I lie too. What day is it? Thursday Tuesday Sunday Monday</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">77. A greengrocer was selling apple at a penny each, chickoos at 2 for a penny and peanuts at 3 for a penny. A father spent 7p and got the same amount of each type of fruit for each of his three children. What did each child get? 1 apple, 2 chickoos, 1 peanut 1 apple, 3 chickoos 1 apple, 2 chickoos, 2 peanuts 1 apple, 1 chickoo, 1 peanut</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">78. Ferrari S.p.A. is an Italian sports car manufacturer based in <st1:place w:st="on"><st1:city w:st="on">Maranello</st1:city>, <st1:country-region w:st="on">Italy</st1:country-region></st1:place>. Founded by Enzo Ferrari in 1928 as Scuderia Ferrari, the company sponsored drivers and manufactured race cars before moving into production of street-legal vehicles in 1947 as Ferrari S.p.A.. Throughout its history, the company has been noted for its continued participation in racing, especially in Formula One, where it has enjoyed great success. Rohit once bought a Ferrari. It could go 2 times as fast as Mohit's old Mercedes. If the speed of Mohit's Mercedes is 32 km/hr and the distance travelled by the Ferrari is 952 km, find the total time taken for Rohit to drive that distance. 14.88 29.75 15.88</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">79. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">80. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 37/38 14/19</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">81. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 ..in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 7 hours 9 hours 8 hours 10 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">82. Rearrange the following letters to make a word and choose the category in which it fits. RAPETEKA Vegetable Fruit</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">83. A hunter leaves his cabin early in the morning and walks one mile due south. Here he sees a bear and starts chasing it for one mile due east before he is able to shoot the bear. After shooting the bear, he drags it one mile due north back to his cabin where he started that morning. What color is the bear? Black Brown White</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">84. A sheet of paper has statements numbered from 1 to 40. For each value of n from 1 to 40, statement n says "At least n of the statements on this sheet are true." Which statements are true and which are false? The odd numbered statements are true and the even numbered are false. The first 13 statements are true and the rest are false. The even numbered statements are true and the odd numbered are false. The first 26 statements are false and the rest are true. ANS: All the statements are true but there is not such an option.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">85. Alok is attending a workshop "How to do more with less" and today's theme is Working with fewer digits . The speakers discuss how a lot of miraculous mathematics can be achieved if mankind (as well as womankind) had only worked with fewer digits. The problem posed at the end of the workshop is How many 5 digit numbers can be formed using the digits 1, 2, 3, 4, 5 (but with repetition) that are divisible by 4? Can you help Alok find the answer?</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">86. 36 people {a1, a2, ..., a36} meet and shake hands in a circular fashion. In other words, there are totally 36 handshakes involving the pairs, {a1, a2}, {a2, a3}, ..., {a35, a36}, {a36, a1}. Then size of the smallest set of people such that the rest have shaken hands with at least one person in the set is 11</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">87. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted? 500 800 488 900</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">88. A sheet of paper has statements numbered from 1 to 30. For all values of n from 1 to 30, statement n says "At most n of the statements on this sheet are false". Which statements are true and which are false? The even numbered statements are true and the odd numbered are false. The odd numbered statements are true and the even numbered are false. All statements are true. All statements are false. ANS: All statements are true. 89. Planet fourfi resides in 4-dimensional space and thus the currency used by its residents are 3-dimensional objects. The rupee notes are cubical in shape while their coins are spherical. However the coin minting machinery lays out some stipulations on the size oft hecoins.The diameter of the coins should be at least 64mm and not exceed 512mm. Given a coin, the diameter of the next larger coin is at least 50% greater. The diameter of the coin must always be an integer.You are asked to design a set of coins of different diameters with these requirements and your goal is to design as many coins as possible. How many coins can you design? 8 5 6 9</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">90. On the planet Oz, there are 8 days in a week- Sunday to Saturday and another day called Oz day. There are 36 hours in a day and each hour has 90 min while each minute has 60 sec. As on earth, the hour hand covers the dial twice every day. Find the approximate angle between the hands of a clock on Oz when the time is 12:40 am.</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">91. Given a collection of points P in the plane, a 1-set is a point in P that can be separated from the rest by a line; i.e. the point lies on one side of the line while the others lie on the other side. The number of 1-sets of P is denoted by n1(P). The maximum value of n1(P) over all configurations P of 10 points in the plane is 9 10 3 5</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">92. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is: 3/4 1/2 14/19 37/38</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">93. There are two water tanks A and B, A is much smaller than B. While water fills at the rate of one litre every hour in A, it gets filled up like 10, 20, 40, 80, 160 .. in tank B. (At the end of first hour, B has 10 litres, second hour it has 20, and so on). If 1/32 of B's volume is filled after 3 hours, what is the total duration required to fill it completely? 7 hours 8 hours 9 hours 10 hours</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">94. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race? 37.80 5 40 8</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">95. Anoop managed to draw 7 circles of equal radii with their centres on the diagonal of a square such that the two extreme circles touch two sides of the square and each middle circle touches two circles on either side. Find the ratio of the radius of the circles to the side of the square. 1:(2+ 7√2) 1:(4+ 7√3) 1:(2+ 6√2) (2+ 7√2):1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">95. The pace length P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pace length in meters. Bernard knows his pace length is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph. 23.62 236.16 8.78 11.39</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">96. The teacher is testing a student's proficiency in arithmetic and poses the following question. 1/3 of a number is 3 more than 1/6 of the same number. What is the number? Can you help the student find the answer? 18 6 21 12</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">97. 10 suspects are rounded by the police and questioned about a bank robbery. Only one of them is guilty. The suspects are made to stand in a line and each person declares that the person next to him on his right is guilty. The rightmost person is not questioned. Which of the following possibilities are true? A. All suspects are lying or the leftmost suspect is innocent. B. All suspects are lying and the leftmost suspect is innocent . Neither A nor B B only A only Both A and B</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">98. After the typist writes 12 letters and addresses 12 envelopes, she inserts the letters randomly into the envelopes (1 letter per envelope). What is the probability that exactly 1 letter is inserted in an improper envelope? 11/12 0 12/2^12 1/12</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">99. A circular dartboard of radius 1 foot is at a distance of 20 feet from you. You throw a dart at it and it hits the dartboard at some point Q in the circle. What is the probability that Q is closer to the center of the circle than the periphery? 0.75 0.25 0.5 1</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">100. On planet zorba, a solar blast has melted the ice caps on its equator. 8 years after the ice melts, tiny plantoids called echina start growing on the rocks. echina grows in the form of a circle and the relationship between the diameter of this circle and the age of echina is given by the formula d = 4 * d = 4 * √ (t - 8) for t ≥ 8 where d represents the diameter in mm and t the number of years since the solar blast. Jagan recorded the radius of some echina at a particular spot as 8mm. How many years back did the solar blast occur? 24 12 8 16</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">101. A hare and a tortoise have a race along a circle of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race? 5 37.80 40 8</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">102. A hollow cube of size 5 cm is taken, with a thickness of 1 cm. It is made of smaller cubes of size 1 cm. If 4 faces of the outer surface of the cube are painted, totally how many faces of the smaller cubes remain unpainted? 900 800 488 500</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">103. A hunter leaves his cabin early in the morning and walks one mile due south. Here he sees a bear and starts chasing it for one mile due east before he is able to shoot the bear. After shooting the bear, he drags it one mile due north back to his cabin where he started that morning. What color is the bear? Brown Black Grey White</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">104. The difference between the ages of two of my three grandchildren is 3. My eldest grandchild is three times older than the age of my youngest grandchild and my eldest grandchild's age is two years more than the ages of my two youngest grandchildren added together. How old is my eldest grandchild? 12 15 10 13</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">105. There are two boxes, one containing 10 red balls and the other containing 10 green balls. You are allowed to move the balls between the boxes so that when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is 3/4 37/38 14/19 ½</div><div class="MsoNormal" style="mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-align: justify;">106. A hare and a tortoise have a race along a circ le of 100 yards diameter. The tortoise goes in one direction and the hare in the other. The hare starts after the tortoise has covered 1/5 of its distance and that too leisurely. The hare and tortoise meet when the hare has covered only 1/8 of the distance. By what factor should the hare increase its speed so as to tie the race? 8 37.80 5 40</div><div align="center" class="MsoNormal" style="text-align: center;"> <hr align="center" color="#dbdbdb" noshade="" size="2" width="100%" /> </div><div class="MsoNormal"><br />
</div><div align="center" class="MsoNormal" style="text-align: center;"><br />
</div><div class="MsoNormal"><br />
</div></td> </tr>
</tbody></table></div><div align="center" class="MsoNormal" style="text-align: center;"><o:p></o:p></div></td> </tr>
</tbody></table></div><div align="center" class="MsoNormal" style="margin-bottom: 13.5pt; text-align: center;"><b><span style="color: black; font-size: 13.5pt;"><br style="mso-special-character: line-break;" /> <!--[if !supportLineBreakNewLine]--><br style="mso-special-character: line-break;" /> <!--[endif]--></span></b></div></div>nanduhttp://www.blogger.com/profile/14760592975861478745noreply@blogger.com0