<?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:blogger='http://schemas.google.com/blogger/2008' 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-5634423606814013574</id><updated>2024-09-14T07:41:33.298-07:00</updated><category term="apex"/><category term="salesforce"/><category term="crm"/><title type='text'>I&amp;amp;Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rain4all.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rain4all.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15841494668624541715</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.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>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5634423606814013574.post-1412185474619343586</id><published>2012-04-30T04:24:00.001-07:00</published><updated>2012-07-25T07:48:56.168-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apex"/><category scheme="http://www.blogger.com/atom/ns#" term="crm"/><category scheme="http://www.blogger.com/atom/ns#" term="salesforce"/><title type='text'>code coverage 100% in Apex class</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;code coverage 100% in Apex class&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;write an apex class&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;public&amp;nbsp;class&amp;nbsp;CompanyClass&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;class&amp;nbsp;EmpClass&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Integer&amp;nbsp;iEmpno;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;String&amp;nbsp;iEmpName;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Double&amp;nbsp;iEmpSal;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Integer&amp;nbsp;iEmpDeptno;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;//parameter&amp;nbsp;constractor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;public&amp;nbsp;EmpClass(Integer&amp;nbsp;iEmpno,String&amp;nbsp;iEmpName,Double&amp;nbsp;iEmpSal,Integer&amp;nbsp;iEmpDeptno)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;this.iEmpno=iEmpno;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;this.iEmpName=iEmpName;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;this.iEmpSal=iEmpSal;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;this.iEmpDeptno=iEmpDeptno;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;//default&amp;nbsp;constractor&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;public&amp;nbsp;EmpClass()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;iEmpno=1;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;iEmpName=&#39;varu&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;iEmpSal=100;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;iEmpDeptno=10;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&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;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;//properties&amp;nbsp;of&amp;nbsp;EmpClass&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Integer&amp;nbsp;Empno&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get{&amp;nbsp;return&amp;nbsp;iEmpno;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set{&amp;nbsp;iEmpno=value;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;String&amp;nbsp;EmpName&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get{&amp;nbsp;return&amp;nbsp;iEmpName;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set{&amp;nbsp;iEmpName=value;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Double&amp;nbsp;EmpSal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get{&amp;nbsp;return&amp;nbsp;iEmpSal;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set{&amp;nbsp;iEmpSal=value;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;Integer&amp;nbsp;&amp;nbsp;EmpDeptno&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;get{&amp;nbsp;return&amp;nbsp;iEmpDeptno;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set{&amp;nbsp;iEmpDeptno=value;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;//Emp&amp;nbsp;list&amp;nbsp;object&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;List&amp;lt;EmpClass&amp;gt;&amp;nbsp;emps=new&amp;nbsp;List&amp;lt;EmpClass&amp;gt;();&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;//create&amp;nbsp;Employees&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;void&amp;nbsp;createEmp()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;emps.add(new&amp;nbsp;EmpClass(1,&#39;varun&#39;,1000,10));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;emps.add(new&amp;nbsp;EmpClass(2,&#39;santhosh&#39;,2000,20));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;emps.add(new&amp;nbsp;EmpClass(3,&#39;manoj&#39;,3000,30));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;emps.add(new&amp;nbsp;EmpClass(4,&#39;mahesh&#39;,4000,30));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;//search&amp;nbsp;Emp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public&amp;nbsp;EmpClass&amp;nbsp;searchEmp(String&amp;nbsp;empName,List&amp;lt;EmpClass&amp;gt;&amp;nbsp;empList)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for(EmpClass&amp;nbsp;e:empList)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(e.iEmpName==empName)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;e;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;null;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;//EmpClass&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;b&gt;write an apex test class&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;public&amp;nbsp;class&amp;nbsp;CompanyClassTest&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empDefaultConst()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass.EmpClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(1,obj.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;varu&#39;,obj.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(100,obj.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(10,obj.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empParaConst()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass.EmpClass(50,&#39;arya&#39;,3000,80);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(50,obj.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;arya&#39;,obj.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(3000,obj.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(80,obj.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empCreateTest()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.createEmp();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;Integer&amp;nbsp;TotEmps=obj.Emps.size();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(4,TotEmps);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empSearchTest()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.createEmp();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;empObj=obj.searchEmp(&#39;varun&#39;,obj.emps);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(1,empObj.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;varun&#39;,empObj.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(1000,empObj.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(10,empObj.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;empObj1=obj.searchEmp(&#39;manoj&#39;,obj.emps);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(3,empObj1.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;manoj&#39;,empObj1.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(3000,empObj1.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(30,empObj1.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;empObj2=obj.searchEmp(&#39;santhosh&#39;,obj.emps);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(2,empObj2.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;santhosh&#39;,empObj2.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(2000,empObj2.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(20,empObj2.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empSearchTest1()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.createEmp();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;empObj3=obj.searchEmp(&#39;mahesh&#39;,obj.emps);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assert(empObj3!=null);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(4,empObj3.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;mahesh&#39;,empObj3.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(4000,empObj3.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(30,empObj3.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empListTest()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assert(obj.emps!=null);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empProTest()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass.EmpClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.Empno=22;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpName=&#39;fff&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpSal=222;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpDeptno=33;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(22,obj.Empno);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(&#39;fff&#39;,obj.EmpName);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(222,obj.EmpSal);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(33,obj.EmpDeptno);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;@isTest&amp;nbsp;static&amp;nbsp;void&amp;nbsp;empListTest2()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass.EmpClass&amp;nbsp;obj=new&amp;nbsp;CompanyClass.EmpClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;CompanyClass&amp;nbsp;obj1=new&amp;nbsp;CompanyClass();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.Empno=22;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpName=&#39;fff&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpSal=222;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj.EmpDeptno=33;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;obj1.emps.add(obj);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assert(obj1.emps!=null);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;System.assertEquals(1,obj1.emps.size());&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f8f8f8; color: black; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; widows: 2; word-spacing: 0px;&quot;&gt;}&lt;/span&gt;&lt;b&gt;run the test

