<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6636015907737681947</id><updated>2011-07-28T08:20:20.573-07:00</updated><category term='linux'/><category term='c#'/><category term='.net'/><category term='dropdownlist'/><category term='mono'/><category term='javascript'/><category term='listbox'/><category term='about me'/><title type='text'>Coding for All</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aruns-code.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://aruns-code.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>arun</name><uri>http://www.blogger.com/profile/16479455378569558007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6636015907737681947.post-6820381615422221855</id><published>2008-07-30T22:21:00.000-07:00</published><updated>2008-07-30T22:51:11.123-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.net'/><category scheme='http://www.blogger.com/atom/ns#' term='c#'/><title type='text'>C# : Reference of Abstract class containing derived class instance</title><content type='html'>&lt;P&gt;You could have seen a object initialization like this&lt;br /&gt;  &lt;/P&gt;&lt;br /&gt;  &lt;P&gt;A a = new B();&lt;br /&gt;  &lt;/P&gt;&lt;br /&gt;  &lt;P&gt;where B is a derived class of A. But we cannot do the other way around.&lt;br /&gt;  &lt;/P&gt;&lt;br /&gt;  &lt;P&gt;B b = new A(); // because A is an abstract class&lt;br /&gt;  &lt;/P&gt;&lt;br /&gt;  &lt;P&gt;Take a look into the below example and its output.You can understand how it &lt;br /&gt;   works.&lt;/P&gt;&lt;br /&gt;  &lt;P&gt;&lt;br /&gt;   &lt;br&gt;&lt;br /&gt;   &lt;div style="BACKGROUND-COLOR: gray" rows="20" cols="70" readonly&gt;&lt;br /&gt;using System;&lt;br /&gt;using System.Text;&lt;br /&gt;&lt;br /&gt;namespace aruns_code&lt;br /&gt;{&lt;br /&gt; class testAbstract&lt;br /&gt; {&lt;br /&gt;  [STAThread]&lt;br /&gt;  static void Main(string[] args)&lt;br /&gt;  {&lt;br /&gt;   der derObj = new der();&lt;br /&gt;   derObj.nonAbs();&lt;br /&gt;&lt;br /&gt;   Console.WriteLine("\n\n");&lt;br /&gt;&lt;br /&gt;   abs absObj = new der();&lt;br /&gt;   absObj.nonAbs();&lt;br /&gt;   absObj.absMethod();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; class der : abs&lt;br /&gt; {&lt;br /&gt;  public der()&lt;br /&gt;  {&lt;br /&gt;   Console.Write("initialized der\n");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public override void absMethod()&lt;br /&gt;  {&lt;br /&gt;   Console.Write("inside der\n");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public new void nonAbs()&lt;br /&gt;  {&lt;br /&gt;   Console.Write("inside nonAbs of der\n");&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; abstract class abs&lt;br /&gt; {&lt;br /&gt;  public abs()&lt;br /&gt;  {&lt;br /&gt;   Console.Write("initialized abs\n");&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  public abstract void absMethod();&lt;br /&gt;&lt;br /&gt;  public void nonAbs()&lt;br /&gt;  {&lt;br /&gt;   Console.Write("inside nonAbs of abs\n");&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;The following is the output&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;div readonly style="BACKGROUND-COLOR: gray" rows="10" cols="70"&gt;&lt;br /&gt;initialized abs&lt;br /&gt;initialized der&lt;br /&gt;inside nonAbs of der&lt;br /&gt;&lt;br /&gt;initialized abs&lt;br /&gt;initialized der&lt;br /&gt;inside nonAbs of abs&lt;br /&gt;inside der&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6636015907737681947-6820381615422221855?l=aruns-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aruns-code.blogspot.com/feeds/6820381615422221855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6636015907737681947&amp;postID=6820381615422221855' title='39 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/6820381615422221855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/6820381615422221855'/><link rel='alternate' type='text/html' href='http://aruns-code.blogspot.com/2008/07/c-reference-of-abstract-class.html' title='C# : Reference of Abstract class containing derived class instance'/><author><name>arun</name><uri>http://www.blogger.com/profile/16479455378569558007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>39</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6636015907737681947.post-4954235870666377514</id><published>2007-11-01T00:45:00.000-07:00</published><updated>2007-11-01T00:49:42.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='mono'/><title type='text'>Introduction to MONO.net</title><content type='html'>Have you ever thought of installing and running ASP.NET web application on linux?Yes. it is made possible using &lt;a href="http://www.mono-project.com/Main_Page"  rel="nofollow"&gt;MONO framework&lt;/a&gt;. It is actually an open source implementation of .NET framework. It emulates .NET framework. So you can write your codebehind in C#.net just like you were writing for your usual ASP.NET application and compile it. Now put up a linux box with mono in it. Now you can install and run your ASP.NET application straight from the linux box!! It is really great!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6636015907737681947-4954235870666377514?l=aruns-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aruns-code.blogspot.com/feeds/4954235870666377514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6636015907737681947&amp;postID=4954235870666377514' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/4954235870666377514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/4954235870666377514'/><link rel='alternate' type='text/html' href='http://aruns-code.blogspot.com/2007/11/introduction-to-mononet.html' title='Introduction to MONO.net'/><author><name>arun</name><uri>http://www.blogger.com/profile/16479455378569558007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6636015907737681947.post-3108810134007677033</id><published>2007-05-16T02:24:00.000-07:00</published><updated>2007-05-16T02:32:18.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='listbox'/><category scheme='http://www.blogger.com/atom/ns#' term='dropdownlist'/><title type='text'>How to remove all options from a list box using javascript?</title><content type='html'>&lt;code&gt;&lt;pre class="code"&gt;&lt;br /&gt; function clearListBox(listboxID)&lt;br /&gt; {&lt;br /&gt;  // returns 1 if all items are sucessfully removed&lt;br /&gt;  // otherwise returns zero.&lt;br /&gt;  var mylistbox = document.getElementById(listboxID);&lt;br /&gt;  if(mylistbox == null)&lt;br /&gt;   return 1;&lt;br /&gt;  while(mylistbox.length &gt; 0)&lt;br /&gt;  {&lt;br /&gt;   mylistbox.remove(0);&lt;br /&gt;  }&lt;br /&gt;  return 1;&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6636015907737681947-3108810134007677033?l=aruns-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aruns-code.blogspot.com/feeds/3108810134007677033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6636015907737681947&amp;postID=3108810134007677033' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/3108810134007677033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/3108810134007677033'/><link rel='alternate' type='text/html' href='http://aruns-code.blogspot.com/2007/05/how-to-remove-all-options-from-list-box.html' title='How to remove all options from a list box using javascript?'/><author><name>arun</name><uri>http://www.blogger.com/profile/16479455378569558007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6636015907737681947.post-5229166200380873588</id><published>2007-05-16T02:23:00.000-07:00</published><updated>2007-11-01T00:45:51.328-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='about me'/><title type='text'>about me</title><content type='html'>I am a software engineer from India...&lt;br /&gt;Coding was my hobby...&lt;br /&gt;now, Coding is my profession...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6636015907737681947-5229166200380873588?l=aruns-code.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aruns-code.blogspot.com/feeds/5229166200380873588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6636015907737681947&amp;postID=5229166200380873588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/5229166200380873588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6636015907737681947/posts/default/5229166200380873588'/><link rel='alternate' type='text/html' href='http://aruns-code.blogspot.com/2007/05/about-me.html' title='about me'/><author><name>arun</name><uri>http://www.blogger.com/profile/16479455378569558007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
