<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Software Code Help - Interview Question ASP.NET</title>
    <link>http://blog.softwarecodehelp.com/</link>
    <description>Blog</description>
    <language>en-us</language>
    <copyright>SoftwareCodeHelp</copyright>
    <lastBuildDate>Fri, 22 Jan 2010 05:51:33 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>rajshekher@gmail.com</managingEditor>
    <webMaster>rajshekher@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=e5dfb912-e4fc-40e0-84a8-fb3298566c3b</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,e5dfb912-e4fc-40e0-84a8-fb3298566c3b.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,e5dfb912-e4fc-40e0-84a8-fb3298566c3b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=e5dfb912-e4fc-40e0-84a8-fb3298566c3b</wfw:commentRss>
      <title>What will be the use of Impersonation in ASP.NET?</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,e5dfb912-e4fc-40e0-84a8-fb3298566c3b.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2010/01/22/WhatWillBeTheUseOfImpersonationInASPNET.aspx</link>
      <pubDate>Fri, 22 Jan 2010 05:51:33 GMT</pubDate>
      <description>&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;At times users access
a resource as though they were someone else. This is known as impersonation. For example,
if a web page has no access controls, then any user can access that web page. HTML
pages, ASP pages, and components in version 3.0 and earlier can be accessed through
two accounts named IUSR_machinename and IWAM_machinename. Both the accounts are set
up during IIS installation, and are automatically added to all the folders in every
web site on the server.&lt;/span&gt;&lt;span style="COLOR: black"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;Anonymous access
to a resource in IIS makes the task of identifying a user extremely difficult. But
there is no need to authenticate a user in the case of IIS. When IIS receives a request
for a web page or other resource that has permission for anonymous access, IIS treats
the IUSR_machinename account as the user's account, to access the resources. If the
resource requested by the user is an ASP page that uses a COM or COM+ component, that
component is executed using the IWAM_machinename account. &lt;/span&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;In ASP.NET, when
impersonation is turned off, the resources can be accessed using a "local system process"
account. When impersonation is turned on, ASP.NET executes every resource using the
account of a specified user who is authenticated when the user makes the request.
If you specify the IUSR_machinename account to be used as the user account, then ASP.NET
will behave like previous versions of ASP, in providing access to the resources.&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt; 
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;In ASP.NET, you
first need to check whether the application is configured to use impersonation. In
the case of IIS, the IIS impersonates users with its own IUSR account. In the case
of ASP.NET, impersonation is used to decide whether the user's request should be executed
using the account of the requested user, or that of a local system-process account
that ASP.NET uses for anonymous requests. 
&lt;br&gt;
&lt;/span&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;The concept of impersonation
is complex to some extent due to the fact that ASP.NET uses the dynamic compilation
features of the .NET Framework. The IUSR account has only limited permissions on the
local machine, and so is not suitable without some reconfiguration. This account is
also used by IIS to access resources like HTML pages, documents, and zip files that
are not executed as part of the .NET Framework. 
&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt; 
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;If impersonation
is enabled in an ASP.NET application then:&lt;br&gt;
• If anonymous access is enabled in IIS, the request is made using the IUSR_machinename
account.&lt;br&gt;
• If anonymous access is disabled in IIS, the request is made using the account of
the authenticated user.&lt;br&gt;
• In either case, permissions for the account are checked in the Windows Access Control
List (ACL) for the resource(s) that a user requests, and a resource is only available
if the account they are running under is valid for that resource.&lt;/span&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" align=justify&gt;
&lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"&gt;If impersonation
is disabled in an ASP.NET application then:&lt;br&gt;
• If anonymous access is enabled in IIS, the request is made using the system-level
process account.&lt;br&gt;
• If anonymous access is disabled in IIS, the request is made using the account of
the authenticated user.&lt;br&gt;
• In either case, permissions for the account are checked in the Windows ACL for the
resource(s) that a user requests, and a resource is only available if the account
they are running under is valid for that resource.&lt;/span&gt;&lt;span style="COLOR: black"&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=e5dfb912-e4fc-40e0-84a8-fb3298566c3b" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,e5dfb912-e4fc-40e0-84a8-fb3298566c3b.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=3a1fa342-2fab-4171-913e-0bac9381eaa3</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,3a1fa342-2fab-4171-913e-0bac9381eaa3.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,3a1fa342-2fab-4171-913e-0bac9381eaa3.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=3a1fa342-2fab-4171-913e-0bac9381eaa3</wfw:commentRss>
      <title>Difference between Session state nad View state ? </title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,3a1fa342-2fab-4171-913e-0bac9381eaa3.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2010/01/18/DifferenceBetweenSessionStateNadViewState.aspx</link>
      <pubDate>Mon, 18 Jan 2010 06:02:46 GMT</pubDate>
      <description>&lt;p style="MARGIN-LEFT: 0.5in"&gt;
