tag:blogger.com,1999:blog-48079702115460864232024-02-19T07:19:15.168-08:00Dotnet Learning Point The main motive of .net learning point is to provide the information to all new comers working on dot Net framework. Those students or Fresher’s who are willing to learn .net programming language and its oops concepts can get better information and working trips and tricks with the help of advance technology these are C# , SQL Server 2008, ASP.net, ADO.Net, Crystal Report, WCF ,WPF , Silver light, AJAX, CSS, Java script etc. Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.comBlogger75125tag:blogger.com,1999:blog-4807970211546086423.post-68211109241402653652018-10-15T00:46:00.000-07:002018-10-15T00:46:41.492-07:00All HTML Versions<div dir="ltr" style="text-align: left;" trbidi="on">
<b>All HTML Versions</b><br />
<br />
<br />
<div class="MsoNormal">
Since the early days of the web, there have been many
versions of HTML:<o:p></o:p></div>
his specification defines the 5th major version, second minor revision of the core language of the World Wide Web: the Hypertext Markup Language (HTML)<br />
<br />
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Version<span style="mso-tab-count: 1;"> </span>Year</b><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 11.1pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid windowtext 1.0pt; height: 11.1pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
HTML<o:p></o:p></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 11.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1991<o:p></o:p></div>
</td>
</tr>
<tr style="height: 12.4pt; mso-yfti-irow: 1;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 12.4pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
HTML 2.0<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: justify;">
1995<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
</td>
</tr>
<tr style="height: 11.1pt; mso-yfti-irow: 2;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 11.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
HTML 3.2<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 11.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1997<o:p></o:p></div>
</td>
</tr>
<tr style="height: 11.75pt; mso-yfti-irow: 3;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 11.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
HTML 4.01<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 11.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1999<o:p></o:p></div>
</td>
</tr>
<tr style="height: 11.1pt; mso-yfti-irow: 4;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 11.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
XHTML<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 11.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
2000<o:p></o:p></div>
</td>
</tr>
<tr style="height: 11.75pt; mso-yfti-irow: 5; mso-yfti-lastrow: yes;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 11.75pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
HTML5<o:p></o:p></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 11.75pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 162.35pt;" valign="top" width="216">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
2014<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-88602281708896556812018-10-15T00:42:00.003-07:002018-10-15T00:42:53.031-07:00HTML Page Structure<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>HTML Page Structure</b></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
Below is a visualization of an HTML page structure:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<html><o:p></o:p></div>
<div class="MsoNormal">
<head><o:p></o:p></div>
<div class="MsoNormal">
<title>Page title</title><o:p></o:p></div>
<div class="MsoNormal">
</head><o:p></o:p></div>
<div class="MsoNormal">
<body><o:p></o:p></div>
<div class="MsoNormal">
<h1>This is a heading</h1><o:p></o:p></div>
<div class="MsoNormal">
<p>This is a paragraph.</p><o:p></o:p></div>
<div class="MsoNormal">
<p>This is another paragraph.</p><o:p></o:p></div>
<div class="MsoNormal">
</body><o:p></o:p></div>
<div class="MsoNormal">
</html><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="mso-spacerun: yes;"> </span><b><!DOCTYPE>
Declaration<o:p></o:p></b></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
The <!DOCTYPE> declaration represents the document
type, and helps browsers to display web pages correct way.It must only appear
once, at the top of the page (before any HTML tags).The <!DOCTYPE>
declaration is not case sensitive.The <!DOCTYPE> declaration for HTML5
is:<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>For Example<o:p></o:p></b></div>
<div class="MsoNormal">
<b><!DOCTYPE html><o:p></o:p></b></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-71570029013423530242018-10-15T00:40:00.000-07:002018-10-15T00:40:19.448-07:00HTML Tags<div dir="ltr" style="text-align: left;" trbidi="on">
<b>HTML Tags</b><br />
<br />
<br />
<div class="MsoNormal">
HTML tags are element names surrounded by angle brackets:
following tags are given as below-<o:p></o:p></div>
<br /><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 13.1pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<P></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</P></div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Paragraph</div>
</td>
</tr>
<tr style="height: 12.35pt; mso-yfti-irow: 1;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<H1></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</H1></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Heading</div>
</td>
</tr>
<tr style="height: 13.1pt; mso-yfti-irow: 2;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</br></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Break</div>
</td>
</tr>
<tr style="height: 12.35pt; mso-yfti-irow: 3;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</b></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.35pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Bold</div>
</td>
</tr>
<tr style="height: 13.1pt; mso-yfti-irow: 4;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<marquee></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</marquee></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Movement</div>
</td>
</tr>
<tr style="height: 13.1pt; mso-yfti-irow: 5;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<body></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
</body></div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Body content</div>
</td>
</tr>
<tr style="height: 13.1pt; mso-yfti-irow: 6; mso-yfti-lastrow: yes;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
etc.</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
etc..</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.1pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 116.15pt;" valign="top" width="155">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
……………………</div>
</td>
</tr>
</tbody></table>
<br />
Here we are using above tags paragraph ,heading,break bold movement tags are used<br />
<br />
<b>For example</b><br />
<b><br /></b>
<!DOCTYPE html><br />
<br />
<html><br />
<br />
<head><br />
<br />
<title>Page Title</title><br />
<br />
</head><br />
<br />
<body><br />
<br />
<Marquee>My First Web Page <Marquee><br />
<br />
<h1>My First Heading</h1><br />
<br />
<p>My first paragraph.</p><br />
<br />
<br />
<br />
</body><br />
<br />
<br />
</html><br />
<b><br /></b>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUZLUJPHpX3S5uOqxRxv8PhyWoPLM_NpgIR7gcFh6IXiBia3aK-ZctpBN-cOLj7Ou2GP4FnWz0G4zFCOc9NQNpGCNFEdDC-01FCmQqcI3z18FvCEO5_LsU-u5Go2Jo5RerI9KlJ-N3brfP/s1600/htm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="465" data-original-width="1168" height="127" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUZLUJPHpX3S5uOqxRxv8PhyWoPLM_NpgIR7gcFh6IXiBia3aK-ZctpBN-cOLj7Ou2GP4FnWz0G4zFCOc9NQNpGCNFEdDC-01FCmQqcI3z18FvCEO5_LsU-u5Go2Jo5RerI9KlJ-N3brfP/s320/htm.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Ql1RO27doo9qeSkO1o-cxr9gAmxhU2nuBB9y1H4SVsSy0NRGagsuos4ISBbBLmkpvwE59qnGBbbLGXDo91zOA7WAGDj2QsmRZ-otf_LnIuqxt5LjwGVCfFDuiYSfswv8l9w1ex_hHtEd/s1600/htm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="465" data-original-width="966" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2Ql1RO27doo9qeSkO1o-cxr9gAmxhU2nuBB9y1H4SVsSy0NRGagsuos4ISBbBLmkpvwE59qnGBbbLGXDo91zOA7WAGDj2QsmRZ-otf_LnIuqxt5LjwGVCfFDuiYSfswv8l9w1ex_hHtEd/s320/htm.jpg" width="320" /></a></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-64099658824561947252018-10-15T00:33:00.000-07:002018-10-15T00:33:43.566-07:00Introduction of HTML (HYPERTEXT MARKUP LANGUAGE) <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="MsoNormal">
<b>Introduction of HTML (HYPERTEXT MARKUP LANGUAGE)<o:p></o:p></b></div>
<div class="MsoNormal">
<b>OR<o:p></o:p></b></div>
<div class="MsoNormal">
<b>What Is HTML<o:p></o:p></b></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
HTML is the standard markup language for creating Web pages .With
help of html create a website and use images to display in web site.HTML tag
represent <span style="mso-spacerun: yes;"> </span>user information like to
display about all information in different-different domain such as
IT,Medical,Manufacturing….etc.<o:p></o:p></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
</div>
<ol style="text-align: left;">
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">There
are following points in HTML given as below-</span></li>
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">HTML
stands for Hyper Text Markup Language</span></li>
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">It
describes the structure of Web pages using markup</span></li>
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">Elements
are the building blocks of HTML pages</span></li>
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">Elements
are represented by tags</span></li>
<li><span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;"> </span><span style="text-indent: -0.25in;">HTML
tags label pieces of content such as "heading",
"paragraph", "table", and so on</span></li>
</ol>
<div style="text-indent: -24px;">
<br /></div>
<!--[if !supportLists]--><o:p></o:p><br />
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<o:p></o:p></div>
<div class="MsoNormal">
<b>For Example-<o:p></o:p></b></div>
<div class="MsoNormal">
<b><!DOCTYPE html><o:p></o:p></b></div>
<div class="MsoNormal">
<b><html><o:p></o:p></b></div>
<div class="MsoNormal">
<b><head><o:p></o:p></b></div>
<div class="MsoNormal">
<b><title>Page Title</title><o:p></o:p></b></div>
<div class="MsoNormal">
<b></head><o:p></o:p></b></div>
<div class="MsoNormal">
<b><body><o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><h1>My First Heading</h1><o:p></o:p></b></div>
<div class="MsoNormal">
<b><p>My first paragraph.</p><o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b></body><o:p></o:p></b></div>
<div class="MsoNormal">
<b></html></b><o:p></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiygfo4Ix0kMMQv_jS-otfcmsD816sxbNdpOyqo85HaCZ2b5CaMl5mkphOeTY47iofaHzy8dGqyGDAqLWJHqXWSHAxQefajP_VJQMKW-jkc0_D1Jxvu1PF0Omakf1c6-FxhzXrMV1uakJ1s/s1600/htm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="383" data-original-width="865" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiygfo4Ix0kMMQv_jS-otfcmsD816sxbNdpOyqo85HaCZ2b5CaMl5mkphOeTY47iofaHzy8dGqyGDAqLWJHqXWSHAxQefajP_VJQMKW-jkc0_D1Jxvu1PF0Omakf1c6-FxhzXrMV1uakJ1s/s320/htm.jpg" width="320" /></a></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
<b><br /></b></div>
<div class="MsoNormal">
In the above following Tags are uses and description given
as-<o:p></o:p></div>
<div class="MsoNormal">
The <!DOCTYPE html> declaration document type in <b>HTML5</b><o:p></o:p></div>
<div class="MsoNormal">
The <html> is the
<b>root element <o:p></o:p></b></div>
<div class="MsoNormal">
The <head> contains <b>Meta information</b> <o:p></o:p></div>
<div class="MsoNormal">
The <title> specifies a title for the document<o:p></o:p></div>
<div class="MsoNormal">
The <body> contains the visible page content<o:p></o:p></div>
<div class="MsoNormal">
The <h1> element defines a <b>large heading</b><o:p></o:p></div>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-font-size: 10.0pt; mso-bidi-language: HI; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;">The <p> element defines a <b>paragraph</b></span><div>
<span style="font-family: Calibri, sans-serif;"><span style="font-size: 14.6667px;"><b><br /></b></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilgn597bes6DYaNg9GePzai-Xn-kqfuCzqKLPPFQ9gErNxmi2BfIQ1WbPy2NPZVc-Ztu1Farvz_BwqXuTp7M3beHub6PGAx_UVIuyBL0jh92cZZ3cHNqiRkSE_qy1_f271lac1onxhwY6o/s1600/htm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="465" data-original-width="966" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilgn597bes6DYaNg9GePzai-Xn-kqfuCzqKLPPFQ9gErNxmi2BfIQ1WbPy2NPZVc-Ztu1Farvz_BwqXuTp7M3beHub6PGAx_UVIuyBL0jh92cZZ3cHNqiRkSE_qy1_f271lac1onxhwY6o/s320/htm.jpg" width="320" /></a></div>
<div>
<span style="font-family: Calibri, sans-serif;"><span style="font-size: 14.6667px;"><b><br /></b></span></span><br />
<div>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-font-size: 10.0pt; mso-bidi-language: HI; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;"><b><br /></b></span></div>
<div>
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-font-size: 10.0pt; mso-bidi-language: HI; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US;"><b><br /></b></span></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-47194782268948358862018-04-18T04:44:00.002-07:002018-05-08T04:32:13.785-07:00What is view? what is advantage and Disadvantage of view? <div dir="ltr" style="text-align: left;" trbidi="on">
<b>What is view? what is advantage and Disadvantage of view? </b><br />
<br />
<br />
View just like a virtual table which contains data view simply and query retrieve data dynamically.<br />
in view data show from table in virtual way just like image and data changes when in table data<br />
will be change in view we can not insert, update and delete records dynamically.<br />
<br />
<b>Material view</b> is also available in which update records a specific time interval.<br />
<br />
<br />
<b>Advantage of view</b><br />
<b><br /></b>
<b>1.</b>View does not store data in physical location.<br />
<b>2.</b>View hide some column from the table.<br />
<b>3.</b>Access restriction since data insert Update and deletion not possible.<br />
<br />
<b><br /></b>
<b>Disadvantage of View</b><br />
<b><br /></b>
<b>1.</b>When table dropped associated view became irrelevant.<br />
<b>2</b>.During view show the data process is very slow.<br />
<b>3.</b> View take large memory.</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-76886863319716123732018-04-17T03:00:00.001-07:002018-04-17T03:00:04.493-07:00What is caching ?<div dir="ltr" style="text-align: left;" trbidi="on">
What is caching and types of caching<br />
<br />
This is technique use to increase performance by keeping access data in fast way.The request for a<br />
cached file or data from the actual location<br />
<br />
There are three kind of caching<br />
<br />
<b>1.Output Caching</b><br />
<br />
Response.Cache.SetExpires(DateTime.Now.AddMonths(1));<br />
Response.Cache.SetCacheability(<br />
HttpCacheability.ServerAndPrivate);<br />
Response.Cache.SetValidUntilExpires(true);<br />
<br />
<b>2.Fragment Caching</b><br />
<br />
<br />
Create a user control<br />
<br />
<br />
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="amrit.ascx.cs" Inherits="WebUserControl" %><br />
<%@ OutputCache Duration="5" VaryByParam="None" %><br />
<br />
<asp:Label ID="lblTime" runat="server" Font-Bold="true" ForeColor="Blue" /><br />
<br />
<br />
create a page and define datetime on load event<br />
<br />
protected void Page_Load(object sender, EventArgs e)<br />
{<br />
lblTime.Text = DateTime.Now.ToString();<br />
}<br />
<br />
<br />
<br />
<%@ Register src="amrit.ascx" tagname="WebUserControl" tagprefix="uc1" %><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title>Fragment Caching in Asp.Net with Example</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<p>Refresh the Page Time Will Update Only After Every 5 Seconds</p><br />
<uc1:WebUserControl ID="WebUserControl1" runat="server" /><br />
</div><br />
</form><br />
</body><br />
</html><br />
<br />
<b>3.Data Caching</b><br />
<b><br /></b>
<span style="background-color: #f6f6f6; color: #212121; font-family: monospace; font-size: 14px; white-space: pre;"> Cache.Remove(String key);</span></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-26647227084908753892018-04-17T02:00:00.003-07:002018-04-17T02:44:30.926-07:00What are the different type of validators in asp.net<div dir="ltr" style="text-align: left;" trbidi="on">
Different Type of Validators ?<br />
<br />
There are following types of validators in asp.net are given as below-<br />
<br />
<b>1.Required Field Validator</b><br />
<b>2.Range Validator</b><br />
<b>3.Compare Validator</b><br />
<b>4.Custom Validator</b><br />
<b>5.Regular Expression Validator</b><br />
<b>6.Summary Validator</b><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b>1.Required Field Validator</b><br />
<b><br /></b>
In required validator use for input type of text compulsory to fill otherwise show error.<br />
<br />
for example<br />
<br />
<form id="form1" runat="server"><br />
Your name:<br /><br />
<asp:TextBox runat="server" id="t1" /><br />
<asp:RequiredFieldValidator runat="server" id="reqName" controltovalidate="t1" errormessage="Please enter your name!" /><br />
<br /><br /><br />
<asp:Button runat="server" id="btnSubmitForm" text="ok" /><br />
</form><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAPOfYe_2wRqme-9JAX5xCbz-asPS400fLv9VvaTGL_GTkS-95E9f9Z3wyJjobWRhQItv_2-MDPplXjQNQo6SW0tcgbviX98Zsc2zzSJFhOastvRnaTQyEauIiJn6E8S71PQQv9nQ4gxVT/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="144" data-original-width="376" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAPOfYe_2wRqme-9JAX5xCbz-asPS400fLv9VvaTGL_GTkS-95E9f9Z3wyJjobWRhQItv_2-MDPplXjQNQo6SW0tcgbviX98Zsc2zzSJFhOastvRnaTQyEauIiJn6E8S71PQQv9nQ4gxVT/s320/1.jpg" width="320" /></a></div>
<b>2.Range Validator</b><br />
<b><br /></b>
In range validator define specific range to give the value in text box.<br />
For Example<br />
<br />
Date:<br /><br />
<asp:TextBox runat="server" id="txtDate" /><br />
<asp:RangeValidator runat="server" id="rngDate" controltovalidate="txtDate" type="Date" minimumvalue="01-01-2006" maximumvalue="31-12-2006" errormessage="Please enter a valid date within 2006!" /><br />
<br />
<br /><br /><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYDWe_fNaKP-0BFuwkDPQgE-L6sfSIIyvPK9ZzDTIXPDSgYElQUDng7b_Sv1YzW52DKEc86EECazQjYoCRJdO7bhpifuIFYXxeJWIKQWHxviX6y1tEvAT6eiQ-wlsPKTobr7vIPjJijw2D/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="101" data-original-width="439" height="72" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYDWe_fNaKP-0BFuwkDPQgE-L6sfSIIyvPK9ZzDTIXPDSgYElQUDng7b_Sv1YzW52DKEc86EECazQjYoCRJdO7bhpifuIFYXxeJWIKQWHxviX6y1tEvAT6eiQ-wlsPKTobr7vIPjJijw2D/s320/2.jpg" width="320" /></a></div>
<br />
<b>3.Compare Validator</b><br />
<br />
In compare validator compare two textbox value.It just like a required field validator.<br />
For example if one textbox contain 2 value and other contain 3 value<br />
<br />
Small number:<br /><br />
<asp:TextBox runat="server" id="txtSmallNumber" /><br /><br /><br />
Big number:<br /><br />
<asp:TextBox runat="server" id="txtBigNumber" /><br /><br />
<asp:CompareValidator runat="server" id="cmpNumbers" controltovalidate="txtSmallNumber" controltocompare="txtBigNumber" operator="LessThan" type="Integer" errormessage="The first number should be smaller than the second number!" /><br /><br />
<br />
<br />
<b>4.Custom Validator</b><br />
<b><br /></b>
According to requirement create a custom validation which is validate by server side.<br />
<br />
<br />
Custom text:<br /><br />
<asp:TextBox runat="server" id="txtCustom" /><br />
<asp:CustomValidator runat="server" id="cusCustom" controltovalidate="txtCustom" onservervalidate="cusCustom_ServerValidate" errormessage="The text must be exactly 8 characters long!" /><br />
<br /><br /><br />
<br />
Server side create a validation<br />
<br />
protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e)<br />
{<br />
if(e.Value.Length == 8)<br />
e.IsValid = true;<br />
else<br />
e.IsValid = false;<br />
}<br />
<br />
<b>5.Regular Expression</b><br />
<b><br /></b>
In regular expression contain expression code to check textbox value by the validation expression<br />
for example<br />
we define only integer value 1 to 4 digit.<br />
<br />
<br />
digit number:<br /><br />
<asp:TextBox runat="server" id="txtNumber" /><br />
<asp:RegularExpressionValidator runat="server" id="rexNumber" controltovalidate="txtNumber" validationexpression="^[0-9]{4}$" errormessage="Please enter a 4 digit number!" /><br />
<br /><br /><br />
<br />
6.Summary of Validator<br />
Summary of validation is allow to display all error when click submit button.<br />
<br />
<br />
For example<br />
<%@ Page Language="C#" %><br />
<br />
<!DOCTYPE html><br />
<br />
<script runat="server"><br />
protected void Button_Submit_Click(object sender, System.EventArgs e)<br />
{<br />
Label_Message.Text = "Your submitted info....<br />" +<br />
"Name : " +<br />
TextBox_FirstName.Text.ToString() + " " +<br />
TextBox_LastName.Text.ToString() +<br />
"<br />City: " +<br />
TextBox_City.Text.ToString();<br />
}<br />
</script><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head runat="server"><br />
<title>How to use ValidationSummary control in asp.net</title><br />
</head><br />
<body style="padding:25px"><br />
<form id="form1" runat="server"><br />
<div><br />
<h2 style="color:MidnightBlue; font-style:italic;"> <br />
How to use ValidationSummary control<br />
</h2> <br />
<hr width="450" align="left" color="Gainsboro" /><br />
<asp:Label<br />
ID="Label_Message"<br />
runat="server"<br />
Font-Bold="true"<br />
Font-Names="Comic Sans MS"<br />
ForeColor="OliveDrab"<br />
Font-Italic="true"<br />
Font-Size="X-Large"<br />
/><br />
<asp:ValidationSummary<br />
ID="ValidationSummary1"<br />
runat="server"<br />
HeaderText="Following error occurs....."<br />
ShowMessageBox="false"<br />
DisplayMode="BulletList"<br />
ShowSummary="true"<br />
BackColor="Snow"<br />
Width="450"<br />
ForeColor="Red"<br />
Font-Size="X-Large"<br />
Font-Italic="true"<br />
/><br />
<br /><br /><br />
<asp:Label<br />
ID="Label_FirstName"<br />
runat="server"<br />
Text="First name"<br />
AssociatedControlID="TextBox_FirstName"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
ForeColor="Navy"<br />
/><br />
<asp:TextBox<br />
ID="TextBox_FirstName"<br />
runat="server"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
Height="30"<br />
BackColor="Gold"<br />
Font-Names="Courier New"<br />
/><br />
<asp:RequiredFieldValidator<br />
ID="RequiredFieldValidator1"<br />
runat="server"<br />
ControlToValidate="TextBox_FirstName"<br />
ErrorMessage='Input your first name.'<br />
EnableClientScript="true"<br />
SetFocusOnError="true"<br />
Text="*"<br />
><br />
</asp:RequiredFieldValidator><br />
<br /><br /><br />
<br />
<asp:Label<br />
ID="Label_LastName"<br />
runat="server"<br />
Text="Last name"<br />
AssociatedControlID="TextBox_LastName"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
ForeColor="Navy"<br />
/><br />
<asp:TextBox<br />
ID="TextBox_LastName"<br />
runat="server"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
Height="30"<br />
BackColor="Gold"<br />
Font-Names="Courier New"<br />
/><br />
<asp:RequiredFieldValidator<br />
ID="RequiredFieldValidator2"<br />
runat="server"<br />
ControlToValidate="TextBox_LastName"<br />
ErrorMessage='Input your last name.'<br />
EnableClientScript="true"<br />
SetFocusOnError="true"<br />
Text="*"<br />
><br />
</asp:RequiredFieldValidator><br />
<br /><br /><br />
<br />
<asp:Label<br />
ID="Label_City"<br />
runat="server"<br />
Text="City"<br />
AssociatedControlID="TextBox_City"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
ForeColor="Navy"<br />
/><br />
<asp:TextBox<br />
ID="TextBox_City"<br />
runat="server"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
Height="30"<br />
BackColor="Gold"<br />
Font-Names="Courier New"<br />
/><br />
<asp:RequiredFieldValidator<br />
ID="RequiredFieldValidator3"<br />
runat="server"<br />
ControlToValidate="TextBox_City"<br />
ErrorMessage='Input your city.'<br />
EnableClientScript="true"<br />
SetFocusOnError="true"<br />
Text="*"<br />
><br />
</asp:RequiredFieldValidator><br />
<br /><br /><br />
<asp:Button<br />
ID="Button_Submit"<br />
runat="server"<br />
Text="Submit"<br />
OnClick="Button_Submit_Click"<br />
Font-Bold="true"<br />
Font-Size="Large"<br />
ForeColor="DodgerBlue"<br />
Font-Names="Monaco"<br />
Height="45"<br />
Width="350"<br />
/><br />
<br /><br /><br />
</div><br />
</form><br />
</body><br />
</html><br />
<br />
<b>I hope my post is usefull for you............</b><br />
<div>
<br /></div>
<b><br /></b></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-46967922805449284932018-02-12T03:31:00.001-08:002018-02-12T03:32:09.078-08:00Home<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b>The main motive of .net
learning point is to provide the information to all new comers working on dot
Net framework. Those students or Fresher’s who are willing to learn .net
programming language and its oops concepts can get better information and
working trips and tricks with the help of advance technology these are C# , SQL
Server 2008, ASP.net, ADO.Net, Crystal Report, WCF ,WPF , Silver light, AJAX,
CSS, Java script etc.<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>Here i will disscuss article about
the Introduction Of .Net Frame Work 4.0.and others version which comes one by
one according technology brifly reprented as below.Hope this article
help full for you....<o:p></o:p></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><br /></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><br /></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>Asp.Net Page Life Cycle structure:-</b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEj3uOWBMt5l5gyBGzFtC9wBJu7yE6ObU3VD547iTVNHp3ptLkeLYeLtzn03id9B-cpzKvrVP1ZM-V9MZwkvzFIxI3kE1_dT7vhDLC9OFrdadpsd5uzSmV3ephcEPmU7tCWmJNeF4ALv-9/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="633" data-original-width="1024" height="197" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEj3uOWBMt5l5gyBGzFtC9wBJu7yE6ObU3VD547iTVNHp3ptLkeLYeLtzn03id9B-cpzKvrVP1ZM-V9MZwkvzFIxI3kE1_dT7vhDLC9OFrdadpsd5uzSmV3ephcEPmU7tCWmJNeF4ALv-9/s320/2.png" width="320" /></a></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><span style="color: #666666;"><br /></span></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>The .NET
Framework (pronounced dot net) is a software Framework developed by
Microsoft that runs primarily on Microsoft Windows It includes a large
librarary and provides language interoperability across several programming
languages. Programs written for the .NET Framework execute in a software
environment (as contrasted to hardware environment), known as the Common
Language Runtime (CLR), an application virtual machine that provides important
services such as security, memory management, and exception handling. The class
library and the CLR together constitute the .NET Framework.<o:p></o:p></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<b>The .NET Framework's Base Class Library
provides user interface, data access, database connectivity, cryptography, web
application development, numeric algorithms, and network communications.
Programmers produce software by combining their own source code with the .NET
Framework and other libraries. The .NET Framework is intended to be used by
most new applications created for the Windows platform. Microsoft also produces
a popular integrated development environment largely for .NET software called
Visual Studio.<o:p></o:p></b></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-29709315828666924072018-02-12T03:15:00.001-08:002018-02-12T03:19:29.752-08:00Privacy Policy<div dir="ltr" style="text-align: left;" trbidi="on">
<h1>
<span style="font-weight: normal;"><span style="font-size: small;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">My Name Amrit Yadav We</span><span style="background-color: white;"> operates </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><a href="https://ambrosia-amrit.blogspot.in/">https://ambrosia-amrit.blogspot.in/</a></span><span style="background-color: white;">. This page informs you of our policies regarding the collection, use and disclosure of Personal Information we receive from users of the Site.</span></span></span></h1>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">We use your Personal Information only for providing and improving the Site. By using the Site, you agree to the collection and use of information in accordance with this policy.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: white;">Information Collection And Use<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">While using our Site, we may ask you to provide us with certain personally identifiable information that can be used to contact or identify you. Personally identifiable information may include, but is not limited to your name ("Personal Information").<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: white;">Log Data<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">Like many site operators, we collect information that your browser sends whenever you visit our Site ("Log Data").<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">This Log Data may include information such as your computer's Internet Protocol ("IP") address, browser type, browser version, the pages of our Site that you visit, the time and date of your visit, the time spent on those pages and other statistics.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">In addition, we may use third party services such as Google Analytics that collect, monitor and analyze this …<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: -8.6pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1536; width: 650px;"><tbody>
<tr><td style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; padding: 8.6pt; width: 487.3pt;" valign="top" width="650"><div class="MsoNormal" style="line-height: normal; mso-pagination: none;">
<span style="background-color: white;">The Log Data section is for businesses that use analytics or tracking services in websites or apps, like Google Analytics. For the full disclosure section.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: white;">Communications<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">We may use your Personal Information to contact you with newsletters, marketing or promotional materials and other information that ...<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: -8.6pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1536; width: 650px;"><tbody>
<tr><td style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; padding: 8.6pt; width: 487.3pt;" valign="top" width="650"><div class="MsoNormal" style="line-height: normal; mso-pagination: none;">
<span style="background-color: white;">The Communications section is for businesses that may contact users via email (email newsletters) or other methods. For the full disclosure section.<o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: white;">Cookies<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">Cookies are files with small amount of data, which may include an anonymous unique identifier. Cookies are sent to your browser from a web site and stored on your computer's hard drive.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">Like many sites, we use "cookies" to collect information. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent. However, if you do not accept cookies, you may not be able to use some portions of our Site.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: white;">Security<o:p></o:p></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">The security of your Personal Information is important to us, but remembers that no method of transmission over the Internet, or method of electronic storage, is 100% secure. While we strive to use commercially acceptable means to protect your Personal Information, we cannot guarantee its absolute security.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;"><b>Changes to This Privacy Policy</b><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">This Privacy Policy is effective as of <span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">(12-02-2018)</span> and will remain in effect except with respect to any changes in its provisions in the future, which will be in effect immediately after being posted on this page.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">We reserve the right to update or change our Privacy Policy at any time and you should check this Privacy Policy periodically. Your continued use of the Service after we post any modifications to the Privacy Policy on this page will constitute your acknowledgment of the modifications and your consent to abide and be bound by the modified Privacy Policy.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;">If we make any material changes to this Privacy Policy, we will notify you either through the email address you have provided us, or by placing a prominent notice on our website.</span><o:p></o:p></div>
<br />
<div class="MsoNormal">
</div>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; margin: 0px; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-14296190727459025562016-10-05T22:50:00.001-07:002018-02-11T23:33:53.776-08:00Edit update and delete by using store procedure and pass parameters in c#<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: Arial, sans-serif;">In this blogger we
discuss about functions can have only input </span><span style="color: #6a6a6a; font-family: Arial, sans-serif;">parameters </span><span style="color: #545454; font-family: "Times New Roman", serif;">allow giving parameters</span><span style="color: #6a6a6a; font-family: Arial, sans-serif;"> </span><span style="color: #545454; font-family: Arial, sans-serif;">for it, whereas procedures can have I/O </span><span style="color: #6a6a6a; font-family: Arial, sans-serif;">parameters</span><span style="color: #545454; font-family: Arial, sans-serif;">. Here functions can be called from </span><span style="color: #545454; font-family: "Times New Roman", serif;">procedure for edit and update details by using
different-different parameters,</span><span style="color: #545454; font-family: Arial, sans-serif;"> whereas
procedures cannot be called from function. </span><span style="color: #6a6a6a; font-family: Arial, sans-serif;">Procedure</span><span style="color: #545454; font-family: Arial, sans-serif;"> allows SELECT as well as DML (INSERT/</span><span style="color: #6a6a6a; font-family: Arial, sans-serif;">UPDATE</span><span style="color: #545454; font-family: Arial, sans-serif;">/</span><span style="color: #6a6a6a; font-family: Arial, sans-serif;">DELETE</span><span style="color: #545454; font-family: Arial, sans-serif;">).</span><span style="font-family: "Times New Roman", serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="font-family: "Times New Roman", serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">1-First of all
creating table emp_details by using script<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">USE [mydb]<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">/****** Object:
Table [dbo].[emp_details] Script Date: 10/06/2016 11:06:57
******/<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET ANSI_NULLS ON<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET QUOTED_IDENTIFIER
ON<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET ANSI_PADDING ON<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">CREATE TABLE
[dbo].[emp_details](<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
[emp_id] [int] IDENTITY(1,1) NOT NULL,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
[emp_name] [varchar](50) NULL,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
[emp_address] [varchar](50) NULL,<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
[emp_salary] [int] NULL<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">) ON [PRIMARY]<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET ANSI_PADDING OFF<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">2-Creating
procedure emp_details by using script<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">/****** Object:
StoredProcedure [dbo].[procemp_details] Script Date:
10/06/2016 10:20:19 ******/<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET ANSI_NULLS ON<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">SET QUOTED_IDENTIFIER
ON<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">GO<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">ALTER PROCEDURE
[dbo].[procemp_details]<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
@Action VARCHAR(10)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
,@emp_id INT = NULL<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
,@emp_name VARCHAR(50) = NULL<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
,@emp_address VARCHAR(50) = NULL<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
,@emp_salary INT=NULL<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">AS<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">BEGIN<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SET NOCOUNT ON;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
--SELECT<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> IF
@Action = 'SELECT'<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
BEGIN<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SELECT emp_id, emp_name,emp_address, emp_salary<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
FROM emp_deatails<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
END<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
--INSERT<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> IF
@Action = 'INSERT'<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
BEGIN<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
INSERT INTO emp_deatails(emp_name,emp_address,emp_salary)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
VALUES (@emp_name,@emp_address,@emp_salary)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
END<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
--UPDATE<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> IF
@Action = 'UPDATE'<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
BEGIN<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
UPDATE emp_deatails<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SET emp_name =@emp_name, emp_address =@emp_address,emp_salary=@emp_salary<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
WHERE emp_id =@emp_id<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
END<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
--DELETE<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> IF
@Action = 'DELETE'<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
BEGIN<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
DELETE FROM emp_deatails<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
WHERE emp_id =@emp_id<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
END<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">END<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">3-Create design page
of grid view<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Default2.aspx<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><%@ Page
Language="C#" AutoEventWireup="true"
CodeFile="Default2.aspx.cs" Inherits="Default2" %><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><html
xmlns="http://www.w3.org/1999/xhtml"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><head
runat="server"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<title></title><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"></head><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><body><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<form id="form1" runat="server"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<div><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:GridView ID="grd_details" runat="server"
AutoGenerateColumns="false" DataKeyNames="emp_id"
OnRowDataBound="OnRowDataBound" OnRowEditing="OnRowEditing"
OnRowCancelingEdit="OnRowCancelingEdit"
OnRowUpdating="OnRowUpdating" OnRowDeleting="OnRowDeleting"
EmptyDataText="No records has been added."><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<Columns><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TemplateField HeaderText="Name"
ItemStyle-Width="150"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:Label ID="lblname" runat="server"
Text='<%#Eval("emp_name") %>'></asp:Label><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtname" runat="server"
Text='<%#Eval("emp_name") %>'></asp:TextBox><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</asp:TemplateField><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TemplateField HeaderText="Address"
ItemStyle-Width="150"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:Label ID="lbladdress" runat="server"
Text='<%#Eval("emp_address") %>'></asp:Label><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtaddress" runat="server"
Text='<%#Eval("emp_address") %>'></asp:TextBox><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</asp:TemplateField><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TemplateField HeaderText="Salary"
ItemStyle-Width="150"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:Label ID="lblsalary" runat="server"
Text='<%#Eval("emp_salary") %>'></asp:Label><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</ItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtsalary" runat="server"
Text='<%#Eval("emp_salary") %>'></asp:TextBox><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</EditItemTemplate><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</asp:TemplateField><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:CommandField ButtonType="Button"
ShowEditButton="true" ShowDeleteButton="true"
ItemStyle-Width="150" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> </Columns><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</asp:GridView><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<table border="1" cellpadding="0"
cellspacing="0" style="border-collapse: collapse"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"><tr><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<td style="width: 150px"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
Name:<br /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtName" runat="server"
Width="140" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</td><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<td style="width: 150px"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
Country:<br /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtCountry" runat="server"
Width="140" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</td><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<td style="width: 150px"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
Salary:<br /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:TextBox ID="txtsalary" runat="server"
Width="140" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</td><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<td style="width: 100px"><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<asp:Button ID="btnAdd" runat="server"
Text="Add" OnClick="Insert" /><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</td><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
<td><asp:Label ID="lbl"
runat="server"></asp:Label></td><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"></tr><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"></table><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</div><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
</form><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"></body><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"></html><o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Default2.aspx.cs<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using System;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using
System.Collections.Generic;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using System.Linq;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using System.Web;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using System.Web.UI;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using
System.Web.UI.WebControls;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using System.Data;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using
System.Configuration;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">using
System.Data.SqlClient;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">public partial class
Default2 : System.Web.UI.Page<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
String s = ConfigurationManager.ConnectionStrings["conn"].ToString();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SqlConnection con;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SqlCommand cmd;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void Page_Load(object sender, EventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
if (!this.IsPostBack)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
private void grd_details1()<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con = new SqlConnection(s);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd = new SqlCommand("procemp_details");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@Action", "SELECT");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.CommandType = CommandType.StoredProcedure;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SqlDataAdapter sda = new SqlDataAdapter(cmd);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Connection = con;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
sda.SelectCommand = cmd;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
DataTable dt = new DataTable();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
sda.Fill(dt);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
grd_details.DataSource = dt;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
grd_details.DataBind();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void Insert(object sender, EventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string name = txtName.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string country = txtCountry.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string salary=txtsalary.Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con = new SqlConnection(s);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd = new SqlCommand("procemp_details");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.CommandType = CommandType.StoredProcedure;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@Action", "INSERT");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_name", name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_address", country);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_salary", salary);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Connection = con;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Open();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.ExecuteNonQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Close();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Visible = true;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Text = "Records are Submitted Successfully";<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void OnRowEditing(object sender, GridViewEditEventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
grd_details.EditIndex = e.NewEditIndex;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void OnRowUpdating(object sender, GridViewUpdateEventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
GridViewRow row = grd_details.Rows[e.RowIndex];<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
int emp_id = Convert.ToInt32(grd_details.DataKeys[e.RowIndex].Values[0]);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string emp_name = (row.FindControl("txtName") as TextBox).Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string emp_address = (row.FindControl("txtaddress") as TextBox).Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string emp_salary = (row.FindControl("txtsalary") as TextBox).Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con = new SqlConnection(s);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SqlCommand cmd = new SqlCommand("procemp_details");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.CommandType = CommandType.StoredProcedure;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@Action", "UPDATE");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_id", emp_id);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_name", emp_name);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_address", emp_address);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_salary",emp_salary);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Connection = con;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Open();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.ExecuteNonQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Visible = true;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Text = "Records are updated Successfully";<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Close();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
grd_details.EditIndex = -1;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void OnRowCancelingEdit(object sender, EventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
grd_details.EditIndex = -1;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void OnRowDeleting(object sender, GridViewDeleteEventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
int emp_id = Convert.ToInt32(grd_details.DataKeys[e.RowIndex].Values[0]);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con = new SqlConnection(s);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
SqlCommand cmd = new SqlCommand("procemp_details");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.CommandType = CommandType.StoredProcedure;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@Action", "DELETE");<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Parameters.AddWithValue("@emp_id", emp_id);<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.Connection = con;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Open();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
cmd.ExecuteNonQuery();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Visible = true;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
lbl.Text = "Records are Deleted Successfully";<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
con.Close();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
this.grd_details1();<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
if (e.Row.RowType == DataControlRowType.DataRow)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
string item = e.Row.Cells[0].Text;<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
foreach (Button button in e.Row.Cells[3].Controls.OfType<Button>())<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
if (button.CommandName == "Delete")<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
{<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
button.Attributes["onclick"] = "if(!confirm('Do you want to
delete " + item + "?')){ return false; };";<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
}<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%; mso-fareast-font-family: "Times New Roman";"><b>In the view of above articles helps all of you.Let me know if any query..........</b></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-31590895555560536922016-03-21T00:37:00.000-07:002018-02-12T00:00:47.793-08:00Difference between response.redirect() and server.transfer() method<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Response.Redirect and Server.Transfer both are use to transfer user from one page another page both purpose is same.</b><br />
<b><br /></b>
<b>there are following difference given as below.</b><br />
<b><br /></b><b><br /></b><b> Response.Redirect() -</b>Redirect a URL a new page with proper path<br />
<b>Response.Redirect("secondpage.aspx");</b><br />
<b>Server.Transfer()-</b>Terminate the current request in a current page and new page using.<br />
<br />
<b>Server.Transfer(</b><b>"secondpage.aspx"</b><b>);</b><br />
<b><br /></b>
<span style="color: #161616; font-family: "&quot","serif"; font-size: 12.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: HI; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">On your browser you can click
back and update your address bar and send new URL tab. </span><span style="color: #161616; font-family: "&quot", serif; font-size: 12pt; text-align: justify;">HTML pages on our server or to some other web servers and provide all response of all request.</span><br />
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 9.0pt; margin-right: 0in; margin-top: 0in; text-align: justify; vertical-align: top;">
<span style="color: #161616; font-family: "&quot","serif"; font-size: 12.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<b>Response Redirect </b><span style="color: #161616; font-family: "&quot", serif; font-size: 12pt;">simply sends a message down to
the (HTTP 302) browser. It does not preserve a query sting in page.</span><br />
<span style="color: #161616; font-family: "&quot", serif; font-size: 12pt;"><br /></span>
<span style="color: #161616; font-family: "&quot", serif; font-size: 12pt;"><b>Server Transfer</b> you can not click hit back some times loading page.</span><br />
<span style="color: #161616; font-family: "&quot","serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-font-size: 10.0pt; mso-bidi-language: HI; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;">transfers current page request to another .aspx page on
the same server and preserve query string and form variables. and does not show real URL n address bar.</span><br />
<span style="color: #161616; font-family: "&quot","serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: Mangal; mso-bidi-font-size: 10.0pt; mso-bidi-language: HI; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;"><b>Server.Transfer</b> happens without the browser knowing
anything, the browser request a page, but the server returns the content of
another</span><br />
<span style="color: #161616; font-family: "&quot", serif; font-size: 12pt;"><br /></span>
<span style="color: #161616; font-family: "&quot", serif; font-size: 12pt;"><br /></span>
<br />
<b><br /></b>
<b><br /></b>
<b>EXAMPLE-</b><br />
<b><br /></b>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="firstpage.aspx.cs" Inherits="firstpage" %><br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml" ><br />
<head runat="server"><br />
<title>Untitled Page</title><br />
</head><br />
<body><br />
<form id="form1" runat="server"><br />
<div><br />
<asp:Button ID="bt1" runat="server" Text="response.redirect" OnClick="bt1_Click" /><br />
<br />
<asp:Button ID="Button1" runat="server" Text="server.transfer" OnClick="Button1_Click" /><br />
</div><br />
</form><br />
</body><br />
<br />
</html><br />
<div>
<br /></div>
<div>
<div>
using System;</div>
<div>
using System.Data;</div>
<div>
using System.Configuration;</div>
<div>
using System.Collections;</div>
<div>
using System.Web;</div>
<div>
using System.Web.Security;</div>
<div>
using System.Web.UI;</div>
<div>
using System.Web.UI.WebControls;</div>
<div>
using System.Web.UI.WebControls.WebParts;</div>
<div>
using System.Web.UI.HtmlControls;</div>
<div>
<br /></div>
<div>
public partial class firstpage : System.Web.UI.Page</div>
<div>
{</div>
<div>
protected void Page_Load(object sender, EventArgs e)</div>
<div>
{</div>
<div>
<br /></div>
<div>
}</div>
<div>
protected void bt1_Click(object sender, EventArgs e)</div>
<div>
{</div>
<div>
Response.Redirect("secondpage.aspx");</div>
<div>
}</div>
<div>
protected void Button1_Click(object sender, EventArgs e)</div>
<div>
{</div>
<div>
Server.Transfer("secondpage.aspx");</div>
<div>
<br /></div>
<div>
}</div>
<div>
}</div>
</div>
<div>
<br /></div>
<div>
<div>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="secondpage.aspx.cs" Inherits="secondpage" %></div>
<div>
<br /></div>
<div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></div>
<div>
<br /></div>
<div>
<html xmlns="http://www.w3.org/1999/xhtml" ></div>
<div>
<head runat="server"></div>
<div>
<title>Untitled Page</title></div>
<div>
</head></div>
<div>
<body></div>
<div>
<form id="form1" runat="server"></div>
<div>
<div></div>
<div>
Hello Friends good morning</div>
<div>
</div></div>
<div>
</form></div>
<div>
</body></div>
<div>
</html></div>
</div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-45131276200063370582016-03-21T00:27:00.002-07:002018-02-12T00:14:43.701-08:00Insert Update Delete in Gridview in Asp.net<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;">You might have seen many articles
explaining </span><em><b><span style="color: #6a6a6a; font-family: "Arial","sans-serif"; font-size: 10.0pt; font-style: normal; line-height: 115%;">ASP</span></b></em><span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;">.</span><em><b><span style="color: #6a6a6a; font-family: "Arial","sans-serif"; font-size: 10.0pt; font-style: normal; line-height: 115%;">Net</span></b></em><span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"> Grid View Add (</span><em><b><span style="color: #6a6a6a; font-family: "Arial","sans-serif"; font-size: 10.0pt; font-style: normal; line-height: 115%;">Insert</span></b></em><span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;">), Edit, </span><em><b><span style="color: #6a6a6a; font-family: "Arial","sans-serif"; font-size: 10.0pt; font-style: normal; line-height: 115%;">Update</span></b></em><span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"> and </span><em><b><span style="color: #6a6a6a; font-family: "Arial","sans-serif"; font-size: 10.0pt; font-style: normal; line-height: 115%;">Delete</span></b></em><span style="line-height: 115%;"><span style="word-wrap: break-word;"><span style="color: #545454; font-family: Arial, sans-serif;"><span style="font-size: 10pt;"> functionality in </span><span style="font-size: 13.3333px;">Grid View </span><span style="font-size: 10pt;">, My main objective in
this article is to keep it simple and cover multiple aspects in single
article.Concept normal add data in database.</span></span></span><span style="color: #545454; font-family: Arial, sans-serif;"><span style="font-size: 10pt;"><o:p></o:p></span></span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;"><br /></span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;"><br /></span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">Create a table in sql server by preparing query or make user manually.</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;"><br /></span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">Create table [tablename]</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">(</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">UserId int identity(1,1),</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">Username varchar(50),</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">City varchar(50),</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">Designation varchar(50),</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">createon varchar(50)</span></span></div>
<div class="MsoNormal">
<span style="color: #545454; font-family: "Arial","sans-serif"; font-size: 10.0pt; line-height: 115%;"><span style="word-wrap: break-word;">)</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNYB_Baaji01JnHlsiqx3IcAKF7PdrSTlvu9MqDwjAu6z-_7TgFyMrint2l9268xEorzVLiq_bpgIQnCiM8o4cnoLuxyNaVYCQhFMZToAeCGoBLdPBLgCCXsjBpPZMyYaVVSCacRxHKkEU/s1600/emp.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="282" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNYB_Baaji01JnHlsiqx3IcAKF7PdrSTlvu9MqDwjAu6z-_7TgFyMrint2l9268xEorzVLiq_bpgIQnCiM8o4cnoLuxyNaVYCQhFMZToAeCGoBLdPBLgCCXsjBpPZMyYaVVSCacRxHKkEU/s400/emp.JPG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b>As view of above after creating a table then use deign in asp.net pages Default.aspx</b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-size: large;">Default.aspx</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<html xmlns="http://www.w3.org/1999/xhtml" ></div>
<div class="separator" style="clear: both; text-align: left;">
<head runat="server"></div>
<div class="separator" style="clear: both; text-align: left;">
<title>Untitled Page</title></div>
<div class="separator" style="clear: both; text-align: left;">
<style type="text/css"></div>
<div class="separator" style="clear: both; text-align: left;">
.Gridview</div>
<div class="separator" style="clear: both; text-align: left;">
{</div>
<div class="separator" style="clear: both; text-align: left;">
font-family:Verdana;</div>
<div class="separator" style="clear: both; text-align: left;">
font-size:10pt;</div>
<div class="separator" style="clear: both; text-align: left;">
font-weight:normal;</div>
<div class="separator" style="clear: both; text-align: left;">
color:black;</div>
<div class="separator" style="clear: both; text-align: left;">
}</div>
<div class="separator" style="clear: both; text-align: left;">
</style></div>
<div class="separator" style="clear: both; text-align: left;">
</head></div>
<div class="separator" style="clear: both; text-align: left;">
<body></div>
<div class="separator" style="clear: both; text-align: left;">
<form id="form1" runat="server"></div>
<div class="separator" style="clear: both; text-align: left;">
<div></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:GridView ID="gvDetails" DataKeyNames="UserId,UserName" runat="server"</div>
<div class="separator" style="clear: both; text-align: left;">
AutoGenerateColumns="false" CssClass="Gridview" HeaderStyle-BackColor="#61A6F8"</div>
<div class="separator" style="clear: both; text-align: left;">
ShowFooter="true" HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="White"</div>
<div class="separator" style="clear: both; text-align: left;">
onrowcancelingedit="gvDetails_RowCancelingEdit"</div>
<div class="separator" style="clear: both; text-align: left;">
onrowdeleting="gvDetails_RowDeleting" onrowediting="gvDetails_RowEditing"</div>
<div class="separator" style="clear: both; text-align: left;">
onrowupdating="gvDetails_RowUpdating"</div>
<div class="separator" style="clear: both; text-align: left;">
onrowcommand="gvDetails_RowCommand" Height="61px" Width="745px"></div>
<div class="separator" style="clear: both; text-align: left;">
<Columns></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TemplateField></div>
<div class="separator" style="clear: both; text-align: left;">
<EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:ImageButton ID="imgbtnUpdate" CommandName="Update" runat="server" ImageUrl="~/Images/up.jpg" ToolTip="Update" Height="20px" Width="20px" /></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:ImageButton ID="imgbtnCancel" runat="server" CommandName="Cancel" ImageUrl="~/Images/Cancel.jpg" ToolTip="Cancel" Height="20px" Width="20px" /></div>
<div class="separator" style="clear: both; text-align: left;">
</EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:ImageButton ID="imgbtnEdit" CommandName="Edit" runat="server" ImageUrl="~/Images/edit.jpg" ToolTip="Edit" Height="20px" Width="20px" /></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:ImageButton ID="imgbtnDelete" CommandName="Delete" Text="Edit" runat="server" ImageUrl="~/Images/del.jpg" ToolTip="Delete" Height="20px" Width="20px" /></div>
<div class="separator" style="clear: both; text-align: left;">
</ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:ImageButton ID="imgbtnAdd" runat="server" ImageUrl="~/Images/Add.jpg" CommandName="AddNew" Width="30px" Height="30px" ToolTip="Add new User" ValidationGroup="validaiton" /></div>
<div class="separator" style="clear: both; text-align: left;">
</FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
</asp:TemplateField></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TemplateField HeaderText="UserName"></div>
<div class="separator" style="clear: both; text-align: left;">
<EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:Label ID="lbleditusr" runat="server" Text='<%#Eval("Username") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:Label ID="lblitemUsr" runat="server" Text='<%#Eval("UserName") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TextBox ID="txtftrusrname" runat="server"/></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:RequiredFieldValidator ID="rfvusername" runat="server" ControlToValidate="txtftrusrname" Text="*" ValidationGroup="validaiton"/></div>
<div class="separator" style="clear: both; text-align: left;">
</FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
</asp:TemplateField></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TemplateField HeaderText="City"></div>
<div class="separator" style="clear: both; text-align: left;">
<EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TextBox ID="txtcity" runat="server" Text='<%#Eval("City") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:Label ID="lblcity" runat="server" Text='<%#Eval("City") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TextBox ID="txtftrcity" runat="server"/></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:RequiredFieldValidator ID="rfvcity" runat="server" ControlToValidate="txtftrcity" Text="*" ValidationGroup="validaiton"/></div>
<div class="separator" style="clear: both; text-align: left;">
</FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
</asp:TemplateField></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TemplateField HeaderText="Designation"></div>
<div class="separator" style="clear: both; text-align: left;">
<EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TextBox ID="txtDesg" runat="server" Text='<%#Eval("Designation") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</EditItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:Label ID="lblDesg" runat="server" Text='<%#Eval("Designation") %>'/></div>
<div class="separator" style="clear: both; text-align: left;">
</ItemTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:TextBox ID="txtftrDesignation" runat="server"/></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:RequiredFieldValidator ID="rfvdesignation" runat="server" ControlToValidate="txtftrDesignation" Text="*" ValidationGroup="validaiton"/></div>
<div class="separator" style="clear: both; text-align: left;">
</FooterTemplate></div>
<div class="separator" style="clear: both; text-align: left;">
</asp:TemplateField></div>
<div class="separator" style="clear: both; text-align: left;">
</Columns></div>
<div class="separator" style="clear: both; text-align: left;">
<HeaderStyle BackColor="#61A6F8" Font-Bold="True" ForeColor="White" /></div>
<div class="separator" style="clear: both; text-align: left;">
</asp:GridView></div>
<div class="separator" style="clear: both; text-align: left;">
</div></div>
<div class="separator" style="clear: both; text-align: left;">
<div></div>
<div class="separator" style="clear: both; text-align: left;">
<asp:Label ID="lblresult" runat="server"></asp:Label></div>
<div class="separator" style="clear: both; text-align: left;">
</div></div>
<div class="separator" style="clear: both; text-align: left;">
</form></div>
<div class="separator" style="clear: both; text-align: left;">
</body></div>
<div class="separator" style="clear: both; text-align: left;">
</html></div>
<div style="text-align: center;">
<div style="text-align: left;">
<br /></div>
</div>
<div style="text-align: center;">
<div style="text-align: left;">
<b><span style="font-size: large;">Default.aspx.cs\</span></b></div>
<div style="text-align: left;">
<b><span style="font-size: large;"><br /></span></b></div>
</div>
<div style="text-align: center;">
<div>
<div style="text-align: left;">
using System;</div>
</div>
<div>
<div style="text-align: left;">
using System.Data;</div>
</div>
<div>
<div style="text-align: left;">
using System.Configuration;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web.Security;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web.UI;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web.UI.WebControls;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web.UI.WebControls.WebParts;</div>
</div>
<div>
<div style="text-align: left;">
using System.Web.UI.HtmlControls;</div>
</div>
<div>
<div style="text-align: left;">
using System.Data.SqlClient;</div>
</div>
<div>
<div style="text-align: left;">
using System.Drawing;</div>
</div>
<div>
<div style="text-align: left;">
public partial class _Default : System.Web.UI.Page</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
SqlConnection con = new SqlConnection(@"Data Source=nictrg-15;uid=sa;pwd=nicuser;Initial Catalog=Amrit;");</div>
</div>
<div>
<div style="text-align: left;">
protected void Page_Load(object sender, EventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
<br /></div>
</div>
<div>
<div style="text-align: left;">
if (!IsPostBack)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void BindEmployeeDetails()</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
con.Open();</div>
</div>
<div>
<div style="text-align: left;">
SqlCommand cmd = new SqlCommand("Select * from Employee_Details", con);</div>
</div>
<div>
<div style="text-align: left;">
SqlDataAdapter da = new SqlDataAdapter(cmd);</div>
</div>
<div>
<div style="text-align: left;">
DataSet ds = new DataSet();</div>
</div>
<div>
<div style="text-align: left;">
da.Fill(ds);</div>
</div>
<div>
<div style="text-align: left;">
con.Close();</div>
</div>
<div>
<div style="text-align: left;">
if (ds.Tables[0].Rows.Count > 0)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.DataSource = ds;</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.DataBind();</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
else</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
ds.Tables[0].Rows.Add(ds.Tables[0].NewRow());</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.DataSource = ds;</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.DataBind();</div>
</div>
<div>
<div style="text-align: left;">
int columncount = gvDetails.Rows[0].Cells.Count;</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.Rows[0].Cells.Clear();</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.Rows[0].Cells.Add(new TableCell());</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.Rows[0].Cells[0].ColumnSpan = columncount;</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.Rows[0].Cells[0].Text = "No Records Found";</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void gvDetails_RowEditing(object sender, GridViewEditEventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.EditIndex = e.NewEditIndex;</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void gvDetails_RowUpdating(object sender, GridViewUpdateEventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
DateTime dtnew1 = DateTime.Parse("11/23/2010");</div>
</div>
<div>
<div style="text-align: left;">
string s2 = dtnew1.ToString("dd-MM-yyyy");</div>
</div>
<div>
<div style="text-align: left;">
DateTime dt = DateTime.Parse(s2);</div>
</div>
<div>
<div style="text-align: left;">
//DateTime dt = DateTime.Now.ToString();</div>
</div>
<div>
<div style="text-align: left;">
int userid = Convert.ToInt32(gvDetails.DataKeys[e.RowIndex].Value.ToString());</div>
</div>
<div>
<div style="text-align: left;">
string username = gvDetails.DataKeys[e.RowIndex].Values["UserName"].ToString();</div>
</div>
<div>
<div style="text-align: left;">
TextBox txtcity = (TextBox)gvDetails.Rows[e.RowIndex].FindControl("txtcity");</div>
</div>
<div>
<div style="text-align: left;">
TextBox txtDesignation = (TextBox)gvDetails.Rows[e.RowIndex].FindControl("txtDesg");</div>
</div>
<div>
<div style="text-align: left;">
con.Open();</div>
</div>
<div>
<div style="text-align: left;">
SqlCommand cmd = new SqlCommand("update Employee_Details set City='" + txtcity.Text + "',Designation='" + txtDesignation.Text + "',createon='" + dt.ToString() + "' where UserId=" + userid, con);</div>
</div>
<div>
<div style="text-align: left;">
cmd.ExecuteNonQuery();</div>
</div>
<div>
<div style="text-align: left;">
con.Close();</div>
</div>
<div>
<div style="text-align: left;">
lblresult.ForeColor = Color.Green;</div>
</div>
<div>
<div style="text-align: left;">
lblresult.Text = username + " Details Updated successfully";</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.EditIndex = -1;</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void gvDetails_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
gvDetails.EditIndex = -1;</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void gvDetails_RowDeleting(object sender, GridViewDeleteEventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
int userid = Convert.ToInt32(gvDetails.DataKeys[e.RowIndex].Values["UserId"].ToString());</div>
</div>
<div>
<div style="text-align: left;">
string username = gvDetails.DataKeys[e.RowIndex].Values["UserName"].ToString();</div>
</div>
<div>
<div style="text-align: left;">
con.Open();</div>
</div>
<div>
<div style="text-align: left;">
SqlCommand cmd = new SqlCommand("delete from Employee_Details where UserId=" + userid, con);</div>
</div>
<div>
<div style="text-align: left;">
int result = cmd.ExecuteNonQuery();</div>
</div>
<div>
<div style="text-align: left;">
con.Close();</div>
</div>
<div>
<div style="text-align: left;">
if (result == 1)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
lblresult.ForeColor = Color.Red;</div>
</div>
<div>
<div style="text-align: left;">
lblresult.Text = username + " details deleted successfully";</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
protected void gvDetails_RowCommand(object sender, GridViewCommandEventArgs e)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
if (e.CommandName.Equals("AddNew"))</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
string dat = System.DateTime.Now.ToString();</div>
</div>
<div>
<div style="text-align: left;">
TextBox txtUsrname = (TextBox)gvDetails.FooterRow.FindControl("txtftrusrname");</div>
</div>
<div>
<div style="text-align: left;">
TextBox txtCity = (TextBox)gvDetails.FooterRow.FindControl("txtftrcity");</div>
</div>
<div>
<div style="text-align: left;">
TextBox txtDesgnation = (TextBox)gvDetails.FooterRow.FindControl("txtftrDesignation");</div>
</div>
<div>
<div style="text-align: left;">
con.Open();</div>
</div>
<div>
<div style="text-align: left;">
SqlCommand cmd =</div>
</div>
<div>
<div style="text-align: left;">
new SqlCommand("insert into Employee_Details(UserName,City,Designation,createon) values('" + txtUsrname.Text + "','" + txtCity.Text + "','" + txtDesgnation.Text + "','" + dat.ToString() + "')", con);</div>
</div>
<div>
<div style="text-align: left;">
int result = cmd.ExecuteNonQuery();</div>
</div>
<div>
<div style="text-align: left;">
con.Close();</div>
</div>
<div>
<div style="text-align: left;">
if (result == 1)</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
BindEmployeeDetails();</div>
</div>
<div>
<div style="text-align: left;">
lblresult.ForeColor = Color.Green;</div>
</div>
<div>
<div style="text-align: left;">
lblresult.Text = txtUsrname.Text + " Details inserted successfully";</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
else</div>
</div>
<div>
<div style="text-align: left;">
{</div>
</div>
<div>
<div style="text-align: left;">
lblresult.ForeColor = Color.Red;</div>
</div>
<div>
<div style="text-align: left;">
lblresult.Text = txtUsrname.Text + " Details not inserted";</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<div style="text-align: left;">
}</div>
</div>
<div>
<br />
<br />
<div style="text-align: left;">
<b>In the view of above code after implementation find result as below-</b></div>
</div>
</div>
<div style="text-align: center;">
<div style="text-align: left;">
<br /></div>
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiBtWJPVY39gCtYop69RjuW06RRRN6sTjNJ2jLHTMkMkNgux7HUCKr9ighmJtvQ2EzqwbEqhroT8B-w1D94AZn6Jeso6G1SbrfT-eOlGiKS-AV3Qb5o7khhCibB9Db67GAPdxXZLFfbUTM/s1600/grid.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="199" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiiBtWJPVY39gCtYop69RjuW06RRRN6sTjNJ2jLHTMkMkNgux7HUCKr9ighmJtvQ2EzqwbEqhroT8B-w1D94AZn6Jeso6G1SbrfT-eOlGiKS-AV3Qb5o7khhCibB9Db67GAPdxXZLFfbUTM/s320/grid.JPG" width="320" /></a></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-63644917498685056882016-03-15T04:37:00.002-07:002018-02-09T04:12:35.070-08:00Dot net experience question and answer<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-size: large;"><b><span style="background: white;">CLR and C#</span></b><b><o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;"><span style="font-size: large;"><br />
</span><b><span style="font-size: large;">1. Types of Authentication IIS.</span><span style="font-size: 11pt;"><o:p></o:p></span></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">A. Authentication
is the process which helps web server(IIS) to check and confirm the identity of
the client who request to access the website.</span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">Types of
Authentication: </span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">a. Http
Authentication: Basic Authentication, Digest Authentication</span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">b. Integrated
Windows Authentication: NTLM(Network Lan Manager), Kerberos</span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">c. Client
Certificates Access</span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">d. Anonymous and
UnAuthenticated Access</span><o:p></o:p></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white;">e.
Logon-Redirection based: Form Authentication(IIS 7.0)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>2. Types of Authentication and Authorization in ASP.Net.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Types of
Authentication: Windows Authentication, Forms Authentication</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Types of
Authorization:- File Authorization and URL Authorization</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>3. ASP.Net Life cycle.</b> <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. In ASP.Net,
the request starts with the client and processed through IIS. In IIS,
there are 2 utilities- INetInfo.exe and ASPNet_ISAPI.dll.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The InetInfo.exe
hosts the worker process and checks for the syntax and semantics of the
request, while ASPNet_ISAPI.dll is used to filter the .aspx files(based on the
extension). After the URL request split into 2 parts- </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Virtual directory
name and Web Page name. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The worker
process which is nothing but the application factory basically contains all the
virtual directories and checks for the current virtual directory. If this is
first request, then there will be no Virtual directory available. Now the
worker process (W3wp.exe) creates a memory area called as AppDomain to check
for the current page. As AppDomain is the Page Handler factory so it contains
all the processes pages. If this is the new page then it will not find here.
The request further moves to the HttpPipeline where the actual execution of the
page happens by using the ProcessRequest method and creates the events(init,
load, render, unload) of the page. After creation of event and execution of all
the event, the HTML page returned back to the user.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>4. ASP.Net Page Life Cycle.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. There are few
events which gets generated during the page execution like: Page_BeginRequest,
Page_Init, Page_Load, Page_Prerender, Page_Render, Page_Unload etc</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">For the details
of the page life cycle, you can follow the previous question.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>5. What are types: Value Type and Reference Type?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. DataType
specifies Type of the data as well as Size of the data. There are 2 type of
DataTypes in C#:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Value Type:
Value type holds data directly, Value type stored in the stack memory, we can
get the direct value of the value types. Value type data type can’t be null.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Reference
types: This type does not hold the data directly. They hold the address on
which the actual data present. They stored in heap memory, Can have default
values.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">We can make and
work with null reference type.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>6. Boxing and Unboxing: Terminology, Advantages and Disadvantages.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Converting the
Value type data into the Reference type is called as Boxing. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">byte b= 45;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Object o =
b.Tostring();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Converting the
Reference type data and keep its value to stack is called as the Unboxing.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Object o=10;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Int i=
Convert.ToInt32(o.ToString());</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The Advantage of
boxing and unboxing is that we can convert one type of the object to another
type. The disadvantage is that it requires lot of memory and CPU cycles to
convert from one type to another type.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>7. What is Type Safety?</b> <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. TypeSafe is a
way through which the application or framework that the memory will not be
leaked to outside environment. E.g. C# is the type safe language where you must
have to assign any object before using it. In VB.Net it will take the default
value. So C# is the type safe language while VB.Net is not.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>8. What is Strong Name?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Strong Name
(SN) is used to make the dll as the unique not by its name but by its version
as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">SN -k
fileName.dll</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now it will have
the unique name with respect to the version. This assembly when placed in the
GAC, it will treat as the unique with its version number and other details. 2
assemblies with the same name can exist in the GAC but both will have different
version. The CLR takes the latest version assembly while running the
application.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>9. What are Extensions, modules and handlers?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. HttpModule and
HttpHandler are the utilities which are used in the HttpPipeline under the
ASP.Net page life cycle. When the request received to Http Pipeline, the
HttpModule checks for the Authentication of the request and then it route the
request to the respective handler. After that HttpHandler takes that request
and process it. Once the request is processed through handler, again the
HttpModule takes the response and send it back to the worker process and
finally to the user.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>10. What is worker process?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Worker process
(w3wp.exe) is an executable which is also called as the Application Factory.
This is used for the execution of the request and handling of the request for
the web pages.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
11. CLR and DLR?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. CLR (Common
Language Runtime) is the utility in the .Net framework to run the application.
It is the runtime engine which actually executes the application with many
responsibilities like taking care of memory management, versioning, CasPol etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">DLR is new with
.Net 4.0 which is the Dynamic Language Runtime and used to run the application
on the fly wherever required. CLR runs as statically while DLR runs
dynamically.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>12. In case more than one dll versions of an installable is installed, which
version is invoked by default?</b></span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. By default the
CLR will take and invoke the latest version of the dll and execute it
accordingly. There could be the same name assemblies exists in the GAC but they
will have different versions altogether for their uniqueness.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">So while running
the application, CLR takes the latest version assembly and use in the
application.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>13. What are Globalization and localization? How to implement them?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Globalization
is the concept of developing the application in more than one language while
the Localization is used for a particular language. Like if we develop the
application in more than one language we need to create the resource files
(.resx) by using System. Globalization and when we open the application in a
particular language, then the localizations used to convert that application to
the selected language.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>14. What is assembly, GAC? Where they are physically located?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Assembly is
the collection of classes, namespaces, methods, properties which may be
developed in different language and packed as a dll. So we can say that dll is
also called as assembly.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">There are 3 types
of assemblies- </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">- Private
Assembly, Shared Assembly, and Satellite Assembly.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">GAC (Global
Assembly Cache)- When the assembly is required by more than one project
or application, we need to make the assembly with strong name and keep it in
GAC or in Assembly folder by installing the assembly with the GACUtil command.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">To make the
assembly with strong name:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">SN -k MyDll.dll</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">And to install it
in GAC:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">GacUtil -i
MyDll.dll</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">GAC assemblies
are physically stored in Assembly folder in the system.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>15. How to configure HTTPS for a web application?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. To configure
the HTTPS (HTTP with Secure) for the web application, we need to have a client
certificate. The client certificates can be purchased from the trusted providers
and then we need to install that certificate for our site. By implementing the
HTTPS, all the data which is passing will be in encrypted format, while makes
the website more secure.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>16. What are Inproc and Outproc in session? Where are session data stores in
these cases?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Inproc and
Outproc is the types of Sessions where the session data can be stored in the
process memory of the application server(IIS) and in the separate state server.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">When the session
data is stored in the process memory(AppDomain) of the server(IIS), the session
is called as the Inproc server. In this case when the server is restarted, the
session data will be lost. So In the Inproc session mode, the session data
stores in the memory object in AppDomain in Application Worker Process(AspNet_wp.exe)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">When the session
data is stored in the separate server like in state server or in Sql Server,
the type of session is called as the Outproc session. In this case, if the
server where the application is running is restarted, the session will be still
remain in the separate servers.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">So in the
inproc session state, the session data is stored in the Process memory of
the Server where the application is running.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In the Outproc
session state, the session data is stored in the separate server- may be state
server or in sql server.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>17. When the View state is saved, and when is it loaded? How to enable/
disable View states?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. View State
data is stored in the current page in base64 encoded format. It gets loaded
with the page and displays the values to the controls after the decoded.
Internally it actually saves the check-sum of all the control data where the
view state is enabled.so that when the page gets loaded due to any post back,
it again finds the check-sum and then decodes the Base64 encoded string and
gets back the same data to the controls. We can see the view state base64
encoded string in View Source of the page. It will be like
_VIEWETATE="DSDSDF8DGDGDFGFD5FDGGDJFF23BNN457M9UJOG" this.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">View state won't
take the client or server memory to keep the view state data.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>18. Difference between GET and POST. Which one is more secure?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. GET and POST
methods are used for the data transfer between the web pages. GET mainly used
for small data which is not secure because in case of GET method, the data
which we are passing will be visible in the url so we can't keep the secure
data which will be visible in the url. There is also limited data which can be
passed in case of GET method (max 255 character).</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">POST is used for
transferring the huge data between the pages where we can keep the secure data
and can transfer it. In case of using the POST method, the data which is
transferring between the pages will not be visible so it is more secure than
the GET method. Also there is no limit for POST method to post the data to the
next page.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">POST is more
secure.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
19. What are Razor engine? How is it different from ASPX Engines?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Razor engine
is the new execution engine in the ASP.Net MVC 3 which is mainly used to
convert the rezor syntax views to HTML page in the MVC applications. It takes
the cshtml pages as the input for the ASP.Net MVC application and then render
to the HTML as the output. The ASPX engine takes the aspx code and then renders
to the HTML.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>20. Pros and cons of JavaScript and AJAX.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. JavaScript is
a scripting language and mainly used for client side validation. We can
validate the client side data before sending to the server. So by this we can
improve the performance of the application. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Ajax is
Asynchronous JavaScript and XML which is used for the Asynchronous calls to the
server. It uses the JavaScript/JQuery for making the call and use XML for the
Data Transfer. It basically uses the XmlHttpRequest for the asynchronous calls
to the server and communicates with the XML data which is platform independent.
So Ajax can be used with any technology.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
21. In how many different ways JavaScript code can be used/called in an
application?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. JavaScript can
be used for Client Side validation, can also be used for calling of server side
methods and functions, can be used for calling the web services, WCF service,
Web API's, Calling the Controller and Action methods in ASP.Net MVC etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>22. What needs to be done to call a JavaScript function from code behind?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. If we want to
call the JavaScript function from the code behind, we need to attach the
JavaScript to the events in the page_load event as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">protected void
btnSave_cliekc9object sender, EventArgs e)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> btnSave.Attributes.Add("onclick,"JavaScript:
retrun Validatedata();");</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Here ValidateData
is the JavaScript function which can be used to validate the page data and if
validation fails, it will return and will not execute the server side
btnSave_click event.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>23. Difference between Server Controls and User controls?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. User controls
are used for the re-usability for the controls in the application. By using the
Web User Control template, we create the new user controls and then we can use
the same control in the various pages. User controls can be created by
combining more than one control to extend the functionality of the existing
controls. To use the user controls, first we need to register them in the web
page where we want to use that control. A separate copy is needed in each page
where we want to use the user control. User controls can't be included into the
toolbox.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Web Server
controls are those controls which can be found in the toolbox and can be
directly drag to the application like other controls textbox, button etc. For
the web server control, only 1 copy of the control is needed irrespective of
the number of web pages. If we want 10 text-boxes to be added in our web page,
we need only 1 copy of the textbox in the toolbox and can be dragged 10 times.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>24. Difference between Var, object and Dynamic types.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. var is the
keyword introduced with .Net 3.5 and used to store any kind of data like
data-set, data table, int, float, char etc. We can keep any kind of data into
the var variable.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">var myVar = new
String[] {"hello", "world!!"} ;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Here the myVar is
the var type variable which is used to store the string array. Like this we can
store any type of data into the var.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Object is the
type which is used to store the objects of any kind. These objects need to be
type cast when used.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Like object
myObject = "Hello"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Here the myObject
variable of object type is used to keep the string variable. Now when we want
this variable value, we need to typecast it like</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">string strvar=
(string) myobject;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Var is the
compile time where the type of the var variable gets defined at the compilation
of the program. Once we define the type during compilation, we cant make the
changes of the type during run time or at the later stages.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Let's say, if we
define like</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">var myVar = new
String[] {"hello", "world!!"} ;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">so here myVar
variable will be of string array. Now after this, I can;t make it like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">var myVar = 10 ;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">If we do this, it
will throw error.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Dynamic- It’s a
keyword introduces with the .Net 4.0 and used to keep the data similar to the
var keyword. The type of Dynamic type can be changed even at run time.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">So if we define
like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">dynamic myVar =
new String[] {"hello", "world!!"} ;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Then the myVar is
of type string array. Now if we do like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">dynamic myVar =
"Hello" ;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now the myVar
type will be used as string type. So we can change the type in case of dynamic.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The difference
between the var and dynamic is that the dynamic variable uses the same memory
location to store the object and not changes throughout the application.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>25. Difference between Functions and methods.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. In.Net
terminology, both function and method are same. In general, we use method in
server side code of .Net but in scripting language we use function like
JavaScript function.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Here the
difference can be function always returns a value whereas method may or may
not. It depends upon the return type of the method. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>26. Difference between Abstract classes and Interface. Explain with scenario
where to implement one?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Abstract
Class: Collection of the Abstract (Incomplete) and Concrete (complete) members
is called as the Abstract class. If there is at least one abstract member in a
class, the class must be declared as abstract class.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">When there is the
similar behavior, we can use the abstract class.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. We want to
calculate the area of few shapes. As this is not generic to the application. We
have few shapes - like Circle, Ellipse, Parabola, Hyperbola, Triangle etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">So we can create
an abstract class and implement it like below:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public abstract
class MyAbstractClass</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> // some
other concrete members</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public
abstract void Area();// abstract method</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now in the child
class, let’s say i have a circle class and want to calculate the area of the
circle:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public class
Circle: MyAbstractClass</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public
override void Area()</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> //
calculate the area of the circle</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In the similar
fashion, we can calculate the area of other shapes.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Interface:
Collection of abstract members is called as the Interface. When the behavior is
not similar, we need to use the interface. All the members of the
interface </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">must be
overridden in the child classes.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. Print
functionality of the application can have an interface method like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">interface Inf</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> void
Print();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now as this is
the generic functionality and can be implemented in any of the class so we have
taken it as interface. We can implement this functionality into any page like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">class MyClass:
System.Web.UI.Page, Inf</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public void
Print()</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> //
implement details about the Print method</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">// Here we can
implement any kind of print-like print to excel, xml, word all depends on the
our decision.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
27. Different forms of Polymorphism. Differences between Abstraction and
Polymorphism.<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Polymorphism
is to use the same function in many forms. The polymorphism is of 2 types-</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Classical
polymorphism (Overloading)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. AdHoc
polymorphism (Overriding)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Polymorphism =
Poly(many) + Morphism(Forms) </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Overloading: When
the runtime (CLR) find the behavior of class members at the compilation of the
program, it is called as the Classical polymorphism or Overloading. In this,
the method name is same but prototypes (method + parameters) are different and
it is implemented in the same class.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public class
MyClass</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public int
Add(int a, int b)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
return a+b;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public int
Add(int a, int b, int c)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
return a+b+c;</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Overriding: When
the runtime (CLR) find the behavior of class members at the runtime of the
program, it is called as the AdHoc polymorphism or Overriding. In this, the
method name as well as the prototype (method + parameters) is same but they are
implemented in the different class. We use virtual keyword in the base class
method to override in the child class using the override keyword.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public class
MyBaseClass</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public
virtual void Show(string message)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
Console.WriteLine(“Your message is : ”+ message);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public class
MyChildClass: MyBaseClass</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public override
void Show(string message)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
Console.WriteLine(“Your new message is : ”+ message);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Abstraction is
the behavior to get the required functionality. To implement the abstraction,
we use access specifiers where if we declare the members as private, it means
they will be available only to the current class and if we make them as public,
the other classes can also use them. So Abstraction is used to show only the
essential features It is also used to hide the unnecessary data which is not
relevant but present.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Abstract keyword
is also used to get the abstraction behavior. We can use Abstract Class and
Interface to implement Abstraction.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>28. What are Delegates and Events?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. A
Delegate is an object, which points to another method in the application. Delegate
holds- name of the method, arguments of the method (if any) and the return type
of the method.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">See the below
points regarding the Delegate:-</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
delegate keyword is sealed type in System. Multicast
namespace.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
Delegate works like a function pointer in C language.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
Delegate holds the address of the function.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
Delegate hides the actual information which is written
inside the method definition.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
A delegate can hold address of a single function as well as
the address of multiple functions.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
There are 2 types of delegate- </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
- Single cast delegate (hold single function)
and </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">
- Multicast delegate(hold multiple functions).</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">·
Addition and subtraction are allowed for the delegates but
NOT multiplication and division. It means, we can add delegates, subtract
delegates etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. To create a
single cast delegate, first we can create a class with a method as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public class
DelegateDemo</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public void
Show(string msg)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> {</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> Console.WriteLine(msg);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> }</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now we can call
the method Show using the delegate as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public
delegate void MyDelegate(string message); //declare delegate</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">now we need to
create the object of the delegate with the address of the method as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">DelegateDemo obj
= new DelegateDemo();//class object</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">MyDelegate md=
new MyDelegate(obj.Show(“Hello World!!”));</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">md(); // call the
delegate</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">We can create the
events and event handler by using delegate with the below syntax:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public delegate
void textChangedEventHandler(Object sender, TextEventArgs e); </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">This event
handler will be used to handle the textbox textchanged event.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">More details
about the delegate and events can be found at the below link:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">http://msdn.microsoft.com/en-in/library/orm-9780596521066-01-17.aspx</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>29. Covariance and Contra-variance.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A.
covariance and contravariance are the new features added with the .Net
4.0. They are basically used for the implicit reference conversion for
different .Net types like array, delegate, and generic etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">You can go to the
below link for more details with the examples that how we can use the
covariance and contrvariance to implicate reference conversion:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">http://blogs.msdn.com/b/csharpfaq/archive/2010/02/16/covariance-and-contravariance-faq.aspx</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>30. What are Extension methods?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Extension
methods are special types of methods which are static methods but called as the
instance methods. The extension methods are added with the .Net framework
3.5 and with the Visual Studio 2008.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">These methods
won’t affect the existing class and the label. These methods are used for the
extra behavior which the calls can provide. There is no need to build the class
again if we add any extension method to the class.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">There are various
inbuilt methods added in .Net 3.5 with the introduction of LINQ. We can see the
extension methods like Order By when we use the Linq as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">int[] numbers = {
10, 45, 15, 39, 21, 26 };</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">var
orderedNumbers = numbers.OrderBy(a => a);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
31. What are Anonymous methods and Lambda Expression?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A.
Anonymous methods are those methods which does not have the name. As they
don’t have the name, so there is no way to call these methods. These methods
are created by using the delegate as below:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">button1.Click +=
delegate{listBox1.Items.Add(textBox1.Text)};</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Lambda
Expression: It’s an easy way to create anonymous functions. It is also an
anonymous function which has the capability to contain expressions and
statements. We can create the delegate and expression tree types using the
lambda expression.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">For more details
regarding the anonymous method and lambda expression, we can go through the
below link:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">http://www.codeproject.com/Articles/47887/C-Delegates-Anonymous-Methods-and-Lambda-Expression</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>32. Multithreading. How to implement Multithreading?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Executing more
than one processes simultaneously is called as multithreading. To implement the
multithreading concept, we need to use the System. Threading .dll assembly and
the System. Threading namespace.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">To write the
thread program, we need to create a class with the method. Now we can create
the thread object and then pass the method by using the class object to the
method.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">After that we
need to create the ThreadStart delegate which will call the actual method of
the class.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">You can go
through below link for more explanation and other details regarding the
implementation and the code snippet:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
33. Which interface is used to-<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Convert
Boolean values to Visibility values?</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Compare two
integer values?</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. Compare String
values?</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Check the
below interfaces which are used in these scenarios:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Convert
Boolean values to Visibility values?</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Compare two
integer values?- IComparable interface</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. Compare String
values? IComparer interface</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>SQL Server</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>34. What is the difference between a View and a Cursor?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. View: It is
one of the database object which is also called as virtual table. We can also
say that it is a window through which we can see some part of database. View is
also called as stored query because we are going to fetch data using View.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">View does not
contain any data. It’s just a virtual table which is used to get the records
from the base table for which the view is created. View is faster than ad hoc
queries because when we create the view and execute it once. Next time onwards
it will be available as the compiled format. So whenever the view is called, it
will just execute rather than compiling.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Cursor: Cursor is
a database object which is also the buffer area and created as a result of any
sql statement to hold the intermediate values.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Cursor is used to
format the rows individually. By using the cursor, we can process the
individual rows. There are 4 types of cursors in Sql Server-<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">a. Static Cursor</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">b. Dynamic Cursor</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">c. Key set cursor</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">d. Read-only
cursor</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>35. How to execute multiple update on different conditions in a single
query?</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. To execute
multiple update using a single Sql update statement is the new feature
available with the SQL Server 2008. In this, we can update multiple rows using
a single update command. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>36. Left outer joins and Right Outer joins<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Joins are used
to retrieve data from more than 1 tables using some conditions. There are 3
types of outer joins in SQL Server database-<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">a. Left Outer
Join</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">b. Right Outer
Join</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">c. Full Join</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In order to
extract the matched rows from both the tables and unmatched rows from the first
table, left Outer join is used. The syntax for left outer join condition is:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">T1.Col1* =
T2.Col1</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In order to
extract the matched rows from both the tables and unmatched rows from the
second table, right Outer join is used. The syntax for right outer join condition
is:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">T1.Col1 =
*T2.Col1</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In order to
extract the matched rows from both the tables and unmatched rows from the first
table and then unmatched row from the second table, full join is used. The
syntax for full join condition is:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">T1.Col1* =
*T2.Col1</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>37. Exception handling.</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Exception
Handling is the way to handle the unexpected error at runtime of the
application. From the SQL Server 2005 version, try…catch block is also
supported to catch the exceptions in SQL Server database. There is various
other ways to catch the error like using Global temporary variables @@Error,
inbuilt method RaiseError etc. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>38. What is Performance Tuning? How do you implement it.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Performance
Tuning is the process through which we can optimize the SQL Server objects like
functions, triggers, stored procedure to achieve high response time to the
front end applications. In the performance tuning process we generally check
for the below point and optimize the objects processing:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Through
Query Execution plan, check for the processing time of the query execution.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Check the join
conditions and break all the condition for executions of the queries
individually.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. Check for the
error prone process, conditions in the queries.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">d. Check for the
loops whether they are terminated if any error occurs.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e. Check for the
processes which are taking more time in execution and how to reduce the
response time.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>39. Difference between Having and Where clauses.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. When the
'where' clause is not able to evaluate the condition which consists of group
functions, Having clause is used. Having clause is always followed by the Group
By clause.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">'Where' clause is
used to filter the records based on the conditions. If there is the requirement
to get the group data in the select statement and where clause is not able to
get it, we can use the Having clause.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. Display
DeptNo, No.of Employees in the department for all the departments where more
than 3 employees are working</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">SELECT DEPTNO,
COUNT(*) AS TOTAL_EMPLOYEE</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">FROM EMP</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">GROUP BY DEPTNO
HAVING COUNT(*) >3</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>40. Difference between Temp tables and Tables variables?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Temp Table in
SQL Server: </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Temp table are
the special type of tables which are used to store the intermediate data of the
actual table.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Temp tables
are only visible to the current sessions of the sql server instance. When the
session end, these table data automatically drops.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. We can’t join
the temp tables as they don’t allow the foreign key constraints.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">d. Temp tables
are created in TempDB database.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e. We can use the
same temp table name for the different user sessions.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">f. Mostly used in
stored procedure to handle the intermediate data.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
41. What does @ and @@ suffixed by property names specify?</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. @- This is
used for the variable declaration</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. @name
varchar2(50)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">@@- This is used
for the Global variable declaration</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. @@Error=0</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>42. Self-join queries.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Self-Join is a
type of join which is used to join the same table by creating the multiple
instances of the same table. So we can join 2 instances of the same table in case
of self-join. This type of join is used when there is the requirement to get
the referenced data which is available in the same table.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. A table
contains EmpId, Ename and ManagerId</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">As the manager is
also an employee. Now if we want that who is the manager of which employee. In
this situation, we need to create the instance of the same table and get the
required data as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">SELECT EMPID,
ENAME, ENAME AS [MANAGER NAME]</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">FROM EMP E1, EMP
E2</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">WHERE E1.EMPID=
E2.MANAGERID</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>43. Types of Index.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Index is
one of the database objects which is used to improve the performance of the
database queries. It reduces the table scan while retrieving the data from the
database and the search gets fast-</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">There are 2 types
of indexes used in the SQL server:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Clustered index</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Non clustered
index</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">There are 3 more
types of index but those comes under the above two-<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">a. Unique index</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">b. Composite
Index</span></b><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">c. XML
Index-added in SQL Server 2005<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The index
basically works on searching like binary tree where the root value is the finding
value and it will be compared with the partitioned value of the tree.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>44. Difference between Primary key, Unique key and Candidate key?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Primary Key-
It is a key to make the unique identification of the row in a table. It doesn't
allow null values in the primary key column. We can create the lookup columns
based on the primary key. One table allows maximum of 1 primary key and in 1
table, we can create the primary key column by using 16 columns. Due to one of
the normalization rule, we have to create primary key for the table to make the
rows unique.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Unique Key:-
(Primary Key + Not null) is called as unique key. Unique key is also used to
make the rows as unique in a table. The only difference between primary key and
unique key is that primary key does not allow null value while the unique key
allow. The limitation of the null in unique key is that it allows only one Null
value. So only in one row, we can make the key as null for the unique key.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Candidate key-
The key other than primary key, to make the rows as unique is called as
candidate key. In candidate key, we take the columns which are not in the
primary key and make the key for uniqueness of the row.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>45. What is the default value for Datetime. What are Min and Max values for
Date in 2008.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. The
default value of Date is CURRENT_TIMESTAMP</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Below are the new
date and time values in Sql Server 2008:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">In SQL Server
2008:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">1. DateTime2</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Min Value:
0001-01-01 00:00:00.0000000</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Max Value:
9999-12-31 23:59:59.9999999</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">2. Date</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Min Value:
0001-01-01</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Max Value:
9999-12-31</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>WCF</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>46. What is WCF also known as?</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. WCF
(Windows Communication Foundation) is also know as Indigo by its code
name.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>47. Difference between WCF and Web Services?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-size: 11pt;">A.<span style="font-size: 7pt; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal;">
</span></span><!--[endif]--><span style="background: white; font-size: 11pt;">Below are the main differences between the WCF
and Web Service:<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Web Service:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Can be hosted
in IIS only</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Only two types
of operations affects- One-Way, Request-Response</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. To serialize
the data use System.Xml.Serialization</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">d. To encode the
data use- XML 1.0, MTOM, DIME, Custom</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e. Web Service
can be accessed through HTTP channel.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">WCF service:<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Can be hosted
in IIS, Self Hosting, WAS, Windows Services etc</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Three types of
operations affects- One-Way, Request-Response and Duplex</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. To serialize
the data use System.Runtimel.Serialization</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">d. To encode the
data use- XML 1.0, MTOM,Binary, Custom</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e. WCF Service
can be accessed through HTTP, TCP, Named pipes, MSMQ,P2P etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
48. What are Endpoints?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. The collection
of Address, Binding and Contract is called as End Point. In Sort,</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">EndPoint = A+B+C</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Address (Where)-
It means where the service is hosted. URL of the service shows the
address.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Binding (How)-
How to connect to the service, is defined by the Binding. It basically has the
definition of the communication channel to communicate to the WCF service</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Contract (what)-
It means what the service contains for the client. What all the methods are
implemented in the WCF service is implemented in the Contract.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>49. What are Behavior and Bindings?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Binding mainly
describes about the communication of the client and service. For this, there
are protocols corresponding to the binding behavior which will take care of the
communication channel. There are different protocols which we use for the
different types of bindings. E.g. HTTP, TCP, MSMQ, Named Pipes etc.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Behavior is used
for the common configurations that could be for endpoints. When we use the
common behavior, they affect to all the end points. Adding the service behavior
affect the service related stuff while the endpoint related behavior affects
the end points. Also operations level behavior affects the operations. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>50. What are different types of Contracts supported?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. There are
mainly 5 type of contracts used in WCF service:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">a. Service
Contract</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">b. Operation
Contract</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">c. Data Contract</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">d. Message
Contract</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e. Fault Contract</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>51. What is the difference between Transport and Message Security mode?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. WCF supports 2
types of security- Transport Level Security and Message Level Security</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Transport Level
Security- In this type of security, we make the transport channel as secure so
that the data flows in that channel will be automatically secured. For HTTP
channel, we use the client certificate for the security of the web address. SSL
is used for the HTTP channel security. As we don’t need to secure each of the
messages which are floating between the client and the service, the speed is
faster as direct message is going to the client from the service.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Message level
security- This type of security in WCF is used where we don't have the fixed
transport medium and we need to secure each message which is floating between
the server and the client. In this type of security we use certain algorithms
for making the message as secure message. We use some extra bits and send with
the message. We also use some encryption techniques like SHA1 or MD5 which make
the proper security for our message. As each message needs to be secured, this
type of security makes some delay in the process of sending and receiving the
messages.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
52. How to configure WCF security to support Windows authentication?<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. To support the
WCF security in Windows Authentication, we need to add the ClientCredetialType
attribute to “Windows” under the security tab element:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">transport
clientCredentialType="Windows"</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>53. How to use Fault Contract?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Fault
Contract is mainly used for viewing and displaying the errors which occurred in
the service. So it basically documents the error and the error message can be
shown to the user in the understandable way. We can’t use here the try….catch
block for the error handling because the try…catch is the technology specific
(.Net Technology). If we use the try...catch block for handling the errors, the
error will not be reached to the client who is consuming the service. Because
this error will not be included in the message. So we use the Fault contract
for the error handling.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">e.g. To use the
Fault contract, we can simply write like the below:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public int
Add(int number1,int number2)</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> // write
some implementation</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> throw new
FaultException (“Error while adding data..”);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Here the fault Exception
method is the inbuilt method which will throw the exception and display the
message . We can use the custom class so that the message can be customized and
the customized message can be sent to the client.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">So we can create
a clss like:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public Class
CustomException</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public int
ID {get;set;}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public
string Message {get;set;}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> public
string Type{get;set;}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now this custom
type we can use with the Operation Contract as:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">[ServiceContract] </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">public interface
IMyInterface</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">{</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> [OperationContract]</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> [FaultContract(typeOf(CustomException))]</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"> int Add(int
num1,int num2);</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">}</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Now while
implementation of the Add method, we can assign the class properties.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>WPF</b></span><b><span style="font-size: 13.5pt;"><o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
54. Diff between XML and XAML.<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. XAML is the
declarative XML based language which is used to define the objects and
properties. XAML document is loaded by XAML parser. So XAML Parser initiates
the objects and set those properties. XAML is mainly used in creating the
objects in WPF and Silverlight applications. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">For more detailed
explanation, you can go through the below link:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">http://www.differencebetween.net/technology/software-technology/difference-between-xml-and-xaml/</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>55. Stack Panel and Wrap Panel.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. StackPanel is
one of layout control in WPF. We can place the child controls inside the
stackpanel either horizontally or vertically. So it provides two types of
orientations- Horizontal Orientation and Vertical orientation.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
Wrap panel is another layout control which is similar to the StackPanel. Wrap
panel not only keep the control in horizontal and vertical orientation but also
wrap them into new line if there is no space. Here also the orientation can be
set as Horizontal or Vertical. Its main use is to arrange the tabs in the tab
control, menu control or in toolbar items.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>56. Hierarchical Data Template.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Hierarchical
Data Template is a type of data template which is used to bind the controls
which supports HeaderedItemsControl, like TreeViewItem or MenuItem</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">We can bind those
controls items using the Hierarchical Data Template. It displayed the data into
Hierarchical structure in the tree structure. It could be in the left to right
or top to bottom.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">You can go
through the below link for more details:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">http://msdn.microsoft.com/en-us/library/system.windows.hierarchicaldatatemplate.aspx</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;"><br />
57. Virtualization.<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. This is the
feature in WPF which increases the efficiency of the programs when there are
the large data objects. If the WPF ItemsControl is bound with the large
collection data source object and we enabled the virtualization, then the
controls will show only the data which is in the visual container for those
items which are visible currently. This visual data is only the small part of
the large data object. Now when the user will scroll down or up, the rest of
the data will be visible and previous data will be hidden again. So this is
increase the efficiency of the program from the UI prospective. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>58. Events and Routed Events.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Routed
event is special type of event which can invoke and handle multiple events from
different objects rather than the event which is coming from one object. So it
generally handles the object from the element tree. So whatever the elements
inside the element tree and if they generate the event-may be multiple events,
the routed event is capable of handling those events.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The routed event
can be invoked in both the directions but in general it comes from the source
element and then bubbled up in the element tree until the root element.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>59. Bubbling and Tunneling.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Bubbling: When
the events are raised form the innermost element in the visual tree and comes
up towards the root element, is called as bubbling.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Tunneling: It is
the opposite process of Bubbling where the events fired by the root element
goes down towards the last child element control.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>60. Resource Dictionary, Static Resources and Dynamic Resources.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Static and
Dynamic resources are used for binding the resources to the control
objects. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">The main
difference between StaticResource and DynamicResource is that how the resource
is retrieved elements. If the resource is StaticResource, it will be retrieved
only once by the element who is referencing it and it will be used for
all the resources. While the DynamicResource gets its value each time they
reference to the objects. So StaticResource is faster than the DynamicResource
, because StaticResource needs to get the value only once while the
DynamicResource needs each time.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>61. What is Prism? <o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Prism is the
framework or the set of guidelines which is used to develop the WPF desktop
application as well as the Silverlight Rich Internet applications. So it’s a
kind of Design pattern to Develop the XMAL based application. It also used to
develop the Windows 7 applications. Prism mainly helps to design the loosely
coupled components which can be easily integrated with the other components of
the overall application. Prism mainly used to build the composite applications
which need various other components to be integrated. </span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Prism mainly
guides of creating the applications using the Model-View-ViewModel (MVVM)
model, Managed Extensibility Framework (MEF), and navigation in the
application.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">To use the Prism
framework, we need to use their library called as Prism Library. So prism
Library is the inbuilt set of components which can be used in developing the
WPF and Silverlight applications.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>62. Dependency Injection, Event Aggregator.<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Event Aggregator
: It is the utility service which contains the events and allows the decouple
the publisher and subscriber so that they can be buildup independently.
Decouple is primarily useful when a new module needs to be added or removed or
modified. The new module can be added as per the event fired and defined in the
shell.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<b><span style="background: white; font-size: 11pt;">63. Shell,
Bootstrapper and Region Managers<o:p></o:p></span></b></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. Bootstrapper:-
An utility in WPF engine which is mainly responsible for the initialization of
the application by using the composite application library. By using the
bootstrapper we can find out how the components of the application are wired up
in the composite application library. The bootstrapper responsibility to create
the Shell or main window. Composite application library has the default
abstract class UnityBootstrapper which actually handles the initialization.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">Region and Region
Managers: This is concept of Prism framework. We define the region through XAML
code and once a region is defined, automatically it will be registered with the
RegionManager. Actually the Bootstrapper registers a service called the
RegionManager at run time. RegionManager is a dictionary where the key is name
of the region. The value of the key is the reference of the IRegion interface.
RegionAdapter is used to create the instance reference of the IRegion
interface.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>64. What are MEF and Unity?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. The MEF
(Managed Extensibility Framework) is the new concept in .Net 4.0. It is used to
create the lightweight and extensible applications to create Managed
Extensibility Framework. It is not only allows the extension but also reused
within the application. Extension can be easily encapsulating the code using
the MEF.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
<b>65. How to navigate to another page?<o:p></o:p></b></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">A. There is a
class NavigationService which can be used for navigation of the WPF window:</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">this.NavigationService.GoForward();</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">//or</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;">this.NavigationService.Navigate("MysecondPage.xaml")</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="background: white; font-size: 11pt;"><br />
Hope the answer will be helpful to all the members.</span><span style="font-size: 13.5pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-41459022386385958582016-03-11T03:03:00.000-08:002018-02-08T23:54:52.607-08:00Diffrence between Non-unicode and unicode <div dir="ltr" style="text-align: left;" trbidi="on">
As per my point of view difference between Non-Unicode and Unicode are given as below.<br /><br /><table border="1" cellpadding="0" style="background-color: white; color: black;"><tbody>
<tr><td><strong><span style="font-family: Arial;">Non-Unicode</span></strong></td><td><strong><span style="font-family: Arial;">Unicode</span></strong></td></tr>
<tr><td><strong><span style="font-family: Arial; font-size: x-small;">(char, varchar, text)</span></strong></td><td><strong><span style="font-family: Arial; font-size: x-small;">(nchar, nvarchar, ntext)</span></strong></td></tr>
<tr><td><span style="font-family: Arial; font-size: x-small;">Stores data in fixed or variable length</span></td><td><span style="font-family: Arial; font-size: x-small;">Same as non-Unicode</span></td></tr>
<tr><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>char</strong>: data is padded with blanks to fill the field size. For example, if a char(10) field contains 5 characters the system will pad it with 5 blanks</span></span></td><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>nchar</strong>: same as char</span></span></td></tr>
<tr><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>varchar</strong>: stores actual value and does not pad with blanks</span></span></td><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>nvarchar</strong>: same as varchar</span></span></td></tr>
<tr><td><span style="font-family: Arial; font-size: x-small;">requires <strong>1 byte</strong> of storage</span></td><td><span style="font-family: Arial; font-size: x-small;">requires <strong>2 bytes</strong> of storage</span></td></tr>
<tr><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>char</strong> and <strong>varchar</strong>: can store up to <strong>8000</strong> characters</span></span></td><td><span style="font-family: Arial;"><span style="font-size: x-small;"><strong>nchar</strong> and <strong>nvarchar</strong>: can store up to <strong>4000</strong> characters</span></span></td></tr>
<tr><td><span style="font-family: Arial;"><span style="font-size: x-small;">Best suited for <strong>US English</strong>: "One problem with data types that use 1 byte to encode each character is that the data type can only represent 256 different characters. This forces multiple encoding specifications (or code pages) for different alphabets such as European alphabets, which are relatively small. It is also impossible to handle systems such as the Japanese Kanji or Korean Hangul alphabets that have thousands of characters."<sup>1</sup></span></span></td><td><span style="font-family: Arial; font-size: x-small;">Best suited for systems that need to support at least one <strong>foreign language</strong>: "The Unicode specification defines a single encoding scheme for most characters widely used in businesses around the world. All computers consistently translate the bit patterns in Unicode data into characters using the single Unicode specification. This ensures that the same bit pattern is always converted to the same character on all computers. Data can be freely transferred from one database or computer to another without concern that the receiving system will translate the bit patterns into characters incorrectly.</span></td></tr>
</tbody></table>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-7906751757840976372016-02-17T21:21:00.002-08:002018-02-08T23:55:52.429-08:00How to integrates AngularJS with HTML<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; font-weight: normal; letter-spacing: -.85pt;">How AngularJS
integrates with HTML<o:p></o:p></span></h2>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-app directive indicates the start of AngularJS application.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-model directive then creates a model variable named
"name" which can be used with the html page and within the div having
ng-app directive.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-bind then uses the name model to be displayed in the html span
tag whenever user input something in the text box.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Closing</div> tag indicates the end of AngularJS
application.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="intro" style="background: white;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-41420716369502819172016-02-17T21:20:00.002-08:002018-02-08T23:56:59.608-08:00First Application AngularJs<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 align="center" style="line-height: 25.1pt; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; text-align: center;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-weight: normal; letter-spacing: -.85pt;">AngularJS
- First Application<o:p></o:p></span></h1>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<br /></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Before we start with creating actual HelloWorld application using
AngularJS, let us see what are the actual parts of a AngularJS application. An
AngularJS application consists of following three important parts −<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-app</span></b><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− This directive defines and links an
AngularJS application to HTML.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-model</span></b><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− This directive binds the values of
AngularJS application data to HTML input controls.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-bind</span></b><span class="apple-converted-space"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span></span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− This directive binds the AngularJS
Application data to HTML tags.<o:p></o:p></span></div>
<h2 style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; font-weight: normal; letter-spacing: -.85pt;">Steps to create
AngularJS Application<o:p></o:p></span></h2>
<h3 style="line-height: 18.0pt; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt;">
<span style="font-family: Verdana, sans-serif; font-size: 15.5pt; font-weight: normal;">Step 1 − Load framework<o:p></o:p></span></h3>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Being a pure JavaScript framework, It can be added using
<Script> tag.<o:p></o:p></span></div>
<div style="background: #EEEEEE; border: solid #D6D6D6 1.0pt; mso-border-alt: solid #D6D6D6 .75pt; mso-element: para-border-div; padding: 4.0pt 4.0pt 4.0pt 4.0pt;">
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"><script</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">src</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"http://ajax.googleapis.com/ajax/libs/angularjs</span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="atv"><span style="color: #008800; font-family: Consolas;">/1.3.14/angular.min.js"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"></script></span></span><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></pre>
</div>
<h3 style="line-height: 18.0pt; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt;">
<span style="font-family: Verdana, sans-serif; font-size: 15.5pt; font-weight: normal;">Step 2 − Define AngularJS Application using
ng-app directive<o:p></o:p></span></h3>
<div style="background: #EEEEEE; border: solid #D6D6D6 1.0pt; mso-border-alt: solid #D6D6D6 .75pt; mso-element: para-border-div; padding: 4.0pt 4.0pt 4.0pt 4.0pt;">
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"><div</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-app</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">""</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> ...<o:p></o:p></span></span></pre>
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"></div></span></span><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></pre>
</div>
<h3 style="line-height: 18.0pt; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt;">
<span style="font-family: Verdana, sans-serif; font-size: 15.5pt; font-weight: normal;">Step 3 − Define a model name using ng-model
directive<o:p></o:p></span></h3>
<div style="background: #EEEEEE; border: solid #D6D6D6 1.0pt; mso-border-alt: solid #D6D6D6 .75pt; mso-element: para-border-div; padding: 4.0pt 4.0pt 4.0pt 4.0pt;">
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"><p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">Enter your Name: </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><input</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">type</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"text"</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-model</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"name"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></p></span></span><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></pre>
</div>
<h3 style="line-height: 18.0pt; margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt;">
<span style="font-family: Verdana, sans-serif; font-size: 15.5pt; font-weight: normal;">Step 3 − Bind the value of above model defined
using ng-bind directive.<o:p></o:p></span></h3>
<div style="background: #EEEEEE; border: solid #D6D6D6 1.0pt; mso-border-alt: solid #D6D6D6 .75pt; mso-element: para-border-div; padding: 4.0pt 4.0pt 4.0pt 4.0pt;">
<pre style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: none; line-height: 13.4pt; margin-bottom: 8.35pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"><p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">Hello </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><span</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-bind</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"name"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></span></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">!</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></p></span></span><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></pre>
</div>
<h2 style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; font-weight: normal; letter-spacing: -.85pt;">Steps to run AngularJS
Application<o:p></o:p></span></h2>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Use above mentioned three steps in an HTML page.<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<i><span style="font-family: Verdana, sans-serif;">testAngularJS.htm</span></i><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="border: solid #D6D6D6 1.0pt; mso-border-alt: solid #D6D6D6 .75pt; mso-element: para-border-div; padding: 4.0pt 4.0pt 4.0pt 4.0pt;">
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"><html></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> <o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><head></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><title></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">AngularJS First Application</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></title></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></head></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> <o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><body></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><h1></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">Sample Application</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></h1></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> <o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><div</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-app</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">""</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">Enter your Name: </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><input</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">type</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"text"</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-model</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"name"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">Hello </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><span</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">ng-bind</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"name"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></span></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;">!</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></p></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></div></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> <o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"><script</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atn"><span style="color: #7f0055; font-family: Consolas;">src</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="pun"><span style="color: #666600; font-family: Consolas;">=</span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="atv"><span style="color: #008800; font-family: Consolas;">"http://ajax.googleapis.com/ajax/libs/angularjs</span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="atv"><span style="color: #008800; font-family: Consolas;">/1.3.14/angular.min.js"</span></span><span class="tag"><span style="color: #000088; font-family: Consolas;">></script></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> <o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="pln"><span style="color: #313131; font-family: Consolas;"> </span></span><span class="tag"><span style="color: #000088; font-family: Consolas;"></body></span></span><span class="pln"><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></span></pre>
<pre style="border: none; line-height: 13.4pt; margin-bottom: 8.35pt; mso-border-alt: solid #D6D6D6 .75pt; mso-padding-alt: 4.0pt 4.0pt 4.0pt 4.0pt; padding: 0cm;"><span class="tag"><span style="color: #000088; font-family: Consolas;"></html></span></span><span style="color: #313131; font-family: Consolas;"><o:p></o:p></span></pre>
</div>
<h2 style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; font-weight: normal; letter-spacing: -.85pt;">Output<o:p></o:p></span></h2>
<br />
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Open textAngularJS.htm in a web browser. Enter your name and see
the result.<o:p></o:p></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-9269550271205642112016-02-17T21:18:00.001-08:002018-02-08T23:58:25.926-08:00 Components of AngularJS <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt; mso-outline-level: 2;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; letter-spacing: -.85pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> AngularJS Components<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
</div>
<ol>
<li><span style="font-family: Verdana, sans-serif; font-size: 12pt; line-height: 20.1pt;">The
AngularJS framework can be divided into following three major parts −</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-app</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− This
directive defines and links an AngularJS application to HTML.</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-model</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− This
directive binds the values of AngularJS application data to HTML input
controls.</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">ng-bind</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− This
directive binds the AngularJS Application data to HTML tags.</span></li>
<li><b style="line-height: 20.1pt;"><u><span style="font-family: Verdana, sans-serif; font-size: 12pt;">M</span></u></b><span style="font-family: Verdana, sans-serif; font-size: 12pt; line-height: 20.1pt;">odel <b><u>V</u></b>iew <b><u>C</u></b>ontroller
or MVC as it is popularly called, is a software design pattern for developing
web applications. A Model View Controller pattern is made up of the following
three parts −</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Model</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− It is
the lowest level of the pattern responsible for maintaining data.</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">View</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− It is
responsible for displaying all or a portion of the data to the user.</span></li>
<li><span style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;"> </span></span><b style="font-family: Symbol; font-size: 10pt; line-height: 20.1pt; text-indent: -18pt;"><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Controller</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt; line-height: 20.1pt; text-indent: -18pt;">− It is a
software Code that controls the interactions between the Model and View.</span></li>
</ol>
<br />
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-67847554812793736932016-02-17T21:16:00.000-08:002018-02-08T23:59:48.361-08:00Advantages & Disadvantages of AngularJS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt; mso-outline-level: 2;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; letter-spacing: -.85pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Advantages of AngularJS<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS provides capability to create Single Page Application in
a very clean and maintainable way.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS provides data binding capability to HTML thus giving
user a rich and responsive experience<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS code is unit testable.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS uses dependency injection and make use of separation of
concerns.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS provides reusable components.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">With AngularJS, developer write less code and get more
functionality.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l1 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">In AngularJS, views are pure html pages, and controllers written
in JavaScript do the business processing.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;">On top of
everything, AngularJS applications can run on all major browsers and smart
phones including Android and iOS based phones/tablets.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt; mso-outline-level: 2;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; letter-spacing: -.85pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Disadvantages of AngularJS<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;">Though
AngularJS comes with lots of plus points but same time we should consider the
following points −<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Not Secure</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− Being
JavaScript only framework, application written in AngularJS are not safe.
Server side authentication and authorization is must to keep an application
secure.<o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Not degradable</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− If your
application user disables JavaScript then user will just see the basic page and
nothing more.<o:p></o:p></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-5945408813679184602016-02-17T21:14:00.001-08:002018-02-09T00:00:33.583-08:00Concept of Angular Js<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;">Following
diagram depicts some important parts of AngularJS which we will discuss in
detail in the subsequent chapters.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb724v0GseD7ekYsjt0L-LQS9paY-mRsZO9pP8ExBscXMKQSPMobaZ5zg2FpR2FltaavXKeY8o8DmGlQOR2gGmWiqbJGo4XaMP-Iw0Xaa76M1Ru0FvjCMNu2tAajLbvwI9UclZhhg7_mqv/s1600/ajs.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="351" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb724v0GseD7ekYsjt0L-LQS9paY-mRsZO9pP8ExBscXMKQSPMobaZ5zg2FpR2FltaavXKeY8o8DmGlQOR2gGmWiqbJGo4XaMP-Iw0Xaa76M1Ru0FvjCMNu2tAajLbvwI9UclZhhg7_mqv/s400/ajs.JPG" width="400" /></a></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;"><br /></span></div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-no-proof: yes;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="AngularJS Concepts" style='width:441pt;height:347.25pt;visibility:visible;
mso-wrap-style:square'>
<v:imagedata src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.jpg"
o:title="AngularJS Concepts"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-62122456476318733262016-02-17T21:09:00.000-08:002018-02-09T00:01:45.635-08:00Features of AngularJS<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 2.4pt; margin-left: 0cm; margin-right: 2.4pt; margin-top: 2.4pt; mso-line-height-alt: 18.0pt; mso-outline-level: 2;">
<span style="color: #121214; font-family: "Verdana","sans-serif"; font-size: 20.5pt; letter-spacing: -.85pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Features<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS is a powerful JavaScript based development framework to
create RICH Internet Application(RIA).<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS provides developers options to write client side
application (using JavaScript) in a clean MVC(Model View Controller) way.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Application written in AngularJS is cross-browser compliant.
AngularJS automatically handles JavaScript code suitable for each browser.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS is open source, completely free, and used by thousands
of developers around the world. It is licensed under the Apache License version
2.0.<o:p></o:p></span></div>
<br />
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;">Overall,
AngularJS is a framework to build large scale and high performance web
application while keeping them as easy-to-maintain.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 12pt;">Following
are most important core features of AngularJS −<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Data-binding</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− It is
the automatic synchronization of data between model and view components.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Scope</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− These
are objects that refer to the model. They act as a glue between controller and
view.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Controller</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− These
are JavaScript functions that are bound to a particular scope.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Services</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">−
AngularJS come with several built-in services for example $http to make a
XMLHttpRequests. These are singleton objects which are instantiated only once
in app.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Filters</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− These
select a subset of items from an array and returns a new array.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Directives</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">−
Directives are markers on DOM elements (such as elements, attributes, css, and
more). These can be used to create custom HTML tags that serve as new, custom
widgets. AngularJS has built-in directives (ngBind, ngModel...)<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Templates</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− These
are the rendered view with information from the controller and model. These can
be a single file (like index.html) or multiple views in one page using
"partials".<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Routing</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− It is
concept of switching views.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Model View Whatever</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− MVC is a design pattern for dividing an application into different
parts (called Model, View and Controller), each with distinct responsibilities.
AngularJS does not implement MVC in the traditional sense, but rather something
closer to MVVM (Model-View-ViewModel). The Angular JS team refers it humorously
as Model View Whatever.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Deep Linking</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− Deep
linking allows you to encode the state of application in the URL so that it can
be bookmarked. The application can then be restored from the URL to the same
state.<o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
</div>
<div class="MsoNormal" style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 38.4pt; margin-right: 2.4pt; margin-top: 0cm; mso-list: l0 level1 lfo1; tab-stops: list 36.0pt; text-align: justify; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal; line-height: normal;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">Dependency Injection</span></b><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;"> </span><span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">− AngularJS has a built-in dependency injection subsystem that
helps the developer by making the application easier to develop, understand,
and test.<o:p></o:p></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-32471176405823551272016-02-17T21:07:00.001-08:002018-02-09T00:02:54.078-08:00What is AngularJS?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background: rgb(249, 249, 249); margin-bottom: 5pt;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 15.3333px; line-height: 24.5333px;"><b>What is AngularJS?</b></span></span></div>
<div class="MsoNormal" style="background: #F9F9F9; line-height: 18.4pt; margin-bottom: 5.0pt;">
<span style="font-family: Verdana, sans-serif; font-size: 11.5pt;">AngularJS is a structural framework for dynamic web apps. It lets
you use HTML as your template language and lets you extend HTML's syntax to
express your application's components clearly and succinctly. Angular's data
binding and dependency injection eliminate much of the code you currently have
to write. And it all happens within the browser, making it an ideal partner
with any server technology.</span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">You really do not need to set up your own environment to start
learning AngularJS. Reason is very simple, we already have set up AngularJS
environment online, so that you can execute all the available examples online
at the same time when you are doing your theory work. This gives you confidence
in what you are reading and to check the result with different options. Feel
free to modify any example and execute it online.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #F9F9F9; line-height: 18.4pt; margin-bottom: 5.0pt;">
</div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Try the following example using<span class="apple-converted-space"> </span><b>Try
it</b><span class="apple-converted-space"> </span>option available at the
top right corner of the below sample code box −<o:p></o:p></span></div>
<div style="line-height: 20.1pt; margin-bottom: 12.0pt; margin-left: 2.4pt; margin-right: 2.4pt; margin-top: 0cm; text-align: justify;">
<span style="font-family: Verdana, sans-serif;">Example</span></div>
<div class="MsoNormal" style="background: #F9F9F9; line-height: 18.4pt; margin-bottom: 5.0pt;">
<span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">!DOCTYPE</span></span><span class="apple-converted-space"><span style="background: white; font-family: Consolas; font-size: 13.5pt;"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">html</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">html</span></span><span class="apple-converted-space"><span style="background: white; font-family: Consolas; font-size: 13.5pt;"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">lang=</span></span><span class="highval"><span style="color: mediumblue; font-family: Consolas; font-size: 13.5pt;">"en-US"</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">script</span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">src=</span></span><span class="highval"><span style="color: mediumblue; font-family: Consolas; font-size: 13.5pt;">"http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/script</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">body</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
<br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">div</span></span><span class="apple-converted-space"><span style="background: white; font-family: Consolas; font-size: 13.5pt;"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">ng-app=</span></span><span class="highval"><span style="color: mediumblue; font-family: Consolas; font-size: 13.5pt;">""</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
<span style="background: white;"> </span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">p</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="background: white; font-family: Consolas; font-size: 13.5pt;">Name
:<span class="apple-converted-space"> </span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">input</span></span><span class="apple-converted-space"><span style="background: white; font-family: Consolas; font-size: 13.5pt;"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">type=</span></span><span class="highval"><span style="color: mediumblue; font-family: Consolas; font-size: 13.5pt;">"text"</span></span><span class="apple-converted-space"><span style="background: white; font-family: Consolas; font-size: 13.5pt;"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">ng-model=</span></span><span class="highval"><span style="color: mediumblue; font-family: Consolas; font-size: 13.5pt;">"name"</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/p</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
<span style="background: white;"> </span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">h1</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="background: white; font-family: Consolas; font-size: 13.5pt;">Hello<span class="apple-converted-space"> </span></span><span class="highatt"><span style="color: red; font-family: Consolas; font-size: 13.5pt;">{{name}}</span></span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/h1</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/div</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
<br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/body</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">></span></span><span style="font-family: Consolas; font-size: 13.5pt;"><br />
</span><span class="highlt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;"><</span></span><span class="highele"><span style="color: brown; font-family: Consolas; font-size: 13.5pt;">/html</span></span><span class="highgt"><span style="color: blue; font-family: Consolas; font-size: 13.5pt;">><o:p></o:p></span></span></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-67414129374586387462013-09-09T21:22:00.002-07:002018-02-09T00:04:44.992-08:00Some disscussion about JQuery Mobile With help of ASP.Net<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNFU4wsVJPaSeCzK7jFr2oa8zBeo68V2RrLAR_QBAvVU21MlykgD-PEjHIAYARj8tmag_1rMxraRvjW71awms2utJroJgIuKvensO-6miMpRHGQ1HV1OVE75gHq8E3yWFLZAttn6_pgEpA/s1600/About.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNFU4wsVJPaSeCzK7jFr2oa8zBeo68V2RrLAR_QBAvVU21MlykgD-PEjHIAYARj8tmag_1rMxraRvjW71awms2utJroJgIuKvensO-6miMpRHGQ1HV1OVE75gHq8E3yWFLZAttn6_pgEpA/s1600/About.JPG" height="320" width="307"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<b>How to
create About Us page with help of Jquery mobile<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<%@ Page
Language="VB" AutoEventWireup="false"
CodeFile="Home.aspx.vb" Inherits="Home" %></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<!DOCTYPE
html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<head
runat="server"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<title>Home</title></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<meta http-equiv="refresh"
content="5; url=http://localhost:46370/WebSite2/Default2.aspx" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<meta name="viewport"
content="width=device-width, initial-scale=1" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link rel="stylesheet"
href="JScritpt/demos/css/themes/default/jquery.mobile-1.2.0.css"
/></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link href="new.css"
rel="stylesheet" type="text/css" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/jquery-1.7.2.js" type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/jquery.mobile-1.2.0.min.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</head></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<body></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<form id="form1"
runat="server" class="ui-mobile-viewport ui-overlay-c"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div data-role="header"
data-theme="a"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<img
src="Jquery-mobile-logo.png" alt="Sunset"
height="100px" width="100%" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="navbar" data-iconpos="top"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<ul></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Default2.aspx" data-transition="fade"
data-theme="" data-icon="home">Home</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Home.aspx" data-transition="fade"
data-theme="" data-icon="info">About</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Key.aspx" data-transition="fade"
data-theme="" data-icon="star">Features</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Contactus.aspx" data-transition="fade"
data-theme="" data-icon="check"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Contact
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</ul></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div<b>><o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<b> </b></div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div data-role="content"
style="text-align: left"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
jQuery Mobile
Overview</h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<p class="p"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
jQuery's mobile strategy can be
summarized simply: A unified user interface system</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
that works seamlessly across
all popular mobile device platforms, built on the rock-solid</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
jQuery and jQuery UI
foundation. Focused on a feature-rich but lightweight codebase</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
built on progressive enhancement with a
flexible theming system and ThemeRoller</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
tool.</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<p class="p"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
The framework includes an Ajax
navigation system that brings animated page transitions</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
and a core set of UI
widgets:pages, dialogs, toolbars, listviews, buttons with icons,</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
form elements, accordions,
collapsibles, and more.</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<p class="p"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
The critical difference with
our approach is the wide variety of mobile platforms</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
we're targeting with jQuery
Mobile so no browser or device is left behind.</p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<p class="p"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<b> </b>We've also focused on
making jQuery Mobile easy to learn with a simple, markup-based</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
system to applying behavior and
theming.</p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<p class="p"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
For more advanced developers,
there is a rich API of global configuration options,</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
events, and methods to apply
scripting, generate dynamic pages, and even build native</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
apps with tools like
PhoneGap.</p></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="footer"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
AMBROSIA</h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</form></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</body></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "Calibri","sans-serif"; font-size: 11.0pt; line-height: 115%; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-bidi-font-family: Mangal; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin;"></html></span></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-39312578497867103002013-09-08T22:01:00.001-07:002018-02-09T00:05:35.138-08:00How to create Home page with Menu Bar and List View with help of JQuery Mobile<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7A9I7Qo_80BwfeykQZjGoMNMt7U-CW4uKh0Ub5mkjM5M0G6h21Yjzdqu_EcainMTrPdHc_k_InmtmKiOoCXC-8doedV0iHBY99eMil-4LhxRr9Ju8FY3wvA1mRRkK2uW2K0Mk9nB1qdk2/s1600/Home.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="305" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7A9I7Qo_80BwfeykQZjGoMNMt7U-CW4uKh0Ub5mkjM5M0G6h21Yjzdqu_EcainMTrPdHc_k_InmtmKiOoCXC-8doedV0iHBY99eMil-4LhxRr9Ju8FY3wvA1mRRkK2uW2K0Mk9nB1qdk2/s1600/Home.JPG" width="320" /></a></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<%@ Page
Language="VB" AutoEventWireup="false"
CodeFile="Default.aspx.vb" Inherits="Default" %></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<!DOCTYPE
html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<head
runat="server"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<title>Home Page</title></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<meta name="viewport"
content="width=device-width, initial-scale=1" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link rel="stylesheet"
href="JScritpt/demos/css/themes/default/jquery.mobile-1.2.0.css"
/></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script src="JScritpt/jquery-1.7.2.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/jquery.mobile-1.2.0.min.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link href="new.css"
rel="stylesheet" type="text/css" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</head></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<body></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<form id="form1" runat="server"
class="ui-mobile-viewport ui-overlay-c"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div data-role="page"
id="page1"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="header" data-theme="a"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<img
src="Jquery-mobile-logo.png" alt="Sunset"
height="100px" width="100%" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="navbar" data-iconpos="top"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<ul></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Default2.aspx" data-transition="pop"
data-theme="" data-icon="home">Home</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Home.aspx" data-transition="pop"
data-theme="" data-icon="info">About </a></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Key.aspx" data-transition="pop"
data-theme="" data-icon="star">Features</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li><a
href="Contactus.aspx" data-transition="pop"
data-theme="" data-icon="check">Contact</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Us
</a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</ul></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="content"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<ul
data-role="listview" data-divider-theme="b"
data-inset="true"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="regis.aspx"
data-transition="fade">Register Now </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Login.aspx"
data-transition="slide">Sign In </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="GPS.aspx"
data-transition="slide">GPS </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Demo.aspx"
data-transition="slide">Display map </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Test.aspx"
data-transition="slide">Feedback </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</ul></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="footer"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
AMBROSIA</h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</form></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</body></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</html></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-32412795040822857912013-09-08T21:59:00.000-07:002018-02-09T00:06:16.140-08:00How to create Login page in JQuery mobile in .Net<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmrV3UAaxlO1rW6VzTk57gMCB7z6eBcfuAh1Aop8SU6tgwbY3sL65fxJ77CTJXx0oGJ2v254slmJaQmmWNNQoU3AwwIIiAordxvZoEoFgI8jxFh3HLM5nr-ydnQNrpbejUcm8GanB82GLr/s1600/login.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="159" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmrV3UAaxlO1rW6VzTk57gMCB7z6eBcfuAh1Aop8SU6tgwbY3sL65fxJ77CTJXx0oGJ2v254slmJaQmmWNNQoU3AwwIIiAordxvZoEoFgI8jxFh3HLM5nr-ydnQNrpbejUcm8GanB82GLr/s1600/login.JPG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<%@ Page
Language="VB" AutoEventWireup="false"
CodeFile="Login.aspx.vb" Inherits="Login" %></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<!DOCTYPE
html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<html></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<head
runat="server"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<title>Sign In</title></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<style></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
#login-button {</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
margin-top: 30px;</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
}
</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</style></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<meta name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0"
/></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<meta name="viewport"
content="width=device-width, initial-scale=1" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link rel="stylesheet"
href="JScritpt/demos/css/themes/default/jquery.mobile-1.2.0.css"
/></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/jquery-1.7.2.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/jquery.mobile-1.2.0.min.js" type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link href="home_standard.css"
rel="stylesheet" type="text/css" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<link href="new.css"
rel="stylesheet" type="text/css" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script
src="JScritpt/Login.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<script src="JScritpt/jquery-1.8.2.js"
type="text/javascript"></script></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</head></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<body></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div data-role="page"
id="login"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="header"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<a
href="Default2.aspx"
data-icon="home">Home</a><h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Login Here</h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="content"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<form id="check-user"
class="ui-mobile-viewport ui-overlay-c"
data-ajax="false"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<fieldset></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<label
for="username"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Username:</label></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<input
type="text" value="" name="username"
id="username" data-role="text" /></td></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<label
for="password"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Password:</label></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<input
type="password" value="" name="password"
id="password" data-role="password" /></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<input
type="button" data-theme="a" name="submit"
id="submit" value="Submit"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</fieldset></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</form></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="footer"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
AMBROSIA</h1></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</body></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "calibri" , "sans-serif"; font-size: 11.0pt; line-height: 115%;"></html></span></div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0tag:blogger.com,1999:blog-4807970211546086423.post-82234199583053993842013-09-04T01:18:00.001-07:002018-02-09T00:07:06.673-08:00How to create list view in jQuery mobile with help of ASP.Net<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
Here we will
discuss about List View.<b><o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<div
data-role="content"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<ul
data-role="listview" data-divider-theme="b"
data-inset="true"></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="regis.aspx"
data-transition="fade">Register Now </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Login.aspx"
data-transition="slide">Sign In </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="GPS.aspx"
data-transition="slide">GPS </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Demo.aspx"
data-transition="slide">Display map </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
<li
data-theme="a"><a href="Test.aspx"
data-transition="slide">Feedback </a></li></div>
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</ul></div>
<br />
<div class="MsoNormal" style="margin-bottom: .0001pt; margin-bottom: 0in;">
</div></div>
</div>
Anonymoushttp://www.blogger.com/profile/09551944876178757048noreply@blogger.com0