Posts

Showing posts from March, 2010

Set Difference Minus Operation with LINQ using Except

If you have morethan two columns to compare in List Object, you need to use Equality Compare Based on Class Objects. The following program compares two list objects and applies Set Minus operation: protected void Page_Load( object sender, EventArgs e)         {             List< listclass > lst1 = new List < listclass > {                               new listclass { no = 1, revsion =0, title = "title1" },                             new listclass { no = 2, revsion =0, title = "title2" },                             new listclass { no = 3, revsion =0, title = "titleN" },                             new listclass { no = 4, revsion =0, title = "title4" },                          };             List < listclass > lst2 = new List < listclass > {                              new listclass { no = 1, revsion =0, title = "title1" },                             new listclass { no = 2, revsion =0, tit

Resize of IFrame

 [script type="text/javascript"]    document.domain='your domain'     function AdjustIFrame(h, w,framename)     {         document.getElementById(framename).style.height = h + "px";         document.getElementById(framename).style.width = w + "px";     } [/script] [iframe style="border:none;" scrolling="no"  frameborder="0px" src="yoursite"  width="100%" id="testframe"][/iframe]