&lt;p class=MsoNormal style="MARGIN: 6pt 0in 12pt 1in; TEXT-INDENT: -0.25in; LINE-HEIGHT: 18pt; mso-list: l0 level2 lfo1; tab-stops: list 1.0in"&gt;
&lt;span style="FONT-SIZE: 8.5pt; COLOR: #001554; FONT-FAMILY: Verdana"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
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:
&lt;/p&gt;
&lt;p&gt;
o&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Large amounts of data - 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. 
&lt;/p&gt;
&lt;p&gt;
o&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Secure data - 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. 
&lt;/p&gt;
&lt;p&gt;
o&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Problems in serializing of objects into
view state - View state is efficient for a small set of data. Other types like DataSet
are slower and can generate a very large view state. 
&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=3a1fa342-2fab-4171-913e-0bac9381eaa3" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,3a1fa342-2fab-4171-913e-0bac9381eaa3.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=695e32cb-6f77-46cf-91f9-e022eb87ba5b</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,695e32cb-6f77-46cf-91f9-e022eb87ba5b.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,695e32cb-6f77-46cf-91f9-e022eb87ba5b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=695e32cb-6f77-46cf-91f9-e022eb87ba5b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <strong>Difference between DataGrid and Grid View is given below:-</strong>
        </p>
        <p>
          <strong>Datagrid..</strong>
          <br />
1.Code requires to handle the SortCommand event and rebind grid required.<br />
2.Code requires to handle the PageIndexChanged.<br />
3.Need extensive code for update operation on data.<br />
4.When compared to gridview less events supported.<br /><br /><strong>Grid View : ..</strong><br />
1.No code required.<br />
2.No code required for PageIndexChanged.<br />
3.Needs little code for update operation.<br />
4.GridView supports events fired before and after database updates<br /></p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=695e32cb-6f77-46cf-91f9-e022eb87ba5b" />
      </body>
      <title>Difference between DataGrid and GridView in ASP.NET 2.0</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,695e32cb-6f77-46cf-91f9-e022eb87ba5b.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/12/01/DifferenceBetweenDataGridAndGridViewInASPNET20.aspx</link>
      <pubDate>Tue, 01 Dec 2009 11:34:14 GMT</pubDate>
      <description>&lt;p&gt;
&lt;strong&gt;Difference between DataGrid and Grid View is given below:-&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Datagrid..&lt;/strong&gt;
&lt;br&gt;
1.Code requires to handle the SortCommand event and rebind grid required.&lt;br&gt;
2.Code requires to handle the PageIndexChanged.&lt;br&gt;
3.Need extensive code for update operation on data.&lt;br&gt;
4.When compared to gridview less events supported.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Grid View : ..&lt;/strong&gt;
&lt;br&gt;
1.No code required.&lt;br&gt;
2.No code required for PageIndexChanged.&lt;br&gt;
3.Needs little code for update operation.&lt;br&gt;
4.GridView supports events fired before and after database updates&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=695e32cb-6f77-46cf-91f9-e022eb87ba5b" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,695e32cb-6f77-46cf-91f9-e022eb87ba5b.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=5d43553e-deb0-4995-839f-e64e4bf2ed49</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,5d43553e-deb0-4995-839f-e64e4bf2ed49.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,5d43553e-deb0-4995-839f-e64e4bf2ed49.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=5d43553e-deb0-4995-839f-e64e4bf2ed49</wfw:commentRss>
      <title>Advantages of ASP.NET</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,5d43553e-deb0-4995-839f-e64e4bf2ed49.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/11/19/AdvantagesOfASPNET.aspx</link>
      <pubDate>Thu, 19 Nov 2009 10:27:53 GMT</pubDate>
      <description>&lt;ol type=1&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Separation