&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rain4all.blogspot.com/feeds/1412185474619343586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rain4all.blogspot.com/2012/04/code-coverage-100-in-apex-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/1412185474619343586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/1412185474619343586'/><link rel='alternate' type='text/html' href='http://rain4all.blogspot.com/2012/04/code-coverage-100-in-apex-class.html' title='code coverage 100% in Apex class'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15841494668624541715</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5634423606814013574.post-7338131150924964200</id><published>2012-04-27T02:16:00.002-07:00</published><updated>2012-07-25T08:09:43.607-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apex"/><category scheme="http://www.blogger.com/atom/ns#" term="salesforce"/><title type='text'>INSERT,GET,SEARCH DATE FROM CUSTUM OBJECT THROUGH VISUAL FORCE PAGE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
CREATE BOOK CUSTOM OBEJECT&lt;br /&gt;
fields are......... &lt;br /&gt;
BookName&lt;br /&gt;
Price&lt;br /&gt;
Title&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s400/BOOK-TABLE.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;BOOK&quot; border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s400/BOOK-TABLE.JPG&quot; title=&quot;BOOK&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;BOOK CUSTOM OBJECT&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Write Apex Class&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class BookInsert&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
List&amp;lt;Book__c&amp;gt; l;&lt;br /&gt;
selectOption Opn;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public SelectOption getOpn() {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new SelectOption(&#39;abc&#39;,&#39;abc&#39;);&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;public void setOpn(SelectOption opn)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Opn=opn;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
public List&amp;lt;Book__c&amp;gt; getL()&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp; return l;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;br /&gt;
public Double price&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return price; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { price= value; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
public String title&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return title; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { title= value; }&lt;br /&gt;
}&lt;br /&gt;
public String head&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return head; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { head= value; }&lt;br /&gt;
}&lt;br /&gt;
public String str&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return str; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { str= value; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
public PageReference doSearchBook() {&lt;br /&gt;
&amp;nbsp; l=[select Price__c,title__c from Book__c where title__c LIKE :str+&#39;%&#39;];&lt;br /&gt;
&amp;nbsp; head=&#39;search&#39;;&lt;br /&gt;
&amp;nbsp; return null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;public PageReference doInsert() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Book__c b=new Book__c(price__c=price,title__c=&#39;&#39;+title);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert b; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;public PageReference doGetBook() {&lt;br /&gt;
&amp;nbsp; l=[select Price__c,title__c from Book__c];&lt;br /&gt;
&amp;nbsp; head=&#39;GetBook&#39;;&lt;br /&gt;
&amp;nbsp; return null;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; public List&amp;lt;SelectOption&amp;gt; getBks() &lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;SelectOption&amp;gt; options = new List&amp;lt;SelectOption&amp;gt;(); //new list for holding all of the picklist options&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // options.add(new selectOption(&#39;1&#39;, &#39;- None -&#39;)); //add the first option of &#39;- None -&#39; in case the user doesn&#39;t want to select a value or in case no values are returned from query below&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.add(new SelectOption(&#39;1&#39;, &#39;-select-&#39;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Book__c bk : [SELECT Price__c,title__c FROM Book__c]) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { //query for User records with System Admin profile&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(bk!=null&amp;amp;&amp;amp;bk.title__c!=null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.add(new SelectOption(&#39;&#39;+bk.Id, &#39;&#39;+bk.title__c)); //for all records found - add them to the picklist options&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return options;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }//return the picklist options&lt;br /&gt;
}&lt;br /&gt;

&lt;b&gt;Create Visual force page&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;apex:page controller=&quot;BookInsert&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;apex:message rendered=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlock mode=&quot;edit&quot; id=&quot;block&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSectionItem &amp;gt;&lt;br /&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;lt;apex:outputLabel for=&quot;searchText&quot;&amp;gt;Book Insert&amp;lt;/apex:outputLabel&amp;gt;&lt;br /&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;lt;apex:panelGroup &amp;gt;&lt;br /&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;lt;apex:inputText id=&quot;price&quot; value=&quot;{!price}&quot;/&amp;gt;&lt;br /&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;lt;apex:inputText id=&quot;title&quot; value=&quot;{!title}&quot;/&amp;gt;&lt;br /&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;lt;apex:commandButton value=&quot;Insert!&quot; action=&quot;{!doInsert}&quot; rerender=&quot;block&quot; status=&quot;status&quot;/&amp;gt;&lt;br /&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;lt;/apex:panelGroup&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSectionItem&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSectionItem &amp;gt;&lt;br /&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;lt;apex:outputLabel for=&quot;searchText1&quot;&amp;gt;Click Here To Get All Books&amp;lt;/apex:outputLabel&amp;gt;&lt;br /&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;lt;apex:panelGroup &amp;gt;&lt;br /&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;lt;apex:commandButton value=&quot;Get!&quot; action=&quot;{!doGetBook}&quot; rerender=&quot;block&quot; status=&quot;status&quot;/&amp;gt;&lt;br /&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;lt;/apex:panelGroup&amp;gt;&lt;br /&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;lt;/apex:pageBlockSectionItem&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt; &lt;br /&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection &amp;gt;&lt;br /&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;lt;apex:pageBlockSectionItem &amp;gt;&lt;br /&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;lt;apex:outputLabel for=&quot;searchText2&quot;&amp;gt;Click Here To search All Books&amp;lt;/apex:outputLabel&amp;gt;&lt;br /&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;lt;apex:panelGroup &amp;gt;&lt;br /&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;lt;apex:inputText id=&quot;search&quot; value=&quot;{!str}&quot;/&amp;gt;&lt;br /&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;lt;apex:commandButton value=&quot;Search&quot; action=&quot;{!doSearchBook}&quot; rerender=&quot;block&quot; status=&quot;status&quot;/&amp;gt;&lt;br /&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;lt;/apex:panelGroup&amp;gt;&lt;br /&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;lt;/apex:pageBlockSectionItem&amp;gt;&lt;br /&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;lt;/apex:pageBlockSection&amp;gt;&lt;br /&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; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:actionStatus id=&quot;status&quot; startText=&quot;requesting...&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;{!head}&quot; id=&quot;results&quot; columns=&quot;1&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockTable value=&quot;{!l}&quot; var=&quot;i&quot; rendered=&quot;{!NOT(ISNULL(l))}&quot;&amp;gt;&lt;br /&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;lt;apex:column value=&quot;{!i.price__c}&quot;/&amp;gt;&lt;br /&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;lt;apex:column value=&quot;{!i.title__c}&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockTable&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;br /&gt;
&amp;lt;/apex:page&amp;gt;&lt;br /&gt;
&lt;b&gt;U GET LIKE&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6GbeIeAbChFgxmK4eJTg3yUCVcQB7jPTHw5BRgF1zflAhF1yFYMCIVuP-sNGeLh6-e_PFjgAO0aPvbUkJhQ3ZTp8woqO6FvRkc3zHLlNX0EhF3PuaBYwQzWLRu8Li8dAxIVCyhPIXZb92/s1600/BOOK-INSERT.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6GbeIeAbChFgxmK4eJTg3yUCVcQB7jPTHw5BRgF1zflAhF1yFYMCIVuP-sNGeLh6-e_PFjgAO0aPvbUkJhQ3ZTp8woqO6FvRkc3zHLlNX0EhF3PuaBYwQzWLRu8Li8dAxIVCyhPIXZb92/s1600/BOOK-INSERT.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rain4all.blogspot.com/feeds/7338131150924964200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rain4all.blogspot.com/2012/04/insertgetsearch-date-from-custum-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/7338131150924964200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/7338131150924964200'/><link rel='alternate' type='text/html' href='http://rain4all.blogspot.com/2012/04/insertgetsearch-date-from-custum-object.html' title='INSERT,GET,SEARCH DATE FROM CUSTUM OBJECT THROUGH VISUAL FORCE PAGE'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15841494668624541715</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s72-c/BOOK-TABLE.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5634423606814013574.post-4342040541390138033</id><published>2012-04-27T01:47:00.001-07:00</published><updated>2012-07-25T02:27:53.351-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apex"/><title type='text'>DROPDOWN SELECTION &amp; DISPLY SELECECTED ITEM DATA</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;Create Book Oject like &lt;/b&gt;
&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s1600/BOOK-TABLE.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s400/BOOK-TABLE.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
BookName&lt;br /&gt;
Price&lt;br /&gt;
Title&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;b&gt;Create Apex Class&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
public class BookDropdown&lt;br /&gt;
{&lt;br /&gt;
List&amp;lt;Book__c&amp;gt; l;&lt;br /&gt;
public String Opn{ &lt;br /&gt;
&amp;nbsp;get { return Opn; }&lt;br /&gt;
&amp;nbsp;set { Opn= value; }&lt;br /&gt;
}&lt;br /&gt;
public List&amp;lt;Book__c&amp;gt; getL()&lt;br /&gt;
{ &lt;br /&gt;
&lt;br /&gt;
l=[SELECT Price__c,title__c FROM Book__c where Id=:this.Opn];&lt;br /&gt;
&amp;nbsp; return l;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&amp;nbsp; &lt;br /&gt;
public Double price&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return price; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { price= value; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
public String title&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return title; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { title= value; }&lt;br /&gt;
}&lt;br /&gt;
public String head&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return head; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { head= value; }&lt;br /&gt;
}&lt;br /&gt;
public String str&lt;br /&gt;
{ &lt;br /&gt;
&amp;nbsp;get { return str; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set { str= value; }&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;&amp;nbsp; public List&amp;lt;SelectOption&amp;gt; getBks() &lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;SelectOption&amp;gt; options = new List&amp;lt;SelectOption&amp;gt;(); //new list for holding all of the picklist options&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // options.add(new selectOption(&#39;1&#39;, &#39;- None -&#39;)); //add the first option of &#39;- None -&#39; in case the user doesn&#39;t want to select a value or in case no values are returned from query below&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.add(new SelectOption(&#39;1&#39;, &#39;-select-&#39;));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Book__c bk : [SELECT Price__c,title__c FROM Book__c]) &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { //query for User records with System Admin profile&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(bk!=null&amp;amp;&amp;amp;bk.title__c!=null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options.add(new SelectOption(&#39;&#39;+bk.Id, &#39;&#39;+bk.title__c )); //for all records found - add them to the picklist options&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return options;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }//return the picklist options&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red;&quot;&gt;
&lt;a href=&quot;http://www.000webhost.com/&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Web hosting&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://www.000webhost.com/images/banners/600x400/banner1.gif&quot; width=&quot;600&quot; /&gt;&lt;/a&gt;
&lt;b&gt;Create Visual force page&lt;/b&gt;&lt;/div&gt;
&amp;lt;apex:page controller=&quot;BookDropdown&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:actionFunction name=&quot;rerenderStates&quot; rerender=&quot;list&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:param name=&quot;firstParam&quot; assignTo=&quot;{!opn}&quot; value=&quot;&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:actionFunction&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;apex:message rendered=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlock mode=&quot;edit&quot; id=&quot;block&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection &amp;gt;&lt;br /&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;lt;apex:pageBlockSectionItem &amp;gt;&lt;br /&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;lt;apex:outputLabel value=&quot;DropDownBook: &quot; for=&quot;themesList&quot;/&amp;gt;&lt;br /&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;lt;apex:selectList id=&quot;themesList&quot; size=&quot;1&quot; value=&quot;{!opn}&quot; onChange=&quot;rerenderStates(this.value)&quot;&amp;gt;&lt;br /&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;lt;apex:selectOptions value=&quot;{!bks}&quot;/&amp;gt;&lt;br /&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;lt;/apex:selectList&amp;gt;&lt;br /&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;lt;/apex:pageBlockSectionItem&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:actionStatus id=&quot;status&quot; startText=&quot;requesting...&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;{!head}&quot; id=&quot;results&quot; columns=&quot;1&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;apex:pageBlockTable id=&quot;list&quot; value=&quot;{!l}&quot; var=&quot;i&quot; rendered=&quot;{!NOT(ISNULL(l))}&quot;&amp;gt;&lt;br /&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;lt;apex:column value=&quot;{!i.price__c}&quot;/&amp;gt;&lt;br /&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;lt;apex:column value=&quot;{!i.title__c}&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockTable&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;br /&gt;
&amp;lt;/apex:page&amp;gt; &lt;br /&gt;
&lt;br /&gt;
t&lt;b&gt;ype url in address bar&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://c.ap1.visual.force.com/apex/BookDropdown&quot;&gt;https://c.ap1.visual.force.com/apex/BookDropdown&lt;/a&gt;&lt;br /&gt;
u get&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivnEcK4gHUWE-DG6Q22MipHrSE3CqHeSDVc6bW60shDZCEo71PGe-wwcNBToxBlKgksrqmmAl1rtE__yxQPT0LIIwMhQIz0wwJHORvXMYkyZKEKYjI5uZMRd8irmnoSZ3fKOm4ez5t1v3x/s1600/dropdown.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivnEcK4gHUWE-DG6Q22MipHrSE3CqHeSDVc6bW60shDZCEo71PGe-wwcNBToxBlKgksrqmmAl1rtE__yxQPT0LIIwMhQIz0wwJHORvXMYkyZKEKYjI5uZMRd8irmnoSZ3fKOm4ez5t1v3x/s640/dropdown.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rain4all.blogspot.com/feeds/4342040541390138033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rain4all.blogspot.com/2012/04/dropdown-selection-disply-selecected.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/4342040541390138033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/4342040541390138033'/><link rel='alternate' type='text/html' href='http://rain4all.blogspot.com/2012/04/dropdown-selection-disply-selecected.html' title='DROPDOWN SELECTION &amp; DISPLY SELECECTED ITEM DATA'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15841494668624541715</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOmSel4fu8Tged-tlWCsiB77gfxrAmepTRTQWumbLuMoCqxEOcSVeEoI0EAPNrUDFyq8U7hRuYrO9CW5ek7YLtPzfd-uUFi3QARQ8_X0TT8xskdDVlTyqGwFG0nE62BUZTK92cSgLOykSk/s72-c/BOOK-TABLE.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5634423606814013574.post-4047041431400361625</id><published>2012-04-26T05:37:00.002-07:00</published><updated>2012-07-25T02:29:10.133-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apex"/><title type='text'>Consuming Apex webservice in C# .net,Consume Apex webservice in C# .net,c#,Salesforce.com,Salesforce.com webservices,apex webservices,web,webservices,csharp webserviceConsuming, Apex webservice,in C# .net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;WRITE AN APEX CLASS AS FOLLOWS(ADDITION OF TWO NUMBERS)&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Consumming Apex webservice in C# .net&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;global with sharing class WebServiceMath&lt;br /&gt;
{&lt;br /&gt;
webService static Integer add(Integer a,Integer b)&lt;br /&gt;
{&lt;br /&gt;
return a+b;&lt;br /&gt;
}&lt;br /&gt;
} &lt;/div&gt;&lt;b&gt;Save the code.... Click on generate from WSDL Button,You will get&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&amp;lt;!-- Web Services API : WebServiceMath --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;collapsible&quot; id=&quot;collapsible0&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;&lt;div class=&quot;expanded&quot;&gt;&lt;div class=&quot;line&quot;&gt;&lt;div style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&lt;span class=&quot;button collapse-button&quot; style=&quot;background-position: 0% 0%; cursor: pointer; display: inline-block; height: 10px; margin-left: -10px; vertical-align: bottom; width: 10px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&amp;lt;definitions&lt;span class=&quot;webkit-html-attribute&quot;&gt;&amp;nbsp;&lt;span class=&quot;webkit-html-attribute-name&quot;&gt;xmlns:xsd&lt;/span&gt;=&quot;&lt;span class=&quot;webkit-html-attribute-value&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;webkit-html-attribute&quot;&gt;&amp;nbsp;&lt;span class=&quot;webkit-html-attribute-name&quot;&gt;xmlns&lt;/span&gt;=&quot;&lt;span class=&quot;webkit-html-attribute-value&quot;&gt;http://schemas.xmlsoap.org/wsdl/&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;webkit-html-attribute&quot;&gt;&lt;span class=&quot;webkit-html-attribute-name&quot;&gt;xmlns:soap&lt;/span&gt;=&quot;&lt;span class=&quot;webkit-html-attribute-value&quot;&gt;http://schemas.xmlsoap.org/wsdl/soap/&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;webkit-html-attribute&quot;&gt;&amp;nbsp;&lt;span class=&quot;webkit-html-attribute-name&quot;&gt;xmlns:tns&lt;/span&gt;=&quot;&lt;span class=&quot;webkit-html-attribute-value&quot;&gt;http://soap.sforce.com/schemas/class/WebServiceMath&lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;webkit-html-attribute&quot;&gt;&lt;span class=&quot;webkit-html-attribute-name&quot;&gt;targetNamespace&lt;/span&gt;=&quot;&lt;span class=&quot;webkit-html-attribute-value&quot;&gt;http://soap.sforce.com/schemas/class/WebServiceMath&lt;/span&gt;&quot;&lt;/span&gt;&amp;gt;.....................................................................................................................................&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;Copy the URL Of WSDL&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;i.e&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;https://ap1.salesforce.com/services/wsdl/class/WebServiceMath&quot;&gt;https://ap1.salesforce.com/services/wsdl/class/WebServiceMath&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: monospace; font-size: 13px;&quot;&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;Then go to VisualStudio&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;collapsible-content&quot; style=&quot;font-family: monospace; font-size: 13px; margin-left: 1em;&quot;&gt;&lt;span class=&quot;text&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;collapsible&quot; id=&quot;collapsible1&quot;&gt;&lt;div class=&quot;expanded&quot;&gt;&lt;div class=&quot;line&quot;&gt;&lt;span class=&quot;button collapse-button&quot; style=&quot;background-position: 0% 0%; cursor: pointer; display: inline-block; height: 10px; margin-left: -10px; vertical-align: bottom; width: 10px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://www.000webhost.com/&quot; target=&quot;_blank&quot;&gt;&lt;img alt=&quot;Web hosting&quot; border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://www.000webhost.com/images/banners/600x400/banner1.gif&quot; width=&quot;600&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;b&gt;Right Click on Sulution Add WebReferencs&lt;/b&gt;&lt;br /&gt;
copy:&lt;a href=&quot;https://ap1.salesforce.com/services/wsdl/class/WebServiceMath&quot; style=&quot;font-family: monospace; font-size: 13px; text-align: -webkit-auto;&quot;&gt;https://ap1.salesforce.com/services/wsdl/class/WebServiceMath&lt;/a&gt;&lt;br /&gt;
and click on go u will get proxy.----&amp;gt;com.salesforce.ap11 &lt;br /&gt;
&lt;b&gt;Then come back to apex&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;App Setup--&amp;gt;dev-API--&amp;gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-bottom: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;b&gt;Partner WSDL&lt;/b&gt;&lt;br /&gt;
A loosely typed WSDL for customers, partners, and ISVs who are building client applications for multiple organizations. It can be used to access data within any organization.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: red; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-bottom: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;a href=&quot;https://ap1.salesforce.com/soap/wsdl.jsp&quot;&gt;Generate Partner WSDL&lt;/a&gt;--click on link&lt;/div&gt;&lt;div style=&quot;background-color: white; color: red; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-bottom: 0px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b&gt;&amp;nbsp;u get wsdl &lt;/b&gt;&lt;a href=&quot;https://ap1.salesforce.com/services/wsdl/apex&quot;&gt;https://ap1.salesforce.com/services/wsdl/apex&lt;/a&gt;&lt;br /&gt;
copy this link &lt;br /&gt;
Go to &lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;VisualStudio&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;Add webreference &lt;/b&gt;past the link and go&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;give name as ----&amp;gt;sForceService &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;u get another proxy&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;Create Asp.NetPage&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Default.aspx &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&amp;lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeBehind=&quot;Default.aspx.cs&quot; Inherits=&quot;WebService._Default&quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Untitled Page&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id=&quot;form1&quot; runat=&quot;server&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A:&amp;lt;asp:TextBox ID=&quot;TextBox1&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B:&amp;lt;asp:TextBox ID=&quot;TextBox2&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&quot;Button1&quot; runat=&quot;server&quot; Text=&quot;ADD&quot; onclick=&quot;Button1_Click&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&quot;Label1&quot; runat=&quot;server&quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;webkit-html-tag&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;Default.aspx.cs&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;using System;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Collections;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Configuration;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Data;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Linq;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.Security;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.UI;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.UI.HtmlControls;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.UI.WebControls;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.UI.WebControls.WebParts;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Xml.Linq;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Runtime;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.Services;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using System.Web.Services.Protocols;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using WebService.com.salesforce.ap11;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;using WebService.sForceService;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;namespace WebService&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public partial class _Default : System.Web.UI.Page&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void Button1_Click(object sender, EventArgs e)&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SforceService o = new SforceService();&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;LoginResult lr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =o.login(&quot;&lt;span style=&quot;color: red;&quot;&gt;UserName&lt;/span&gt;@gmail.com&quot;,&quot;&lt;span style=&quot;color: red;&quot;&gt;password&lt;/span&gt;+&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;a href=&quot;https://ap1.salesforce.com/_ui/system/security/ResetApiTokenEdit?retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DPersonalInfo&amp;amp;setupid=ResetApiToken&quot; id=&quot;ResetApiToken_font&quot; style=&quot;color: red; font-family: Arial,Helvetica,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px; orphans: 2; padding: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;&quot;&gt;Security Token&lt;/a&gt;&lt;/b&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&quot;);&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;//u get &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;https://ap1.salesforce.com/_ui/system/security/ResetApiTokenEdit?retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DPersonalInfo&amp;amp;setupid=ResetApiToken&quot; id=&quot;ResetApiToken_font&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; color: #1797c0; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; orphans: 2; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; white-space: nowrap; widows: 2; word-spacing: 0px;&quot;&gt;Security Token in&lt;/a&gt;&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-color: black;&quot;&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: black;&quot;&gt;personalsetup&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebService.sForceService.SessionHeader sh = new WebService.sForceService.SessionHeader();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&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;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sh.sessionId = lr.sessionId;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.Url = lr.serverUrl;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o.SessionHeaderValue = sh;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.salesforce.ap11.WebServiceMathService obj = new com.salesforce.ap11.WebServiceMathService();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SessionHeaderValue = new WebService.com.salesforce.ap11.SessionHeader();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SessionHeaderValue.sessionId=sh.sessionId;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //obj.Timeout = &quot;6000&quot;;&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1.Text = obj.add(Convert.ToInt32(TextBox1.Text), Convert.ToInt32(TextBox2.Text)).ToString();&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;color: black;&quot; /&gt;&lt;span style=&quot;color: black;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;webkit-html-tag&quot;&gt;&amp;nbsp;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rain4all.blogspot.com/feeds/4047041431400361625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rain4all.blogspot.com/2012/04/consumming-apex-webservice-in-c-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/4047041431400361625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5634423606814013574/posts/default/4047041431400361625'/><link rel='alternate' type='text/html' href='http://rain4all.blogspot.com/2012/04/consumming-apex-webservice-in-c-net.html' title='Consuming Apex webservice in C# .net,Consume Apex webservice in C# .net,c#,Salesforce.com,Salesforce.com webservices,apex webservices,web,webservices,csharp webserviceConsuming, Apex webservice,in C# .net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15841494668624541715</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>