<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dksinha's Blog</title>
	<atom:link href="http://dksinha.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dksinha.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Fri, 23 Jul 2010 05:07:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dksinha.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dksinha's Blog</title>
		<link>http://dksinha.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dksinha.wordpress.com/osd.xml" title="Dksinha&#039;s Blog" />
	<atom:link rel='hub' href='http://dksinha.wordpress.com/?pushpress=hub'/>
		<item>
		<title>What is SharePoint?</title>
		<link>http://dksinha.wordpress.com/2009/10/27/what-is-sharepoint/</link>
		<comments>http://dksinha.wordpress.com/2009/10/27/what-is-sharepoint/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 05:09:05 +0000</pubDate>
		<dc:creator>dksinha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dksinha.wordpress.com/2009/10/27/what-is-sharepoint/</guid>
		<description><![CDATA[&#160; What is SharePoint? &#160; SharePoint is an enterprise information portal, from Microsoft, that can be configured to run Intranet, Extranet and Internet sites.  Microsoft Office SharePoint Server 2007 allows people, teams and expertise to connect and collaborate.  A SharePoint enterprise portal is composed of both SharePoint Portal and Windows SharePoint Services, with SharePoint being [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=8&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><strong>What is SharePoint?</strong></p>
<p>&nbsp;</p>
<p>SharePoint is an enterprise information portal, from Microsoft, that can be configured to run Intranet, Extranet and Internet sites.  Microsoft Office SharePoint Server 2007 allows people, teams and expertise to connect and collaborate.  A SharePoint enterprise portal is composed of both SharePoint Portal and Windows SharePoint Services, with SharePoint being built upon WSS.  WSS is typically used by small teams, projects and companies.  SharePoint Server is designed for individuals, teams and projects within a medium to large company wide enterprise portal.</p>
<p>&nbsp;</p>
<p><strong>Some SharePoint facts: </strong></p>
<p><strong> </strong></p>
<p>• SharePoint is the fastest-growing product in the history of Microsoft<br />
• Over 100 million licenses of SharePoint have been sold worldwide<br />
• SharePoint has been adopted by over 17,000 companies worldwide<br />
• SharePoint is listed, by Forrester, as the number 1 portal product<br />
• SharePoint is positioned as a leader within the Gartner Magic Quadrant for Horizontal Portals products<br />
• In 2008 sales of SharePoint surpassed 1 billion US dollars</p>
<p><strong>Why should you use SharePoint?</strong><strong> </strong></p>
<p>• As companies grow so does the amount of their files. It soon becomes difficult to keep track of the multiplying documents and their locations.  SharePoint overcomes this by allowing you to store and share your files in a central site.</p>
<p>• Sharing work files through email is a cumbersome process.  SharePoint eliminates this by allowing files to be stored in one location, allowing easy access to all team members.</p>
<p>• Business Intelligence has traditionally remained in the hands of a few key decision makers within organizations.  For years, it has been the goal of BI providers to “democratize business intelligence” by making it available to all levels of workers throughout companies.  With the addition of PerformancePoint to the SharePoint Enterprise version of SharePoint, this vision is realized, finally taking business intelligence out of the hands of the few and into the hands of many.</p>
<p>• Today’s work occurs over multiple locations, whether it is in different countries, office locations, separate departments or at your home office. SharePoint enables teams and individuals to connect and collaborate together regardless of where they are located.</p>
<p>• Surveys have shown that employees can spend up to 20 – 30 % of their day searching for data and information.  SharePoint eliminates this drag on productivity by providing the robust search functionality needed to find the information and expertise buried in the thousands, or hundreds of thousands of files a company generates in the course of business.</p>
<p>• It’s difficult and time consuming to create and maintain sites.  SharePoint allows anyone to create sites for use within their company’s Intranet, as they are needed, whether they are departmental sites, document libraries, meetings sites, survey sites, or discussion boards</p>
<p><strong>Microsoft Office SharePoint Server 2007</strong></p>
<p>Microsoft Office SharePoint Server 2007 is a collaborative enterprise portal that is built upon WSS 3.0.  MOSS 2007 allows people, teams and expertise to connect and collaborate.  Unlike WSS, SharePoint Server is not free and requires an additional license.  MOSS 2007 comes in two versions – Standard and Enterprise.</p>
<p>The main components of SharePoint 2007 are collaboration, portals, enterprise search, enterprise content management, business process and forms, and business intelligence.  Previous versions of SharePoint Server included SharePoint Portal Server 2003 and before that SharePoint Portal Server 2001.   To preview SharePoint’s new features visit the Microsoft Office <a href="http://office.microsoft.com/en-us/sharepointserver/HA101672721033.aspx" target="_blank">SharePoint Server 2007 demo</a>.</p>
<p><strong>Windows SharePoint Services 3.0</strong></p>
<p>Windows SharePoint Services 3.0 is the platform on which all SharePoint Products and Technologies are built.  WSS 3.0 is for is suitable for small teams, projects and organizations.</p>
<p>WSS’s project collaboration, document workspace, meeting sub-site, and discussion board features allow individuals and small teams to collaborate and share information online.  Past versions of Windows SharePoint Services included Windows SharePoint Services 2.0 and SharePoint Team Services.  New features in WSS 3.0 include integrated workflows, RSS feeds, blogs, wikis and ASP-style Web parts.  To preview more of WSS 3.0’s new features visit the Microsoft <a href="http://office.microsoft.com/en-us/sharepointtechnology/HA102055631033.aspx" target="_blank">Windows SharePoint Services 3.0 demo</a>.</p>
<p><strong>SharePoint Designer 2007</strong></p>
<p>Microsoft Office SharePoint Designer 2007 is the next generation of Microsoft FrontPage that enables both the design and customization of SharePoint 2007 sites.  SharePoint Designer 2007 allows organizations to automate common business processes through simple or complex custom workflows.  Corporations can apply their corporate branding to their SharePoint portal providing a unified look and feel to all their end users.  Companies can also create customized SharePoint sites based upon the unique needs of your company&#8217;s end users, teams, or departments without having to turn to outside consultants.  In 2008, Microsoft made SharePoint Designer 2007 available for free.  To download your free copy of SharePoint Designer visit Microsoft at the <a href="http://office.microsoft.com/en-us/sharepointdesigner/FX100487631033.aspx">SharePoint Designer 2007 home page</a>.</p>
<p><strong>Microsoft Office SharePoint Server 2007 T</strong><strong>op 10 Benefits</strong></p>
<p><strong><em>Provide a simple, familiar, and consistent user experience.</em></strong><strong> </strong></p>
<p>Office SharePoint Server 2007 is tightly integrated with familiar client desktop applications, e-mail, and Web browsers to provide a consistent user experience that simplifies how people interact with content, processes, and business data. This tight integration, coupled with robust out-of-the-box functionality, helps you employ services themselves and facilitates product adoption.<strong></strong></p>
<p><strong><em>Boost employee productivity by simplifying everyday business activities. </em></strong><strong></strong></p>
<p>Take advantage of out-of-the-box workflows for initiating, tracking, and reporting common business activities such as document review and approval, issue tracking, and signature collection. You can complete these activities without any coding. Tight integration with familiar client applications, e-mail, and Web browsers provide you with a simple, consistent experience. Modifying and extending these out-of-the-box workflow processes is made easy through tools like Microsoft Office SharePoint Designer 2007 (the next release of Microsoft Office FrontPage).<strong></strong></p>
<p><strong><em>Help meet regulatory requirements through comprehensive control over content</em></strong><em>.</em></p>
<p>By specifying security settings, storage policies, auditing policies, and expiration actions for business records in accordance with compliance regulations, you can help ensure your sensitive business information can be controlled and managed effectively. And you can reduce litigation risk for your organization. Tight integration of Office SharePoint Server 2007 with familiar desktop applications means that policy settings are rendered onto client applications in the Microsoft Office system, making it simpler for employees to be aware of and comply with regulatory requirements.</p>
<p><strong><em>Effectively manage and repurpose content to gain increased business value.</em></strong></p>
<p>Business users and content authors can create and submit content for approval and scheduled deployment to intranet or Internet sites. Managing multilingual content is simplified through new document library templates that are specifically designed to maintain a relationship between the original version and different translations of a document.<strong></strong></p>
<p><strong><em>Simplify organization-wide access to both structured and unstructured information across disparate systems</em></strong><em>. </em>Give your users access to business data found in common line-of-business systems like SAP and Siebel through Office SharePoint Server 2007. Users can also create personalized views and interactions with business systems through a browser by dragging configurable back-end connections. Enterprise-wide Managed Document Repositories help your organizations store and organize business documents in one central location.</p>
<p><strong><em>Connect people with information and expertise</em></strong><em>. </em></p>
<p>Enterprise Search in Office SharePoint Server 2007 incorporates business data along with information about documents, people, and Web pages to produce comprehensive, relevant results. Features like duplicate collapsing, spelling correction, and alerts improve the relevance of the results, so you can easily find what you need.</p>
<p><strong><em>Accelerate shared business processes across organizational boundaries.</em></strong><strong> </strong><strong></strong></p>
<p>Without coding any custom applications, you can use smart, electronic forms–driven solutions to collect critical business information from customers, partners, and suppliers through a Web browser. Built-in data validation rules help you gather accurate and consistent data that can be directly integrated into back-end systems to avoid redundancy and errors that result from manual data re-entry.</p>
<p><strong> </strong></p>
<p><strong><em>Share business data without divulging sensitive information</em></strong><em>. </em></p>
<p>Give your employees access to real-time, interactive Microsoft Office Excel spreadsheets from a Web browser through Excel Services running on Office SharePoint Server 2007. Use these spreadsheets to maintain and efficiently share one central and up-to-date version while helping to protect any proprietary information embedded in the documents (such as financial models).</p>
<p>&nbsp;</p>
<p><strong><em>Enable people to make better-informed decisions by presenting business-critical information in one central location</em></strong><em>.</em></p>
<p>Office SharePoint Server 2007 makes it easy to create live, interactive business intelligence (BI) portals that assemble and display business-critical information from disparate sources, using integrated BI capabilities such as dashboards, Web Parts, scorecards, key performance indicators (KPIs), and business data connectivity technologies. Centralized Report Center sites give users a single place for locating the latest reports, spreadsheets, or KPIs.</p>
<p>&nbsp;</p>
<p><strong><em>Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise. </em></strong><strong></strong></p>
<p>Office SharePoint Server 2007 is built on an open, scalable architecture, with support for Web services and interoperability standards including XML and Simple Object Access Protocol (SOAP). The server has rich, open application programming interfaces (APIs) and event handlers for lists and documents. These features provide integration with existing systems and the flexibility to incorporate new non-Microsoft IT investments.</p>
<p><strong>Top 10 Benefits of Windows SharePoint Services</strong><em></em></p>
<p><strong><em>Improve team productivity with easy-to-use collaborative tools</em></strong><strong></strong></p>
<p>Connect people with the information and resources they need. Users can create team workspaces, coordinate calendars, organize documents, and receive important notifications and updates through communication features including announcements and alerts, as well as the new templates for creating blogs and wikis. While mobile, users can take advantage of convenient offline synchronization capabilities.</p>
<p><strong><em>Easily manage documents and help ensure integrity of content</em></strong><strong></strong></p>
<p>With enhanced document management capabilities including the option to activate required document checkout before editing, the ability to view revisions to documents and restore to previous versions, and the control to set document- and item-level security, Windows SharePoint Services can help ensure the integrity of documents stored on team sites.</p>
<p><strong><em>Get users up to speed quickly</em></strong><strong></strong></p>
<p>User interface improvements in Windows SharePoint Services 3.0 include enhanced views and menus that simplify navigation within and among SharePoint sites. Integration with familiar productivity tools, including programs in the Microsoft Office system, makes it easy for users to get up to speed quickly. For example, users can create workspaces, post and edit documents, and view and update calendars on SharePoint sites, all while working within Microsoft Office system files and programs.</p>
<p><strong><em>Deploy solutions tailored to your business processes</em></strong><strong></strong></p>
<p>While standard workspaces in Windows SharePoint Services are easy to implement, organizations seeking a more customized deployment can get started quickly with application templates for addressing specific business processes or sets of tasks.</p>
<p><strong><em>Build a collaboration environment quickly and easily</em></strong><strong></strong></p>
<p>Easy to manage and easy to scale, Windows SharePoint Services enables IT departments to deploy a collaborative environment with minimal administrative time and effort, from simple, single-server configurations to more robust enterprise configurations. Because deployment settings can be flexibly changed, less pre-planning time is required and companies can get started even faster.</p>
<p><strong><em>Reduce the complexity of securing business information</em></strong><strong></strong></p>
<p>Windows SharePoint Services provides IT with advanced administrative controls for increasing the security of information resources, while decreasing cost and complexity associated with site provisioning, site management, and support. Take advantage of better controls for site life-cycle management, site memberships and permissions, and storage limits.</p>
<p><strong><em>Provide sophisticated controls for securing company resources</em></strong><strong></strong></p>
<p>IT departments can now set permissions as deep down as the document or item level, and site managers, teams, and other work groups can initiate self-service collaborative workspaces and tasks within these preset parameters. New features enable IT to set top-down policies for better content recovery and users, groups, and team workspace site administration.</p>
<p><strong><em>Take file sharing to a new level with robust storage capabilities</em></strong><strong></strong></p>
<p>Windows SharePoint Services supplies workspaces with document storage and retrieval features, including check-in/check-out functionality, version history, custom metadata, and customizable views. New features in Windows SharePoint Services include enhanced recycle bin functionality for easier recovery of content and improved backup and restoration.</p>
<p><strong><em>Easily scale your collaboration solution to meet business needs</em></strong><strong></strong></p>
<p>Quickly and easily manage and configure Windows SharePoint Services using a Web browser or command-line utilities. Manage server farms, servers, and sites using the Microsoft .NET Framework, which enables a variety of custom and third-party administration solution offerings.</p>
<p><strong><em>Provide a cost-effective foundation for building Web-based applications</em></strong><strong></strong></p>
<p>Windows SharePoint Services exposes a common framework for document management and collaboration from which flexible and scalable Web applications and Internet sites, specific to the needs of the organization, can be built. Integration with Microsoft Office SharePoint Server 2007 expands these capabilities further to offer enterprise-wide functionality for records management, search, workflows, portals, personalized sites, and more.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dksinha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dksinha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dksinha.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=8&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dksinha.wordpress.com/2009/10/27/what-is-sharepoint/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e997bdc31f25075feeb2f1f1e916c46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dksinha</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Important interview Questions</title>
		<link>http://dksinha.wordpress.com/2009/10/27/some-important-interview-questions/</link>
		<comments>http://dksinha.wordpress.com/2009/10/27/some-important-interview-questions/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 05:07:58 +0000</pubDate>
		<dc:creator>dksinha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dksinha.wordpress.com/?p=6</guid>
		<description><![CDATA[&#62;&#62;&#62;Difference between data encapsulation vs abstraction Encapsulation is nothing but hiding information also called datahiding. while abstraction denotes the essential characteristics of an object which differentiates from other kinds of object. &#160; Abstraction is achieved through encapsulation. Abstraction solves the problem in the design side while encapsulations the implementation &#160; Abstraction is virtual class design. Before actually defining class developer will think about what all properties methods [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=6&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>&gt;&gt;&gt;Difference</strong><strong> </strong><strong>between data</strong><strong> </strong><strong>encapsulation</strong><strong> </strong><strong>vs abstraction</strong></p>
<p><strong> </strong></p>
<p>Encapsulation is nothing but hiding information also called datahiding.<br />
while abstraction denotes the essential characteristics of an object which differentiates from other kinds of object.</p>
<p>&nbsp;</p>
<p>Abstraction is achieved through encapsulation. Abstraction solves the problem in the design side while encapsulations the implementation</p>
<p>&nbsp;</p>
<p>Abstraction is virtual class design.</p>
<p>Before actually defining class developer will think about what all properties methods and event will be there in my class.</p>
<p>Whereas encapsulation is data hiding.</p>
<p>At the time of class definitions developer will think about which should display to end user and which should not.</p>
<p>In Short Abstraction is Collection of data and Encapsulation is Exposure (or grouping) of data in appropriate access specifier.</p>
<p>Abstraction means data hiding. That means we use the object without knowing the source code of the class.</p>
<p>Encapsulation is a mechanism by which we design our class such a way that if we change our class in feature we don’t need to change the classes which are depending on our classes.</p>
<p>&nbsp;</p>
<p>Abstraction is used for hiding the unwanted information and giving relevant information.</p>
<p>Eg: Three set of customers are going to buy a bike First one wants information about the style. Second one wants about the mileage. Third one wants the cost and brand of the bike. So the salesperson explains about the product which customer needs what. So he hiding some <span style="text-decoration:underline;">information</span> and giving the relevant information.</p>
<p>Encapsulation is combines one or more information into a component.</p>
<p>Eg: Capsule is mixed with one or more medicine and packed into the tube. so its related and acting in two moducles.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Encapsulation and abstraction both solve same problem: Complexity; but in different dimensions.</p>
<p><strong>Abstraction</strong>: Hides the implementation details of your methods. Provides a base to variations in the application which can grow over a period of time.</p>
<p><strong>Encapsulation</strong>: Hides the private data elements of the class and exposes only the required things to the clients.</p>
<p>Both are powerful; but using abstraction require more skills than encapsulation and bigger applications/products can not survive with out abstraction.</p>
<p>It is wrong to call Encapsulation as only data hiding. Though this definition is usually taught in school but now according to latest OOPs principles its considered incomplete.</p>
<p>According to the book Design Patterns Explained</p>
<p>At conceptual level:</p>
<p>Encapsulation means any type of hiding. It can be either data behavior implementation or derived classes or any other thing.</p>
<p>Abstraction means to generalize or conceptualize: to step back from the more concrete to the more conceptual or abstract.</p>
<p>At implementation level:<br />
Encapsulation is achieved by inheritance aggregation or composition.</p>
<p>Abstraction is represented by using abstract classes to represent a generalized version of set of related classes.<strong> </strong></p>
<p><strong> </strong></p>
<p><strong>&gt;&gt;&gt; Sorting a Array</strong></p>
<p><strong> </strong></p>
<p>class SortArray</p>
<p>{</p>
<p>static void Main(string[] args)</p>
<p>{</p>
<p>&nbsp;</p>
<p>string[] names = new string[] { &#8220;Rosy&#8221;, &#8220;Amy&#8221;, &#8220;Peter&#8221;, &#8220;Albert&#8221; };</p>
<p>Console.WriteLine(&#8220;Original Array:&#8221;);</p>
<p>foreach (string str in names)</p>
<p>{</p>
<p>Console.WriteLine(str);</p>
<p>}</p>
<p>Console.WriteLine(&#8220;Sorted Array:&#8221;);</p>
<p>Array.Sort(names);</p>
<p>Array.Reverse(names);</p>
<p>foreach (string str in names)</p>
<p>{</p>
<p>Console.WriteLine(str);</p>
<p>}</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>}</p>
<p>}</p>
<p><strong> </strong></p>
<p><strong>&gt;&gt;&gt; Connection String in Web.config</strong></p>
<p><strong> </strong></p>
<p>&lt;add key=&#8221;connStr1&#8243; value=&#8221;Data Source=192.168.0.196;Initial Catalog=dbname;Persist Security Info=True;User ID=sa;Password=pass@word1&#8243;/&gt;</p>
<p>&nbsp;</p>
<p><strong>&gt;&gt;&gt; Database.cs class</strong></p>
<p><strong> </strong></p>
<p>public class database</p>
<p>{</p>
<p>char DQ = Convert.ToChar(39);</p>
<p>public database()</p>
<p>{</p>
<p>// char DQ = Convert.ToChar(39);</p>
<p>}</p>
<p>public int InsertUpdate(string qry, string connStr)</p>
<p>{</p>
<p>SqlConnection conn = getConnection(connStr);</p>
<p>//  try</p>
<p>//  {</p>
<p>conn.Open();</p>
<p>SqlCommand cmd = new SqlCommand(qry, conn);</p>
<p>int rowsaff = cmd.ExecuteNonQuery();</p>
<p>conn.Close();</p>
<p>return rowsaff;</p>
<p>//  }</p>
<p>//catch (Exception ex)</p>
<p>//{</p>
<p>//    throw new Exception(ex.Message);//&#8221;Error in Insert/Update&#8221;);</p>
<p>&nbsp;</p>
<p>//}</p>
<p>}</p>
<p>&nbsp;</p>
<p>public void Alert(string msg)</p>
<p>{</p>
<p>System.Web.HttpContext.Current.Response.Write(&#8220;&lt;script&gt;alert(&#8221; + DQ + msg + DQ + &#8220;)&lt;/script&gt;&#8221;);</p>
<p>}</p>
<p>&nbsp;</p>
<p>public DataSet getDS(string qry, string connStr)</p>
<p>{</p>
<p>DataSet ds = new DataSet();</p>
<p>SqlConnection conn = getConnection(connStr);</p>
<p>try</p>
<p>{</p>
<p>conn.Open();</p>
<p>if (conn.State == ConnectionState.Open)</p>
<p>{</p>
<p>SqlDataAdapter da = new SqlDataAdapter(qry, conn);</p>
<p>da.Fill(ds);</p>
<p>return ds;</p>
<p>}</p>
<p>return ds;</p>
<p>}</p>
<p>catch (Exception ex)</p>
<p>{</p>
<p>throw new Exception(&#8220;Error in Getting DataSet&#8221; + ex.Message);</p>
<p>}</p>
<p>&nbsp;</p>
<p>}</p>
<p>public string getOneField(string qry, string connStr)</p>
<p>{</p>
<p>SqlConnection conn = getConnection(connStr);</p>
<p>SqlCommand cmd = new SqlCommand(qry, conn);</p>
<p>conn.Open();</p>
<p>SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);</p>
<p>if (dr.HasRows == true)</p>
<p>{</p>
<p>dr.Read();</p>
<p>return Convert.ToString(dr[0]);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>return &#8220;&#8221;;</p>
<p>}</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>}</p>
<p>&nbsp;</p>
<p>//Function to create and return connection based on Connection String</p>
<p>public SqlConnection getConnection(string connStr)</p>
<p>{</p>
<p>SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings[connStr]);</p>
<p>return conn;</p>
<p>}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dksinha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dksinha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dksinha.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=6&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dksinha.wordpress.com/2009/10/27/some-important-interview-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e997bdc31f25075feeb2f1f1e916c46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dksinha</media:title>
		</media:content>
	</item>
		<item>
		<title>Interview Questions</title>
		<link>http://dksinha.wordpress.com/2009/02/10/interview-questions/</link>
		<comments>http://dksinha.wordpress.com/2009/02/10/interview-questions/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:16:09 +0000</pubDate>
		<dc:creator>dksinha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dksinha.wordpress.com/2009/02/10/interview-questions/</guid>
		<description><![CDATA[ASp.net Faq 1. What is CLR? Common Language Runtime (CLR) is a run-time environment that manages the execution of .NET code and provides services like memory management, debugging, security, etc. The CLR is also known as Virtual Execution System (VES). 2. What is CLI? The CLI is a set of specifications for a runtime environment, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=3&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong> ASp.net Faq</strong></p>
<p><strong>1. What is CLR?</strong></p>
<p>Common Language Runtime (CLR) is a run-time environment that manages the execution of .NET code and provides services like memory management, debugging, security, etc. The CLR is also known as Virtual Execution System (VES).</p>
<p><strong>2. What is CLI?</strong></p>
<p>The CLI is a set of specifications for a runtime environment, including a common type system, base class library, and a machine-independent intermediate code known as the Common Intermediate Language (CIL). (Source: Wikipedia.)</p>
<p><strong>3. List the various stages of Page-Load lifecycle.</strong></p>
<p>o Init()</p>
<p>o Load()</p>
<p>o PreRender()</p>
<p>o Unload()</p>
<p>4. Explain Assembly and Manifest.</p>
<p>An assembly is a collection of one or more files and one of them (DLL or EXE) contains a special metadata called Assembly Manifest. The manifest is stored as binary data and contains details like versioning requirements for the assembly, the author, security permissions, and list of files forming the assembly. An assembly is created whenever a DLL is built. The manifest can be viewed programmatically by making use of classes from the System.Reflection namespace. The tool Intermediate Language Disassembler (ILDASM) can be used for this purpose. It can be launched from the command prompt or via Start&gt; Run.</p>
<p><strong>5. What is Shadow Copy?</strong></p>
<p>In order to replace a COM component on a live web server, it was necessary to stop the entire website, copy the new files and then restart the website. This is not feasible for the web servers that need to be always running. .NET components are different. They can be overwritten at any time using a mechanism called Shadow Copy. It prevents the Portable Executable (PE) files like DLLs and EXEs from being locked. Whenever new versions of the PEs are released, they are automatically detected by the CLR and the changed components will be automatically loaded. They will be used to process all new requests not currently executing, while the older version still runs the currently executing requests. By bleeding out the older version, the update is completed.</p>
<p>6. What is DLL Hell?</p>
<p>DLL hell is the problem that occurs when an installation of a newer application might break or hinder other applications as newer DLLs are copied into the system and the older applications do not support or are not compatible with them. .NET overcomes this problem by supporting multiple versions of an assembly at any given time. This is also called side-by-side component versioning.</p>
<p><strong>7. Explain Web Services.</strong></p>
<p>Web services are programmable business logic components that provide access to functionality through the Internet. Standard protocols like HTTP can be used to access them. Web services are based on the Simple Object Access Protocol (SOAP), which is an application of XML. Web services are given the .asmx extension.</p>
<p><strong>8. Explain Windows Forms.</strong></p>
<p>Windows Forms is employed for developing Windows GUI applications. It is a class library that gives developers access to Windows Common Controls with rich functionality. It is a common GUI library for all the languages supported by the .NET Framework.</p>
<p>9. What is Postback?</p>
<p>When an action occurs (like button click), the page containing all the controls within the tag performs an HTTP POST, while having itself as the target URL. This is called Postback.</p>
<p><strong>10. Explain the differences between server-side and client-side code?</strong></p>
<p>Server side scripting means that all the script will be executed by the server and interpreted as needed. 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. Since the code is included in the HTML page, anyone can see the code by viewing the page source. It also poses as a possible security hazard for the client computer.</p>
<p><strong>11. Enumerate the types of Directives.</strong></p>
<p>o @ Page directive</p>
<p>o @ Import directive</p>
<p>o @ Implements directive</p>
<p>o @ Register directive</p>
<p>o @ Assembly directive</p>
<p>o @ OutputCache directive</p>
<p>o @ Reference directive</p>
<p><strong>12. What is Code-Behind?</strong></p>
<p>Code-Behind is a concept where the contents of a page are in one file and the server-side code is in another. This allows different people to work on the same page at the same time and also allows either part of the page to be easily redesigned, with no changes required in the other. An Inherits attribute is added to the @ Page directive to specify the location of the Code-Behind file to the ASP.NET page.</p>
<p><strong>13. Describe the difference between inline and code behind.</strong></p>
<p>Inline code is written along side the HTML in a page. There is no separate distinction between design code and logic code. Code-behind is code written in a separate file and referenced by the .aspx page.</p>
<p><strong>14. What is Data Binding?</strong></p>
<p>Data binding is a way used to connect values from a collection of data (e.g. DataSet) to the controls on a web form. The values from the dataset are automatically displayed in the controls without having to write separate code to display them.</p>
<p><strong>15. Describe Paging in ASP.NET.</strong></p>
<p>The DataGrid control in ASP.NET enables easy paging of the data. The AllowPaging property of the DataGrid can be set to True to perform paging. ASP.NET automatically performs paging and provides the hyperlinks to the other pages in different styles, based on the property that has been set for PagerStyle.Mode.</p>
<p><strong>16. Should user input data validation occur server-side or client-side? Why?</strong></p>
<p>All user input data validation should occur on the server and minimally on the client-side, though it is a good way to reduce server load and network traffic because we can ensure that only data of the appropriate type is submitted from the form. It is totally insecure. The user can view the code used for validation and create a workaround for it. Secondly, the URL of the page that handles the data is freely visible in the original form page. This will allow unscrupulous users to send data from their own forms to your application. Client-side validation can sometimes be performed where deemed appropriate and feasible to provide a richer, more responsive experience for the user.</p>
<p><strong>17. What is the difference between Server.Transfer and Response.Redirect?</strong></p>
<p>o Response.Redirect: This tells the browser that the requested page can be found at a new location. The browser then initiates another request to the new page loading its contents in the browser. This results in two requests by the browser.</p>
<p>o Server.Transfer: It transfers execution from the first page to the second page on the server. As far as the browser client is concerned, it made one request and the initial page is the one responding with content. The benefit of this approach is one less round trip to the server from the client browser. Also, any posted form variables and query string parameters are available to the second page as well.</p>
<p><strong>18. What is an interface and what is an abstract class?</strong></p>
<p>In an interface, all methods must be abstract (must not be defined). In an abstract class, some methods can be defined. In an interface, no accessibility modifiers are allowed, whereas it is allowed in abstract classes.</p>
<p><strong>19. Session state vs. View state:</strong></p>
<p>In some cases, using view state is not feasible. The alternative for view state is session state. Session state is employed under the following situations:</p>
<p>o Large amounts of data &#8211; View state tends to increase the size of both the HTML page sent to the browser and the size of form posted back. Hence session state is used.</p>
<p>o Secure data &#8211; Though the view state data is encoded and may be encrypted, it is better and secure if no sensitive data is sent to the client. Thus, session state is a more secure option.</p>
<p>o Problems in serializing of objects into view state &#8211; View state is efficient for a small set of data. Other types like DataSet are slower and can generate a very large view state.</p>
<p><strong>20. Can two different programming languages be mixed in a single ASPX file?</strong></p>
<p>ASP.NET’s built-in parsers are used to remove code from ASPX files and create temporary files. Each parser understands only one language. Therefore mixing of languages in a single ASPX file is not possible.</p>
<p><strong>21. Is it possible to see the code that ASP.NET generates from an ASPX file?</strong></p>
<p>By enabling debugging using a  directive in the ASPX file or a statement in Web.config, the generated code can be viewed. The code is stored in a CS or VB file (usually in the \%SystemRoot%\Microsoft.NET\Framework\v1.0.nnnn\Temporary ASP.NET Files).</p>
<p><strong>22. Can a custom .NET data type be used in a Web form?</strong></p>
<p>This can be achieved by placing the DLL containing the custom data type in the application root&#8217;s bin directory and ASP.NET will automatically load the DLL when the type is referenced.</p>
<p><strong>23. List the event handlers that can be included in Global.asax?</strong></p>
<p>o Application start and end event handlers</p>
<p>o Session start and end event handlers</p>
<p>o Per-request event handlers</p>
<p>o Non-deterministic event handlers</p>
<p><strong>24. Can the view state be protected from tampering?</strong></p>
<p>This can be achieved by including an @ Page directive with an EnableViewStateMac=&#8221;true&#8221; attribute in each ASPX file that has to be protected. Another way is to include the statement in the Web.config file.</p>
<p><strong>25. Can the view state be encrypted?</strong></p>
<p>The view state can be encrypted by setting EnableViewStateMac to true and either modifying the element in Machine.config to or by adding the above statement to Web.config.</p>
<p><strong>26. When during the page processing cycle is ViewState available?</strong></p>
<p>The view state is available after the Init() and before the Render() methods are called during Page load.</p>
<p><strong>27. Do Web controls support Cascading Style Sheets?</strong></p>
<p>All Web controls inherit a property named CssClass from the base class System.Web.UI.WebControls.WebControl which can be used to control the properties of the web control.</p>
<p><strong>28. What classes are needed to send e-mail from an ASP.NET application?</strong></p>
<p>The classes MailMessage and SmtpMail have to be used to send email from an ASP.NET application. MailMessage and SmtpMail are classes defined in the .NET Framework Class Library&#8217;s System.Web.Mail namespace.</p>
<p><strong>29. Why do some web service classes derive from System.Web.WebServices while others do not?</strong></p>
<p>Those Web Service classes which employ objects like Application, Session, Context, Server, and User have to derive from System.Web.WebServices. If it does not use these objects, it is not necessary to be derived from it.</p>
<p><strong>30. What are VSDISCO files?</strong></p>
<p>VSDISCO files are DISCO files that enable dynamic discovery of Web Services. ASP.NET links the VSDISCO to a HTTP handler that scans the host directory and subdirectories for ASMX and DISCO files and returns a dynamically generated DISCO document. A client who requests a VSDISCO file gets back what appears to be a static DISCO document.</p>
<p><strong>31. How can files be uploaded to Web pages in ASP.NET?</strong></p>
<p>This can be done by using the HtmlInputFile class to declare an instance of an tag. Then, a byte[] can be declared to read in the data from the input file. This can then be sent to the server.</p>
<p><strong>32. How do I create an ASPX page that periodically refreshes itself?</strong></p>
<p>The following META tag can be used as a trigger to automatically refresh the page every n seconds:</p>
<p><strong>33. How do I initialize a TextBox whose TextMode is &#8220;password&#8221;, with a password?</strong></p>
<p>The TextBox’s Text property cannot be used to assign a value to a password field. Instead, its Value field can be used for that purpose.</p>
<p>ID=&#8221;Password&#8221; RunAt=&#8221;server&#8221; /&gt;</p>
<p><strong>34. Why does the control&#8217;s PostedFile property always show null when using HtmlInputFile control to upload files to a Web server?</strong></p>
<p>This occurs when an enctype=&#8221;multipart/form-data&#8221; attribute is missing in the<br />
tag.</p>
<p><strong>35. How can the focus be set to a specific control when a Web form loads?</strong></p>
<p>This can be achieved by using client-side script:</p>
<p>document.forms[0].TextBox1.focus ()</p>
<p>The above code will set the focus to a TextBox named TextBox1 when the page loads.</p>
<p><strong>36. How does System.Web.UI.Page&#8217;s IsPostBack property work?</strong></p>
<p>IsPostBack checks to see whether the HTTP request is accompanied by postback data containing a __VIEWSTATE or __EVENTTARGET parameter. If there are none, then it is not a postback.</p>
<p><strong>37. What is WSDL?</strong></p>
<p>WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint. Related concrete endpoints are combined into abstract endpoints (services). (Source: www.w3.org)</p>
<p><strong>38. What is UDDI?</strong></p>
<p>UDDI stands for Universal Description, Discovery, and Integration. It is like an &#8220;Yellow Pages&#8221; for Web Services. It is maintained by Microsoft, IBM, and Ariba, and is designed to provide detailed information regarding registered Web Services for all vendors. The UDDI can be queried for specific Web Services.</p>
<p><strong>39. Is it possible to generate the source code for an ASP.NET Web service from a WSDL?</strong></p>
<p>The Wsdl.exe tool (.NET Framework SDK) can be used to generate source code for an ASP.NET web service with its WSDL link.</p>
<p>Example: wsdl /server http://api.google.com/GoogleSearch.wsdl.</p>
<p><strong>40. Why do uploads fail while using an ASP.NET file upload control to upload large files?</strong></p>
<p>ASP.NET limits the size of file uploads for security purposes. The default size is 4 MB. This can be changed by modifying the maxRequestLength attribute of Machine.config&#8217;s element.</p>
<p><strong>41. Describe the difference between inline and code behind.</strong></p>
<p>Inline code is written along side the HTML in a page. Code-behind is code written in a separate file and referenced by the .aspx page.</p>
<p><strong>51. Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.</strong></p>
<p>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.</p>
<p><strong> 52. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset? </strong></p>
<p>Valid answers are:</p>
<p>* A DataSet can represent an entire relational database in memory, complete with tables, relations, and views.<br />
* A DataSet is designed to work without any continuing connection to the original data source.<br />
* Data in a DataSet is bulk-loaded, rather than being loaded on demand.<br />
* There&#8217;s no concept of cursor types in a DataSet.<br />
* DataSets have no current record pointer You can use For Each loops to move through the data.<br />
* You can store many edits in a DataSet, and write them to the original data source in a single operation.<br />
* Though the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.</p>
<p><strong>53. What’s a bubbled event?</strong></p>
<p>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 eventhandlers, allowing the main DataGrid event handler to take care of its constituents.</p>
<p><strong> 54. What data types do the RangeValidator control support? </strong></p>
<p>Integer, String, and Date.</p>
<p><strong> 55. Explain what a diffgram is, and a good use for one? </strong></p>
<p>The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. A good use is reading database data to an XML file to be sent to a Web Service.</p>
<p><strong> 56. What is the transport protocol you use to call a Web service? </strong></p>
<p>SOAP (Simple Object Access Protocol) is the preferred protocol.</p>
<p><strong> 57. What is ViewState? </strong></p>
<p>ViewState allows the state of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source. ViewState is used the retain the state of server-side objects between postabacks.</p>
<p><strong> 58. What does the &#8220;EnableViewState&#8221; property do? Why would I want it on or off? </strong></p>
<p>It allows the page to save the users input on a form across postbacks. It saves the server-side values for a given control into ViewState, which is stored as a hidden value on the page before sending the page to the clients browser. When the page is posted back to the server the server control is recreated with the state stored in viewstate.</p>
<p><strong> 59. What are the different types of Session state management options available with ASP.NET? </strong></p>
<p>ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. This requires the a &#8220;sticky-server&#8221; (or no load-balancing) so that the user is always reconnected to the same web server. Out-of-Process Session state management stores data in an external data source. The external data source may be either a SQL Server or a State Server service. Out-of-Process state management requires that all objects stored in session are serializable.</p>
<p><strong> 60. Differences Between XML and HTML? </strong></p>
<p>Anyone with a fundamental grasp of XML should be able describe some of the main differences outlined in the table below<br />
XML</p>
<p>HTML</p>
<p>User definable tags</p>
<p>Defined set of tags designed for web display</p>
<p>Content driven</p>
<p>Format driven</p>
<p>End tags required for well formed documents</p>
<p>End tags not required</p>
<p>Quotes required around attributes values</p>
<p>Quotes not required</p>
<p>Slash required in empty tags</p>
<p>Slash not required</p>
<p><strong> 61. Give a few examples of types of applications that can benefit from using XML. </strong></p>
<p>There are literally thousands of applications that can benefit from XML technologies. The point of this question is not to have the candidate rattle off a laundry list of projects that they have worked on, but, rather, to allow the candidate to explain the rationale for choosing XML by citing a few real world examples. For instance, one appropriate answer is that XML allows content management systems to store documents independently of their format, which thereby reduces data redundancy. Another answer relates to B2B exchanges or supply chain management systems. In these instances, XML provides a mechanism for multiple companies to exchange data according to an agreed upon set of rules. A third common response involves wireless applications that require WML to render data on hand held devices.</p>
<p><strong> 62. What is DOM and how does it relate to XML? </strong></p>
<p>The Document Object Model (DOM) is an interface specification maintained by the W3C DOM Workgroup that defines an application independent mechanism to access, parse, or update XML data. In simple terms it is a hierarchical model that allows developers to manipulate XML documents easily Any developer that has worked extensively with XML should be able to discuss the concept and use of DOM objects freely. Additionally, it is not unreasonable to expect advanced candidates to thoroughly understand its internal workings and be able to explain how DOM differs from an event-based interface like SAX.</p>
<p><strong> 63. What is SOAP and how does it relate to XML? </strong></p>
<p>The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components: an envelope, a set of encoding rules, and a convention for representing remote procedure calls. Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML.</p>
<p><strong> 64. Can you walk us through the steps necessary to parse XML documents</strong>?</p>
<p>Superficially, this is a fairly basic question. However, the point is not to determine whether candidates understand the concept of a parser but rather have them walk through the process of parsing XML documents step-by-step. Determining whether a non-validating or validating parser is needed, choosing the appropriate parser, and handling errors are all important aspects to this process that should be included in the candidate&#8217;s response.</p>
<p><strong> 65. What are possible implementations of distributed applications in .NET? </strong></p>
<p>.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.</p>
<p><strong> 66. What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services? </strong></p>
<p>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 informaion. Web Services are best when you need to communicate with an external organization or another (non-.NET) technology.</p>
<p><strong> 67. What’s a proxy of the server object in .NET Remoting? </strong></p>
<p>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.</p>
<p><strong> 68. What are remotable objects in .NET Remoting</strong>?</p>
<p>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.</p>
<p><strong> 69. What are channels in .NET Remoting? </strong></p>
<p>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.</p>
<p><strong> 70. What security measures exist for .NET Remoting in System.Runtime.Remoting? </strong></p>
<p>None. Security should be taken care of at the application level. Cryptography and other security techniques can be applied at application or server level.</p>
<p><strong> 71. What is a formatter? </strong></p>
<p>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.</p>
<p><strong> 72. Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs? </strong></p>
<p>Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.</p>
<p><strong> 73. What’s SingleCall activation mode used for? </strong></p>
<p>If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.</p>
<p><strong> 74. What’s Singleton activation mode? </strong></p>
<p>A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.</p>
<p><strong> 75. How do you define the lease of the object? </strong></p>
<p>By implementing ILease interface when writing the class code.</p>
<p><strong> 76. Can you configure a .NET Remoting object via XML file? </strong></p>
<p>Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.</p>
<p><strong> 77. How can you automatically generate interface for the remotable object in .NET with Microsoft tools? </strong></p>
<p>Use the Soapsuds tool.<br />
Asp.NET 2.0 Job Interview Questions</p>
<p><strong>1. What are the new Data Controls in Asp.net 2.0?</strong></p>
<p>Data access in ASP.NET 2.0 can be accomplished completely declaratively (no code) using the new data-bound and data source controls. There are new data source controls to represent different data backends such as SQL database, business objects, and XML, and there are new data-bound controls for rendering common UI for data, such as gridview, detailsview, and formview.</p>
<p><strong>2. What are the new Navigation Controls in Asp.net 2.0?</strong></p>
<p>The navigation controls provide common UI for navigating between pages in your site, such as treeview, menu, and sitemappath. These controls use the site navigation service in ASP.NET 2.0 to retrieve the custom structure you have defined for your site.</p>
<p><strong>3. What are the new Login Controlsin Asp.net 2.0?</strong></p>
<p>The new login controls provide the building blocks to add authentication and authorization-based UI to your site, such as login forms, create user forms, password retrieval, and custom UI for logged in users or roles. These controls use the built-in membership and role services in ASP.NET 2.0 to interact with the user and role information defined for your site.</p>
<p><strong>4. What are the new Web Part Controls in Asp.net 2.0 ?</strong></p>
<p>Web parts are an exciting new family of controls that enable you to add rich, personalized content and layout to your site, as well as the ability to edit that content and layout directly from your application pages. These controls rely on the personalization services in ASP.NET 2.0 to provide a unique experience for each user in your application.</p>
<p><strong>5. What are Master Pages?</strong></p>
<p>This feature provides the ability to define common structure and interface elements for your site, such as a page header, footer, or navigation bar, in a common location called a &#8220;master page&#8221;, to be shared by many pages in your site. In one simple place you can control the look, feel, and much of functionality for an entire Web site. This improves the maintainability of your site and avoids unnecessary duplication of code for shared site structure or behavior.</p>
<p><strong>6. What are Themes and Skins in 2.0, explain usgae scenario?</strong></p>
<p>The themes and skins features in ASP.NET 2.0 allow for easy customization of your site&#8217;s look-and-feel. You can define style information in a common location called a &#8220;theme&#8221;, and apply that style information globally to pages or controls in your site. Like Master Pages, this improves the maintainability of your site and avoid unnecessary duplication of code for shared styles.</p>
<p><strong>7. What is a profile object, why is it used?</strong></p>
<p>Using the new personalization services in ASP.NET 2.0 you can easily create customized experiences within Web applications. The Profile object enables developers to easily build strongly-typed, sticky data stores for user accounts and build highly customized, relationship based experiences. At the same time, a developer can leverage Web Parts and the personalization service to enable Web site visitors to completely control the layout and behavior of the site, with the knowledge that the site is completely customized for them. Personalizaton scenarios are now easier to build than ever before and require significantly less code and effort to implement.</p>
<p><strong>8. What is Configuration API?</strong></p>
<p>ASP.NET 2.0 contains new configuration management APIs, enabling users to programmatically build programs or scripts that create, read, and update Web.config and machine.config configuration files.</p>
<p><strong>9. What is MMC Admin Tool?</strong></p>
<p>ASP.NET 2.0 provides a new comprehensive admin tool that plugs into the existing IIS Administration MMC, enabling an administrator to graphically read or change common settings within our XML configuration files.</p>
<p><strong>10. Explain the use of Pre-compilation Tool?</strong></p>
<p>ASP.NET 2.0 delivers a new application deployment utility that enables both developers and administrators to precompile a dynamic ASP.NET application prior to deployment. This precompilation automatically identifies any compilation issues anywhere within the site, as well as enables ASP.NET applications to be deployed without any source being stored on the server (one can optionally remove the content of .aspx files as part of the compile phase), further protecting your intellectual property.</p>
<p><strong>11. How is application management and maintenance improved in Asp.net 2.0?</strong></p>
<p>ASP.NET 2.0 also provides new health-monitoring support to enable administrators to be automatically notified when an application on a server starts to experience problems. New tracing features will enable administrators to capture run-time and request data from a production server to better diagnose issues. ASP.NET 2.0 is delivering features that will enable developers and administrators to simplify the day-to-day management and maintenance of their Web applications.</p>
<p><strong>12. What are Provider-driven Application Services? explain in detail?</strong></p>
<p>ASP.NET 2.0 now includes built-in support for membership (user name/password credential storage) and role management services out of the box. The new personalization service enables quick storage/retrieval of user settings and preferences, facilitating rich customization with minimal code. The new site navigation system enables developers to quickly build link structures consistently across a site. As all of these services are provider-driven, they can be easily swapped out and replaced with your own custom implementation. With this extensibility option, you have complete control over the data store and schema that drives these rich application services.</p>
<p><strong>13. Explain Server Control Extensibility with reference to Asp.net 2.0 ?</strong></p>
<p>ASP.NET 2.0 includes improved support for control extensibility, such as more base classes that encapsulate common behaviors, improved designer support, more APIs for interacting with client-side script, metadata-driven support for new features like themes and accessibility verification, better state management, and more.</p>
<p><strong>14. What are the Data Source Controls?</strong></p>
<p>Data access in ASP.NET 2.0 is now performed declaratively using data source controls on a page. In this model, support for new data backend storage providers can be easily added by implementing custom data source controls. Additionally, the SqlDataSource control that ships in the box has built-in support for any ADO.NET managed provider that implements the new provider factory model in ADO.NET.</p>
<p><strong>15. What are Compilation Build Providers?</strong></p>
<p>Dynamic compilation in ASP.NET 2.0 is now handled by extensible compilation build providers, which associate a particular file extension with a handler that knows how to compile that extension dynamically at runtime. For example, .resx files can be dynamically compiled to resources, .wsdl files to web service proxies, and .xsd files to typed DataSet objects. In addition to the built-in support, it is easy to add support for additional extensions by implementing a custom build provider and registering it in Web.config.</p>
<p><strong>16. What is Expression Builders, why would you use it?</strong></p>
<p>ASP.NET 2.0 introduces a declarative new syntax for referencing code to substitute values into the page, called Expression Builders. ASP.NET 2.0 includes expression builders for referencing string resources for localization, connection strings, application settings, and profile values. You can also write your own expression builders to create your own custom syntax to substitute values in a page rendering.</p>
<p><strong>17. Is ASP.NET 64-Bit enabled? how?</strong></p>
<p>ASP.NET 2.0 is now 64-bit enabled, meaning it can take advantage of the full memory address space of new 64-bit processors and servers. Developers can simply copy existing 32-bit ASP.NET applications onto a 64-bit ASP.NET 2.0 server and have them automatically be JIT compiled and executed as native 64-bit applications (no source code changes or manual re-compile are required).</p>
<p><strong>18. Explain how Caching in Asp.net 2.0 is different from Caching in Asp.net 1.1?</strong></p>
<p>ASP.NET 2.0 also now includes automatic database server cache invalidation. This powerful and easy-to-use feature allows developers to aggressively output cache database-driven page and partial page content within a site and have ASP.NET automatically invalidate these cache entries and refresh the content whenever the back-end database changes. Developers can now safely cache time-critical content for long periods without worrying about serving visitors stale data.</p>
<p><strong>What is the difference between Postback and Ispostback Property?</strong></p>
<p>Answer: PostBack: Postback is the event which sends the form data to the server. The server processes the data &amp; sends it</p>
<p>back to the browser. The page goes through its full life cycle &amp; is rendered on the browser. It can be triggered by using the server controls.And the IsPostBack property of the page object may be used to check whether the page request is a postback or not. IsPostBack property is of the type Boolean.</p>
<p><strong>Difference between Active Exe and Dll ?</strong></p>
<p>Answer:</p>
<p>1.  EXE can run independaly ,while dll can not.</p>
<p>2.  An exe can contain manu dll, dll are supprting files</p>
<p>containing all information.</p>
<p>EXE is ae executable file, while Dll is not. Dll cannot be used independantly.</p>
<p>The Dll is a reusable component which can be referred by a EXE.</p>
<p>what is DLL Hell and how it is solved in .NET?</p>
<p>This is a problem everybody faced in asp application which uses dll created in vb6.  Dll process still be in memory even after the objest is destroyed exclusively causing the program to restart.</p>
<p>.NET has a functionality call garbage collection which wakes up every interval of time and clears the objects not been used from the application .</p>
<p><strong>What?s a bubbled event?</strong></p>
<p>when the child control events are handeled by parent control it is called as event bubbling.for ex. when a control in the datagrid is clicked it is handeled by the dtagrid event and not by the control itself which fired it so that time it is called as event ubbling.</p>
<p>How many languages .NET is supporting now? &#8211; 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.</p>
<p>How is .NET able to support multiple languages? &#8211; 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.</p>
<p><strong>How ASP .NET different from ASP?</strong> &#8211; Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server.</p>
<p>Resource Files: How to use the resource files, how to know which language to use?</p>
<p><strong>What is smart navigation? </strong>- The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.</p>
<p><strong>What is view state</strong>? &#8211; 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</p>
<p><strong>How do you validate the controls in an ASP .NET page?</strong> &#8211; Using special validation controls that are meant for this. We have Range Validator, Email Validator.</p>
<p><strong>Can the validation be done in the server side?</strong> Or this can be done only in the Client side? &#8211; 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.</p>
<p>How to manage pagination in a page? &#8211; 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.</p>
<p><strong>What is ADO .NET and what is difference between ADO and ADO.NET?</strong> &#8211; 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.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dksinha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dksinha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dksinha.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=3&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dksinha.wordpress.com/2009/02/10/interview-questions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e997bdc31f25075feeb2f1f1e916c46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dksinha</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://dksinha.wordpress.com/2009/02/10/hello-world/</link>
		<comments>http://dksinha.wordpress.com/2009/02/10/hello-world/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 11:05:08 +0000</pubDate>
		<dc:creator>dksinha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=1&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dksinha.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dksinha.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dksinha.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dksinha.wordpress.com&amp;blog=6527159&amp;post=1&amp;subd=dksinha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dksinha.wordpress.com/2009/02/10/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8e997bdc31f25075feeb2f1f1e916c46?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dksinha</media:title>
		</media:content>
	</item>
	</channel>
</rss>