of Code from HTML&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;
To make a clean sweep, with ASP.NET you have the ability to completely separate layout
and business logic. This makes it much easier for teams of programmers and designers
to collaborate efficiently. This makes it much easier for teams of programmers and
designers to collaborate efficiently. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Support
for compiled languages&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;
developer can use VB.NET and access features such as strong typing and object-oriented
programming. Using compiled languages also means that ASP.NET pages do not suffer
the performance penalties associated with interpreted code. ASP.NET pages are precompiled
to byte-code and Just In Time (JIT) compiled when first requested. Subsequent requests
are directed to the fully compiled code, which is cached until the source changes. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Use services
provided by the .NET Framework&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;
The .NET Framework provides class libraries that can be used by your application.
Some of the key classes help you with input/output, access to operating system services,
data access, or even debugging. We will go into more detail on some of them in this
module. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Graphical
Development Environment&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;
Visual Studio .NET provides a very rich development environment for Web&lt;br&gt;
developers. You can drag and drop controls and set properties the way you do in Visual
Basic 6. And you have full IntelliSense support, not only for your code, but also
for HTML and XML. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;State management&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;
To refer to the problems mentioned before, ASP.NET provides solutions for session
and application state management. State information can, for example, be kept in memory
or stored in a database. It can be shared across Web farms, and state information
can be recovered, even if the server fails or the connection breaks down. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 12pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Update files
while the server is running!&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;
&lt;br&gt;
Components of your application can be updated while the server is online and clients
are connected. The Framework will use the new files as soon as they are copied to
the application. Removed or old files that are still in use are kept in memory until
the clients have finished. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: black; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in; mso-margin-bottom-alt: auto"&gt;
&lt;div align=justify&gt;&lt;b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;XML-Based
Configuration Files&lt;br&gt;
&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"&gt;Configuration settings
in ASP.NET are stored in XML files that you can easily read and edit. You can also
easily copy these to another server, along with the other files that comprise your
application. 
&lt;o:p&gt;&lt;/o:p&gt;
&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=5d43553e-deb0-4995-839f-e64e4bf2ed49" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,5d43553e-deb0-4995-839f-e64e4bf2ed49.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=b92e9620-fa70-4d8a-a549-bc9f6faf1a51</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,b92e9620-fa70-4d8a-a549-bc9f6faf1a51.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,b92e9620-fa70-4d8a-a549-bc9f6faf1a51.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=b92e9620-fa70-4d8a-a549-bc9f6faf1a51</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
              <font face="Verdana" color="#000000" size="2">In
case, when you are facing colspan problem in datagarid paging section, then use this
code to correcting colspan problem.</font>
            </span>
          </span>
        </pre>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            </span>
          </span>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            </span>
          </span> </pre>
        <pre>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">protected</span>
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">void</span> dGrid_PreRender(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">object</span> sender,
EventArgs e)         {             <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">try</span>             {
                DataGrid
dgSidDetails <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span> (DataGrid)sender;
                <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Fix
for numbering being in a left aligned column</span>                 <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//For
some reason, the ColumnSpan property is ignored andnot rendered</span>                     <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//unless
set using the Attributes</span>                     <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (dgSidDetails.AllowPaging
== <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">true</span> &amp;&amp;
dgSidDetails.AutoGenerateColumns ==    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">false</span>)
                    {
                        <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Get
the Table</span>                         System.Web.UI.WebControls.Table
tab <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">=</span>                             (System.Web.UI.WebControls.Table)dgSidDetails.Controls[0];
                        <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Change
the Top Pager</span>                         <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (dgSidDetails.PagerStyle.Position
== PagerPosition.Bottom ||                             dgSidDetails.PagerStyle.Position
== PagerPosition.TopAndBottom)                         {
                            tab.Rows[tab.Rows.Count <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">-</span>                                 1].Cells[0].Attributes.Add(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"colspan"</span>,
                                tab.Rows[1].Cells.Count.ToString());
                        }
                        <span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">//Change
the Bottom Pager</span>                         <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">if</span> (dgSidDetails.PagerStyle.Position
== PagerPosition.Top ||                             dgSidDetails.PagerStyle.Position
== PagerPosition.TopAndBottom)                         {
                            tab.Rows[0].Cells[0].Attributes.Add(<span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4">"colspan"</span>,
                                tab.Rows[1].Cells.Count.ToString());
                        }
                    }
            }             <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">catch</span> (Exception
