<?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/"
	>

<channel>
	<title>Interview &#187; Asp.Net</title>
	<atom:link href="http://interview.msdotnetheaven.com/topics/microsoft-net-interview-questions/asp-net-interview-questions/feed" rel="self" type="application/rss+xml" />
	<link>http://interview.msdotnetheaven.com</link>
	<description>Best place for interview preparation</description>
	<lastBuildDate>Sat, 21 May 2011 21:43:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Can I inherit two difference classes to partial classes?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:50:50 +0000</pubDate>
		<dc:creator>smartbrain</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Company asked interview questions]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[RSystems]]></category>
		<category><![CDATA[interview questions and answers]]></category>
		<category><![CDATA[partial class]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=648</guid>
		<description><![CDATA[Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:
I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:
partial class myClass : XYZ
{
}
partial class myClass : ABC
{
}
Ans:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :
We can&#8217;t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.
The main reason is in C# we cant do the following:
class myClass : XYZ, ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:</p>
<p>I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:</p>
<blockquote><p>partial class myClass : XYZ</p>
<p>{</p>
<p>}</p>
<p>partial class myClass : ABC</p>
<p>{</p>
<p>}</p></blockquote>
<p><strong><span style="text-decoration: underline;">Ans</span></strong>:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :</p>
<p>We can&#8217;t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.</p>
<p>The main reason is in C# we cant do the following:</p>
<blockquote><p>class myClass : XYZ, ABC</p>
<p>{</p>
<p>}</p></blockquote>
<p>It will throw an error while we compile the code.</p>
<address><em>Note: if anyone has better views for this question please share.</em></address>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Can+I+inherit+two+difference+classes+to+partial+classes%3F+http%3A%2F%2Ftinyurl.com%2F5t4bx47" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Can+I+inherit+two+difference+classes+to+partial+classes%3F+http%3A%2F%2Ftinyurl.com%2F5t4bx47" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=648&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/what-are-classes-and-structures.html' rel='bookmark' title='Permanent Link: What are Classes and structures'>What are Classes and structures</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/csharp-interview-questions/when-you-inherit-a-protected-class-level-variablewho-is-it-available-to.html' rel='bookmark' title='Permanent Link: When you inherit a protected-class-level variable,who is it available to?'>When you inherit a protected-class-level variable,who is it available to?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-i-inherit-two-difference-classes-to-partial-classes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can we store filtered DataView in ViewState?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 13:16:05 +0000</pubDate>
		<dc:creator>smartbrain</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Microsoft .Net]]></category>
		<category><![CDATA[dataview]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[microsoft interview questions]]></category>
		<category><![CDATA[Viewstate]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=643</guid>
		<description><![CDATA[The question is asked in RSystems, Noida and I am sharing the same with you, my asnwer is as follows, if anyone have idea or more depth in answer please share where:
We can store only objects of the following types:
1. string
2. integers
3. boolean
4. Array
5. ArrayList
6. Hash tables
7. Custom types etc.
Apart from above we can share some other types too but the class must be serialized.
In view of above theory, we can say &#8216;yes, we can store DataView in ViewState for serialized class.
  Tweet This Post

Related posts:What is a view?
What ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-view.html' rel='bookmark' title='Permanent Link: What is a view?'>What is a view?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-tablespace.html' rel='bookmark' title='Permanent Link: What is a tablespace?'>What is a tablespace?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-declarations-generator-dclgen.html' rel='bookmark' title='Permanent Link: What is a Declarations Generator (DCLGEN)?'>What is a Declarations Generator (DCLGEN)?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">The question is asked in <strong>RSystems, Noida</strong> and I am sharing the same with you, my asnwer is as follows, if anyone have idea or more depth in answer please share where:</div>
<div id="_mcePaste">We can store only objects of the following types:</div>
<div id="_mcePaste">1. string</div>
<div id="_mcePaste">2. integers</div>
<div id="_mcePaste">3. boolean</div>
<div id="_mcePaste">4. Array</div>
<div id="_mcePaste">5. ArrayList</div>
<div id="_mcePaste">6. Hash tables</div>
<div id="_mcePaste">7. Custom types etc.</div>
<div id="_mcePaste">Apart from above we can share some other types too but the class must be serialized.</div>
<div id="_mcePaste">In view of above theory, we can say &#8216;yes, we can store DataView in ViewState for serialized class.</div>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Can+we+store+filtered+DataView+in+ViewState%3F+http%3A%2F%2Ftinyurl.com%2F6ztdgax" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Can+we+store+filtered+DataView+in+ViewState%3F+http%3A%2F%2Ftinyurl.com%2F6ztdgax" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=643&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-view.html' rel='bookmark' title='Permanent Link: What is a view?'>What is a view?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-tablespace.html' rel='bookmark' title='Permanent Link: What is a tablespace?'>What is a tablespace?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-declarations-generator-dclgen.html' rel='bookmark' title='Permanent Link: What is a Declarations Generator (DCLGEN)?'>What is a Declarations Generator (DCLGEN)?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I insert hyperlinks in ListBox?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-insert-hyperlinks-in-listbox.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-insert-hyperlinks-in-listbox.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 05:53:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Microsoft .Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[TCS Interview]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/index.php/mainframe-question-and-answers/mainframe-vsam-question-answer/how-can-i-insert-hyperlinks-in-listbox/</guid>
		<description><![CDATA[Its can&#8217;t possible adding hyperlinks/links to listbox.
Its just a collection items not child items and are not render while anyone put some html tags. So, its not possible
  Tweet This Post

Related posts:What does the INITIALIZE verb do?  &#8211; GS



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-cobol-question-answer/what-does-the-initialize-verb-do-gs.html' rel='bookmark' title='Permanent Link: What does the INITIALIZE verb do?  &#8211; GS'>What does the INITIALIZE verb do?  &#8211; GS</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Its can&#8217;t possible adding hyperlinks/links to listbox.</p>
<p>Its just a collection items not child items and are not render while anyone put some html tags. So, its not possible</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+can+I+insert+hyperlinks+in+ListBox%3F+http%3A%2F%2Ftinyurl.com%2F4hjcf8h" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+can+I+insert+hyperlinks+in+ListBox%3F+http%3A%2F%2Ftinyurl.com%2F4hjcf8h" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=620&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-cobol-question-answer/what-does-the-initialize-verb-do-gs.html' rel='bookmark' title='Permanent Link: What does the INITIALIZE verb do?  &#8211; GS'>What does the INITIALIZE verb do?  &#8211; GS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-insert-hyperlinks-in-listbox.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add flash movie in my project?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-add-flash-movie-in-my-project.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-add-flash-movie-in-my-project.html#comments</comments>
		<pubDate>Mon, 12 Oct 2009 13:19:32 +0000</pubDate>
		<dc:creator>smartbrain</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[flash movie]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=610</guid>
		<description><![CDATA[&#60;object classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; id=&#8221;name&#8221; width=&#8221;468&#8243; codebase=&#8221;http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0&#8243;  height=&#8221;60&#8243;&#62;
&#60;param value=&#8221;http://www.msdotnetheaven.com/shubhhostingDiwali.swf&#8221; name=&#8221;movie&#8221;/&#62;
&#60;param value=&#8221;high&#8221; name=&#8221;quality&#8221;/&#62;
&#60;param value=&#8221;transparent&#8221; name=&#8221;wmode&#8221;/&#62;
&#60;embed
pluginspage=&#8221;http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash&#8221; quality=&#8221;high&#8221; type=&#8221;application/x-shockwave-flash&#8221; height=&#8221;60&#8243; src=&#8221;http://www.msdotnetheaven.com/shubhhostingDiwali.swf&#8221; width=&#8221;468&#8243; wmode=&#8221;transparent&#8221;  name=&#8221;name&#8221;&#62;
&#60;/embed&#62;
&#60;/object&#62;
  Tweet This Post

Related posts:How to set width of Column in Gridview Control?
Difference between Clone, Close and Dispose methods of Crystal Report?
How can I create a Singleton class by using public constructor?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-set-width-of-column-in-gridview-control.html' rel='bookmark' title='Permanent Link: How to set width of Column in Gridview Control?'>How to set width of Column in Gridview Control?</a></li>
<li><a href='http://interview.msdotnetheaven.com/crystal-report/difference-between-clone-close-and-dispose-methods-of-crystal-report.html' rel='bookmark' title='Permanent Link: Difference between Clone, Close and Dispose methods of Crystal Report?'>Difference between Clone, Close and Dispose methods of Crystal Report?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html' rel='bookmark' title='Permanent Link: How can I create a Singleton class by using public constructor?'>How can I create a Singleton class by using public constructor?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<blockquote><p>&lt;object classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; id=&#8221;name&#8221; width=&#8221;468&#8243; codebase=&#8221;http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0&#8243;  height=&#8221;60&#8243;&gt;<br />
&lt;param value=&#8221;http://www.msdotnetheaven.com/shubhhostingDiwali.swf&#8221; name=&#8221;movie&#8221;/&gt;<br />
&lt;param value=&#8221;high&#8221; name=&#8221;quality&#8221;/&gt;<br />
&lt;param value=&#8221;transparent&#8221; name=&#8221;wmode&#8221;/&gt;<br />
&lt;embed<br />
pluginspage=&#8221;http://www.macromedia.com/shockwave/download/index.cgi?<br />
P1_Prod_Version=ShockwaveFlash&#8221; quality=&#8221;high&#8221; type=&#8221;application/x-shockwave-flash&#8221; height=&#8221;60&#8243; src=&#8221;http://www.msdotnetheaven.com/shubhhostingDiwali.swf&#8221; width=&#8221;468&#8243; wmode=&#8221;transparent&#8221;  name=&#8221;name&#8221;&gt;<br />
&lt;/embed&gt;<br />
&lt;/object&gt;</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+to+add+flash+movie+in+my+project%3F+http%3A%2F%2Ftinyurl.com%2F4gv3g6g" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+to+add+flash+movie+in+my+project%3F+http%3A%2F%2Ftinyurl.com%2F4gv3g6g" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=610&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-set-width-of-column-in-gridview-control.html' rel='bookmark' title='Permanent Link: How to set width of Column in Gridview Control?'>How to set width of Column in Gridview Control?</a></li>
<li><a href='http://interview.msdotnetheaven.com/crystal-report/difference-between-clone-close-and-dispose-methods-of-crystal-report.html' rel='bookmark' title='Permanent Link: Difference between Clone, Close and Dispose methods of Crystal Report?'>Difference between Clone, Close and Dispose methods of Crystal Report?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/how-can-i-create-a-singleton-class-by-using-public-constructor.html' rel='bookmark' title='Permanent Link: How can I create a Singleton class by using public constructor?'>How can I create a Singleton class by using public constructor?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-add-flash-movie-in-my-project.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set width of Column in Gridview Control?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-set-width-of-column-in-gridview-control.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-set-width-of-column-in-gridview-control.html#comments</comments>
		<pubDate>Mon, 12 Oct 2009 10:59:21 +0000</pubDate>
		<dc:creator>smartbrain</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[gridview]]></category>

		<guid isPermaLink="false">http://interview.msdotnetheaven.com/?p=606</guid>
		<description><![CDATA[By default width of column handled automatically, means columns in Gridview control are sized automaticlaly internally column cells redered as HTML cell. On the basis of requirement one can set the width dynamically also.
Following are the steps to do it;
1. Setting Column Width Dynamically:
Through code, set the width property on the ItemStyle of GridView.
Following is the code-snippet for the same:
VB.NEt:
[CODE]
Dim intColWidth As Integer = 25
GridView1.Columns(0).ItemStyle.Width = intColWidth
[/CODE]
C#:
[CODE]
int intColWidth = 25;
GridView1.Columns(0).ItemStyle.Width = intColWidth;
[/CODE]
2. Setting Column width as per Data-Content :
Write following piece of code in RowDataBound handler / event:
Note: Code is ...


Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/database-question-answer/db2-sql-codes-and-description.html' rel='bookmark' title='Permanent Link: DB2 : SQL Codes and Description'>DB2 : SQL Codes and Description</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/in-which-column-of-which-db2-catalog-would-you-find-the-length-of-rows-for-all-tables.html' rel='bookmark' title='Permanent Link: In which column of which DB2 catalog would you find the length of rows for all tables?'>In which column of which DB2 catalog would you find the length of rows for all tables?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-add-flash-movie-in-my-project.html' rel='bookmark' title='Permanent Link: How to add flash movie in my project?'>How to add flash movie in my project?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">By default width of column handled automatically, means columns in Gridview control are sized automaticlaly internally column cells redered as HTML cell. On the basis of requirement one can set the width dynamically also.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Following are the steps to do it;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">1. Setting Column Width Dynamically:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Through code, set the width property on the ItemStyle of GridView.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Following is the code-snippet for the same:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">VB.NEt:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Dim intColWidth As Integer = 25</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(0).ItemStyle.Width = intColWidth</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">C#:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">int intColWidth = 25;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(0).ItemStyle.Width = intColWidth;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">2. Setting Column width as per Data-Content :</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Write following piece of code in RowDataBound handler / event:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Note: Code is taken from MSDn for reference purpose only:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">VB.NET:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Protected widestData As Integer</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Protected Sub GridView1_RowDataBound(ByVal sender As Object, _</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Dim drv As System.Data.DataRowView</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">drv = CType(e.Row.DataItem, System.Data.DataRowView)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If e.Row.RowType = DataControlRowType.DataRow Then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If drv IsNot Nothing Then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Dim catName As String = drv(1).ToString()</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Dim catNameLen As Integer = catName.Length</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If catNameLen &gt; widestData Then</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">widestData = catNameLen</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(2).ItemStyle.Width = _</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">widestData * 30</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(2).ItemStyle.Wrap = False</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">End If</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">End If</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">End If</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">End Sub</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Protected Sub Page_Load(ByVal sender As Object, _</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">ByVal e As System.EventArgs) Handles Me.Load</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">widestData = 0</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">End Sub</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">C#:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[CODE]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">protected int widestData;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">protected void GridView1_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">System.Data.DataRowView drv = default(System.Data.DataRowView);</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">drv = (System.Data.DataRowView)e.Row.DataItem;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (e.Row.RowType == DataControlRowType.DataRow) {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (drv != null) {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">string catName = drv(1).ToString();</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">int catNameLen = catName.Length;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">if (catNameLen &gt; widestData) {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">widestData = catNameLen;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(2).ItemStyle.Width = widestData * 30;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">GridView1.Columns(2).ItemStyle.Wrap = false;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">protected void Â // ERROR: Handles clauses are not supported in C#</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Page_Load(object sender, System.EventArgs e)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">{</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">widestData = 0;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[/CODE]</div>
<p>By default width of column handled automatically, means columns in Gridview control are sized automaticlaly internally column cells redered as HTML cell. On the basis of requirement one can set the width dynamically also.</p>
<p>Following are the steps to do it;</p>
<p>1. Setting Column Width Dynamically:</p>
<p>Through code, set the width property on the ItemStyle of GridView.</p>
<p>Following is the code-snippet for the same:</p>
<p>VB.NEt:</p>
<blockquote><p>Dim intColWidth As Integer = 25</p>
<p>GridView1.Columns(0).ItemStyle.Width = intColWidth</p></blockquote>
<p>C#:</p>
<blockquote><p>int intColWidth = 25;</p>
<p>GridView1.Columns(0).ItemStyle.Width = intColWidth;</p></blockquote>
<p>2. Setting Column width as per Data-Content :</p>
<p>Write following piece of code in RowDataBound handler / event:</p>
<p>Note: Code is taken from MSDn for reference purpose only:</p>
<p>VB.NET:</p>
<blockquote><p>Protected widestData As Integer</p>
<p>Protected Sub GridView1_RowDataBound(ByVal sender As Object, _</p>
<p>ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs)</p>
<p>Dim drv As System.Data.DataRowView</p>
<p>drv = CType(e.Row.DataItem, System.Data.DataRowView)</p>
<p>If e.Row.RowType = DataControlRowType.DataRow Then</p>
<p>If drv IsNot Nothing Then</p>
<p>Dim catName As String = drv(1).ToString()</p>
<p>Dim catNameLen As Integer = catName.Length</p>
<p>If catNameLen &gt; widestData Then</p>
<p>widestData = catNameLen</p>
<p>GridView1.Columns(2).ItemStyle.Width = _</p>
<p>widestData * 30</p>
<p>GridView1.Columns(2).ItemStyle.Wrap = False</p>
<p>End If</p>
<p>End If</p>
<p>End If</p>
<p>End Sub</p>
<p>Protected Sub Page_Load(ByVal sender As Object, _</p>
<p>ByVal e As System.EventArgs) Handles Me.Load</p>
<p>widestData = 0</p>
<p>End Sub</p></blockquote>
<p>C#:</p>
<blockquote><p>protected int widestData;</p>
<p>protected void GridView1_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)</p>
<p>{</p>
<p>System.Data.DataRowView drv = default(System.Data.DataRowView);</p>
<p>drv = (System.Data.DataRowView)e.Row.DataItem;</p>
<p>if (e.Row.RowType == DataControlRowType.DataRow) {</p>
<p>if (drv != null) {</p>
<p>string catName = drv(1).ToString();</p>
<p>int catNameLen = catName.Length;</p>
<p>if (catNameLen &gt; widestData) {</p>
<p>widestData = catNameLen;</p>
<p>GridView1.Columns(2).ItemStyle.Width = widestData * 30;</p>
<p>GridView1.Columns(2).ItemStyle.Wrap = false;</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>protected void Â // ERROR: Handles clauses are not supported in C#</p>
<p>Page_Load(object sender, System.EventArgs e)</p>
<p>{</p>
<p>widestData = 0;</p>
<p>}</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=How+to+set+width+of+Column+in+Gridview+Control%3F+http%3A%2F%2Ftinyurl.com%2F4r6u6lu" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=How+to+set+width+of+Column+in+Gridview+Control%3F+http%3A%2F%2Ftinyurl.com%2F4r6u6lu" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=606&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/database-question-answer/db2-sql-codes-and-description.html' rel='bookmark' title='Permanent Link: DB2 : SQL Codes and Description'>DB2 : SQL Codes and Description</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/in-which-column-of-which-db2-catalog-would-you-find-the-length-of-rows-for-all-tables.html' rel='bookmark' title='Permanent Link: In which column of which DB2 catalog would you find the length of rows for all tables?'>In which column of which DB2 catalog would you find the length of rows for all tables?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-add-flash-movie-in-my-project.html' rel='bookmark' title='Permanent Link: How to add flash movie in my project?'>How to add flash movie in my project?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/how-to-set-width-of-column-in-gridview-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can you edit data in the Repeater control?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-you-edit-data-in-the-repeater-control.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-you-edit-data-in-the-repeater-control.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 12:13:51 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=559</guid>
		<description><![CDATA[No, it just reads the information from its data source.
  Tweet This Post

Related posts:What is a data page?
I have a COBOL program that Accepts some input data.  How do you code the JCL statement for this? ( How do you code instream data in a JCL? )



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-data-page.html' rel='bookmark' title='Permanent Link: What is a data page?'>What is a data page?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-jcl-question-answer/i-have-a-cobol-program-that-accepts-some-input-data-how-do-you-code-the-jcl-statement-for-this-how-do-you-code-instream-data-in-a-jcl.html' rel='bookmark' title='Permanent Link: I have a COBOL program that Accepts some input data.  How do you code the JCL statement for this? ( How do you code instream data in a JCL? )'>I have a COBOL program that Accepts some input data.  How do you code the JCL statement for this? ( How do you code instream data in a JCL? )</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>No, it just reads the information from its data source.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Can+you+edit+data+in+the+Repeater+control%3F+http%3A%2F%2Ftinyurl.com%2F4v784sa" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Can+you+edit+data+in+the+Repeater+control%3F+http%3A%2F%2Ftinyurl.com%2F4v784sa" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=559&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-is-a-data-page.html' rel='bookmark' title='Permanent Link: What is a data page?'>What is a data page?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-jcl-question-answer/i-have-a-cobol-program-that-accepts-some-input-data-how-do-you-code-the-jcl-statement-for-this-how-do-you-code-instream-data-in-a-jcl.html' rel='bookmark' title='Permanent Link: I have a COBOL program that Accepts some input data.  How do you code the JCL statement for this? ( How do you code instream data in a JCL? )'>I have a COBOL program that Accepts some input data.  How do you code the JCL statement for this? ( How do you code instream data in a JCL? )</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/can-you-edit-data-in-the-repeater-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should validation(did the user enter a real date) occur server-ride or client-side?why?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/should-validationdid-the-user-enter-a-real-date-occur-server-ride-or-client-sidewhy.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/should-validationdid-the-user-enter-a-real-date-occur-server-ride-or-client-sidewhy.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 11:36:06 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Asp.Net interview question]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=562</guid>
		<description><![CDATA[Client-side. Ã‚Â This reduces an additional request to the server to validate the user input.
  Tweet This Post

Related posts:I have a check boxes in datagrid and want to checked and unchecked on a specific operation. How to do this at client side?
Change date format mm/dd/yy to dd/mm/yy using query?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/i-have-a-check-boxes-in-datagrid-and-want-to-checked-and-unchecked-on-a-specific-operation-how-to-do-this-at-client-side.html' rel='bookmark' title='Permanent Link: I have a check boxes in datagrid and want to checked and unchecked on a specific operation. How to do this at client side?'>I have a check boxes in datagrid and want to checked and unchecked on a specific operation. How to do this at client side?</a></li>
<li><a href='http://interview.msdotnetheaven.com/database-question-answer/mssql-question-answer/change-date-format-mmddyy-to-ddmmyy-using-query.html' rel='bookmark' title='Permanent Link: Change date format mm/dd/yy to dd/mm/yy using query?'>Change date format mm/dd/yy to dd/mm/yy using query?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Client-side. Ã‚Â This reduces an additional request to the server to validate the user input.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Should+validation%28did+the+user+enter+a+real+date%29+occur+server-ride+or+client-side%3Fwhy%3F+http%3A%2F%2Ftinyurl.com%2F4a5kyg4" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Should+validation%28did+the+user+enter+a+real+date%29+occur+server-ride+or+client-side%3Fwhy%3F+http%3A%2F%2Ftinyurl.com%2F4a5kyg4" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=562&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/i-have-a-check-boxes-in-datagrid-and-want-to-checked-and-unchecked-on-a-specific-operation-how-to-do-this-at-client-side.html' rel='bookmark' title='Permanent Link: I have a check boxes in datagrid and want to checked and unchecked on a specific operation. How to do this at client side?'>I have a check boxes in datagrid and want to checked and unchecked on a specific operation. How to do this at client side?</a></li>
<li><a href='http://interview.msdotnetheaven.com/database-question-answer/mssql-question-answer/change-date-format-mmddyy-to-ddmmyy-using-query.html' rel='bookmark' title='Permanent Link: Change date format mm/dd/yy to dd/mm/yy using query?'>Change date format mm/dd/yy to dd/mm/yy using query?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/should-validationdid-the-user-enter-a-real-date-occur-server-ride-or-client-sidewhy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What are the different types of assemblies?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-are-the-different-types-of-assemblies.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-are-the-different-types-of-assemblies.html#comments</comments>
		<pubDate>Sun, 30 Aug 2009 18:06:34 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[assemblies]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=538</guid>
		<description><![CDATA[Private, Ã‚Â  Public/ share, and Ã‚Â Satellite.
There is some debate for Satelite assemblies some says this is a type some says this is a technique.
  Tweet This Post

Related posts:What are the three types of page locks that can be &#8220;held&#8221;?
How many types of libraries are there in JCL ?
Is it possible to create constructor for an Abstract class?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-are-the-three-types-of-page-locks-that-can-be-held.html' rel='bookmark' title='Permanent Link: What are the three types of page locks that can be &#8220;held&#8221;?'>What are the three types of page locks that can be &#8220;held&#8221;?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-jcl-question-answer/how-many-types-of-libraries-are-there-in-jcl.html' rel='bookmark' title='Permanent Link: How many types of libraries are there in JCL ?'>How many types of libraries are there in JCL ?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Private, Ã‚Â  Public/ share, and Ã‚Â Satellite.</p>
<p>There is some debate for Satelite assemblies some says this is a type some says this is a technique.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=What+are+the+different+types+of+assemblies%3F+http%3A%2F%2Ftinyurl.com%2F4oa7r8c" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=What+are+the+different+types+of+assemblies%3F+http%3A%2F%2Ftinyurl.com%2F4oa7r8c" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=538&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-db2-question-answer/what-are-the-three-types-of-page-locks-that-can-be-held.html' rel='bookmark' title='Permanent Link: What are the three types of page locks that can be &#8220;held&#8221;?'>What are the three types of page locks that can be &#8220;held&#8221;?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/mainframe-jcl-question-answer/how-many-types-of-libraries-are-there-in-jcl.html' rel='bookmark' title='Permanent Link: How many types of libraries are there in JCL ?'>How many types of libraries are there in JCL ?</a></li>
<li><a href='http://interview.msdotnetheaven.com/general-interview-stuffs/is-it-possible-to-create-constructor-for-an-abstract-class.html' rel='bookmark' title='Permanent Link: Is it possible to create constructor for an Abstract class?'>Is it possible to create constructor for an Abstract class?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-are-the-different-types-of-assemblies.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the Global.asax used for?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-the-global-asax-used-for.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-the-global-asax-used-for.html#comments</comments>
		<pubDate>Sun, 30 Aug 2009 18:03:58 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=547</guid>
		<description><![CDATA[The Global. asax (including Global. asax.cs) is used to implement application and session level events.
All variables are available of Global.asax through out the application.
  Tweet This Post

Related posts:Can we maintain state in webservices?
COBOL interview Questions Part Ã¢â‚¬â€œ IV



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-maintain-state-in-webservices.html' rel='bookmark' title='Permanent Link: Can we maintain state in webservices?'>Can we maintain state in webservices?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/cobol-interview-questions-part-%e2%80%93-iv.html' rel='bookmark' title='Permanent Link: COBOL interview Questions Part Ã¢â‚¬â€œ IV'>COBOL interview Questions Part Ã¢â‚¬â€œ IV</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The Global. asax (including Global. asax.cs) is used to implement application and session level events.</p>
<p>All variables are available of Global.asax through out the application.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=What+is+the+Global.asax+used+for%3F+http%3A%2F%2Ftinyurl.com%2F4jjkfey" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=What+is+the+Global.asax+used+for%3F+http%3A%2F%2Ftinyurl.com%2F4jjkfey" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=547&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-maintain-state-in-webservices.html' rel='bookmark' title='Permanent Link: Can we maintain state in webservices?'>Can we maintain state in webservices?</a></li>
<li><a href='http://interview.msdotnetheaven.com/mainframe-question-and-answers/cobol-interview-questions-part-%e2%80%93-iv.html' rel='bookmark' title='Permanent Link: COBOL interview Questions Part Ã¢â‚¬â€œ IV'>COBOL interview Questions Part Ã¢â‚¬â€œ IV</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-the-global-asax-used-for.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can we maintain state in webservices?</title>
		<link>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-maintain-state-in-webservices.html</link>
		<comments>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-maintain-state-in-webservices.html#comments</comments>
		<pubDate>Fri, 14 Aug 2009 21:30:58 +0000</pubDate>
		<dc:creator>meghna</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Microsoft .Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[interview questions]]></category>

		<guid isPermaLink="false">http://www.interview.msdotnetheaven.com/?p=520</guid>
		<description><![CDATA[There is no direct way provided by webservices to maintain state. But webservices can maintain the state by using asp.net instrinsic objects i.e Session and application.
using System.web.Services;
public class myWebService : Webservices
{
[Webmethod()]
public void maintainState(string value)
{
Session(&#8220;Val&#8221;) = value;
}
}
  Tweet This Post

Related posts:What is the Global.asax used for?
What is Form authentication?
Can we store filtered DataView in ViewState?



Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-the-global-asax-used-for.html' rel='bookmark' title='Permanent Link: What is the Global.asax used for?'>What is the Global.asax used for?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-form-authentication.html' rel='bookmark' title='Permanent Link: What is Form authentication?'>What is Form authentication?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There is no direct way provided by webservices to maintain state. But webservices can maintain the state by using asp.net instrinsic objects i.e Session and application.</p>
<blockquote><p>using System.web.Services;</p>
<p>public class myWebService : Webservices</p>
<p>{</p>
<p>[Webmethod()]</p>
<p>public void maintainState(string value)</p>
<p>{</p>
<p>Session(&#8220;Val&#8221;) = value;</p>
<p>}</p>
<p>}</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Can+we+maintain+state+in+webservices%3F+http%3A%2F%2Ftinyurl.com%2F4rrxbad" title="Post to Twitter"><img class="nothumb" src="http://interview.msdotnetheaven.com/wp-content/plugins/tweet-this/icons/de/twitter/de/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Can+we+maintain+state+in+webservices%3F+http%3A%2F%2Ftinyurl.com%2F4rrxbad" title="Post to Twitter">Tweet This Post</a></p></div><img src="http://interview.msdotnetheaven.com/?ak_action=api_record_view&id=520&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-the-global-asax-used-for.html' rel='bookmark' title='Permanent Link: What is the Global.asax used for?'>What is the Global.asax used for?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/asp-net-interview-questions/what-is-form-authentication.html' rel='bookmark' title='Permanent Link: What is Form authentication?'>What is Form authentication?</a></li>
<li><a href='http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-store-filtered-dataview-in-viewstate.html' rel='bookmark' title='Permanent Link: Can we store filtered DataView in ViewState?'>Can we store filtered DataView in ViewState?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://interview.msdotnetheaven.com/microsoft-net-interview-questions/can-we-maintain-state-in-webservices.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