ex)             {             }
        }</span>
        </pre>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b92e9620-fa70-4d8a-a549-bc9f6faf1a51" />
      </body>
      <title>Paging Colspan problem in Datagrid ASP.Net 1.1</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,b92e9620-fa70-4d8a-a549-bc9f6faf1a51.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/08/11/PagingColspanProblemInDatagridASPNet11.aspx</link>
      <pubDate>Tue, 11 Aug 2009 11:29:41 GMT</pubDate>
      <description>&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;font face=Verdana color=#000000 size=2&gt;In
case, when you are facing colspan problem in datagarid paging section, then use this
code to correcting colspan problem.&lt;/font&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;protected&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;void&lt;/span&gt; dGrid_PreRender(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;object&lt;/span&gt; sender,
EventArgs e) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;try&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataGrid
dgSidDetails &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; (DataGrid)sender;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Fix
for numbering being in a left aligned column&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//For
some reason, the ColumnSpan property is ignored andnot rendered&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//unless
set using the Attributes&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (dgSidDetails.AllowPaging
== &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;true&lt;/span&gt; &amp;amp;&amp;amp;
dgSidDetails.AutoGenerateColumns ==&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;false&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Get
the Table&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Web.UI.WebControls.Table
tab &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;=&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(System.Web.UI.WebControls.Table)dgSidDetails.Controls[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Change
the Top Pager&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (dgSidDetails.PagerStyle.Position
== PagerPosition.Bottom || &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dgSidDetails.PagerStyle.Position
== PagerPosition.TopAndBottom) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tab.Rows[tab.Rows.Count &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;-&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1].Cells[0].Attributes.Add(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"colspan"&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tab.Rows[1].Cells.Count.ToString());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: green; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;//Change
the Bottom Pager&lt;/span&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;if&lt;/span&gt; (dgSidDetails.PagerStyle.Position
== PagerPosition.Top || &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dgSidDetails.PagerStyle.Position
== PagerPosition.TopAndBottom) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tab.Rows[0].Cells[0].Attributes.Add(&lt;span style="FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Courier New; BACKGROUND-COLOR: #e4e4e4"&gt;"colspan"&lt;/span&gt;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tab.Rows[1].Cells.Count.ToString());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;catch&lt;/span&gt; (Exception
ex) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/pre&gt;&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=b92e9620-fa70-4d8a-a549-bc9f6faf1a51" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,b92e9620-fa70-4d8a-a549-bc9f6faf1a51.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
    <item>
      <trackback:ping>http://blog.softwarecodehelp.com/Trackback.aspx?guid=ca7db53d-f13d-4b0f-a081-eef6eaed19d7</trackback:ping>
      <pingback:server>http://blog.softwarecodehelp.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.softwarecodehelp.com/PermaLink,guid,ca7db53d-f13d-4b0f-a081-eef6eaed19d7.aspx</pingback:target>
      <dc:creator>Raj Shekhar</dc:creator>
      <wfw:comment>http://blog.softwarecodehelp.com/CommentView,guid,ca7db53d-f13d-4b0f-a081-eef6eaed19d7.aspx</wfw:comment>
      <wfw:commentRss>http://blog.softwarecodehelp.com/SyndicationService.asmx/GetEntryCommentsRss?guid=ca7db53d-f13d-4b0f-a081-eef6eaed19d7</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
ASP.NET provides the following additional benefits:
</p>
        <p>
          <strong>Simplified development:</strong> ASP.NET offers a very rich object model that
developers can use to reduce the amount of code they need to write.
</p>
        <p>
          <strong>Language independence:</strong> ASP pages must be written with scripting.
In other words, ASP pages must be written in a language that is interpreted rather
than compiled. ASP.NET allows compiled languages to be used, providing better performance
and cross-language compatibility.
</p>
        <p>
          <strong>Simplified deployment:</strong> With .NET components, deployment is as easy
as copying a component assembly to its desired location.
</p>
        <p>
          <strong>Cross-client capability:</strong> One of the foremost problems facing developers
today is writing code that can be rendered correctly on multiple client types. For
example, writing one script that will render correctly in Internet Explorer 5.5 and
Netscape Navigator 4.7, and on a PDA and a mobile phone is very difficult, if not
impossible, and time consuming. ASP.NET provides rich server-side components that
can automatically produce output specifically targeted at each type of client.
</p>
        <p>
          <strong>Web services:</strong> ASP.NET provides features that allow ASP.NET developers
to effortlessly create Web services that can be consumed by any client that understands
HTTP and XML, the de facto language for inter-device communication.
</p>
        <p>
          <strong>Performance:</strong> ASP.NET pages are compiled whereas ASP pages are interpreted.
When an ASP.NET page is first requested, it is compiled and cached, or saved in memory,
by the .NET Common Language Runtime (CLR). This cached copy can then be re-used for
each subsequent request for the page. Performance is thereby improved because after
the first request, the code can run from a much faster compiled version.<br /></p>
        <img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=ca7db53d-f13d-4b0f-a081-eef6eaed19d7" />
      </body>
      <title>The Benefits of ASP.NET over ASP.</title>
      <guid isPermaLink="false">http://blog.softwarecodehelp.com/PermaLink,guid,ca7db53d-f13d-4b0f-a081-eef6eaed19d7.aspx</guid>
      <link>http://blog.softwarecodehelp.com/2009/07/09/TheBenefitsOfASPNETOverASP.aspx</link>
      <pubDate>Thu, 09 Jul 2009 06:19:56 GMT</pubDate>
      <description>&lt;p&gt;
ASP.NET provides the following additional benefits:
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Simplified development:&lt;/strong&gt; ASP.NET offers a very rich object model that
developers can use to reduce the amount of code they need to write.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Language independence:&lt;/strong&gt; ASP pages must be written with scripting.
In other words, ASP pages must be written in a language that is interpreted rather
than compiled. ASP.NET allows compiled languages to be used, providing better performance
and cross-language compatibility.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Simplified deployment:&lt;/strong&gt; With .NET components, deployment is as easy
as copying a component assembly to its desired location.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Cross-client capability:&lt;/strong&gt; One of the foremost problems facing developers
today is writing code that can be rendered correctly on multiple client types. For
example, writing one script that will render correctly in Internet Explorer 5.5 and
Netscape Navigator 4.7, and on a PDA and a mobile phone is very difficult, if not
impossible, and time consuming. ASP.NET provides rich server-side components that
can automatically produce output specifically targeted at each type of client.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Web services:&lt;/strong&gt; ASP.NET provides features that allow ASP.NET developers
to effortlessly create Web services that can be consumed by any client that understands
HTTP and XML, the de facto language for inter-device communication.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Performance:&lt;/strong&gt; ASP.NET pages are compiled whereas ASP pages are interpreted.
When an ASP.NET page is first requested, it is compiled and cached, or saved in memory,
by the .NET Common Language Runtime (CLR). This cached copy can then be re-used for
each subsequent request for the page. Performance is thereby improved because after
the first request, the code can run from a much faster compiled version.&lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.softwarecodehelp.com/aggbug.ashx?id=ca7db53d-f13d-4b0f-a081-eef6eaed19d7" /&gt;</description>
      <comments>http://blog.softwarecodehelp.com/CommentView,guid,ca7db53d-f13d-4b0f-a081-eef6eaed19d7.aspx</comments>
      <category>Interview Question ASP.NET</category>
    </item>
  </channel>
</rss>