<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6211377363852492047</id><updated>2011-11-27T15:25:44.038-08:00</updated><category term='Restore IIS 6'/><category term='c#  programming'/><category term='jscript intellisense'/><category term='Zoom in linqtoSQL'/><category term='ByVal ByRef'/><category term='How to Unregister dll'/><category term='inteligent sense jscript'/><category term='uTorrent'/><category term='Programs and Features'/><category term='intellisense jscript'/><category term='detectiv dock'/><category term='ByVal vs ByRef'/><category term='execute EXPLORER.EXE Task Manager'/><category term='asp.net user control adding events'/><category term='Firefox  Shortcut  Editing'/><category term='Firefox 3.5 Entry Point Not Found'/><category term='Skip recycle bin'/><category term='Detect Page Refresh In ASP.NET'/><category term='Restore Internet Information Service'/><category term='Abstract Method'/><category term='…'/><category term='DBML Database Markup Language'/><category term='Quick call Windows Vista Login Screen'/><category term='uTorrent slow browsing'/><category term='break function c#'/><category term='WINSXS directory in Windows 2008 and Windows Vista'/><category term='Ajax Control Accordion'/><category term='The MUST_CHANGE option is not supported by this version of Microsoft Windows'/><category term='Button Click CausesValidation'/><category term='Change null with 0 SQL'/><category term='Illegal TCP header'/><category term='Mozila Firefox Keyboard Shortcuts'/><category term='Remove files permanently'/><category term='C# Visual Studio 2008'/><category term='Option Explicit'/><category term='call Insert Stored Procedure with Output parameter  in C#'/><category term='Visual Studio Shortcuts'/><category term='System.Nullable Output parameter'/><category term='captcha  code behind'/><category term='How to retain the Values for GridView in Templatecontrol'/><category term='Installing the ASP.NET AJAX Control Toolkit  Visual Studio 2008'/><category term='Override Class'/><category term='make dll'/><category term='Difference Between a Widget and a Gadget'/><category term='How to create captcha'/><category term='stop vista confirm'/><category term='Ajax Control Toolbox'/><category term='use dll'/><category term='Zoom linqToSQL'/><category term='confirmation question'/><category term='task mananger'/><category term='Mozilla Firefox Keyboard shortcuts'/><category term='How to set background color of textbox'/><category term='Allow foreign key null value in SQL Server'/><category term='Firefox Shortcut Navigation'/><category term='Turn off Show friendly HTTP error message'/><category term='Quick call Windows Login Screen'/><category term='invoked method'/><category term='create dll'/><category term='Firefox'/><category term='DNS server addres MAC'/><category term='Solution Configuration disappears in toolbar'/><category term='Zoom out linq to sql'/><category term='Difference between ByVal and ByRef'/><category term='Framework 4  HttpRequestValidationException'/><category term='IIS Settings'/><category term='Exceptions'/><category term='Virtual Method'/><category term='Firefox Windows and Tabs'/><category term='intellisense jscript visual studio 2005'/><category term='vista'/><category term='killed explorer.exe'/><category term='Win 7 Shortcut for Desktop Gadgets'/><category term='Short if Without Else'/><category term='Windows XP Add/Remove Programs'/><category term='Interface vs. Abstract'/><category term='Windows Vista problems'/><category term='reflection'/><category term='AccordionPane'/><category term='ByVal vs ByRef  Vbasic'/><category term='MVC'/><category term='Zoom linq to sql'/><category term='winsxs vista'/><category term='captcha secure picture with letters in registration proccess'/><category term='Button click nothing happened'/><category term='Short if html'/><category term='Error Rendering Control'/><category term='DNS server addres Windows'/><category term='Include Ajax Control Toolkit'/><category term='How to make and use dll in Visual Basic 6'/><category term='Deleting files permanently'/><category term='AjaxControlToolkit.tlb could not be loaded'/><category term='Web.HttpRequestValidationException: A potentially dangerous Request.'/><category term='XML to Class Visual Studio 2008'/><category term='acmboot.exe'/><category term='GridView Delete Item template  confirmation question before deleting.'/><category term='PIONEER DVD-RW'/><category term='Switch null with zero SQL'/><category term='Back up Internet Information Service'/><category term='IP Flood Detection'/><category term='LinqToDataSource search over TextBox'/><category term='Process Identifier (Process ID or PID)'/><category term='visual studio lowercase visual studio uppercase'/><category term='Visual Basic 6 instalation problems'/><category term='NET 4.0  HttpRequestValidationException'/><category term='Scientific Atlanta'/><category term='An error occurred on the server when processing the URL ASP IIS7 Vista'/><category term='Conditional Shorthand C#'/><category term='SCSI CdRom Device'/><category term='refresh the current page in asp.net'/><category term='picture with generated letters asp.net c#'/><category term='Control Panel Add/Remove Programs in Windows Vista'/><category term='stop function c#'/><category term='stop Vista From Asking Permission For Everything'/><category term='declaration of all variables'/><category term='Abstract Class'/><category term='uTorrent blocks browser'/><category term='Short if asp.net'/><category term='How to register dll'/><category term='Visual Studio 2008 Design Mode error collection was modified; enumeration operation my not execute ajax accordion'/><category term='Windows cannot load the device driver for this hardware'/><category term='DNS server addres PC'/><category term='end function c#'/><category term='VSP1CLN.EXE'/><category term='WINSXS  Vista'/><category term='stop vista asking'/><category term='configure SQL Server 2005 to accept SQL Authentication'/><category term='How to re-register dll'/><category term='net stop mssqlserver .'/><category term='LINQ to SQL Classes'/><category term='You need permission to perform this action'/><category term='Firefoxa.exe Entry Point Not Found'/><category term='captcha  C# asp.net'/><category term='set page to center'/><category term='lunch explorer.exe'/><category term='Ajax Toolkit: Accordion SelectedIndex problem after refresh in firefox'/><category term='ipconfig'/><category term='IIS metabase Error'/><category term='How to check IP address?'/><category term='ASP Request Object'/><category term='c# asp.net'/><category term='Deleting Files Without Recycle Bin'/><category term='Backing up your IIS 6.0 Metabase'/><category term='Multiple DataKeyNames in GridView'/><category term='c# User Control - Adding Events'/><category term='How to get DataKey of GridView'/><category term='Dim ReDim'/><category term='Could not load file or assembly &apos;System.Web.Mvc'/><category term='Programming ASP'/><title type='text'>...fatal error doom...</title><subtitle type='html'>MY EX COMPUTER PROBLEMS AND QUESTIONS.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>69</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-529700206056389122</id><published>2011-08-24T17:18:00.001-07:00</published><updated>2011-08-24T17:19:33.596-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='uTorrent slow browsing'/><category scheme='http://www.blogger.com/atom/ns#' term='IP Flood Detection'/><category scheme='http://www.blogger.com/atom/ns#' term='Illegal TCP header'/><category scheme='http://www.blogger.com/atom/ns#' term='Scientific Atlanta'/><category scheme='http://www.blogger.com/atom/ns#' term='uTorrent'/><category scheme='http://www.blogger.com/atom/ns#' term='uTorrent blocks browser'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><title type='text'>Browser stops working after starting uTorrent</title><content type='html'>Short Description:&lt;br /&gt;&lt;br /&gt;- Scientific Atlanta Illegal TCP header uTorrent&lt;br /&gt;- uTorrent kills all other network traffic&lt;br /&gt;- Firefox/IE7 slow to load webpages when uTorrent running&lt;br /&gt;- Firefox: uTorrent slow browsing&lt;br /&gt;- Browser stops working after starting uTorrent&lt;br /&gt;- uTorrent blocks browser&lt;br /&gt;&lt;br /&gt;I have a serious problem with utorrent...&lt;br /&gt;It is a great program, the speed is amazing...&lt;br /&gt;But  !! After a while, my browser (Firefox, Opera) stops working, and any  other program, except uTorrent, can't access the Internet anymore... The  only way to get my browser working again is to reboot the computer !&lt;br /&gt;I've  tried to limit utorrent connection and speed allocation, but it doesn't  change anything... Sooner or later, I can't surf anymore...&lt;br /&gt;Has anyone experienced the same problem?&lt;br /&gt;Have you got a solution?&lt;br /&gt;Thanks for any help...&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;--------------- SOLUTION -----------------------&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check Firewall Event Logging, if you find Ilegal TCP Header then under Firewall Options uncheck IP Flood Detection.&lt;br /&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span&gt;Description&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span&gt;Count&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span&gt;Last Occurence&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Illegal TCP header&lt;/td&gt;&lt;td&gt; 1 &lt;/td&gt;&lt;td&gt; Tue Oct 19 18:15:28 2010&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Step by step:&lt;br /&gt;&lt;br /&gt;1. Scientific Atlanta Setup&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-Ihgn6xoTBYs/TlWTfpsv0_I/AAAAAAAABiE/aB42tK04tgQ/s1600/Scientific%2BAtlanta%2BSetup.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 291px; height: 400px;" src="http://1.bp.blogspot.com/-Ihgn6xoTBYs/TlWTfpsv0_I/AAAAAAAABiE/aB42tK04tgQ/s400/Scientific%2BAtlanta%2BSetup.jpg" alt="" id="BLOGGER_PHOTO_ID_5644579879957550066" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;2. uncheck IP Flood Detection&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-AZZkxvGGnKg/TlWTqQgOVNI/AAAAAAAABiM/_kTYtejfbPc/s1600/Scientific%2BAtlanta%2BIP%2BFlood%2BDetection.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 303px;" src="http://3.bp.blogspot.com/-AZZkxvGGnKg/TlWTqQgOVNI/AAAAAAAABiM/_kTYtejfbPc/s400/Scientific%2BAtlanta%2BIP%2BFlood%2BDetection.jpg" alt="" id="BLOGGER_PHOTO_ID_5644580062172697810" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-529700206056389122?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/529700206056389122/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=529700206056389122' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/529700206056389122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/529700206056389122'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/08/browser-stops-working-after-starting.html' title='Browser stops working after starting uTorrent'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Ihgn6xoTBYs/TlWTfpsv0_I/AAAAAAAABiE/aB42tK04tgQ/s72-c/Scientific%2BAtlanta%2BSetup.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-4541045475102934802</id><published>2011-07-19T07:43:00.000-07:00</published><updated>2011-07-19T08:09:20.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web.HttpRequestValidationException: A potentially dangerous Request.'/><category scheme='http://www.blogger.com/atom/ns#' term='Framework 4  HttpRequestValidationException'/><category scheme='http://www.blogger.com/atom/ns#' term='NET 4.0  HttpRequestValidationException'/><title type='text'>Web.HttpRequestValidationException: A potentially dangerous Request ...</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;Explanation &lt;/span&gt;from &lt;a style="font-weight: bold;" href="http://cutesoft.net/forums/thread/1049.aspx"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To prevent some script-injection attacks , with request validation  turned off, you need to HTML encode the content of other controls on the  form.&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;HTML encoding will automatically replace any ‘&amp;lt;’ or ‘&amp;gt;’  (together with several other symbols) with their corresponding HTML  encoded representation. For example, ‘&amp;lt;’ is replaced by ‘&amp;lt;’ and  ‘&amp;gt;’ is replaced by ‘&amp;gt;’. &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;Browsers use these special codes to display the ‘&amp;lt;’ or ‘&amp;gt;’ in the browser. &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;p&gt;Content can be easily HTML-encoded on the server using the &lt;b&gt;&lt;span style="font-size:85%;"&gt;Server.HtmlEncode(string)&lt;/span&gt;&lt;/b&gt; API. Content can also be easily HTML-decoded, that is, reverted back to standard HTML using the &lt;span style="font-size:85%;"&gt;&lt;b&gt;Server.HtmlDecode(string) &lt;/b&gt;&lt;/span&gt;method.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;Solution &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;from &lt;a href="http://www.devcurry.com/2010/09/potentially-dangerous-requestform-value.html"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;A potentially dangerous Request.Form value was detected from the client – ASP.NET 4.0&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;Sunday, September 26, 2010 Posted by Suprotim Agarwal&lt;br /&gt;&lt;div style="float: right; margin-left: 10px;"&gt; &lt;table&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt; &lt;p align="justify"&gt;If you happen to upgrade your .NET Framework to use the .NET 4.0 CLR's version of ASP.NET, then it helps keeping the &lt;a href="http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes" target="_blank"&gt;ASP.NET 4.0 breaking changes&lt;/a&gt; document handy.&lt;/p&gt;&lt;p align="justify"&gt;After  the upgrade, most of the users using the Rich-text editors or textboxes  to submit HTML data, encounter the following error “&lt;span style="color: rgb(0, 0, 255);"&gt;Exception  type: System.Web.HttpRequestValidationException     Exception message: A  potentially dangerous Request.Form value was detected from the client&lt;/span&gt;“&lt;/p&gt;&lt;p align="justify"&gt;Now  we know about the request validation feature in ASP.NET that shields  cross-site scripting (XSS) attacks to a certain level. However this  level of security changes in ASP.NET 4.0 making it stricter in terms of  request validation. &lt;/p&gt;&lt;p align="justify"&gt;As given in the documentation “&lt;em&gt;In ASP.NET 4, by default, request validation is enabled for all requests, because it is enabled before the&lt;strong&gt;BeginRequest&lt;/strong&gt;  phase of an HTTP request. As a result, request validation applies to  requests for all ASP.NET resources, not just .aspx page requests. This  includes requests such as Web service calls and custom HTTP handlers.  Request validation is also active when custom HTTP modules are reading  the contents of an HTTP request&lt;/em&gt;”&lt;/p&gt;&lt;p align="justify"&gt;To fix this error, open your web.config and add the following setting inside &lt;system.web&gt; as shown here&lt;/system.web&gt;&lt;/p&gt;&lt;div  style="border: 1px solid silver; text-align: left; padding: 4px; line-height: 12pt; width: 97.5%; direction: ltr; max-height: 200px; overflow: auto; cursor: text; color: rgb(244, 244, 244);font-size:9pt;" id="codeSnippetWrapper"&gt;&lt;pre   style="border-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; background-color: rgb(244, 244, 244); margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; direction: ltr; overflow: visible;font-size:9pt;color:black;" id="codeSnippet"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;system.web&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;httpRuntime&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;requestValidationMode&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="2.0"&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;... rest of your attributes come here&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;p align="justify"&gt;The  &lt;code&gt;&lt;httpruntime requestvalidationmode="2.0"&gt; &lt;/httpruntime&gt;&lt;/code&gt;disables  validation for request data. Although this isn’t particularly a very  good fix as it compromises security, I believe it’s the only quick hack  available unless you want to float your own &lt;a href="http://msdn.microsoft.com/en-us/library/system.web.util.requestvalidator.aspx" target="_blank"&gt;custom request validator&lt;/a&gt;.&lt;/p&gt;&lt;p align="justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;span&gt;&lt;h2 style="font-weight: normal;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Solution &lt;/span&gt;from &lt;a style="font-weight: bold;" href="http://jwwishart.wordpress.com/2009/09/29/a-potentially-dangerous-request-form-value-was-detected-from-the-client-in-asp-net-webforms-and-mvc/"&gt;HERE&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;i&gt;A potentially dangerous Request.Form value was detected from the client (remarks="&lt;code&gt;&lt;/code&gt;5678,&lt;c…").&gt;&lt;/c…").&gt;&lt;/i&gt; &lt;/h2&gt; &lt;p&gt;   &lt;/p&gt;&lt;/span&gt;&lt;span&gt;&lt;b&gt;Description: &lt;/b&gt;Request  Validation has detected a potentially dangerous client input value, and  processing of the request has been aborted. This value may indicate an  attempt to compromise the security of your application, such as a  cross-site scripting attack. You can disable request validation by  setting validateRequest=false in the Page directive or in the  configuration section. However, it is strongly recommended that your  application explicitly check all inputs in this case.        &lt;/span&gt;&lt;p&gt;&lt;span&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.Web.HttpRequestValidationException:  A potentially dangerous Request.Form value was detected from the client  (remarks="&lt;code&gt;&lt;/code&gt;5678,&lt;c…").&gt;&lt;/c…").&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;&lt;b&gt;Source Error:&lt;/b&gt;       &lt;/span&gt;&lt;/p&gt; &lt;table width="100%" bgcolor="#ffffcc"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of  the current web request. Information regarding the origin and location  of the exception can be identified using the exception stack trace  below.&lt;/code&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;p&gt;&lt;span&gt;&lt;b&gt;Stack Trace:&lt;/b&gt;       &lt;/span&gt;&lt;/p&gt; &lt;table width="100%" bgcolor="#ffffcc"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt; &lt;/code&gt;&lt;pre&gt;[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (remarks="&lt;code&gt;&lt;/code&gt;5678,&lt;c...").] 8723114="" namevaluecollection="" 111="" 129="" 11="" 145="" 74="" 31="" parameterdescriptor="" 53="" actiondescriptor="" 109="" controllercontext="" string="" 399="" 126="" 27="" requestcontext="" httpcontextbase="" 151="" 57="" httpcontext="" 7="" 181="" iexecutionstep="" 75=""&gt;&lt;/c...").]&gt;&lt;/pre&gt; &lt;p&gt;            &lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;  &lt;hr width="100%" size="1"&gt;&lt;span&gt;&lt;b&gt;Version Information:&lt;/b&gt; Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016 &lt;/span&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;… which is nice by default, but in some situations where you want  people to be able to enter markup of some kind you want to be able to  disable this. There are several ways. &lt;/p&gt; &lt;h3&gt;WebForms – Per Page&lt;/h3&gt; &lt;p&gt;This is a matter of adding the ValidateRequest property to the page directive per page:&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;&amp;lt;%@ Page Language="c#" … &lt;span style="color: rgb(255, 0, 0);"&gt;ValidateRequest="false"&lt;/span&gt;%&amp;gt;&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;WebForms -Globally &lt;/h3&gt; &lt;p&gt;&lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;To  turn off validation (which is not recommended unless you need to and  know the consequences) is doen by editing the Web.config file’s pages  element and adding the validateRequest attribute as shown below:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;pre&gt;&lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;&lt;system.web&gt;&lt;/system.web&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;  :&lt;/span&gt; &lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;  &lt;pages&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;validateRequest="false"&lt;/span&gt; /&amp;gt;&lt;/pages&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;  :&lt;/span&gt; &lt;span style="color: rgb(0, 64, 128);font-size:85%;" &gt;&lt;/span&gt;&lt;/pre&gt; &lt;h3&gt;MVC – Action&lt;/h3&gt; &lt;p&gt;To prevent this error in MVC you can do it per action by applying the &lt;strong&gt;&lt;a title="ValidateInputAttribute Class | MSDN" href="http://msdn.microsoft.com/en-us/library/system.web.mvc.validateinputattribute.aspx" target="_blank"&gt;ValidateInputAttribute&lt;/a&gt;&lt;/strong&gt; to the action method.&lt;/p&gt; &lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span&gt;&lt;span style="color: rgb(0, 64, 128);"&gt;[AcceptVerbs(HttpVerbs.Post)]&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;[ValidateInput(false)]&lt;/span&gt; &lt;span style="color: rgb(0, 64, 128);"&gt;public ActionResult EditMyEntity(string newValue) {  : }&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-4541045475102934802?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/4541045475102934802/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=4541045475102934802' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/4541045475102934802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/4541045475102934802'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/07/webhttprequestvalidationexception.html' title='Web.HttpRequestValidationException: A potentially dangerous Request ...'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2975272722717282284</id><published>2011-03-23T04:06:00.000-07:00</published><updated>2011-03-23T04:21:50.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio Shortcuts'/><title type='text'>Visual Studio Shortcuts</title><content type='html'>&lt;table style="width: 461px; height: 220px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="wikicell" style="color: rgb(51, 102, 255); font-weight: bold; font-style: italic;"&gt;&lt;span style="font-size:130%;"&gt;Visual Studio Command&lt;/span&gt;&lt;/td&gt;&lt;td class="wikicell" style="color: rgb(51, 102, 255); font-style: italic;"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Shortcut&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;td colspan="2" class="wikicell"&gt;&lt;span style="font-size:130%;"&gt;Cursor&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Cursor to previous position&lt;/td&gt;&lt;td class="wikicell"&gt; &lt;span class="win"&gt;&lt;span class="noMac kbd"&gt;Ctrl + Hyphen (-)&lt;/span&gt;&lt;/span&gt;&lt;span class="unix" style="display: none;"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Opt&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span class="mac" style="display: none;"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;[&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Delete&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Cursor to next position&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="win"&gt;&lt;span class="noMac kbd"&gt;Ctrl + Shift + Hyphen (-)&lt;/span&gt;&lt;/span&gt;&lt;span class="unix" style="display: none;"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Opt&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span class="mac" style="display: none;"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span class="mac kbd" style="display: none;"&gt;Cmd&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Shift&lt;/span&gt;+&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Delete&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Comment&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl + K + C&lt;/span&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Uncomment&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl + K + U&lt;/span&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Duplicate a line&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;Ctrl + C, Ctrl + V&lt;/span&gt;&lt;span class="kbd" style="text-align: left; float: none; clear: none;"&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;Solution&lt;/span&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Build the solution. You can even try F6&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;Ctrl + Shift + B&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Start the application with Debugging&lt;br /&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;F5&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Start the application without Debugging&lt;br /&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;Ctrl + F5&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;Bookmarks&lt;/span&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Add/Remove bookmark&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;&lt;table style="width: 165px; height: 30px;" border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="wikicell"&gt;Ctrl-k, Ctrl-K &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Moves to the next bookmark in the document&lt;br /&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;Ctrl-K, Ctrl-N &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Moves to the previous bookmark&lt;br /&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;Ctrl-K, Ctrl-P&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="vertical-align: top;"&gt;Bookmarks windowCur&lt;br /&gt;&lt;/td&gt;&lt;td style="vertical-align: top;"&gt;crtl-K, ctrl-W&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2975272722717282284?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2975272722717282284/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2975272722717282284' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2975272722717282284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2975272722717282284'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/03/visual-studio-shortcuts.html' title='Visual Studio Shortcuts'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1781776051471538975</id><published>2011-02-21T08:13:00.000-08:00</published><updated>2011-02-21T08:38:05.736-08:00</updated><title type='text'>IIS 7 restrict folder</title><content type='html'>1. Create User and Group:&lt;br /&gt;Control Panel/Administrative Tools/Computer Management/Local users and groups&lt;br /&gt;- create User&lt;br /&gt;- create Group&lt;br /&gt;&lt;br /&gt;2. add user to group. Delete user from "users" group. Add group over specific folder. (properties/security tab)&lt;br /&gt;&lt;br /&gt;3. Convert specific folder to Application in IIS.&lt;br /&gt;&lt;br /&gt;4. In web config of just created application add your group and restrict anonymous user:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;configuration&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;system.web&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authentication mode=&amp;quot;Windows&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/system.web&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;system.webServer&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;security&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove users=&amp;quot;*&amp;quot; roles=&amp;quot;&amp;quot; verbs=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add accessType=&amp;quot;Deny&amp;quot; users=&amp;quot;?&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add accessType=&amp;quot;Allow&amp;quot; roles=&amp;quot;XMyGroup&amp;quot; /&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/security&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;/configuration&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1781776051471538975?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1781776051471538975/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1781776051471538975' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1781776051471538975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1781776051471538975'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/02/iis-7-restrict-folder.html' title='IIS 7 restrict folder'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-79558149322882082</id><published>2011-02-21T01:09:00.000-08:00</published><updated>2011-02-21T01:18:53.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Solution Configuration disappears in toolbar'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Visual Studio 2008'/><title type='text'>Visual Studio Debug, Release disappears in toolbar</title><content type='html'>Solution configuration not showing up in Visual Studio 2010 or Visual Studio 2008&lt;br /&gt;&lt;br /&gt;Go to Tools | Import Export Settings and reset your settings to the ones you need.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-79558149322882082?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/79558149322882082/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=79558149322882082' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/79558149322882082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/79558149322882082'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/02/visual-studio-debug-release-disappears.html' title='Visual Studio Debug, Release disappears in toolbar'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-8665317073203637708</id><published>2011-02-01T08:20:00.000-08:00</published><updated>2011-02-01T08:31:47.048-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MVC'/><category scheme='http://www.blogger.com/atom/ns#' term='Could not load file or assembly &apos;System.Web.Mvc'/><category scheme='http://www.blogger.com/atom/ns#' term='…'/><title type='text'>Could not load file or assembly: System.Web.Mvc, …</title><content type='html'>&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);font-size:130%;" &gt;Could not load file or assembly 'System.Web.Mvc, …&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;a href="http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;With the release of &lt;a title="ASP.NET MVC Website" href="http://asp.net/mvc"&gt;ASP.NET MVC&lt;/a&gt; Beta, the assemblies distributed with ASP.NET MVC are automatically installed into the GAC.&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;System.Web.Mvc &lt;/li&gt;&lt;li&gt;System.Web.Routing &lt;/li&gt;&lt;li&gt;System.Web.Abstractions &lt;/li&gt;&lt;/ul&gt;  &lt;p&gt;While  developing an application locally, this isn’t a problem. But when you  are ready to deploy your application to a hosting provider, this might  well be a problem if the hoster does not have the ASP.NET MVC assemblies  installed in the GAC.&lt;/p&gt;  &lt;p&gt;Fortunately, ASP.NET MVC is still  bin-deployable. If your hosting provider has ASP.NET 3.5 SP1 installed,  then you’ll only need to include the MVC DLL. If your hosting provider  is still on ASP.NET 3.5, then you’ll need to deploy all three. It turns  out that it’s really easy to do so.&lt;/p&gt;  &lt;p&gt;Also, ASP.NET MVC &lt;strong&gt;runs in Medium Trust&lt;/strong&gt;,  so it should work with most hosting providers’ Medium Trust policies.  It’s always possible that a hosting provider customizes their Medium  Trust policy to be draconian.&lt;/p&gt;  &lt;p&gt;What I like to do is use the &lt;strong&gt;Publish&lt;/strong&gt;  feature of Visual Studio to publish to a local directory and then  upload the files to my hosting provider. If your hosting provider  supports FTP, you can often skip this intermediate step and publish  directly to the FTP site.&lt;/p&gt;  &lt;p&gt;The first thing I do in preparation is  to go to my MVC web application project and expand the References node  in the project tree. Select the aforementioned three assemblies and in  the &lt;strong&gt;Properties&lt;/strong&gt; dialog, set &lt;strong&gt;Copy Local&lt;/strong&gt; to &lt;strong&gt;True&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://1.bp.blogspot.com/_sX-WxN35S4Y/TUg0qrY4fyI/AAAAAAAABgY/K0FhE7W5gbY/s1600/MVC.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 348px; height: 541px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/TUg0qrY4fyI/AAAAAAAABgY/K0FhE7W5gbY/s400/MVC.JPG" alt="" id="BLOGGER_PHOTO_ID_5568758847049858850" border="0" /&gt;&lt;/a&gt;  &lt;/p&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;a href="http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx"&gt;Resource&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-8665317073203637708?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/8665317073203637708/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=8665317073203637708' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8665317073203637708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8665317073203637708'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/02/could-not-load-file-or-assembly.html' title='Could not load file or assembly: System.Web.Mvc, …'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_sX-WxN35S4Y/TUg0qrY4fyI/AAAAAAAABgY/K0FhE7W5gbY/s72-c/MVC.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6678335827805268262</id><published>2011-01-25T05:45:00.000-08:00</published><updated>2011-01-25T06:22:56.360-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XML to Class Visual Studio 2008'/><title type='text'>XML to Class Generator</title><content type='html'>1. Visual Studio 2008 -&gt; Visual Studio Tools -&gt; Visual Studio Command Prompt&lt;br /&gt;&lt;br /&gt;2.  Convert xml to xsd&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D:\\test&amp;gt;xsd test.xml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3.  Convert xsd to class&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;D:\\xsd.exe -c -l:c# -n:test test.xsd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Add new class to project.&lt;br /&gt;&lt;br /&gt;root class hast to use &lt;span style="font-weight: bold;"&gt;[Serializable]&lt;/span&gt; atribute to deserialize&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[Serializable]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;[XmlRoot("response")]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;public partial class TestKlasa&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Deserialize&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;static TestKlasa Deserialize_Test(string response)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            byte[] byteArray = Encoding.UTF8.GetBytes(response);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            MemoryStream responseStream = new MemoryStream(byteArray);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            try&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                XmlSerializer deserializer = new XmlSerializer(typeof(TestKlasa));&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                return (TestKlasa )deserializer.Deserialize(responseStream);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            catch (Exception e)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            { ;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            finally&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                responseStream.Close();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;            return new TestKlasa();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;        }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Sources:&lt;a href="http://www.codingday.com/xml-c-class-generator-for-c-using-xsd-for-deserialization/"&gt; here&lt;/a&gt; and &lt;a href="http://asp.dotnetheaven.com/howto/doc/xmlserialization/XSDToCls.aspx"&gt;here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6678335827805268262?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6678335827805268262/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6678335827805268262' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6678335827805268262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6678335827805268262'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/01/xml-to-class-generator.html' title='XML to Class Generator'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1857894933620006040</id><published>2011-01-12T00:51:00.000-08:00</published><updated>2011-01-12T00:53:23.457-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio lowercase visual studio uppercase'/><title type='text'>visual studio change section to lowercase/uppercase</title><content type='html'>Keyboard:  CTRL + SHIFT + U (upper); CTRL + U (lower)&lt;br /&gt;Menu:  Edit -&gt; Advanced -&gt; Make Uppercase; Edit -&gt; Advanced -&gt; Make Lowercase&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1857894933620006040?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1857894933620006040/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1857894933620006040' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1857894933620006040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1857894933620006040'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2011/01/visual-studio-change-section-to.html' title='visual studio change section to lowercase/uppercase'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1274771580408471533</id><published>2010-12-09T14:19:00.000-08:00</published><updated>2010-12-09T14:20:18.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Win 7 Shortcut for Desktop Gadgets'/><title type='text'>Win 7 Shortcut for Desktop Gadgets</title><content type='html'>Win+G&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1274771580408471533?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1274771580408471533/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1274771580408471533' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1274771580408471533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1274771580408471533'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/12/win-7-shortcut-for-desktop-gadgets.html' title='Win 7 Shortcut for Desktop Gadgets'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6163082525598974761</id><published>2010-12-01T05:12:00.000-08:00</published><updated>2010-12-01T05:21:42.014-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IIS metabase Error'/><title type='text'>Failed to access IIS metabase Error</title><content type='html'>Add asp.net user(?)&lt;br /&gt;&lt;br /&gt;Add framework version (i.e. 2 or 4)&lt;br /&gt;c:/windows/microsoft.net/framework/v2.0.52727/aspnet_regiis -i&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6163082525598974761?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6163082525598974761/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6163082525598974761' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6163082525598974761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6163082525598974761'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/12/failed-to-access-iis-metabase-error.html' title='Failed to access IIS metabase Error'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6464434013071063214</id><published>2010-07-08T02:58:00.000-07:00</published><updated>2010-07-08T03:09:22.362-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='reflection'/><category scheme='http://www.blogger.com/atom/ns#' term='invoked method'/><category scheme='http://www.blogger.com/atom/ns#' term='Exceptions'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Visual Studio 2008'/><title type='text'>Exceptions with methods invoked by reflection</title><content type='html'>If I use reflection to call a method via Invoke and that method throws an exception, the debugger stops on line where the method was called via reflection and not in the faulty method itself&lt;br /&gt;&lt;br /&gt;How do I change this, and have the debugger stop on the line of code in error.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check the "Thrown" box for the particular exception -- the debugger will stop where the exception is thrown, before it's caught (and translated) by the Invoke layer.&lt;br /&gt;&lt;br /&gt;In Visual Studio 2008, the Debug menu has an Exceptions... option.&lt;br /&gt;When clicking this, it brings up the "Break when an exception is thrown" dialog.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/TDWjIyoRIRI/AAAAAAAABZY/fl161ZQB2CY/s1600/ExceptionsThrown.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 513px; height: 176px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/TDWjIyoRIRI/AAAAAAAABZY/fl161ZQB2CY/s400/ExceptionsThrown.JPG" alt="" id="BLOGGER_PHOTO_ID_5491474692073136402" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6464434013071063214?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6464434013071063214/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6464434013071063214' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6464434013071063214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6464434013071063214'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/07/exceptions-with-methods-invoked-by.html' title='Exceptions with methods invoked by reflection'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/TDWjIyoRIRI/AAAAAAAABZY/fl161ZQB2CY/s72-c/ExceptionsThrown.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6767727203637734653</id><published>2010-03-26T04:21:00.000-07:00</published><updated>2010-03-26T04:23:17.319-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='set page to center'/><title type='text'>Set page to center</title><content type='html'>&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;Solution:&lt;/span&gt;&lt;br /&gt;Define width and set margin to 0.&lt;br /&gt;width: 900px; margin: 0 auto;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6767727203637734653?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6767727203637734653/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6767727203637734653' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6767727203637734653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6767727203637734653'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/03/set-page-to-center.html' title='Set page to center'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-748566734935003865</id><published>2010-03-12T02:47:00.000-08:00</published><updated>2010-03-12T03:02:44.496-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mozila Firefox Keyboard Shortcuts'/><title type='text'>Firefox keyboard shortcuts for Bookmarks</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;1. Organize Bookmarks in Firefox&lt;/span&gt;&lt;br /&gt;  Bookmarks/Organize Bookmarks/More/Keyword: "Enter letters. Example: ag"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/S5odviALnlI/AAAAAAAABOw/z2S6WxB7hfE/s1600-h/firefox+bookmark.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 267px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/S5odviALnlI/AAAAAAAABOw/z2S6WxB7hfE/s400/firefox+bookmark.JPG" alt="" id="BLOGGER_PHOTO_ID_5447699401676660306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;2. Open new Tab (Ctrl + T)  and &lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;navigate to Address bar&lt;/span&gt;: &lt;strong&gt;Alt+D&lt;/strong&gt;&lt;br /&gt;    &lt;span style="font-style: italic;"&gt;- Search bar: Ctl + K&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Enter your keyword&lt;/span&gt;. For Example -  ag&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/S5ofRcZB9YI/AAAAAAAABO4/a2NiLAXMsEc/s1600-h/firefox+keyword.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 59px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/S5ofRcZB9YI/AAAAAAAABO4/a2NiLAXMsEc/s400/firefox+keyword.JPG" alt="" id="BLOGGER_PHOTO_ID_5447701083797452162" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-748566734935003865?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/748566734935003865/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=748566734935003865' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/748566734935003865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/748566734935003865'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/03/firefox-keyboard-shortcuts-for.html' title='Firefox keyboard shortcuts for Bookmarks'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sX-WxN35S4Y/S5odviALnlI/AAAAAAAABOw/z2S6WxB7hfE/s72-c/firefox+bookmark.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7404911655707414121</id><published>2010-03-05T02:59:00.000-08:00</published><updated>2010-03-11T00:12:31.115-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Short if asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Short if Without Else'/><category scheme='http://www.blogger.com/atom/ns#' term='Short if html'/><category scheme='http://www.blogger.com/atom/ns#' term='Conditional Shorthand C#'/><title type='text'>Short if C# (C#: Conditional Shorthand)</title><content type='html'>&lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Explanation:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;If statement is true use first value else use second value&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Short if (Conditional Shorthand) Syntax:&lt;/span&gt;&lt;br /&gt;(a==b) ? first_value : second_value ;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;Short if Without Else ("Null" Conditional Shorthand):&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(a==b) ?? value;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Example:&lt;/span&gt;&lt;br /&gt;&amp;lt;asp:Literal EnableViewState=&lt;span style="color:Maroon;"&gt;"false"&lt;/span&gt; runat=&lt;span style="color:Maroon;"&gt;"server"&lt;/span&gt;&lt;br /&gt;Text=&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;'&amp;lt;%# (Jezik==&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;color:Maroon;"  &gt;"it"&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;)? &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;color:Maroon;"  &gt;"N"&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt; + Convert.ToChar(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;color:Maroon;"  &gt;176&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;):GetResources(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:100%;color:Maroon;"  &gt;"lblKapacitet"&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;) %&amp;gt;'&amp;gt;&lt;/span&gt;&lt;/span&gt;&amp;lt;/asp:Literal&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7404911655707414121?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7404911655707414121/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7404911655707414121' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7404911655707414121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7404911655707414121'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2010/03/short-if-html-source-code.html' title='Short if C# (C#: Conditional Shorthand)'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-278858189416057722</id><published>2009-11-01T14:07:00.000-08:00</published><updated>2009-11-01T14:08:41.363-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='break function c#'/><category scheme='http://www.blogger.com/atom/ns#' term='stop function c#'/><category scheme='http://www.blogger.com/atom/ns#' term='end function c#'/><title type='text'>How to break out of a function in C#?</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;return;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-278858189416057722?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/278858189416057722/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=278858189416057722' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/278858189416057722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/278858189416057722'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/11/how-to-break-out-of-function-in-c.html' title='How to break out of a function in C#?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-599504544395291186</id><published>2009-10-19T15:28:00.000-07:00</published><updated>2009-10-19T15:39:43.888-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Detect Page Refresh In ASP.NET'/><title type='text'>Detect Page Refresh In ASP.NET</title><content type='html'>Source page is :&lt;br /&gt;&lt;a href="http://csharpdotnetfreak.blogspot.com/2009/09/detect-page-refresh-in-aspnet.html"&gt;http://csharpdotnetfreak.blogspot.com/2009/09/detect-page-refresh-in-aspnet.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have created a aspx page using C# and ASP.NET and have put a button on it. And in the Click event of this button if you are inserting some data in database , after click if user refresh the page than click event gets fired again resulting data insertion to database again, to stop events on the page getting fired on browser refresh we need to write bit of code to avoid it&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;1. Page Load&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//dio za provjeru jel se radi o refreshu&lt;/span&gt;&lt;br /&gt;            if (IsPostBack == false)&lt;br /&gt;            {&lt;br /&gt;                Session["CheckRefresh"] = Server.UrlDecode(System.DateTime.Now.ToString());&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;2. Page_PreRender&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;protected void Page_PreRender(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//dio za provjeru jel se radi o refreshu&lt;/span&gt;&lt;br /&gt;            ViewState["CheckRefresh"] = Session["CheckRefresh"];&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;3. Insert Click&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;protected void btnInsert_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//provjera jel se radi o refreshu i ako ne izvrsi ovu radnju&lt;/span&gt;&lt;br /&gt;            if (Session["CheckRefresh"].ToString() == ViewState["CheckRefresh"].ToString())&lt;br /&gt;            {&lt;br /&gt;                &lt;span style="color: rgb(0, 153, 0);"&gt;//dio za provjeru jel se radi o refreshu&lt;/span&gt;&lt;br /&gt;                Session["CheckRefresh"] = Server.UrlDecode(System.DateTime.Now.ToString());&lt;br /&gt;               &lt;br /&gt;                &lt;span style="color: rgb(102, 102, 102);"&gt;#region insert&lt;/span&gt;&lt;br /&gt;            }&lt;br /&gt;            GridView_Pronalazac.DataBind();&lt;br /&gt;        }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-599504544395291186?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/599504544395291186/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=599504544395291186' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/599504544395291186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/599504544395291186'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/10/detect-page-refresh-in-aspnet.html' title='Detect Page Refresh In ASP.NET'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5657202815884024714</id><published>2009-10-18T15:20:00.000-07:00</published><updated>2009-10-18T15:21:09.068-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='refresh the current page in asp.net'/><title type='text'>How to refresh the current page in asp.net?</title><content type='html'>Response.Redirect(Request.Url.ToString());&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5657202815884024714?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5657202815884024714/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5657202815884024714' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5657202815884024714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5657202815884024714'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/10/how-to-refresh-current-page-in-aspnet.html' title='How to refresh the current page in asp.net?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5949251907036606697</id><published>2009-10-13T20:01:00.000-07:00</published><updated>2009-10-13T20:12:31.948-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LinqToDataSource search over TextBox'/><title type='text'>LinqToDataSource search over TextBox</title><content type='html'>Smijes imat samo jedan textbox na stranici ako zelis da stvar radi preko entera. U protivnome upotrjebi Button. Na koji ne treba vezat nikakav "onClick" vec se koristi submit svojstvo botuna.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/StVBiow9uCI/AAAAAAAABLE/mAwXqqxD4k8/s1600-h/linqtodatasource.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 241px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/StVBiow9uCI/AAAAAAAABLE/mAwXqqxD4k8/s400/linqtodatasource.JPG" alt="" id="BLOGGER_PHOTO_ID_5392288192160184354" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5949251907036606697?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5949251907036606697/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5949251907036606697' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5949251907036606697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5949251907036606697'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/10/linqtodatasource-search-over-textbox.html' title='LinqToDataSource search over TextBox'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_sX-WxN35S4Y/StVBiow9uCI/AAAAAAAABLE/mAwXqqxD4k8/s72-c/linqtodatasource.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1247796153467196577</id><published>2009-10-02T04:21:00.000-07:00</published><updated>2009-10-02T04:32:05.164-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Switch null with zero SQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Change null with 0 SQL'/><title type='text'>Show 0 instead of NULL</title><content type='html'>SELECT    &lt;br /&gt;&lt;br /&gt;CASE WHEN TextField IS NULL THEN '0' END AS txt,&lt;br /&gt;CASE WHEN numberField IS NULL THEN '0' END AS br&lt;br /&gt;&lt;br /&gt;FROM dbo.TestTablica&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1247796153467196577?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1247796153467196577/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1247796153467196577' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1247796153467196577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1247796153467196577'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/10/show-0-instead-of-null.html' title='Show 0 instead of NULL'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5487569798013448318</id><published>2009-09-23T16:04:00.000-07:00</published><updated>2009-09-23T16:08:51.323-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to retain the Values for GridView in Templatecontrol'/><title type='text'>How to retain the Values for GridView in Templatecontrol</title><content type='html'>example:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;asp :&lt;/span&gt;&lt;br /&gt;In GridView : OnSelectedIndexChanged = "GridView_Species_SelectedIndexChanged"&lt;br /&gt;In ItemTemplate: Use Label with id = "lblGenus_Item"&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;codebehind:&lt;/span&gt;&lt;br /&gt;In GridView_Species_SelectedIndexChanged&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;// Get the currently selected row using the SelectedRow property.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;GridViewRow row = GridView_Species.SelectedRow;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;//sve value from label to the string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;string  genus = ((Label)row.Cells[2].FindControl("lblGenus_Item")).Text;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5487569798013448318?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5487569798013448318/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5487569798013448318' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5487569798013448318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5487569798013448318'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/how-to-retain-values-for-gridview-in.html' title='How to retain the Values for GridView in Templatecontrol'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3318356761456537530</id><published>2009-09-23T14:04:00.000-07:00</published><updated>2009-09-23T14:11:16.758-07:00</updated><title type='text'>Bind value in DetailsView Insert Mode</title><content type='html'>InsertItemTemplate can't bind data directly from asp. Use codebehind.&lt;br /&gt;Example:&lt;br /&gt;DetailsView_Species_DataBound (make shoure that DetailsView call for it)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;if (DetailsView_Species.CurrentMode == DetailsViewMode.Insert)&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt; Label Find_lblSpecies_Insert =  (Label)DetailsView_Species.FindControl("lblSpecies_Insert");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt; Find_lblSpecies_Insert.Text = "aaaa";&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3318356761456537530?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3318356761456537530/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3318356761456537530' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3318356761456537530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3318356761456537530'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/bind-value-in-detailsview-insert-mode.html' title='Bind value in DetailsView Insert Mode'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6868742544216470957</id><published>2009-09-22T15:18:00.000-07:00</published><updated>2009-09-22T15:24:01.522-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Allow foreign key null value in SQL Server'/><title type='text'>Allow foreign key null value in SQL Server</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;PROBLEM:&lt;/span&gt;&lt;br /&gt;Allow in SQL SERVER    a foreign key to have null values or values that can not be found in the related table (like 'zero')&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;SOLUTION:&lt;/span&gt;&lt;br /&gt;It is not possible to insert null values in ViewTable mode. You need to use Right click on empty space in ViewTable mode,  -&gt; Pane -&gt; SQL and use insert script.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;(allow null values in Designe mode)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;example&lt;/span&gt;&lt;br /&gt;INSERT INTO SSS&lt;br /&gt; (Literature_ID, Location_ID, Species_ID, Pronalazac_ID, Datum_ID)&lt;br /&gt;VALUES     (NULL, NULL, 11, NULL, NULL)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6868742544216470957?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6868742544216470957/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6868742544216470957' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6868742544216470957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6868742544216470957'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/allow-foreign-key-null-value-in-sql.html' title='Allow foreign key null value in SQL Server'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2888510796733410856</id><published>2009-09-21T16:16:00.000-07:00</published><updated>2009-09-21T16:34:11.052-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multiple DataKeyNames in GridView'/><title type='text'>Multiple DataKeyNames in GridView</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;string selectedDiggins = GridView1.DataKeys[&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;GridView1.SelectedIndex&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;].Values["Diggings"].ToString();&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;//selecting datakey by name&lt;/span&gt;&lt;a id="publishButton" class="cssButton" href="javascript:void(0)" target="" onclick="if (this.className.indexOf(&amp;quot;ubtn-disabled&amp;quot;) == -1) {var e = document['stuffform'].publish;(e.length) ? e[0].click() : e.click(); if (window.event) window.event.cancelBubble = true; return false;}"&gt;&lt;div class="cssButtonOuter"&gt;&lt;div class="cssButtonMiddle"&gt;&lt;div class="cssButtonInner"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2888510796733410856?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2888510796733410856/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2888510796733410856' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2888510796733410856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2888510796733410856'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/multiple-datakeynames-in-gridview.html' title='Multiple DataKeyNames in GridView'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-8897590499944739235</id><published>2009-09-21T15:59:00.000-07:00</published><updated>2009-09-21T16:34:43.716-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c# User Control - Adding Events'/><category scheme='http://www.blogger.com/atom/ns#' term='asp.net user control adding events'/><title type='text'>User Control - Adding Events</title><content type='html'>1.  define the events in code behind of user control&lt;br /&gt;(Remember: To define an event you must use the event keyword with a delegate that represents the signature of the event. )&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;public event EventHandler SelectedIndexChanged;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Parameters&lt;br /&gt;&lt;br /&gt;public string &lt;span style="color: rgb(51, 102, 255);"&gt;param_odabranaVrijednost&lt;/span&gt;&lt;br /&gt;       {&lt;br /&gt;           get { return odabranaVrijednost; }&lt;br /&gt;           &lt;span style="color: rgb(0, 102, 0);"&gt;//set { odabranaVrijednost = value; }&lt;/span&gt;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;3.&lt;br /&gt;&lt;br /&gt;protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)&lt;br /&gt;       {&lt;br /&gt;           string selectedID = GridView1.SelectedValue.ToString(); &lt;span style="color: rgb(0, 102, 0);"&gt;//first dataKey "Location_ID"&lt;/span&gt;&lt;br /&gt;           string selectedDiggins = GridView1.DataKeys[GridView.SelectedIndex].Values["Diggings"].ToString();&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// finding dataKey by name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;           &lt;span style="color: rgb(51, 102, 255);"&gt;odabranaVrijednost&lt;/span&gt; = "Odabrani id je : " + selectedID.ToString();&lt;br /&gt;&lt;br /&gt;          &lt;span style="color: rgb(51, 102, 255);"&gt; if (SelectedIndexChanged != null)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;            {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;                SelectedIndexChanged(this, EventArgs.Empty);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;            }&lt;/span&gt;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;4. Saving value in some text box inside page or control that uses user control&lt;br /&gt;&lt;br /&gt;protected void&lt;span style="color: rgb(51, 102, 255);"&gt; SelectedIndexChanged&lt;/span&gt;(object sender, EventArgs e)&lt;br /&gt;       {&lt;br /&gt;           txtLokacija.Text = Lokacija1.param_odabranaVrijednost;&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;5. In designe mode .ascx or .aspx call eventhandler inside of used control&lt;br /&gt;&lt;br /&gt;uc2:Lokacija ID="Lokacija1" runat="server" &lt;span style="color: rgb(51, 102, 255);"&gt;OnSelectedIndexChanged="SelectedIndexChanged"&lt;/span&gt; //moras napisat rucno &lt;span style="color: rgb(51, 102, 255);"&gt;&lt;/span&gt;OnSelectedIndexChanged jer je ovo kreirani event pa ga nema u inteli sensu&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-8897590499944739235?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/8897590499944739235/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=8897590499944739235' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8897590499944739235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8897590499944739235'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/user-control-adding-events.html' title='User Control - Adding Events'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-307788014094569981</id><published>2009-09-11T13:40:00.000-07:00</published><updated>2009-09-11T15:49:39.322-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='confirmation question'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView Delete Item template  confirmation question before deleting.'/><title type='text'>GridView Delete Item template:  confirmation question before deleting.</title><content type='html'>To make Delete button editable disable automatic delete and make it in ItemTemplate as LinkButton with command name "Delete".&lt;br /&gt;To ask confirmation question use OnClientClick = "return confirm('some text ');"&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SqrTn_imdfI/AAAAAAAABKs/DyY0IjkegNI/s1600-h/Delete+Button.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 134px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SqrTn_imdfI/AAAAAAAABKs/DyY0IjkegNI/s400/Delete+Button.JPG" alt="" id="BLOGGER_PHOTO_ID_5380345388872398322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;To perform deleting after "deleteOnSubmit" you need to "SubmitChanges" and to see changes in gridview you need to "DataBind" gridview.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SqrRfp3VEcI/AAAAAAAABKc/EInztD3iC0Q/s1600-h/CommandButton.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 587px; height: 217px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SqrRfp3VEcI/AAAAAAAABKc/EInztD3iC0Q/s400/CommandButton.JPG" alt="" id="BLOGGER_PHOTO_ID_5380343046591549890" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-307788014094569981?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/307788014094569981/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=307788014094569981' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/307788014094569981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/307788014094569981'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/gridview-delete-item-template.html' title='GridView Delete Item template:  confirmation question before deleting.'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sX-WxN35S4Y/SqrTn_imdfI/AAAAAAAABKs/DyY0IjkegNI/s72-c/Delete+Button.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6321435364512055628</id><published>2009-09-05T11:16:00.000-07:00</published><updated>2009-09-05T11:30:12.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Firefoxa.exe Entry Point Not Found'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox 3.5 Entry Point Not Found'/><title type='text'>Firefoxa.exe Entry Point Not Found</title><content type='html'>&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;Problem:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I installed Firefox 3.5 and now each time at running time I get error message : "Firefox.exe - Entry Point Not Found"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SqKuDK9ZjQI/AAAAAAAABJ0/mzuGN_BnKp8/s1600-h/Firefox+Entry+Point+not+Found.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 441px; height: 87px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SqKuDK9ZjQI/AAAAAAAABJ0/mzuGN_BnKp8/s400/Firefox+Entry+Point+not+Found.jpg" alt="" id="BLOGGER_PHOTO_ID_5378052274538515714" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;Solution:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to your "C:\Windows\System32" dir&lt;br /&gt;Look for this file:&lt;br /&gt;DWMAPI.DLL&lt;br /&gt;If it's there, either rename it to DWMAPI.DLL.OFF or move it out of the Windows dir to some backup folder elsewhere (don't delete it just yet, just incase).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6321435364512055628?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6321435364512055628/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6321435364512055628' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6321435364512055628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6321435364512055628'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/09/firefoxaexe-entry-point-not-found.html' title='Firefoxa.exe Entry Point Not Found'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sX-WxN35S4Y/SqKuDK9ZjQI/AAAAAAAABJ0/mzuGN_BnKp8/s72-c/Firefox+Entry+Point+not+Found.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-8184942412764935987</id><published>2009-08-25T15:00:00.000-07:00</published><updated>2009-08-25T15:03:36.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to get DataKey of GridView'/><title type='text'>How to get DataKey of GridView?</title><content type='html'>Once you have specified DataKeyNames, you can retrieve the datakey for the&lt;br /&gt;selected row by simply using - GridView1.SelectedValue&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;string selValue = GridView1.SelectedValue.ToString();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-8184942412764935987?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/8184942412764935987/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=8184942412764935987' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8184942412764935987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8184942412764935987'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/08/how-to-get-datakey-of-gridview.html' title='How to get DataKey of GridView?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7051134109575891691</id><published>2009-08-10T10:01:00.000-07:00</published><updated>2009-08-10T10:05:18.423-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Zoom linqToSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Zoom in linqtoSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Zoom linq to sql'/><category scheme='http://www.blogger.com/atom/ns#' term='Zoom out linq to sql'/><title type='text'>Zooming LinqToSql Table Diagram</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SoBSuQwqlEI/AAAAAAAABJk/sxLKzh-yaug/s1600-h/ZoomLinqToSql.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 400px; height: 400px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SoBSuQwqlEI/AAAAAAAABJk/sxLKzh-yaug/s400/ZoomLinqToSql.jpg" alt="" id="BLOGGER_PHOTO_ID_5368381710552175682" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: right;"&gt;&lt;br /&gt;&lt;/div&gt;To zoom in or zoom out Linq To SQL Table Classes diagram press CTRL and scroll mousse button&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7051134109575891691?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7051134109575891691/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7051134109575891691' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7051134109575891691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7051134109575891691'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/08/zooming-linqtosql-table-diagram.html' title='Zooming LinqToSql Table Diagram'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sX-WxN35S4Y/SoBSuQwqlEI/AAAAAAAABJk/sxLKzh-yaug/s72-c/ZoomLinqToSql.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-8765670087223876278</id><published>2009-07-24T05:13:00.000-07:00</published><updated>2009-07-24T05:24:38.230-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Virtual Method'/><category scheme='http://www.blogger.com/atom/ns#' term='Interface vs. Abstract'/><category scheme='http://www.blogger.com/atom/ns#' term='Override Class'/><category scheme='http://www.blogger.com/atom/ns#' term='Abstract Method'/><category scheme='http://www.blogger.com/atom/ns#' term='Abstract Class'/><title type='text'>Interface vs. Abstract   ...nesrecnici po rodjenju</title><content type='html'>&lt;div class="Section1"&gt;  &lt;p class="MsoNormal"&gt;[12:07:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako interface...podrazumijeva implementaciju "zajednicke funkcionalnosti ali RAZLICITE implementacije"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:07:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i trazi pisanje koda...jer koda u interfaceu samom nema&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:07:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a astraktne klase...takodjer pod&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:07:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: OBAVEZNO&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:07:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: traze implementaciju (pisanje koda) jer isto tako koda nemaju...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:07:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sto znaci...davanje zivota svim metodama...koje sadrze&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koja je SUSTINASKA razlika izmedju interfacea i abstraktne klase...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ono na tragu...okvir i ...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:16] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koliko sam skuzila apstraktne klase vec mogu imat kod&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali to moram provjerit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: abstraktne klase se nadogradjuju&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dobro, taj detalj u sebi...nije bitan...to cu sad provjerit u sekund&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: bitna mi je sustina...kuzis&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:08:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a sucelje ne mozes nadogradit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:09:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kad primjenit interface kad abstraktnu klasu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:09:55] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koliko ja kuzim...baznu klasu primjenjujes kad imas neka osnovna zajednicka svojstva koja se ipak u nasljedjivanju mogu ralikovat od vrste do vrste..ne znam moze li se radit overload.. ako da, onda je to to..&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:03] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a interface ti zapravo odredi maksimum do kojeg mozes ic&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i vise od toga ne mozes&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: override se radi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne overrride nego overload&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ono sto mene buni&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:30] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: je&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako interface odredjuje maximum...sta se desava kad ih imas vise&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:10:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: reagiraju kao skup pa je to zapravo set maximuma&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: hm hm hm...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ili imas jedno ogranicenje..a zelis ga ispravit...onda ubacis novi interface?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok, ajmo ovako, valjda cemo doc do toga&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:44] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: cuj, ajmo to postavit ko ova zenica dobra: IShape ...dakle, "okvir"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imas likove...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:11:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: krug, pravokutnik, trokut&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: svaki se iscrtava drugacije&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:09] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: interface je IShape , dakle okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:16] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ima metodu, koja nema koda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Draw&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: primjena metode...moze i jest drugacija za svaki "element okvira"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i to je interface&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:52] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako ja zelim jos jedan interface&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:12:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: on bi mogao bit...sta&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: na primjeru ovome&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozda....&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:12] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: opseg&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: svaki je drugaciji&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da..istina&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: implementacija opsega kod svakog je drugacija&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jeste&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:36] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: okvir je novi...Opseg&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a pitanje je&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:45] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: asto tu isto ne upotrjebit abstraktnu klasu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle,....novi interface je Okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:52] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koja ima metodu koja se da overridat?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:13:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koa je razlika?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e o tome ti ja govorim zapravo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sustinski razlog, zasto ne jedno a drugo ili obratno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: po meni&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:47] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zato sto&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: evo zasto&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: suuti&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: evo zasto&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:14:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: abstraktnu klasu koristis ako zelis primjenit isto, ali na drugaciji nacin...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: abstraktna klasa (ako moze imat koda)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: se nasljedjuje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sekund&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: stani&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zadrzi misao&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: samo jedna recenica&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne moogu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kod abstraktne klase...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: obavezujes se!!!!&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:36] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: preuzet sve metode abstraktne klase&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i IMPLEMENTIRAT ih&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: aha&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:44] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ludja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:45] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nema...pick and choose&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok..onda slusaj&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: moras uzet sve...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:15:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nastavi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a kod interfacea?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: isto tako&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok..onda ovako&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: abstraktna klasa se nasljedjuje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: istina&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ona u sebi moze imat vec dio koda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: metode sa kodom&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:33] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koje ti mozes i ne moras overridat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jel se moze instancirat?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ka ni interface...on ne moze bit objekt&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:16:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok..slusaj&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znaci...ma prvo mi moramo provjerit moze li imat koda :))&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajmo prvo se odlucit ili za jedno ili za drugo...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajmo od pocetka&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zasto&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zato jer ako moze&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to znaci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da svaka durga klasa koja nasljedi apstraktnu klasu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ima defoltne metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i definira samo one&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koje se razlikuju&lt;span style=""&gt;  &lt;/span&gt;putem overrida&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:52] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i nasljedjuje odredjenu funkcionalnost...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:17:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a interface nema niti jednu metodu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i to znaci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da ti mozes narpavit klasu koja izracunava broj kuteva u abstraktnoj klasi za kvadrat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ako bas koristis neki peterokut..onda overridas tu metodu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zapravo je time mijenjas&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: tocnije..ako ti je 90% toga u 4 kuta...onda ti to ustedi vrimena.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:18:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa &lt;span style=""&gt; &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali idem vidit to sa kodom..&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:03] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: meni nije jasno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:08] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kad uzmeme nasljedjivanje interfacea&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:13] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako je interface okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to bi znacilo da ne mozes imat metoda vise od onoga sto intrefcace nudi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ako nasljedim vise interfacea...onda od svakoga moras imat metode koje nudi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:52] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nije li prelazak na novi interface..gazenje okvira prvog interfacea.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:19:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zasto bi bilo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako svaki interface daje odredjeni i samo odredjeni okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: samo se nadopunjuju&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znaci ne mozes imat manje ali mozes imat vise?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:30] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kao....povrsina, opseg, elasticnost, bla bla&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes ih imat od 0 do koliko hoces&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes li ih imat manje nego ih ima u interfaceu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako ih mozes imat vise, a mozes, onda to znaci da jedan drugog NE gazi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:20:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako me logika sluzi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:21:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jego NADOPUNJUJE&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:21:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: aha&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:21:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: prilikom implementacije interfacea&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:21:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: broj metoda koje implementiras ovisi samo o broju "zacetih" metoda u samom interfaceu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:21:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle...mozes ih imat i moras ih imat BAREM onoliko koliko ih ima u samom interfaceu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:22:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a mozes li ih imat vise...to ne znam&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:22:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mislim da u abstraktnoj klasi...imas one koje moras implementirat&lt;span style=""&gt;  &lt;/span&gt;i da mozes nanizat svojih koliko hoces&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:22:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: aj vidi za kod u abstraknoj klasi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:22:55] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: abstrakne klase mogu imat apstraktne metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:22:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a one ne sadrze kod&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a mogu imat i obicne..ove valjda imaju kod.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: slusaj dalje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i mora implementirat sve abstraktne metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sto znaci ako nisu abstraktni da ih mozes uobicajeno koristit?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:23:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako su vidljive izvan...dakle, ako nisu private&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:12] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pitanje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: moze li abstraktna klasa imat virtoalnu metodu za overridanje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ili su sve metode u abstraktnoj klasi automatski dopustee za overrride&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to spada u "obicne" metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:24:52] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: po meni ...moze&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:00] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: obicne ne mozes overridat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes ako su virtualne&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:13] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pa onda nisu obicne!&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: public virtual string ()&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: udrit cu te&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: al su u tom smislu obicne jer nisu abstraktne&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:44] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jel ima keyword abstract za metodu...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ima jel da?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ovo je super&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:25:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: slusam vas oboje od jednom&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mene zanima&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:12] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: svaka metoda je obicna ako nije abstraktna, po meni...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: prema tome...moze&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:22] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: majko moja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ko meni brani da stavim virtualnu metodu u abstraktnu klasu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pa ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda je abstraktna klasa&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozda grijesim, ali to je moje misljenje...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:45] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa &lt;span style=""&gt; &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zapravo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nadklasa obicne klase...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: temelj sa elementima okvira&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:26:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:27:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ovaj jeb. interface je samo okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:27:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: hmmmm...mislim da abstraktna klasa je supervojnik&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:27:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ja mislim da je kiseli kupus&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:27:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: cek&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:28:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: moze li abstraktna klasa naslijedit interface?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:28:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zanimljivog li pitanja :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:28:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: public abstract class Krug:Okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:28:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mislis IOkvir :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:29:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne znam&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:29:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ocu pitat predraga?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:29:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajmo prvo opalit to pitanje na google&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:29:53] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to i radim :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:30:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: http://mindprod.com/jgloss/interfacevsabstract.html&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:30:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: hahhah&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:30:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: aj sad ko ce brze citat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:31:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne..nego..mozda tomo to i nije najbolje objasnija&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:31:22] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a nama je bas bilo ludja objasnjenje pa smo ga tili na silu zadrzat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:31:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:31:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:31:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: When should you use an abstract class, when an interface, when both? Interfaces and abstract classes seem superficially to provide almost the same capability. How do you decide which to use?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:34:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: http://jelle.druyts.net/CommentView.aspx?guid=fe5e801e-71e5-474e-8235-01b2ad14ff68&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znas kako ti ja gledam interfaceve i bazne klase&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da skratimo ovo mucenje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: bazne klase=abstraktne?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: interface koristimo kad npr zelimo uvest novu klasu a da odgovara standardima vec postojece strukture&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: npr.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:38:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Imas zivotinje sa propertijima : oci, noge, ...&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:39:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i sad zelis uvest kokos&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:39:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i klasu koju kreiras o kokosi isto nabrajas oci, noge...bla bla&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:39:36] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: s tim da je kokos novi interface...?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:39:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne..s time da kokos koristi taj interface zivotinja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:39:55] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znaci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:40:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Kokos:IZivotinja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:40:08] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:40:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a bazna klasa bi bila&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:40:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: tj. se koristi u izgradnji&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:03] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle prije nego uposlis te druge zivotinje preko interfacea&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:09] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ti zelis definirat sta svaka zivotinja ima&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: + neke moguce varijacije zbog ceka koristis abstrakne metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok, definiras bazičnu funkcionalnost---&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: u baznoj klasi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:41:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sad bi nam jos samo tribalo 10064 primjera&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:42:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da nam to sidne u prirodnom obliku.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:43:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: When you implement the interface, you start from scratch without any default implementation. You have to obtain your tools from other classes; nothing comes with the interface other than a few constants. This gives you freedom to implement a radically different internal design.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:43:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: The abstract class author has imposed structure on you. Depending on the cleverness of the author of the abstract class, this may be good or bad.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:44:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: You must use the abstract class as-is for the code base, with all its attendant baggage, good or bad.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:44:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle...kad definiras abstraktnu klasu, sa svim njenim sadrzajem...koristis je KAKO-JE&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:44:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: interface...ti daje slobodu da napravis nesto sasvim drugacije...ne ovisi o bazi, niti malo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:44:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali ona moze imat abstrakne clanove koji se daju modificirat..sto je obiljezje sucelja.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: interface ti daje da napravis sucelje ka sta je to osnovno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: valjda kako jednom prilikom nebi dvi zivotinje bile toliko razlicito definirane da se ne mogu lagano koristit u medjukodu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: u tom smislu...interface, sam za sebe, jeste okvir, unutar kojeg plivas...kako hoces...abstraktna klasa isto je okvir ali sa definiranim pravilima ponasanja...koja mozes nadogradjivat&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a recimo da je to -to&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: iako ...koji je smisao svega toga u konacnici?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:45:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sloboda djelovanja valjda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:46:18] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: moram vidit ovo sa nasljedjivanjem...abstraktnih klasa&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:46:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to ti je ja mislim za ovaj biznis layer&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:46:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ili mi lici na njega...za jnega&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:46:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:46:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kako mislis&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: evo ovako nekako&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: u business logic layeru...mos mijenjat temeljnu funkcionalnost...to mislis?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imas metodu koja poziva metodu koja za parametar ima objekt&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ovdi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:47] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:47:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dobijes prakticki klasu sa definiranim metodama koje su uvik iste&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i zapravo mozes biznis logicu prosljedjivat tu klasu tj. njen objekt&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: za parametar&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako imas pasa, macku i konja koji svi imaju istu strukturu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda objekt macke sa zajednickim parametrom oci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes prosljedit metodi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koja npr. oci boja u odredjenom momentu u crveno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:48:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: npr&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:49:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: bojanje_ociju(Zivotinja aa) { aa.Oci(rozo)}&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:49:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a na drugu stranu za parametar prosljedjujes objekt Pas&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:49:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koji ima metodu oci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:50:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i u momentu kad izmetode&lt;span style=""&gt;  &lt;/span&gt;bojanje_ociju&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:50:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pozoves prosljedjeni parametar aa.Oci sto je jednako Pas.Oci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:50:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pas ce imat roze oci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[12:50:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kuzis&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:03:33] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: http://www.index.hr/vijesti/clanak/nagibni-vlak-iskocio-iz-tracnica-ima-mrtvih/443114.aspx&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:06:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: evo mog primjera zasto ce nam jeb. interfaceovi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: If the various objects are all of-a-kind, and share a common state and behavior, then tend towards a common base class. If all they share is a set of method signatures, then tend towards an interface.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ma ja razumin tooo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali moje pitanje je ZAŠTO&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: shvacas&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajde daj primjer&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kako ce to tebi ikad&lt;span style=""&gt;  &lt;/span&gt;pomoc&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:36] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nece nikad&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Na primjer&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:07:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:08:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: izgubila sam ga :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:08:36] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: evo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:08:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imaš klase kistova&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:08:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: npr.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: svaki kist ima svoje baze, svoju debljinu, svoju jacinu pritiska i bla bla&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imas interface koji definira njihova zajednicka svojstva&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Debljina kista, Pritisak, Set boja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok, isti signature&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i imas trecu najudaljeniju klasu koja je zapravo tools&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:09:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ta klasa u sebi instancira sve te druge klase tj. tipove kistova&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i kad ti radis konkrento sa aplikacijom&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ili kodom&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imas mogucnost da u odredjenom momentu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: npr Kist1.Boja(Crvena)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Kist2.Boja(zelena)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:10:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i to sve unutar te klase Tools&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Kad nebi bilo interfacea&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:08] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda bi se moglo dogodit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da npr. dva tima kreiraju klase&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i jedan tim napravi Kist1 sa metodom Boja ali u nju prosljedjuje 4 parametra&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:47] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a tim dva napravi Kist2 sa metodom BojeBojice&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:11:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i sad ti koji pises tools&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: moras za svaku klasu proucavat sta im znaci koja metoda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: Osim toga&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: interfacei odredjuju i broj parametara&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sto znaci&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da ako tim 1 i tim 2 naprave dvi kist 1 i kist 2 koji cak i imaju metodu istog imena&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:12:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zamisli da metoda kista 1 prima 4 parametra a metoda kista 2 1 parametar&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: opet je nahebao ovaj koji pise Tools klasu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:12] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jer se mora bakcat sa razlicitim rjesenjima za istu stvar&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jasno mi je to sto govoris&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: logika iza toga&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:33] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nadam se da je to ...odprilike to&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:44] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ono&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nemamo nikoga da nam to potvrdi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da se ne desi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:13:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da treci jadnik mora skupljat mozdane isprtke dvaju timova&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:14:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozemo tomu sutra na kavi ..ako ne zaboravimo ovu teoriju :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:14:15] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sutra je subota&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:14:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mislim da je to to..&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:14:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a znacenje mozes prosirit i na kod&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:15:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zamisli da postoji neki collection koji skuplja objekte i automatski ih puni bojom&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:15:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda mu zapravo i treba identican set parametara za svaki objekt ciju metodu zove.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:15:49] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jer ne mozes automatiziranom kodu rec..aj mlao prouci sta radi koja metoda kojeg objekta.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:00] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zapravo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ako se dovoljno daleko odmaknes&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:07] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes vidit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:09] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da se time&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: tim interfaceovima&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: klase pretvaraju u pripremljene vrjednosti za niz&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:16:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znaci...daje im se struktura podatka kojoj se onda moze pristupit po nekom indexu iz nekog colectiona&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:08] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i na dobivenu vrjednost automatski zalipetat predpostavljeni kod&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jer se ocekuje da je struktura niza objekata identicnog seta metoda.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: dakle, isti signature&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: o tome govoris&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i iste metode&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:17:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: misim..isti nazivi metoda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:18:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sve je to super...idem potrazit na jebenom netu, doslovno, zdravo seljacki primjer...al ono, iza totalne idiote&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:18:21] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: fuck you&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:18:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jos uvijek smo u domeni...teorije, bez definitivne potvrde&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:18:38] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i need SOLID PROOF&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:18] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: iako ja mislim&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:22] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: kad ti dobijes to radit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nista te od ovih pitanja nece bunit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i imat ces slatku djecicu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i zenu zvana Bebica&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajmo pitat predraga&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:24:57] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: na konkretnom primjeru u autoscoutu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:25:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: otisa je...mogli smo sa njim u konfu&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style=""&gt; &lt;/span&gt;[13:26:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ne mislim da on to na primjeru as-a moze dobro objasnit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:26:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i da bi u krajnjoj liniji potrajalo.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:26:24] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a po tome nista se ne smi pitat :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:26:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: al dobro, necem&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:26:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: pitaj ako mislis da ce ti pomoc&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:26:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: idjem nac konkretan primjer&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:27:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: http://geekswithblogs.net/mahesh/archive/2006/07/05/84120.aspx&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:31:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ma OK ali i dalje ti nitko ne odgovara na pitanje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:31:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koji ce ti K... to sve skupa&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:31:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: tako da je moja teorija ludja i primjenjuje se dalje dok se ne dokaze da je kriva :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: znas sta je zaheb sa ovim jeb. interfaceima i abstraktnim klasama&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:10] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to sto one zapravo nikad ne zazive&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ka neke opne su&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:28] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nemas ih konkretno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:30] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne punis ih&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:34] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne upravljas njima&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne provlacis ih&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:43] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: tj...neema ih&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:32:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: aj aj..abstrakna i ima neki pticji isprdak&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:00] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali interface je zapravo ko neko sveto pismo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ili bozje zapovidi&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:26] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ti zivis svoj zivot sa svojim mukama...al se moras prilagodit bozjim zapovidima...pa se snadji druze.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:31] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ako ti je bas toliko tesko&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda uz svog boga uvedes jos i muhameda da ti malo proveca prava&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:33:48] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to je slucaj kad npr. uzimas dva interfacea&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: al onda ti i taj natovari svoje setove metoda kojima se moras pokoravat.&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:20] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: to je to :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: al mozemo se igrat boga i napisat svoj&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sta..intreface?&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:42] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:45] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: neovisno o postojecim&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: al to i je bit&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:51] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zamisli da ti radis u vise timova&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:34:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i imate bazni projekt za kojeg pisete klase&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:35:00] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: bas taj primjer&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:35:17] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: imas zadane interfaceove i svoj projekt di tribas napravit te kistove&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:35:40] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ti interfaceovi ti govore sta smis upotrjebit ako zelis da tvoja klasa bude primjenjiva u toolsima&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:35:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mozes ti svojoj klasi nadodat jos sto propertija, metoda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:35:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ali ovaj tim sto radi toolse se nece bavit time&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:36:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: njih samo zanima njihov standardni izgled&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:36:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sta bi bilo kad bi u microsoftu svaki programer pisa svoje ideje i to u obliku koda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:36:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: bi trebao bit jos jedan firma koja se bavi interpretacijom njihovih ideja i na kraju opet, sklapanjem u medjusobno kompatibilne djelove&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:18] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ok&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:35] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ajmo rec da su interfacei "ludjacka kosulja"&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:37] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:44] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: svidja mi se&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:47] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: eto&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ludja&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:37:56] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ti bi se trza...al neeces&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:01] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ne mozem&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:03] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: sputan sam jadan&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:05] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: e&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:12] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: supac :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:22] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ocemo to sutra rec njima sta smo zakljucili :D&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mi smo svi&lt;span style=""&gt;  &lt;/span&gt;u ludjackim kosuljama :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:29] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: hocemo, u ponedjeljak&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:46] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: toster upotrijebi za ispec kruv a peglo mte lupim u glavu za svaki slucaj&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:38:58] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: poveznica je...obiteljsko nasilje&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: hahahahaa&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:09] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: obiteljsko nasilje je okvir&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: samo sto nema socijalne sluzbe&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:25] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: obiteljsko nasilje je sve skupa&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:33] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: prvo te naprave ...to je abstraktna klasa :D&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:45] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda te jos malo odgajaju..i to je abstraktno&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:39:54] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: jer je moras nadopunit, ako uzmes da je samo zacece abstraktna metoda&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:03] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: eee&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:04] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: da&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:14] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: noc u kojoj su se zvaknuli&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: je pocetak pisanja klase :D&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:23] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:32] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ako su to morali cinit vise puta&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:40:39] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: onda su stvarno losi programeri&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:42:11] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: a ako na pubertet gledas kao na fazu realizacije te abstraktne metode zaceca...u tom smislu, ako u samom zacecu mozes kao Simonica i Ante uvjerit sebe da ce nusproizvod bit pametan na mamu, onda koristis abstraknu metodu...ako bude sansa da dijete uspije u zivotu i odstupa od bolesnih roditelja...dakle, periferno se razvija drugacije od svoje maticne baze...onda korisitmo interface&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:42:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mogu li ovo objavit na fatalerrordoom-u? :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:42:59] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: naravski...uz moje ime&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:02] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ;)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:06] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: nemaj zime..i tvoju sliku&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:13] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: zapravo&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:19] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: mogla bi cili ovaj razgovr objavit :)&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:27] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: i ocu..da znas..to je moj blog!&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:41] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 153, 102);"&gt;Cvjetko says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: ti si tu bog, nemoj past na tjeme&lt;/p&gt;  &lt;p class="MsoNormal"&gt;[13:43:50] &lt;b style=""&gt;&lt;i style=""&gt;&lt;span style="font-size: 14pt; color: rgb(51, 102, 255);"&gt;Luđa&lt;span style=""&gt;  &lt;/span&gt;says&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;: koji je naslov?&lt;/p&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-8765670087223876278?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/8765670087223876278/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=8765670087223876278' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8765670087223876278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8765670087223876278'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/07/interface-vs-abstract-nesrecnici-po.html' title='Interface vs. Abstract   ...nesrecnici po rodjenju'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-8174594197872690498</id><published>2009-07-02T06:51:00.000-07:00</published><updated>2009-07-02T07:03:56.671-07:00</updated><title type='text'>LinqDataSource exceptions</title><content type='html'>&lt;h2&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_sX-WxN35S4Y/Sky9Szjbz-I/AAAAAAAABJM/0C6r71ZVmCU/s1600-h/linqToSQLDataSource.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 627px; height: 138px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/Sky9Szjbz-I/AAAAAAAABJM/0C6r71ZVmCU/s400/linqToSQLDataSource.JPG" alt="" id="BLOGGER_PHOTO_ID_5353862187810803682" border="0" /&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;When working with the LinqDataSource, you may get the exceptions listed below.&lt;/p&gt;    &lt;p&gt;&lt;b&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;1. Operator '==' incompatible with operand types 'Int32' and 'Object'&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;&lt;span style="color:#000000;"&gt;2. Operator '==' incompatible with operand types 'Guid' and 'String'&lt;/span&gt;&lt;/b&gt;&lt;p&gt;Source of this text: &lt;a href="http://weblogs.asp.net/rajbk/archive/2008/01/31/linqdatasource-exceptions.aspx"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-8174594197872690498?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/8174594197872690498/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=8174594197872690498' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8174594197872690498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/8174594197872690498'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/07/linqdatasource-exceptions.html' title='LinqDataSource exceptions'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_sX-WxN35S4Y/Sky9Szjbz-I/AAAAAAAABJM/0C6r71ZVmCU/s72-c/linqToSQLDataSource.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3390726146525320525</id><published>2009-06-30T03:51:00.000-07:00</published><updated>2009-06-30T03:53:41.253-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c# asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='How to set background color of textbox'/><category scheme='http://www.blogger.com/atom/ns#' term='c#  programming'/><title type='text'>How to set background color of textbox  in C#</title><content type='html'>How to set background color of textbox  in c#&lt;br /&gt;&lt;br /&gt;Codebehind:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;using &lt;/span&gt;System.Drawing;&lt;br /&gt;&lt;br /&gt;txtRokDatum.BackColor = &lt;span style="color: rgb(0, 153, 0);"&gt;Color&lt;/span&gt;.White;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3390726146525320525?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3390726146525320525/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3390726146525320525' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3390726146525320525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3390726146525320525'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/06/how-to-set-background-color-of-textbox.html' title='How to set background color of textbox  in C#'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6528007826091453329</id><published>2009-06-19T07:03:00.000-07:00</published><updated>2009-06-19T07:09:11.706-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Button Click CausesValidation'/><category scheme='http://www.blogger.com/atom/ns#' term='Ajax Control Accordion'/><category scheme='http://www.blogger.com/atom/ns#' term='Button click nothing happened'/><category scheme='http://www.blogger.com/atom/ns#' term='AccordionPane'/><title type='text'>AjaxToolbox: AccordionPane Button onClick does not working</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;PROBLEM:&lt;/span&gt;&lt;br /&gt;I'm ussing couple of accordion panes and each one is calling usercontroll. Each ussercontrol has button. If I click on bottun, debuger never goes into onClick function.&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;br /&gt;SOLUTION:&lt;/span&gt;&lt;br /&gt;If there is nothing to validate change button property "CausesValidation" to False&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6528007826091453329?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6528007826091453329/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6528007826091453329' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6528007826091453329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6528007826091453329'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/06/ajaxtoolbox-accordionpane-button.html' title='AjaxToolbox: AccordionPane Button onClick does not working'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7887554930649531821</id><published>2009-06-18T06:46:00.000-07:00</published><updated>2009-06-18T06:54:35.196-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ajax Toolkit: Accordion SelectedIndex problem after refresh in firefox'/><title type='text'>Ajax Toolkit: Accordion SelectedIndex problem after refresh in firefox</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;PROBLEM:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;If I use&lt;span style="font-weight: bold;"&gt; SelectedIndex &lt;/span&gt;In Accordion control after refresh in firefox the context of needed pane will be showed. How to fix this?&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;br /&gt;SOLUTION:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Turn Off the Autocompletion Feature.&lt;br /&gt;&lt;br /&gt;Exapmle:&lt;br /&gt; &lt;span style="font-style: italic;"&gt; form id="form1" runat="server" enableviewstate="True" autocomplete="off"&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7887554930649531821?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7887554930649531821/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7887554930649531821' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7887554930649531821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7887554930649531821'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/06/ajax-toolkit-accordion-selectedindex.html' title='Ajax Toolkit: Accordion SelectedIndex problem after refresh in firefox'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2824060029594567244</id><published>2009-06-02T05:43:00.000-07:00</published><updated>2009-06-02T06:08:32.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='call Insert Stored Procedure with Output parameter  in C#'/><category scheme='http://www.blogger.com/atom/ns#' term='System.Nullable Output parameter'/><category scheme='http://www.blogger.com/atom/ns#' term='LINQ to SQL Classes'/><category scheme='http://www.blogger.com/atom/ns#' term='DBML Database Markup Language'/><title type='text'>How to call Insert Stored Procedure with Output parameter  in C#</title><content type='html'>1 . Stored procedure for  Inserting with Output parameter:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ALTER PROCEDURE [dbo].[Insert_Narucitelj]&lt;br /&gt;&lt;br /&gt;@NAR_ID_Narucitelja int Output,&lt;br /&gt;@NAR_spol varchar(8),&lt;br /&gt;@NAR_ime varchar(20)&lt;br /&gt;&lt;br /&gt;AS&lt;br /&gt;&lt;br /&gt;INSERT INTO  dbo.Narucitelj ( NAR_Spol, NAR_ime )&lt;br /&gt;VALUES ( @NAR_Spol, @NAR_ime )&lt;br /&gt;&lt;br /&gt;SET @NAR_ID_Narucitelja = @@IDENTITY&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;2. DBML (Database Markup Language) - a LINQ to SQL Classes&lt;br /&gt;Pool table and stored procedure.&lt;br /&gt;&lt;br /&gt;3. Calling insert store procedure with output parameter&lt;br /&gt;&lt;code&gt;&lt;br /&gt;       DataClassesNaruciteljDataContext DCNaruciteljContext = new&lt;br /&gt;DataClassesNaruciteljDataContext();&lt;br /&gt;       Narucitelj narucitelj = new Narucitelj();&lt;br /&gt;       &lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;//definition for output parameter in c#&lt;/span&gt;&lt;br /&gt;      &lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt; System.Nullable&lt;/span&gt;&lt;/code&gt; &amp;#60;&lt;code&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;int &lt;/span&gt;&lt;/code&gt;       &amp;#62;&lt;code&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt; nullableID&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;&lt;int&gt; = narucitelj.NAR_ID_Narucitelja;&lt;/int&gt;&lt;/span&gt;&lt;br /&gt;       DCNaruciteljContext.Insert_Narucitelj(&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;ref&lt;/span&gt; nullableID, "Zensko", "Fata");&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2824060029594567244?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2824060029594567244/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2824060029594567244' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2824060029594567244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2824060029594567244'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/06/how-to-call-insert-stored-procedure.html' title='How to call Insert Stored Procedure with Output parameter  in C#'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3740925607385878764</id><published>2009-05-31T06:02:00.000-07:00</published><updated>2009-05-31T06:48:20.764-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='captcha  C# asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='picture with generated letters asp.net c#'/><category scheme='http://www.blogger.com/atom/ns#' term='captcha secure picture with letters in registration proccess'/><category scheme='http://www.blogger.com/atom/ns#' term='How to create captcha'/><category scheme='http://www.blogger.com/atom/ns#' term='captcha  code behind'/><title type='text'>AJAX: captcha  - Create It</title><content type='html'>&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;What is captcha&lt;/span&gt;&lt;/span&gt;: secure picture with randomly generated letters in registration process on asp.net page.&lt;br /&gt;&lt;br /&gt;In this demonstration we are going to create captcha, secure picture with letters in registration process. Captcha will be created in asp.net, AJAX and C# technology.&lt;br /&gt;&lt;br /&gt;The major thing on captcha will be done in C# code behind.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;How to create captcha :&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;1.&lt;/span&gt; Create New aspx page in your Project (name it: &lt;span style="font-style: italic;"&gt;Captcha.aspx&lt;/span&gt;)&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;3. &lt;/span&gt;Before namespace include this directives:&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;using &lt;/span&gt;System;&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;using &lt;/span&gt;System.Drawing;&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;using &lt;/span&gt;System.Drawing.Imaging;&lt;br /&gt;    &lt;span style="color: rgb(51, 51, 255);"&gt;using &lt;/span&gt;System.Drawing.Text;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;2. &lt;/span&gt;On PageLoad() of Captcha.aspx paste this code (&lt;span style="font-style: italic;"&gt;change MapPath and name of picture&lt;/span&gt;):&lt;br /&gt;&lt;br /&gt;           &lt;span style="color: rgb(51, 204, 0);"&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;//Folder for pictures under your project &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;            string mpath = Server.MapPath("../../Images/");&lt;br /&gt;&lt;br /&gt;            string imgFunnyCat = mpath + "funny-cat.jpg";&lt;br /&gt;&lt;br /&gt;          &lt;br /&gt;            Bitmap objBMP = new System.Drawing.Bitmap(imgFunnyCat);&lt;br /&gt;            Graphics objGraphics = System.Drawing.Graphics.FromImage(objBMP);&lt;br /&gt;           &lt;span style="color: rgb(0, 153, 0);"&gt; //objGraphics.Clear(Color.Green);&lt;/span&gt;&lt;br /&gt;            objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//' Configure font to use for text&lt;/span&gt;&lt;br /&gt;            Font objFont = new Font("Arial", 11, FontStyle.Bold);&lt;br /&gt;            string randomStr = "";&lt;br /&gt;            int[] myIntArray = new int[5];&lt;br /&gt;            int x;&lt;br /&gt;&lt;br /&gt;           &lt;span style="color: rgb(0, 153, 0);"&gt; //That is to create the random # and add it to our string&lt;/span&gt;&lt;br /&gt;            Random autoRand = new Random();&lt;br /&gt;            for (x = 0; x &lt; 5; x++)&lt;br /&gt;            {&lt;br /&gt;                myIntArray[x] = System.Convert.ToInt32(autoRand.Next(0, 9));&lt;br /&gt;                randomStr += (myIntArray[x].ToString());&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//This is to add the string to session cookie, to be compared later&lt;/span&gt;&lt;br /&gt;            Session.Add("randomStr", randomStr);&lt;br /&gt;&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//' Write out the text&lt;/span&gt;&lt;br /&gt;            objGraphics.DrawString(randomStr, objFont, Brushes.Black, 20, 8);&lt;br /&gt;&lt;br /&gt;           string slika = mpath + "aa.jpeg";&lt;br /&gt;          &lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//' Set the content type and return the image&lt;/span&gt;&lt;br /&gt;            Response.ContentType = "image/Jpeg";&lt;br /&gt;            &lt;span style="color: rgb(0, 153, 0);"&gt;//objBMP.Save(slika, ImageFormat.Jpeg);&lt;/span&gt;&lt;br /&gt;            objBMP.Save(Response.OutputStream, ImageFormat.Jpeg);&lt;br /&gt;&lt;br /&gt;            objFont.Dispose();&lt;br /&gt;            objGraphics.Dispose();&lt;br /&gt;            objBMP.Dispose();&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;4.&lt;/span&gt; On other page; Register page (in Design mode), inside of ajax update panel, include Image control and Button control.&lt;br /&gt;Image control should have ImageUrl property to show on Captcha.aspx page&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;asp:Image ID="Image1" runat="server" ImageUrl="~/UI/Controls/Captcha.aspx" /&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and Button property Click shoul have Button1_Click value&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;asp:Button ID="Button2" runat="server" Text="Button" onclick="Button1_Click" /&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;"&gt;5. &lt;/span&gt;In code behind of Register page, in button click event you should put code with ImageUrl to show on Captcha.asp page and with generated id. (because, ajax update will happened only if something is changed. And this URL will be generated randomly.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;        protected void Button1_Click(object sender, EventArgs e)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;        {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;            Image1.ImageUrl = "~/UI/Controls/Captcha.aspx?id=" + Guid.NewGuid() + "";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;        }&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3740925607385878764?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3740925607385878764/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3740925607385878764' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3740925607385878764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3740925607385878764'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/05/ajax-captcha-create-it.html' title='AJAX: captcha  - Create It'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-650330699916520928</id><published>2009-05-22T05:09:00.000-07:00</published><updated>2009-05-22T05:25:33.563-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error Rendering Control'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2008 Design Mode error collection was modified; enumeration operation my not execute ajax accordion'/><title type='text'>collection was modified; enumeration operation my not execute ajax accordion</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_sX-WxN35S4Y/ShaZM1Vu2pI/AAAAAAAABF0/1WtTmdNGsJM/s1600-h/enumeration+operation+my+not+execute+ajax+accordion.JPG"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#3366ff;"&gt;PROBLEM:&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Visual Studio 2008 Design Mode Errior: Error Rendering Control - Accordion&lt;br /&gt;" &lt;strong&gt;collection was modified; enumeration operation my not execute ajax accordion&lt;/strong&gt; "&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#3366ff;"&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;SOLUTION:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Change the control size by streching borders.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5338623055266735330" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 390px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/ShaZYi7iZOI/AAAAAAAABF8/UrpR8bhmLe8/s400/enumeration+operation+my+not+execute+ajax+accordion.JPG" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-650330699916520928?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/650330699916520928/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=650330699916520928' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/650330699916520928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/650330699916520928'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/05/collection-was-modified-enumeration.html' title='collection was modified; enumeration operation my not execute ajax accordion'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_sX-WxN35S4Y/ShaZYi7iZOI/AAAAAAAABF8/UrpR8bhmLe8/s72-c/enumeration+operation+my+not+execute+ajax+accordion.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3679369108632699711</id><published>2009-05-13T03:14:00.000-07:00</published><updated>2009-05-13T04:19:31.044-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='configure SQL Server 2005 to accept SQL Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='The MUST_CHANGE option is not supported by this version of Microsoft Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='net stop mssqlserver .'/><title type='text'>How do I configure SQL Server 2005 to accept SQL Authentication?</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;In this text :&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;1. &lt;a href="#create_Authentication"&gt;How do I configure SQL Server 2005 to accept SQL Authentication?&lt;/a&gt;&lt;br /&gt;2. &lt;a href="#Create_failed_for_Login"&gt;PROBLEM: Create failed for Login&lt;/a&gt;&lt;br /&gt;3. &lt;a href="#Connection_Error"&gt;PROBLEM: Connection Error&lt;/a&gt;&lt;br /&gt;4. &lt;a href="#Enable_Pipes"&gt;How to enable Named Pipes and TCP/IP for Microsoft SQL Server 2005&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;br /&gt;&lt;a name="create_Authentication"&gt;Configure SQL Server 2005 to accept SQL Authentication&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are 2 methods of authentication by which GFI ReportCenter can authenticate to SQL Server 2005. These are:&lt;br /&gt;&lt;br /&gt;- Windows authentication&lt;br /&gt;- SQL Server authentication (or mixed authentication).&lt;br /&gt;&lt;br /&gt;In order to use SQL Server authentication you must first configure your server using the steps below.&lt;br /&gt;&lt;br /&gt;1. Right-click on the server node and select 'Properties'.&lt;br /&gt;&lt;br /&gt;2. Select 'Security' from the left menu under 'Select a page'.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SgqgOXKGphI/AAAAAAAABEs/eCFDsbkLM2A/s1600-h/Microsoft+SQL+Service+2005+-+Server+Properties.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 359px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SgqgOXKGphI/AAAAAAAABEs/eCFDsbkLM2A/s400/Microsoft+SQL+Service+2005+-+Server+Properties.PNG" alt="" id="BLOGGER_PHOTO_ID_5335252877168780818" border="0" /&gt;&lt;/a&gt;   3. Under 'Server Authentication', select the 'SQL Server and Windows Authentication mode option'.&lt;br /&gt;&lt;br /&gt;4. Click 'OK' to close the dialog.&lt;br /&gt;&lt;br /&gt;5. Right click on the server node and choose 'Restart' for the changes to take affect.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enable SQL Server login&lt;br /&gt;&lt;br /&gt;1. In the server node expand 'Security' and 'Logins'.&lt;br /&gt;&lt;br /&gt;2. Right click on the login name and select 'Properties'.&lt;br /&gt;&lt;br /&gt;3. Enter a password and confirm the password for the login.&lt;br /&gt;&lt;br /&gt;4. Select 'Status' from the left menu under 'Select a page'.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/SgqgmG3uYWI/AAAAAAAABE0/02sI4el29bg/s1600-h/Microsoft+SQL+Service+2005+-+Login+Properties.PNG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 359px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/SgqgmG3uYWI/AAAAAAAABE0/02sI4el29bg/s400/Microsoft+SQL+Service+2005+-+Login+Properties.PNG" alt="" id="BLOGGER_PHOTO_ID_5335253285113586018" border="0" /&gt;&lt;/a&gt;5. Set the 'Login' option to 'Enabled'.&lt;br /&gt;&lt;br /&gt;6. Click 'OK' to close the dialog.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;PROBLEM :&lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;  &lt;/span&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;&lt;a name="Create_failed_for_Login"&gt;Create failed for Login&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When I try to create a new login for some apps for VS with all the default&lt;br /&gt;&lt;br /&gt;setttings (all I do is to type in the username and password) and I get this&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_sX-WxN35S4Y/SgqsPFRQncI/AAAAAAAABFU/Do5LmCRUT3Y/s1600-h/Microsoft+SQLServer+Create+failed+for+Login.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 357px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/SgqsPFRQncI/AAAAAAAABFU/Do5LmCRUT3Y/s400/Microsoft+SQLServer+Create+failed+for+Login.JPG" alt="" id="BLOGGER_PHOTO_ID_5335266083686358466" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;error:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;TITLE: Microsoft SQL Server Management Studio&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;Create failed for Login 'irenic'. (Microsoft.SqlServer.Smo)&lt;br /&gt;&lt;br /&gt;For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=9.00.4035.00&amp;amp;EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&amp;amp;EvtID=Create+Login&amp;amp;LinkId=20476&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;ADDITIONAL INFORMATION:&lt;br /&gt;&lt;br /&gt;An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;font-size:100%;" &gt;The MUST_CHANGE option is not supported by this version of Microsoft Windows&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:100%;" &gt;. &lt;/span&gt;(Microsoft SQL Server, Error: 15195)&lt;br /&gt;&lt;br /&gt;For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;ProdVer=09.00.1399&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=15195&amp;amp;LinkId=20476&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;SOLUTION:&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt; Create Failed For Login&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Uncheck&lt;/span&gt; the 'Use must change password on next login'.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;a name="Connection_Error"&gt;PROBLEM 2:Connection Error&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Connection Error: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When I try to connect from Virtual Machine to my SQL 2005 Database I get this error:&lt;br /&gt;&lt;br /&gt;TITLE: Connect to Server&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;Cannot connect to IVANA2.&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;ADDITIONAL INFORMATION:&lt;br /&gt;&lt;br /&gt;A connection was successfully established with the server, but then an error occurred during the pre-login handshake.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)&lt;br /&gt;&lt;br /&gt;For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;amp;EvtSrc=MSSQLServer&amp;amp;EvtID=233&amp;amp;LinkId=20476&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;SOLUTION: Connection Error&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Enable the Protocols "Named Pipes" and it will work.&lt;br /&gt;&lt;br /&gt;3. &lt;a name="Enable_Pipes"&gt;How to enable Named Pipes and TCP/IP for Microsoft SQL Server 2005&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1. Click Start &gt; Programs &gt; Microsoft SQL Server 2005 &gt;&lt;span style="font-weight: bold;"&gt; Configuration Tools &lt;/span&gt;&gt; &lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;SQL Server Configuration Manager&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_sX-WxN35S4Y/SgqrHGNsUZI/AAAAAAAABFE/iI8iWWu2EUY/s1600-h/SQL+Server+Configuration+Manager.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 284px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/SgqrHGNsUZI/AAAAAAAABFE/iI8iWWu2EUY/s400/SQL+Server+Configuration+Manager.JPG" alt="" id="BLOGGER_PHOTO_ID_5335264846989250962" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;2. Under &lt;span style="font-weight: bold;"&gt;SQL Server 2005 Network Configuration &gt; Protocols for MSSQLSERVER:&lt;/span&gt;&lt;br /&gt;   1. Double-click the protocol name TCP/IP and set the property ENABLED to Yes.&lt;br /&gt;   2. Double-click the protocol name &lt;span style="font-weight: bold;"&gt;Named Pipes and set the property ENABLED to Yes.&lt;/span&gt;&lt;br /&gt;3. To restart MS SQL 2005 service, run the following commands in the command prompt:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;net stop mssqlserver&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;      net start mssqlserver&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SgqruITVCHI/AAAAAAAABFM/vkQIz44d0Iw/s1600-h/net+stop+mssalserver.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 205px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SgqruITVCHI/AAAAAAAABFM/vkQIz44d0Iw/s400/net+stop+mssalserver.JPG" alt="" id="BLOGGER_PHOTO_ID_5335265517564659826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3679369108632699711?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3679369108632699711/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3679369108632699711' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3679369108632699711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3679369108632699711'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/05/how-do-i-configure-sql-server-2005-to.html' title='How do I configure SQL Server 2005 to accept SQL Authentication?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/SgqgOXKGphI/AAAAAAAABEs/eCFDsbkLM2A/s72-c/Microsoft+SQL+Service+2005+-+Server+Properties.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-345718764127944809</id><published>2009-05-08T03:03:00.000-07:00</published><updated>2009-05-20T01:12:53.820-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='AjaxControlToolkit.tlb could not be loaded'/><category scheme='http://www.blogger.com/atom/ns#' term='Include Ajax Control Toolkit'/><category scheme='http://www.blogger.com/atom/ns#' term='Installing the ASP.NET AJAX Control Toolkit  Visual Studio 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='Ajax Control Toolbox'/><title type='text'>Installing the ASP.NET AJAX Control Toolkit (Visual Studio 2008)</title><content type='html'>&lt;span style="font-weight: bold;"&gt;" AjaxControlToolkit.tlb  could not be loaded "&lt;/span&gt; so, do it on right way :)&lt;br /&gt;&lt;br /&gt; The AjaxControlToolkit is not a COM library, it is a regular .NET Assembly. From the toolbox, click "Add items", then on the ".NET Framework Components" tab click browse in the lower right. Select the control toolkit and you should be good to go.&lt;br /&gt;&lt;br /&gt;1. Download and Install   &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&amp;amp;displaylang=en" target="_blank"&gt;Microsoft Visual Studio 2008 Service Pack 1&lt;/a&gt;&lt;br /&gt;This download installs Visual Studio 2008 Service Pack 1 (SP1) and the .NET Framework 3.5 SP1.&lt;br /&gt;&lt;br /&gt;2. Download and Extract &lt;a href="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=16488" target="_blank"&gt;AjaxControlToolkit-Framework3.5SP1.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Make sure the &lt;span style="font-weight: bold;"&gt;SampleWebSite&lt;/span&gt; folder (folder in extracted file)  is in a reasonably permanent location on your hard drive.&lt;br /&gt;&lt;br /&gt;4. Open Visual Studio 2008 (sp1): You need to create a&lt;span style="font-weight: bold;"&gt; new Toolbox&lt;/span&gt; tab for the controls. Right-click the Toolbox and choose Add Tab. Then, enter a name (like AJAX Toolkit) and hit Enter.&lt;br /&gt;&lt;br /&gt;5. You need to add the controls to the new tab. Right-click the blank tab you’ve&lt;br /&gt;created and select&lt;span style="font-weight: bold;"&gt; Choose Items.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. In .NET Framework Components  click Browse. Find the &lt;span style="font-weight: bold;"&gt;AjaxControlToolkit.dll&lt;/span&gt;&lt;br /&gt;(which is in the SampleWebSite\Bin folder) and click OK.&lt;br /&gt;&lt;br /&gt;7. You'll get &lt;span style="font-weight: bold;"&gt;"Accordion"&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;"Accordion Pane"&lt;/span&gt; checked. Click ok.&lt;br /&gt;&lt;br /&gt;The End :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-345718764127944809?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/345718764127944809/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=345718764127944809' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/345718764127944809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/345718764127944809'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/05/installing-aspnet-ajax-control-toolkit.html' title='Installing the ASP.NET AJAX Control Toolkit (Visual Studio 2008)'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3078296089804824033</id><published>2009-04-26T14:46:00.000-07:00</published><updated>2009-04-26T14:56:39.360-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Process Identifier (Process ID or PID)'/><category scheme='http://www.blogger.com/atom/ns#' term='vista'/><category scheme='http://www.blogger.com/atom/ns#' term='task mananger'/><category scheme='http://www.blogger.com/atom/ns#' term='Control Panel Add/Remove Programs in Windows Vista'/><title type='text'>How to Get and View Process Identifier (Process ID or PID) on Windows</title><content type='html'>Process identifier, or more commonly know as PID or process ID, is a unique number tagged with each processes running on a system, and used by some operating system kernels, such as UNIX, Linux, Mac OS X and Windows) to identify a process.&lt;br /&gt;&lt;br /&gt;n Unix-like and Linux operating system, ps command can be used to search for the PID for a particular running process, by grepping the output. In Windows operating system such as Windows XP, Windows Vista, Windows Server 2003, Windows Server 2008 and Windows 7, there is no such utility or command available though.  &lt;p&gt;In order to get to know, or view, retrieve and identify the process ID or PID of the processes running in Windows operating system, users or administrators can make use of Task Manager. However, Task Manager does not display PID information by default. To display the PID value in &lt;strong&gt;Task Manager&lt;/strong&gt;, go to &lt;strong&gt;Processes&lt;/strong&gt; tab, click on &lt;strong&gt;View&lt;/strong&gt; menu, then click on &lt;strong&gt;Select Columns…&lt;/strong&gt;. In the “Select Columns” or “Select Process Page Columns” dialog, tick and check the checkbox for &lt;strong&gt;PID (Process Identifier)&lt;/strong&gt;, and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/SfTYQONkoJI/AAAAAAAABEk/atXeBS8oBQ8/s1600-h/enable-process+id+-+PID.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 394px; height: 390px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/SfTYQONkoJI/AAAAAAAABEk/atXeBS8oBQ8/s400/enable-process+id+-+PID.jpg" alt="" id="BLOGGER_PHOTO_ID_5329122032290668690" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;To run Task Manager, use Taskmgr command or right click on Taskbar, and select “Task Manager”.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3078296089804824033?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3078296089804824033/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3078296089804824033' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3078296089804824033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3078296089804824033'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/04/how-to-get-and-view-process-identifier.html' title='How to Get and View Process Identifier (Process ID or PID) on Windows'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_sX-WxN35S4Y/SfTYQONkoJI/AAAAAAAABEk/atXeBS8oBQ8/s72-c/enable-process+id+-+PID.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2290808844344951033</id><published>2009-03-24T06:35:00.000-07:00</published><updated>2009-03-25T03:35:26.104-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mozilla Firefox Keyboard shortcuts'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox Shortcut Navigation'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox Windows and Tabs'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox  Shortcut  Editing'/><title type='text'>Mozila Firefox Keyboard Shortcuts</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/Scj9W9T2jqI/AAAAAAAABEc/f-I_8EIAqUI/s1600-h/use_your_fingers..JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 574px; height: 236px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/Scj9W9T2jqI/AAAAAAAABEc/f-I_8EIAqUI/s400/use_your_fingers..JPG" alt="" id="BLOGGER_PHOTO_ID_5316777930967649954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Taken from &lt;a href="http://support.mozilla.com/en-US/kb/keyboard+shortcuts"&gt;Here&lt;/a&gt;&lt;br /&gt;Common Shortcuts for IE and Mozila: &lt;a href="http://www.codinghorror.com/blog/archives/000513.html"&gt;Here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;table border="1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="color: rgb(51, 102, 255); font-weight: bold; font-style: italic;" class="wikicell"&gt;&lt;span style="font-size:130%;"&gt;Command&lt;/span&gt;&lt;/td&gt;&lt;td style="color: rgb(51, 102, 255); font-style: italic;" class="wikicell"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Shortcut&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-weight: bold; color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;Navigation&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Back&lt;/td&gt;&lt;td class="wikicell"&gt; &lt;span class="win"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Backspace&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;[&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Delete&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Forward&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="win"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Backspace&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Delete&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Home&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Home&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Open File&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;O&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Reload&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F5&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt; &lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;R&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Reload (override cache)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F5&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;R&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Stop&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Esc&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Current Page&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Go to Bottom of Page&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;End&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Go to Top of Page&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Home&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move to Next Frame&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F6&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move to Previous Frame&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F6&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Page Info&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="display: none;" class="noWin kbd"&gt;&lt;span style="display: none;" class="unix kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;I&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Page Source&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;U&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Print&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;P&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Save Page As&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;S&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Zoom In&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;+&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Zoom Out&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;-&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Zoom Reset&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;0&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Editing&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Copy&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;C&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Cut&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;X&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Delete&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Delete&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Paste&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;V&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Redo&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="win"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="noWin"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Z&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Select All&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;A&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Undo&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Z&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Search&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Find&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Find Again&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F3&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;G&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Find As You Type Link&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;'&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Find As You Type Text&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;/&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Find Previous&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F3&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Web Search&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;K&lt;/span&gt;&lt;span class="win"&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;E&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt; &lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;J&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Windows &amp;amp; Tabs&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Close Tab&lt;/td&gt;&lt;td class="wikicell"&gt; &lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;W&lt;/span&gt;&lt;span class="noMac"&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Ctrl&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F4&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Close Window&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;W&lt;/span&gt;&lt;span class="noMac"&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F4&lt;/span&gt;&lt;/span&gt; &lt;!--  LOCALIZATION NOTE: &amp;quot;Left&amp;quot;/&amp;quot;Up&amp;quot; and &amp;quot;Right&amp;quot;/&amp;quot;Down&amp;quot; might need special treatment for bidi locales, as used in the following two entries.  --&gt;  &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move Tab Left&lt;br /&gt;(when tab is focused)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Up Arrow&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move Tab Right&lt;br /&gt;(when tab is focused)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Down Arrow&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move Tab to Beginning&lt;br /&gt;(when tab is focused)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt; &lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Home&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Move Tab to End&lt;br /&gt;(when tab is focused)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;End&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;New Tab&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;T&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;New Window&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;N&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Next Tab&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Ctrl&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Tab&lt;/span&gt;&lt;br /&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Right Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Ctrl&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Page Down&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Open Address in New Tab&lt;br /&gt;(from Location Bar or Search Bar)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Enter&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Return&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Previous Tab&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Ctrl&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Tab&lt;/span&gt;&lt;br /&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Left Arrow&lt;/span&gt;&lt;br /&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Ctrl&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Page Up&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Undo Close Tab&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;T&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Select Tab (1 to 8)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noUnix"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;&lt;/span&gt;+(&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;1&lt;/span&gt; to &lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;8&lt;/span&gt;) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Select Last Tab&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noUnix"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;9&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Tools&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Bookmark All Tabs&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noUnix"&gt;&lt;span class="win kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;D&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Bookmark This Page&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;D&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Bookmarks&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;B&lt;/span&gt; &lt;span class="win"&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;I&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Caret Browsing&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F7&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Downloads&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noUnix"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;J&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="unix"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Y&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;History&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;H&lt;/span&gt;&lt;/span&gt; &lt;span style="display: none;" class="mac"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;H&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Clear Private Data&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Del&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Error Console&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;J&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: rgb(204, 0, 0);"&gt;&lt;td class="wikicell" colspan="2"&gt;&lt;span style="font-size:130%;"&gt;&lt;b&gt;Miscellaneous&lt;/b&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Complete .com Address&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Enter&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Return&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Complete .net Address&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Enter&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Return&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Complete .org Address&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span class="noMac kbd"&gt;Enter&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Return&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Delete Selected Autocomplete Entry&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Del&lt;/span&gt;&lt;/span&gt;&lt;span style="display: none;" class="mac"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Shift&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Del&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Full Screen&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F11&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Help&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="kbd noMac"&gt;F1&lt;/span&gt;&lt;span style="display: none;" class="kbd mac"&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;?&lt;/span&gt;&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Select Location Bar&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;D&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F6&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Ctrl&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Cmd&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;L&lt;/span&gt; &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="wikicell"&gt;Select or Manage Search Engines&lt;br /&gt;(when Search Bar is focused)&lt;/td&gt;&lt;td class="wikicell"&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Up Arrow&lt;/span&gt;&lt;br /&gt;&lt;span class="noMac kbd"&gt;Alt&lt;/span&gt;&lt;span style="display: none;" class="mac kbd"&gt;Opt&lt;/span&gt;+&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;Down Arrow&lt;/span&gt;&lt;span class="noMac"&gt;&lt;br /&gt;&lt;span style="text-align: left; float: none; clear: none;" class="kbd"&gt;F4&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://support.mozilla.com/en-US/kb/keyboard+shortcuts"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2290808844344951033?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2290808844344951033/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2290808844344951033' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2290808844344951033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2290808844344951033'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/mozila-firefox-keyboard-shortcuts.html' title='Mozila Firefox Keyboard Shortcuts'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/Scj9W9T2jqI/AAAAAAAABEc/f-I_8EIAqUI/s72-c/use_your_fingers..JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5274158774484400401</id><published>2009-03-23T06:53:00.000-07:00</published><updated>2009-03-23T07:19:25.421-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='use dll'/><category scheme='http://www.blogger.com/atom/ns#' term='How to make and use dll in Visual Basic 6'/><category scheme='http://www.blogger.com/atom/ns#' term='create dll'/><category scheme='http://www.blogger.com/atom/ns#' term='make dll'/><title type='text'>Dll : How to create and use dll in Visual Basic 6</title><content type='html'>This is short tutorial of crating and using dll.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;DLL CREATING:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Start Miscrosoft Visual Basic 6&lt;br /&gt;2. File/ New Project&lt;br /&gt;3. Choose: ActiveX DLL&lt;br /&gt;4. Write some functions or what you need. If you wish to use it, it sholud not be private.&lt;br /&gt;5. Change project and class name and save projetct! (File/ Save As..)&lt;br /&gt;6. Make dll: File/Make dllName.dll&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;REGISTER DLL:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Start/Run&lt;br /&gt;2. regsvr32 and (drag/drop) dll ... to unregister regsvr32 /u  and (drag/droo)dll&lt;br /&gt;3. Enter&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;USE DLL IN SOME OTHER PROJECT:&lt;/span&gt;&lt;br /&gt;To use dll in some project you ned to make reference to that dll.&lt;br /&gt;&lt;br /&gt;1. Open the project that will use dll.&lt;br /&gt;2  Project/References&lt;br /&gt;3 Browse to the .dll you wish to use.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;REGISTER DLL IN THE PROJECT.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To use classes from dll you need to create object.&lt;br /&gt;&lt;br /&gt;1. Dim nameOfObject As dllName.ClassName&lt;br /&gt;2. Set nameOfObject= New dllName.ClassName&lt;br /&gt;3.  nameOfObject.ClassFunctions&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5274158774484400401?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5274158774484400401/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5274158774484400401' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5274158774484400401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5274158774484400401'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/dll-how-to-create-and-use-dll-in-visual.html' title='Dll : How to create and use dll in Visual Basic 6'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5184922316349179140</id><published>2009-03-11T04:24:00.000-07:00</published><updated>2009-03-11T04:29:11.436-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='jscript intellisense'/><category scheme='http://www.blogger.com/atom/ns#' term='intellisense jscript visual studio 2005'/><category scheme='http://www.blogger.com/atom/ns#' term='intellisense jscript'/><category scheme='http://www.blogger.com/atom/ns#' term='inteligent sense jscript'/><title type='text'>javascript intellisense in visual studio 2005</title><content type='html'>You can use the Visual Studio 2005 IDE to edit your Classic ASP files and still utilize syntax highlighting and intellisense. All you have to do is associate the “.asp“ file extension with the Web Form Editor. When doing this you are telling the IDE to treat “.asp“ files the same as “.aspx“ files, in turn sort of “tricking“ the IDE in to giving you the syntax highlighting and intellisense that you want.&lt;br /&gt;&lt;br /&gt;The steps in setting up the IDE are as follows:&lt;br /&gt;&lt;br /&gt;  1. Open Visual Studio&lt;br /&gt;  2. Goto the "Tools" menu and click "Options..."&lt;br /&gt;  3. Check the "Show all options" checkbox in the bottom left of the dialog box.&lt;br /&gt;  4. In the right pane expand "Text Editor" and select "File Extension"&lt;br /&gt;  5. Enter "ASP" extension in the "Extension" textbox&lt;br /&gt;  6. Select "Web Form Editor" in the Editor dropdown box&lt;br /&gt;  7. Click the "Add" button and click "Ok" on the dialog box.&lt;br /&gt;&lt;br /&gt;And now enjoy all the syntax highlighting and intellisense features for JavaScript, HTML and Visual Basic while editing your Classic ASP files&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5184922316349179140?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5184922316349179140/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5184922316349179140' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5184922316349179140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5184922316349179140'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/configure-visual-studio-2005-for.html' title='javascript intellisense in visual studio 2005'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-185110777991927282</id><published>2009-03-09T00:09:00.000-07:00</published><updated>2009-03-09T00:13:33.758-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Option Explicit'/><category scheme='http://www.blogger.com/atom/ns#' term='declaration of all variables'/><category scheme='http://www.blogger.com/atom/ns#' term='Dim ReDim'/><title type='text'>Option Explicit</title><content type='html'>&lt;%Option Explicit%&gt;&lt;br /&gt;&lt;br /&gt;Forces explicit declaration of all variables in a file.&lt;br /&gt;&lt;br /&gt;If used, the &lt;b&gt;Option Explicit&lt;/b&gt; statement must appear in a file before any other source code statements.&lt;br /&gt;&lt;br /&gt;When &lt;b&gt;Option Explicit&lt;/b&gt; appears in a file, you must explicitly declare all variables using the &lt;b&gt;Dim&lt;/b&gt; or &lt;b&gt;ReDim&lt;/b&gt; statements. If you attempt to use an undeclared variable name, an error occurs at compile time.&lt;br /&gt;&lt;br /&gt;Use &lt;b&gt;Option Explicit&lt;/b&gt; to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear. If you do not use the &lt;b&gt;Option Explicit&lt;/b&gt; statement, all undeclared variables are of &lt;b&gt;Object&lt;/b&gt; type.&lt;br /&gt;&lt;br /&gt;&lt;pre class="libCScode" style="white-space: pre-wrap;" id="ctl00_rs1_mainContentContainer_ctl13VisualBasic" space="preserve"&gt;&lt;span style="color: blue;"&gt;Dim&lt;/span&gt; thisVar &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Integer&lt;/span&gt; &lt;span style="color: green;"&gt;' ok&lt;/span&gt;&lt;br /&gt;thisVar = 10 &lt;span style="color: green;"&gt;' ok&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' The following assignment produces a COMPILER ERROR because&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' the variable is not declared and Option Explicit is On.&lt;/span&gt;&lt;br /&gt;thisInt = 10 &lt;span style="color: green;"&gt;' causes ERROR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-185110777991927282?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/185110777991927282/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=185110777991927282' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/185110777991927282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/185110777991927282'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/option-explicit.html' title='Option Explicit'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7262688669424462109</id><published>2009-03-06T00:04:00.000-08:00</published><updated>2009-03-06T00:07:44.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP Request Object'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming ASP'/><title type='text'>An Overview of Classic ASP's Request Object</title><content type='html'>&lt;p&gt; &lt;span style="font-weight: bold;"&gt;The Request Object receives the values that the client's browser passed to the server during an HTTP request. &lt;/span&gt;&lt;/p&gt; &lt;p&gt; When you surf to an address that begins with HTTP, the server you're visiting treats that as an "HTTP request"; you are in fact "requesting" that a particular web page is displayed to you.  The same applies to any http hyperlinks that you click.  A lot more information is being passed back and forth, between your PC and the server of the site you're visiting, than you may be aware of.  This chunk of data is called a "request object".  Along with the URL you've requested, information about your browser, IP address, the last URL you visited and more is being sent along with your request to view a particular web page.  On the flip side, in addition to the web page you requested, the server also sends back server-related information in the same request object. &lt;/p&gt; &lt;p&gt; All this data gets passed in the HTTP request (a.k.a Request Object).  Whether it was posted via an online form you filled in ..or.. embedded in the URL as name-value pairs, it all ends up in the Request object.  How does that happen, you wonder?  That's a helpful feature of Microsoft IIS (internet information services), whereas systems/languages such as Unix/Perl must parse/extract that information manually. &lt;/p&gt; &lt;p&gt; &lt;span style="font-weight: bold;"&gt;To make life a little simpler, the Request Object has several "collections".&lt;/span&gt;  A collection is just a fancy word for grouping, segregating or classifying all of the information that's being exchanged.  &lt;span style="font-style: italic;"&gt;For example, input-capable fields on a form that is sent via "method=post" end up in collection "Form", while name-value pairs sent in the URL (or from a form sent via "method=get") end up in collection "QueryString", etc.&lt;/span&gt; &lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;strong&gt;ClientCertificate:&lt;/strong&gt; The values of fields stored in the client certificate that is sent in the HTTP request.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Cookies:&lt;/strong&gt; The values of cookies sent in the HTTP request.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Form:&lt;/strong&gt; The values of form elements in the HTTP request body.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;QueryString:&lt;/strong&gt; The values of variables in the HTTP query string.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;ServerVariables:&lt;/strong&gt; The values of predetermined server/environment variables.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt; The syntax is:&lt;br /&gt;  &lt;code&gt;     Request[.collection|property|method](variable)&lt;/code&gt; &lt;/p&gt; &lt;p&gt; &lt;span style="font-weight: bold;"&gt;All request object variables can be accessed directly by calling Request(variable) without the collection name.  In this case, the Web server searches the collections in the following order: &lt;/span&gt;&lt;/p&gt; &lt;ol&gt;&lt;li&gt;QueryString&lt;/li&gt;&lt;li&gt;Form&lt;/li&gt;&lt;li&gt;Cookies&lt;/li&gt;&lt;li&gt;ClientCertificate&lt;/li&gt;&lt;li&gt;ServerVariables&lt;/li&gt;&lt;/ol&gt; &lt;p&gt; If a variable with the same name exists in more than one collection, the Request object returns the first instance encountered.  It is strongly recommended that, when referring to members of the ServerVariables collection, the full name be used.  For example, rather than Request("AUTH_USER") use Request.ServerVariables("AUTH_USER").&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: right;"&gt;From &lt;a href="http://www.asp101.com/articles/pauld/request/default.asp"&gt;Here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7262688669424462109?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7262688669424462109/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7262688669424462109' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7262688669424462109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7262688669424462109'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/overview-of-classic-asps-request-object.html' title='An Overview of Classic ASP&apos;s Request Object'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3987328258581438594</id><published>2009-03-04T15:04:00.000-08:00</published><updated>2009-03-04T15:27:42.017-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WINSXS  Vista'/><category scheme='http://www.blogger.com/atom/ns#' term='WINSXS directory in Windows 2008 and Windows Vista'/><title type='text'>WINSXS : What is the WINSXS directory in Windows 2008 and Windows Vista and why is it so large?</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/Sa8OWRthlRI/AAAAAAAABDc/EhTU2iP98DM/s1600-h/winsxs+big+and+fat.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 273px; height: 264px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/Sa8OWRthlRI/AAAAAAAABDc/EhTU2iP98DM/s320/winsxs+big+and+fat.jpg" alt="" id="BLOGGER_PHOTO_ID_5309478261567362322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A commonly asked question among people looking at a Windows Vista or Windows Server 2008 installation is “why is the WinSxS folder so big?!”   To answer that question I need to first describe componentization, and how components are managed in Windows Vista.&lt;/span&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;One of the largest changes between previous versions of Windows and Windows Vista was a move from an INF described OS to componentization.  A component in Windows is one or more binaries, a catalog file, and an XML file that describes everything about how the files should be installed. From associated registry keys and services to what kind security permissions the files should have.  Components are grouped into logical units, and these units are used to build the different Windows editions.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;All of the components in the operating system are found in the WinSxS folder – in fact we call this location the component store.  Each component has a unique name that includes the version, language, and processor architecture that it was built for.  The WinSxS folder is the only location that the component is found on the system, all other instances of the files that you see on the system are “projected” by hard linking from the component store.  Let me repeat that last point – there is only one instance (or full data copy) of each version of each file in the OS, and that instance is located in the WinSxS folder.   So looked at from that perspective, the WinSxS folder is really the entirety of the whole OS, referred to as a "flat" in down-level operating systems.  This also accounts for why you will no longer be prompted for media when running operations such as System File Checker (SFC), or when installing additional features and roles.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;That explains why the folder starts off big, but not why it gets larger over time – the answer to that question is servicing.   In previous versions of Windows the atomic unit of servicing was the file, in Windows Vista it’s the component.  When we update a particular binary we release a new version of the whole component, and that new version is stored alongside the original one in the component store.  The higher version of the component is projected onto the system, but the older version in the store isn’t touched.  The reason for that is the third part of why the component store gets so large.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Not every component in the component store is applicable, meaning that not every component should be projected onto the system.  For example, on systems where IIS is available but has not been installed, the IIS components are present in the store, but not projected into any location on the system where they might be used.  If you’re familiar with how multi-branch servicing works in previous versions of Windows then it’ll make sense to you that we have a different version of the component for each distribution branch and service pack level, and that all these different versions are also stored in the WinSxS folder, even if they’re not immediately applicable.  So a single Post SP1 GDR package that contains an update to one component will end up installing four versions of that component in the WinSxS folder – double that on a 64 bit operating system for some components.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Now that you know why the store can grow to be so large, your next question is probably to ask why we don’t remove the older versions of the components.  The short answer to that is reliability.  The component store, along with other information on the system, allows us to determine at any given time what the best version of a component to project is.  That means that if you uninstall a security update we can install the next highest version on the system – we no longer have an “out of order uninstall” problem.  It also means that if you decide to install an optional feature, we don’t just choose the RTM version of the component, we’ll look to see what the highest available version on the system is.  As each component on the system changes state that may in turn trigger changes in other components, and because the relationships between all the components are described on the system we can respond to those requirements in ways that we couldn’t in previous OS versions.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Reduce the size of WinSxS:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;The only way to safely reduce the size of the WinSxS folder is to reduce the set of possible actions that the system can take – the easiest way to do that is to remove the packages that installed the components in the first place.  This can be done by uninstalling superseded versions of packages that are on your system.  Service Pack 1 contains a binary called VSP1CLN.EXE, a tool that will make the Service Pack package permanent (not removable) on your system,  and remove the RTM versions of all superseded components.  This can only be done because by making the Service Pack permanent we can guarantee that we won’t ever need the RTM versions.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;So yes, the WinSXS folder is very large, and it will continue to grow as the OS ages.  I hope that this clears up some of the questions about why that is, and what you can do about it. Note that the Windows servicing structure and the layout of the store is subject to change.&lt;/span&gt;&lt;/p&gt;    &lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;Joseph Conway&lt;br /&gt;Senior Support Escalation Engineer &lt;br /&gt;Microsoft Enterprise Platforms Support&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;From &lt;a href="http://blogs.technet.com/askcore/archive/2008/09/17/what-is-the-winsxs-directory-in-windows-2008-and-windows-vista-and-why-is-it-so-large.aspx"&gt;Here&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3987328258581438594?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3987328258581438594/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3987328258581438594' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3987328258581438594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3987328258581438594'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/winsxs-what-is-winsxs-directory-in.html' title='WINSXS : What is the WINSXS directory in Windows 2008 and Windows Vista and why is it so large?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/Sa8OWRthlRI/AAAAAAAABDc/EhTU2iP98DM/s72-c/winsxs+big+and+fat.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-4211159473412539047</id><published>2009-03-04T14:51:00.000-08:00</published><updated>2009-03-04T15:00:40.643-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VSP1CLN.EXE'/><category scheme='http://www.blogger.com/atom/ns#' term='winsxs vista'/><title type='text'>winsxs mistery! VISTA (hrvatski)</title><content type='html'>uzeto: &lt;a href="http://www.tehnopedija.net/?p=1033"&gt;link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;Uvod (Problem)&lt;/span&gt;&lt;br /&gt;Imao sam jednu particiju rezervisanu za testiranja operativnih sistema, odlaganje slika virtuelnih mašina i sl. Tih 15GB odlučim popuniti Vista OS-om i to AMD64 verzijom. Nije me brinulo koliko&lt;br /&gt;Vista zauzima RAM-a, sa 4GB to nije bio problem. Nisam ništa “tweak”-ao, želio sam uživati u svim čarima koje je vista nudila (Aero fazoni i sl.).&lt;span id="more-1033"&gt;&lt;/span&gt; &lt;p&gt;Jedna stvar me ipak zabrinula - zazuzeće prostora na disku. Od 15GB presotalo mi je samo 2GB. Provjerim Recycle Bin, isključim korištenje korpe za C:\, te provjerim Pagefile - Vista ga stavila na drugu particiju, isključim System Restore… ista stvar. Skinem jedan program za pregled direktorija/prikaz veličine i zapazim zabrinjavajuću stvar. Unutar “windows” direktorija postoji jedan drugi pod nazivom “&lt;b&gt;winsxs&lt;/b&gt;” koji (u mom slučaju) zauzimao 8.5GB. &lt;/p&gt; &lt;p&gt;Pretražujući po internetu primjetio sam da se svi Vista korisnici žale na istu stvar a to je da im je ovaj folder prevelik, i to varira od ~5GB do ~8GB. Treba napomenuti da se ovaj direktorij “napuše” do 8GB nakon čiste instalacije i skidanja najnovijih update-a.&lt;/p&gt; &lt;p&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;u style="color: rgb(51, 102, 255);"&gt;Čemu služi ovaj direktorij?&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;Uh, hu, huuu! WinSxS je skračenica od “&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/aa376307.aspx"&gt;Windows Side-by-Side&lt;/a&gt;“. U začecima Windows je imao problema sa dijeljenim “.dll” datotekama, gdje se dešavalo da jedan program pri deinstalaciji obriše, za njega nepotrebne, “.dll”-ove a koji su neophodni za ispravan rad drugog programa na računaru. Izdavanjem novijih verzija Windows-a stvar je sve bolje riješavana i stavljena pod kontrolu. “winsxs” direktorij kod WinXP-a iznosi svega ~50MB.&lt;/p&gt; &lt;p&gt;Vista nema i386 folder za keširanje datoteka, i korištenje “.ini” datoteka je prevaziđeno i umjesto toga se koriste XML katalozi sa detaljnim opisom čemu i za šta služi datoteka te za koju je platformu namjenjena.&lt;/p&gt; &lt;p&gt;Sa Vista OS-om, napravljen je korak dalje, a to je da se zasebno čuvaju različite verzije istih “.dll”-ova kako bi se povečala kompatibilnost i stabilnost. Nadalje povečana je sigurnost u odnos na WinXP i Server 2003. Sada jedini vlasnik/grupa nad ovim direktorijem je SID pod nazivom “Trusted Installer”, u prevodu ovo znači da (u normalnim okolnostima) ni administrator ne može brisati/mijenjati datoteke, direktorije i sl.&lt;/p&gt; &lt;p&gt;Ako pogledate unutar ovog foldera, primjetit ćete mnogo foldera istovjetnog naziva sa razlikom u zadnjih osam karaktera koji su najčešće nasumični nizovi brojeva i slova. &lt;/p&gt; &lt;p&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;u style="color: rgb(51, 102, 255);"&gt;Šta možemo uraditi?&lt;/u&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;a)&lt;/span&gt;&lt;/span&gt; &lt;span style="color: rgb(51, 102, 255); font-weight: bold;font-size:130%;" &gt;Pazit koliko instaliramo (koja bolest)&lt;/span&gt;&lt;br /&gt;Očajnički sam tražio odobrenje i opravdanje da počnem brisati sumnjive datoteke i direktorije iz winsxs-a, ali nisa mogao nać. Za sada sve što ćete nači na internetu po forumima je da se držite podalje od ovog direktorija i da ga ne dirate jer bi pojedine aplikacije a i sam Windows mogli kolapsirati. Kod Vista SP1, brisanje pojedinih datoteka iz ovog direktorija ili njegovo izmještanje izaziva &lt;a target="_blank" href="http://en.wikipedia.org/wiki/Blue_screen_of_death"&gt;&lt;b&gt;BSoD&lt;/b&gt;&lt;/a&gt;. Jer mnoge sistemske datoteke unutar &lt;u&gt;%windows%\system32&lt;/u&gt; direktorija su samo “&lt;a target="_blank" href="http://en.wikipedia.org/wiki/Hard_link"&gt;hard link&lt;/a&gt;*”-ovane na one koji se nalaze unutar &lt;u&gt;%windows%\winsxs&lt;/u&gt; direktorija, pa njegovo izmještanje ili brisanje pojedinih datoteka automatski prekida i veze ka njemu.&lt;/p&gt; &lt;p&gt;Najbolje bi bilo da vaš Vista OS pogurate “dohranite” diskom večeg kapaciteta i zaboravite na ovaj direktorij. Dalje potrebno je da korigujete svoje navike, ako ste od onih ljudi koji vole eksperimentisati programima/aplikacijama - winsxs će zasigurno da se brzo puni. Dakle što manje instalacija i deinstalacija!&lt;/p&gt;  &lt;p&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;*hard link &lt;/span&gt;- jedna od mogućnosti datotetičnih sistema koja omogučava kreiranje više (naziva) datoteka koji ustvari upućuju na jednu datoteku.&lt;/p&gt;&lt;p style="color: rgb(51, 102, 255); font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;b) &lt;/span&gt;&lt;span style="font-family:Arial;font-size:130%;"&gt;VSP1CLN.EXE,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;The only way to safely reduce the size of the WinSxS folder is to reduce the set of possible actions that the system can take – the easiest way to do that is to remove the packages that installed the components in the first place.  This can be done by uninstalling superseded versions of packages that are on your system.  Service Pack 1 contains a binary called VSP1CLN.EXE, a tool that will make the Service Pack package permanent (not removable) on your system,  and remove the RTM versions of all superseded components.  This can only be done because by making the Service Pack permanent we can guarantee that we won’t ever need the RTM versions.&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-4211159473412539047?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/4211159473412539047/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=4211159473412539047' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/4211159473412539047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/4211159473412539047'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/03/winsxs-mistery-vista-hrvatski.html' title='winsxs mistery! VISTA (hrvatski)'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6063629758529846890</id><published>2009-02-25T15:32:00.000-08:00</published><updated>2009-02-25T15:34:28.966-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Quick call Windows Vista Login Screen'/><category scheme='http://www.blogger.com/atom/ns#' term='Quick call Windows Login Screen'/><title type='text'>Quick call Windows Login Screen</title><content type='html'>windows logo key +L&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6063629758529846890?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6063629758529846890/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6063629758529846890' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6063629758529846890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6063629758529846890'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/02/quick-call-windows-login-screen.html' title='Quick call Windows Login Screen'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3358403378743986815</id><published>2009-02-19T05:19:00.000-08:00</published><updated>2009-02-19T05:37:30.466-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to Unregister dll'/><category scheme='http://www.blogger.com/atom/ns#' term='How to re-register dll'/><category scheme='http://www.blogger.com/atom/ns#' term='How to register dll'/><title type='text'>How to register dll, How to re-register dll, How to register multiple dlls,  How to Unregister dll</title><content type='html'>&lt;span style="color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;br /&gt;How to register dll and How to re-register dll?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Click Start and Run and wrote:     &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;regsvr32&lt;/span&gt;  path\filename.dll&lt;br /&gt;(you can wrote or &lt;span style="font-weight: bold;"&gt;drag and drop&lt;/span&gt; file to set path and filename&lt;br /&gt;and you can register more then one dll with one regsvr32 commads. Just drag couple of dll files )&lt;br /&gt;&lt;br /&gt;2. press Enter.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;regsvr32  C:\config\servercomponents\Blabla.dll&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);"&gt;- regsvr32 &lt;/span&gt;is a command that tells your computer to register the DLL file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;- path&lt;/span&gt; is the actually location or directory of where the file is located.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;- filename&lt;/span&gt; is obviously the name of the DLL file you will be registering&lt;br /&gt;&lt;br /&gt;Once the DLL has been registered, you should receive a confirmation in the form of a pop up box. This message will list your newly registered DLL file and confirm that is was successfully registered into the registry.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;How to Unregister dll ?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Start and Run and wrote: &lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;regsvr32 /u&lt;/span&gt;  path\filename.dll&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Example:&lt;/span&gt;&lt;br /&gt;regsvr32 /u C:\config\servercomponents\Truckscout.dll&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3358403378743986815?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3358403378743986815/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3358403378743986815' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3358403378743986815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3358403378743986815'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/02/how-to-register-dll-how-to-re-register.html' title='How to register dll, How to re-register dll, How to register multiple dlls,  How to Unregister dll'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3374398966995505213</id><published>2009-02-11T09:38:00.000-08:00</published><updated>2009-02-11T09:52:50.196-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Vista problems'/><category scheme='http://www.blogger.com/atom/ns#' term='You need permission to perform this action'/><title type='text'>Vista: "You need permission to perform this action”</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SZMN7N0yQeI/AAAAAAAABCU/M_W2XZt4zIk/s1600-h/youneedpermissiontoperformthisaction.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 200px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SZMN7N0yQeI/AAAAAAAABCU/M_W2XZt4zIk/s400/youneedpermissiontoperformthisaction.jpg" alt="" id="BLOGGER_PHOTO_ID_5301596497319707106" border="0" /&gt;&lt;/a&gt;The best part is that you do not get this error on any kind of consistent basis, it can pop up when you are trying to delete a folder, trying to copy some files, trying to install a program, etc, etc. It all comes down to not having the right security permissions. &lt;p&gt;Note that UAC (User Account Control) does not usually affect this problem, so don’t go out and automatically disable UAC. &lt;span style="font-weight: bold; color: rgb(153, 0, 0);"&gt;If you disable UAC, you can’t do things like share printers, etc, so it’s best to live with it.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;There are some things you can do, however, to help out with the “You do not have permission to perform this action” problem though. If it’s a particular file or folder you are trying to delete, you can simply give yourself full control permissions over the file. &lt;/p&gt; &lt;p&gt;But before we go into that, try one other method that might be a bit faster. Go to &lt;strong&gt;Start&lt;/strong&gt;, &lt;strong&gt;Programs&lt;/strong&gt;, &lt;strong&gt;Accessories&lt;/strong&gt;, and right-click on the command prompt and choose &lt;strong&gt;Run as Administrator&lt;/strong&gt;.&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SZMONqvEQzI/AAAAAAAABCc/UWYNKrWipeA/s1600-h/runasadministratorcommandprompt.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 388px; height: 256px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SZMONqvEQzI/AAAAAAAABCc/UWYNKrWipeA/s400/runasadministratorcommandprompt.jpg" alt="" id="BLOGGER_PHOTO_ID_5301596814317994802" border="0" /&gt;&lt;/a&gt;&lt;p&gt;Now at the command prompt type the following command:&lt;/p&gt; &lt;blockquote style="color: rgb(51, 102, 255); font-weight: bold;"&gt;&lt;p&gt;net user administrator /active:yes&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Press Enter and restart your computer. Now try to perform the task again that gave you the “You do not have permission” error. If that does not work, then follow the steps below to change the file permissions.&lt;/p&gt; &lt;p&gt;To change the security permissions for a file, right-click on the file and go to &lt;strong&gt;Properties&lt;/strong&gt;. Then click on the &lt;strong&gt;Security&lt;/strong&gt; tab.&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_sX-WxN35S4Y/SZMOqehaF0I/AAAAAAAABCk/T1JWLDDMoiM/s1600-h/filesecuritypermissions.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 342px; height: 400px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/SZMOqehaF0I/AAAAAAAABCk/T1JWLDDMoiM/s400/filesecuritypermissions.jpg" alt="" id="BLOGGER_PHOTO_ID_5301597309255685954" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now click on the &lt;strong&gt;Advanced&lt;/strong&gt; button at the bottom and click on the &lt;strong&gt;Owner&lt;/strong&gt; tab.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/SZMPQYk075I/AAAAAAAABCs/o9hvcTsaniE/s1600-h/ownersecuritytab.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 393px; height: 341px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/SZMPQYk075I/AAAAAAAABCs/o9hvcTsaniE/s400/ownersecuritytab.jpg" alt="" id="BLOGGER_PHOTO_ID_5301597960494444434" border="0" /&gt;&lt;/a&gt;Click on the &lt;strong&gt;Edit&lt;/strong&gt; button, click &lt;strong&gt;Other users and groups&lt;/strong&gt; and type in your user account name and click &lt;strong&gt;Check Names&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/SZMPpKa5ZuI/AAAAAAAABC0/gc3YjK9QCYo/s1600-h/selectusersandgroups.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 217px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/SZMPpKa5ZuI/AAAAAAAABC0/gc3YjK9QCYo/s400/selectusersandgroups.jpg" alt="" id="BLOGGER_PHOTO_ID_5301598386191427298" border="0" /&gt;&lt;/a&gt;Click OK and on the Owner tab make sure to check the “&lt;strong&gt;Replace owner on subcontainers and objects&lt;/strong&gt;” box. Now select your user account from the list on the Security tab and click &lt;strong&gt;Edit&lt;/strong&gt;. Click &lt;strong&gt;Allow&lt;/strong&gt; next to &lt;strong&gt;Full Control&lt;/strong&gt; and click OK.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SZMQA8sNKcI/AAAAAAAABC8/yxmDzoi_mso/s1600-h/fullcontrol.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 347px; height: 185px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SZMQA8sNKcI/AAAAAAAABC8/yxmDzoi_mso/s400/fullcontrol.jpg" alt="" id="BLOGGER_PHOTO_ID_5301598794822789570" border="0" /&gt;&lt;/a&gt;Hopefully, this fixes one very annoying problem with Windows Vista. I did notice that upgrading to SP1 helped to reduce the occurrence of this error, so if you do not have SP1 installed yet, make sure to go to Windows Update. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3374398966995505213?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3374398966995505213/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3374398966995505213' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3374398966995505213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3374398966995505213'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/02/vista-you-need-permission-to-perform.html' title='Vista: &quot;You need permission to perform this action”'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/SZMN7N0yQeI/AAAAAAAABCU/M_W2XZt4zIk/s72-c/youneedpermissiontoperformthisaction.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5261509824905865515</id><published>2009-01-29T06:58:00.000-08:00</published><updated>2009-01-29T07:22:36.191-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ByVal vs ByRef'/><category scheme='http://www.blogger.com/atom/ns#' term='ByVal ByRef'/><category scheme='http://www.blogger.com/atom/ns#' term='ByVal vs ByRef  Vbasic'/><category scheme='http://www.blogger.com/atom/ns#' term='Difference between ByVal and ByRef'/><title type='text'>ByVal vs ByRef  (Difference between ByVal and ByRef)</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SYHJtPmSnOI/AAAAAAAABB8/KHaAwtqGUrg/s1600-h/confused-monkey.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 200px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SYHJtPmSnOI/AAAAAAAABB8/KHaAwtqGUrg/s200/confused-monkey.jpg" alt="" id="BLOGGER_PHOTO_ID_5296736415882845410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The difference between ByVal and ByRef is very simple once we recall the subject   on pointers. These keywords are simply abbreviations of the full definition of   the differences between the two.&lt;div class="cms-content"&gt; &lt;p&gt;ByVal = By Value and ByRef = By Reference&lt;/p&gt; &lt;p&gt;Now we can recall what I said in the previous chapter about C/C++ and pointers.   Pointers act as a Reference to a memory address location. In VB however, this   means that the reference is occurring in your statement directly at the location   of the actual data, and where it is stored.&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(51, 51, 51);"&gt;Selecting a&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt; ByVal would thereby mean you are only working on a copy or replica   of the data,&lt;/span&gt; and not the actual data segment it self.&lt;/p&gt; &lt;p&gt;This has specific implications for how your statements can handle and alter   the data in your variable. The &lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-weight: bold;"&gt;ByRef&lt;/span&gt; &lt;/span&gt;use, would imply that a change performed   by the statement of the value you pass,&lt;span style="color: rgb(0, 153, 0);"&gt; &lt;span style="font-weight: bold;"&gt;has an affect on the actual data&lt;/span&gt;&lt;/span&gt;, while   the ByVal use would only alter the copy the statement has to work on.&lt;/p&gt; &lt;p&gt;Simply described, if passed ByRef, a procedure can permanently alter the data   stored in the variable. Since it also is faster to send a memory address location,   rather than passing a copy of a data argument, it is the default value used by   Visual Basic.&lt;/p&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5261509824905865515?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5261509824905865515/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5261509824905865515' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5261509824905865515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5261509824905865515'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/01/byval-vs-byref-difference-between-byval.html' title='ByVal vs ByRef  (Difference between ByVal and ByRef)'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_sX-WxN35S4Y/SYHJtPmSnOI/AAAAAAAABB8/KHaAwtqGUrg/s72-c/confused-monkey.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1257765787269077046</id><published>2009-01-28T14:13:00.000-08:00</published><updated>2009-01-28T14:20:23.434-08:00</updated><title type='text'>How to Ghost Windows Vista hard disk hdd in the notebook computer</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_sX-WxN35S4Y/SYDaHM9aMHI/AAAAAAAABBs/Ue_yqRgNEj8/s1600-h/pray_worry-computer.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 180px; height: 180px;" src="http://1.bp.blogspot.com/_sX-WxN35S4Y/SYDaHM9aMHI/AAAAAAAABBs/Ue_yqRgNEj8/s400/pray_worry-computer.jpg" alt="" id="BLOGGER_PHOTO_ID_5296472979060437106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notebook normally comes with small size hard disk. Soon, you will find the hard disk (hdd) is full. Reinstall Windows Vista, Microsoft Office 2007, all the other software will take a long time. Even have all the original CDs is not enough -- all the software these days require to have code, activation. Replacing a big size hard disk is a bigger headache.&lt;p&gt; Ghost from Norton was a great utility to use to make disk image. It works from DOS, Windows 98, Windows 2000, Windows XP, and Windows XP with SP2. &lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;It also works for Vista, right? Wrong!&lt;/span&gt;&lt;/p&gt;&lt;p&gt; What is wrong with Vista? Microsoft changed how the boot is handled in the Vista. All the older version Ghost does not know how to handle it. So you make perfect image copy of your notebook hard drive to this new bigger hard disk, but it will not boot. When you try to boot, it says "unable to access \windows\winload.exe". Ghost copied bootloader, but the boot loader still expect the old disk. With each disk has different device name and ID, it does not match up, so it will not boot.&lt;/p&gt;&lt;p&gt;  &lt;span style="color: rgb(51, 102, 255);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Here is the method to rescure from this situation:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;1) Install the newly cloned Vista hdd in the notebook, do not boot yet;&lt;br /&gt;2) Power on your notebook computer with Vista installation CD in the CD/DVD drive;&lt;br /&gt;3) Make sure your computer is boot from the CD/DVD, not hard disk -- very important;&lt;br /&gt;4) Select the proper language of your installation, then Next;&lt;br /&gt;5) Select "Repair" on next screen;&lt;br /&gt;6) Let installation CD finish scanning the system for Windows installations;&lt;br /&gt;7) It may prompt you the current installation on HDD is corrupted, would you like to repair. Select No;&lt;br /&gt;8) Next screen it will have a selection of commands, select "Command Prompt";&lt;br /&gt;9) Vista has a command called "BCDEDIT", type that and enter;&lt;br /&gt;10) Write down what's on screen on a piece of paper. The information is important;&lt;br /&gt;11) Noticed under "bootmgr", "default", and "osdevice", all says device unknown;&lt;br /&gt;12) Type exactly next three lines, each followed by the "Enter" key:&lt;/p&gt;&lt;p&gt; bcdedit /set {bootmgr} device boot&lt;br /&gt;bcdedit /set {default} device boot&lt;br /&gt;bcdedit /set {default} osdevice boot&lt;/p&gt; 13) Close the Command Prompt windows, take out the installation DVD, and click on "Restart"&lt;br /&gt;14) Once the computer boot, call Microsoft to reactive your Vista on this new hard disk!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1257765787269077046?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1257765787269077046/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1257765787269077046' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1257765787269077046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1257765787269077046'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/01/how-to-ghost-windows-vista-hard-disk.html' title='How to Ghost Windows Vista hard disk hdd in the notebook computer'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_sX-WxN35S4Y/SYDaHM9aMHI/AAAAAAAABBs/Ue_yqRgNEj8/s72-c/pray_worry-computer.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1274482905944589711</id><published>2009-01-19T05:32:00.000-08:00</published><updated>2009-01-19T05:38:52.752-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic 6 instalation problems'/><category scheme='http://www.blogger.com/atom/ns#' term='acmboot.exe'/><title type='text'>Visual Basic 6 instalation problems ( acmboot.exe  )</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SXSCOBpdaQI/AAAAAAAABAc/eTu4BlZ6TRE/s1600-h/computerStrangle.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 302px; height: 243px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SXSCOBpdaQI/AAAAAAAABAc/eTu4BlZ6TRE/s400/computerStrangle.jpg" alt="" id="BLOGGER_PHOTO_ID_5292998639539284226" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;For some reason, when I try to install Visual Studio 6.0, I encounter an error that states that "acmboot.exe is damaged". Is there a way to fix this problem, or do I need to get my install disc for this program replaced?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);font-size:130%;" &gt;                       ********* SOLUTION **********&lt;/span&gt;&lt;br /&gt;Error Launching D:\....\acmboot.exe.&lt;br /&gt;1. make a copy of your installation cd in your hard drive&lt;br /&gt;2. make a copy of the setup/VS98ENT.STF and name it acmsetup.STF&lt;br /&gt;3. copy entire content of setup/ to previous folder (the one that has acmboot.exe file)&lt;br /&gt;4. modify acmsetup.stf with acost.exe as you require and save it.&lt;br /&gt;5. run acmsetup.exe instead of setup (the one that's on the same path as acmboot.exe)&lt;br /&gt;6. voala, that's it, your visual studio 6.0 will be installed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1274482905944589711?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1274482905944589711/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1274482905944589711' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1274482905944589711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1274482905944589711'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/01/visual-basic-6-instalation-problems.html' title='Visual Basic 6 instalation problems ( acmboot.exe  )'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/SXSCOBpdaQI/AAAAAAAABAc/eTu4BlZ6TRE/s72-c/computerStrangle.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7576044941181768702</id><published>2009-01-12T05:04:00.000-08:00</published><updated>2009-01-12T05:05:05.830-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ipconfig'/><category scheme='http://www.blogger.com/atom/ns#' term='How to check IP address?'/><title type='text'>How to check IP address?</title><content type='html'>Start - Run -  cmd - ipconfig + Enter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7576044941181768702?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7576044941181768702/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7576044941181768702' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7576044941181768702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7576044941181768702'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2009/01/how-to-check-ip-address.html' title='How to check IP address?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-5893436660866727299</id><published>2008-12-15T00:59:00.000-08:00</published><updated>2008-12-15T02:42:26.320-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Restore Internet Information Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Back up Internet Information Service'/><category scheme='http://www.blogger.com/atom/ns#' term='Backing up your IIS 6.0 Metabase'/><category scheme='http://www.blogger.com/atom/ns#' term='Restore IIS 6'/><title type='text'>Backing up your IIS 6.0 Metabase</title><content type='html'>Preface:&lt;br /&gt;&lt;br /&gt;In previous versions of Internet Information Services (IIS) configurations were stored in the registry.  Part of IIS 6.0's rebuilding was changing where the configuration is stored, which is now a file named MetaBase.xml in your \WINDOWS\system32\inetsrv directory.  Sure, you can copy that file (and possibly MBSchema.bin.00000000h) to a separate directory, but a smarter way to do this is to use IIS 6.0's built-in back-up mechanism.  There are 2 ways to do this, but I'll only be showing you the graphical one at the moment.&lt;br /&gt;&lt;br /&gt;Method:&lt;br /&gt;&lt;br /&gt;(Backing up Internet Information Service 6.0)&lt;br /&gt;Load IIS from the Administrative tools in the Control Panel by clicking Start -&gt; Administrative Tools -&gt; IIS Manager (or loading the Control Panel, entering the Administrative Tools folder, and double clicking IIS Manager).&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_sX-WxN35S4Y/SUYhnvZM5VI/AAAAAAAAA_c/RneKFR-Fmlg/s1600-h/Find+IIS+Manager.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 299px;" src="http://3.bp.blogspot.com/_sX-WxN35S4Y/SUYhnvZM5VI/AAAAAAAAA_c/RneKFR-Fmlg/s400/Find+IIS+Manager.png" alt="" id="BLOGGER_PHOTO_ID_5279944579759269202" border="0" /&gt;&lt;/a&gt;Right click your computer name, put your mouse over "All tasks" and click  "Backup/Restore Configuration"&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SUYymrjpriI/AAAAAAAAA_k/Whffrv_8_-4/s1600-h/all-tasks-backup.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 282px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SUYymrjpriI/AAAAAAAAA_k/Whffrv_8_-4/s400/all-tasks-backup.jpg" alt="" id="BLOGGER_PHOTO_ID_5279963253247159842" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Click Create Backup&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SUYy7uW1IzI/AAAAAAAAA_s/PRvqeYOe_p0/s1600-h/create-backup+IIS.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 277px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SUYy7uW1IzI/AAAAAAAAA_s/PRvqeYOe_p0/s400/create-backup+IIS.jpg" alt="" id="BLOGGER_PHOTO_ID_5279963614775943986" border="0" /&gt;&lt;/a&gt;Now you can make up any name you want, not including dots (.)  You can  also password protect the back up if you choose. &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;IMPORTANT: If you wish to restore this IIS backup to the other computers then you should include and remember password!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SUYzPCkV_zI/AAAAAAAAA_0/4m_ljqM-eWg/s1600-h/backup-name.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 350px; height: 230px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SUYzPCkV_zI/AAAAAAAAA_0/4m_ljqM-eWg/s400/backup-name.jpg" alt="" id="BLOGGER_PHOTO_ID_5279963946618847026" border="0" /&gt;&lt;/a&gt;That's it, you're done!  To restore the backup you can now select the  backup you just made and press the Restore button&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_sX-WxN35S4Y/SUYz-YwkaxI/AAAAAAAAA_8/X1j3r86XEr0/s1600-h/restore-backup+IIS.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 277px;" src="http://2.bp.blogspot.com/_sX-WxN35S4Y/SUYz-YwkaxI/AAAAAAAAA_8/X1j3r86XEr0/s400/restore-backup+IIS.jpg" alt="" id="BLOGGER_PHOTO_ID_5279964760029555474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Your backup is stored in &lt;a href="file:///C:/WINDOWS/system32/inetsrv/MetaBack"&gt; C:\WINDOWS\system32\inetsrv\MetaBack&lt;/a&gt; under the name you gave it.   Actually, it will be 2 files.  In the example I gave above 2 files were  created:&lt;/p&gt; &lt;p&gt;visualwin backup.MD0&lt;br /&gt;visualwin backup.SC0&lt;/p&gt;   &lt;p&gt;I recommend the copying of these files to another folder, just in case.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-5893436660866727299?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/5893436660866727299/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=5893436660866727299' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5893436660866727299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/5893436660866727299'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/12/backing-up-your-iis-60-metabase.html' title='Backing up your IIS 6.0 Metabase'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_sX-WxN35S4Y/SUYhnvZM5VI/AAAAAAAAA_c/RneKFR-Fmlg/s72-c/Find+IIS+Manager.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1938445851394090392</id><published>2008-11-12T08:23:00.000-08:00</published><updated>2008-11-12T08:45:57.687-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ipconfig'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS server addres Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS server addres PC'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS server addres MAC'/><category scheme='http://www.blogger.com/atom/ns#' term='detectiv dock'/><title type='text'>How do you find a DNS server address MAC and Windows?</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_sX-WxN35S4Y/SRsIKF3qqNI/AAAAAAAAAu0/p-fDvsRuuyQ/s1600-h/detectiv+dock.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 174px;" src="http://4.bp.blogspot.com/_sX-WxN35S4Y/SRsIKF3qqNI/AAAAAAAAAu0/p-fDvsRuuyQ/s200/detectiv+dock.jpg" alt="" id="BLOGGER_PHOTO_ID_5267813158607300818" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;If you are using a PC&lt;/span&gt;&lt;/span&gt;, click the start button. Select the run command. Type CMD into the box and press enter. When the black box pops up type the following line in&lt;br /&gt;&lt;br /&gt;ipconfig /all&lt;br /&gt;&lt;br /&gt;Look through the data to see what your DNS address is.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;If you are using a mac.&lt;/span&gt; Go to the System Preferences. Click on the Network Icon Double Click on the Ethernet icon if you have an ethernet cable plugged in (Looks like a wide phone jack) Double Click on the Airport card if you are using wireless internet. The DNS servers will be listed under the TCP/IP Tab.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1938445851394090392?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1938445851394090392/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1938445851394090392' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1938445851394090392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1938445851394090392'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/11/how-do-you-find-dns-server-address-mac.html' title='How do you find a DNS server address MAC and Windows?'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_sX-WxN35S4Y/SRsIKF3qqNI/AAAAAAAAAu0/p-fDvsRuuyQ/s72-c/detectiv+dock.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-6569798426958586235</id><published>2008-10-22T06:52:00.000-07:00</published><updated>2008-10-23T02:31:15.988-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='execute EXPLORER.EXE Task Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='lunch explorer.exe'/><category scheme='http://www.blogger.com/atom/ns#' term='killed explorer.exe'/><title type='text'>HOW TO LUNCH explorer.exe</title><content type='html'>&lt;a href="http://www.klynton.com/Funny/computer/images/img3c9ccf432e642.jpg"&gt;&lt;img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; WIDTH: 271px; CURSOR: hand; HEIGHT: 268px" alt="" src="http://www.klynton.com/Funny/computer/images/img3c9ccf432e642.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;If you killed your explorer.exe by mistake...here is how to run it again:&lt;br /&gt;&lt;br /&gt;From Task Manager, execute EXPLORER.EXE;&lt;br /&gt;Hit&lt;br /&gt;Ctrl-Alt-Del and load Task manager.&lt;br /&gt;File --&gt; New Task (run)--&gt;EXPLORER.EXE&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-6569798426958586235?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/6569798426958586235/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=6569798426958586235' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6569798426958586235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/6569798426958586235'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/10/how-to-lunch-explorerexe.html' title='HOW TO LUNCH explorer.exe'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1796624709233324809</id><published>2008-08-25T13:51:00.000-07:00</published><updated>2008-08-25T14:02:10.214-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Skip recycle bin'/><category scheme='http://www.blogger.com/atom/ns#' term='Deleting Files Without Recycle Bin'/><category scheme='http://www.blogger.com/atom/ns#' term='Deleting files permanently'/><category scheme='http://www.blogger.com/atom/ns#' term='Remove files permanently'/><title type='text'>Deleting Files Without Recycle Bin</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.internalaudit.biz/images/goodbye.gif"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px;" src="http://www.internalaudit.biz/images/goodbye.gif" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Select the files or folders you wish to delete then hold the Shift key and press the Delete button. This will delete files bypassing the recycle bin.&lt;br /&gt;&lt;br /&gt;For the people who dont know the Shift + Del function, it is a fast way of deleting a file permanently from your pc without using the recycle bin. The only thing different is that its very hard to recover a shift deleted file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-1796624709233324809?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/1796624709233324809/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=1796624709233324809' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1796624709233324809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/1796624709233324809'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/deleting-files-without-recycle-bin.html' title='Deleting Files Without Recycle Bin'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2633925610864926280</id><published>2008-08-13T06:14:00.001-07:00</published><updated>2008-08-13T06:14:56.488-07:00</updated><title type='text'>Lesson 07: Using Stored Procedures</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This lesson shows how to use stored procedures in your data access code.          Here are the objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Learn how to modify the SqlCommand object to use a stored procedure.        &lt;/li&gt;&lt;li&gt;         Understand how to use parameters with stored procedures.         &lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;A stored procedures is a pre-defined, reusable routine that is stored in a         database.  SQL Server compiles stored procedures, which makes them more         efficient to use.  Therefore, rather than dynamically building queries in         your code, you can take advantage of the reuse and performance benefits of         stored procedures.  The following sections will show you how to modify the         SqlCommand object to use stored procedures.  Additionally, you'll see         another reason why parameter support is an important part of the ADO.NET         libraries.&lt;/p&gt;       &lt;h4&gt;Executing a Stored Procedure&lt;/h4&gt;       &lt;p&gt;In addition to commands built with strings, the SqlCommand type can be used to         execute stored procedures.  There are two tasks require to make this         happen: let the SqlCommand object know which stored procedure to execute and         tell the SqlCommand object that it is executing a stored procedure.  These         two steps are shown below:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1.  create a command object identifying&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//     the stored procedure&lt;/span&gt;&lt;br /&gt; SqlCommand cmd  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;  "Ten Most Expensive Products", conn);&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. set the command object so it knows&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    to execute a stored procedure&lt;/span&gt;&lt;br /&gt; cmd.CommandType = CommandType.StoredProcedure;&lt;/pre&gt;       &lt;p&gt;While declaring the SqlCommand object above, the first parameter is set to "Ten         Most Expensive Products".  This is the name of a stored procedure in the         Northwind database.  The second parameter is the connection object, which         is the same as the SqlCommand constructor used for executing query strings.&lt;/p&gt;       &lt;p&gt;The second command tells the SqlCommand object what type of command it will         execute by setting its &lt;em&gt;CommandType&lt;/em&gt; property to the &lt;em&gt;StoredProcedure&lt;/em&gt;        value of the CommandType enum.  The default interpretation of the first         parameter to the SqlCommand constructor is to treat it as a query string.          By setting the &lt;em&gt;CommandType&lt;/em&gt; to &lt;em&gt;StoredProcedure&lt;/em&gt;, the first         parameter to the SqlCommand constructor will be interpreted as the name of a         stored procedure (instead of interpreting it as a command string).  The         rest of the code can use the SqlCommand object the same as it is used in         previous lessons.&lt;/p&gt;       &lt;h4&gt;Sending Parameters to Stored Procedures&lt;/h4&gt;       &lt;p&gt;Using parameters for stored procedures is the same as using parameters for query         string commands.  The following code shows this:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1.  create a command object identifying&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//     the stored procedure&lt;/span&gt;&lt;br /&gt; SqlCommand cmd  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;  "CustOrderHist", conn);&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. set the command object so it knows&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    to execute a stored procedure&lt;/span&gt;&lt;br /&gt; cmd.CommandType = CommandType.StoredProcedure;&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. add parameter to command, which&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    will be passed to the stored procedure&lt;/span&gt;&lt;br /&gt; cmd.Parameters.Add(&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlParameter("@CustomerID", custId));&lt;/pre&gt;       &lt;p&gt;The SqlCommand constructor above specifies the name of a stored procedure, &lt;em&gt;CustOrderHist&lt;/em&gt;, as         its first parameter.  This particular stored procedure takes a single         parameter, named &lt;em&gt;@CustomerID&lt;/em&gt;.  Therefore, we must populate this         parameter using a SqlParameter object.  The name of the parameter passed         as the first parameter to the SqlParameter constructor must be spelled exactly         the same as the stored procedure parameter.  Then execute the command the         same as you would with any other SqlCommand object.&lt;/p&gt;       &lt;h4&gt;A Full Example&lt;/h4&gt;       &lt;p&gt;The code in Listing 1 contains a full working example of how to use stored         procedures.  There are separate methods for a stored procedure without         parameters and a stored procedure with parameters.        &lt;/p&gt;&lt;h5&gt;Listing 1: Executing Stored Procedures&lt;/h5&gt;        &lt;pre&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;br /&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;class&lt;/span&gt; StoredProcDemo&lt;br /&gt;{&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;static&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; Main()&lt;br /&gt; {&lt;br /&gt;  StoredProcDemo spd = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; StoredProcDemo();&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// run a simple stored procedure&lt;/span&gt;&lt;br /&gt;  spd.RunStoredProc();&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// run a stored procedure that takes a parameter&lt;/span&gt;&lt;br /&gt;  spd.RunStoredProcParams();&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// run a simple stored procedure&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; RunStoredProc()&lt;br /&gt; {&lt;br /&gt;  SqlConnection conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;  SqlDataReader rdr  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;  Console.WriteLine("\nTop 10 Most Expensive Products:\n");&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;try&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// create and open a connection object&lt;/span&gt;&lt;br /&gt;   conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt;&lt;br /&gt;    SqlConnection("Server=(local);DataBase=Northwind;Integrated Security=SSPI");&lt;br /&gt;   conn.Open();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1.  create a command object identifying&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//     the stored procedure&lt;/span&gt;&lt;br /&gt;   SqlCommand cmd  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;    "Ten Most Expensive Products", conn);&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. set the command object so it knows&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    to execute a stored procedure&lt;/span&gt;&lt;br /&gt;   cmd.CommandType = CommandType.StoredProcedure;&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// execute the command&lt;/span&gt;&lt;br /&gt;   rdr = cmd.ExecuteReader();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// iterate through results, printing each to console&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;while&lt;/span&gt; (rdr.Read())&lt;br /&gt;   {&lt;br /&gt;    Console.WriteLine(&lt;br /&gt;     "Product: {0,-25} Price: ${1,6:####.00}",&lt;br /&gt;     rdr["TenMostExpensiveProducts"],&lt;br /&gt;     rdr["UnitPrice"]);&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;finally&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (conn != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    conn.Close();&lt;br /&gt;   }&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (rdr != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    rdr.Close();&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// run a stored procedure that takes a parameter&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; RunStoredProcParams()&lt;br /&gt; {&lt;br /&gt;  SqlConnection conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;  SqlDataReader rdr  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// typically obtained from user&lt;/span&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// input, but we take a short cut&lt;/span&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; custId = "FURIB";&lt;br /&gt;&lt;br /&gt;  Console.WriteLine("\nCustomer Order History:\n");&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;try&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// create and open a connection object&lt;/span&gt;&lt;br /&gt;   conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt;&lt;br /&gt;    SqlConnection("Server=(local);DataBase=Northwind;Integrated Security=SSPI");&lt;br /&gt;   conn.Open();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1.  create a command object identifying&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//     the stored procedure&lt;/span&gt;&lt;br /&gt;   SqlCommand cmd  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;    "CustOrderHist", conn);&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. set the command object so it knows&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    to execute a stored procedure&lt;/span&gt;&lt;br /&gt;   cmd.CommandType = CommandType.StoredProcedure;&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. add parameter to command, which&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    will be passed to the stored procedure&lt;/span&gt;&lt;br /&gt;   cmd.Parameters.Add(&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlParameter("@CustomerID", custId));&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// execute the command&lt;/span&gt;&lt;br /&gt;   rdr = cmd.ExecuteReader();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// iterate through results, printing each to console&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;while&lt;/span&gt; (rdr.Read())&lt;br /&gt;   {&lt;br /&gt;    Console.WriteLine(&lt;br /&gt;     "Product: {0,-35} Total: {1,2}",&lt;br /&gt;     rdr["ProductName"],&lt;br /&gt;     rdr["Total"]);&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;finally&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (conn != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    conn.Close();&lt;br /&gt;   }&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (rdr != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    rdr.Close();&lt;br /&gt;   }&lt;br /&gt;  } &lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;       &lt;p&gt;The &lt;em&gt;RunStoredProc&lt;/em&gt; method in Listing 1 simply runs a stored procedure         and prints the results to the console.  In the &lt;em&gt;RunStoredProcParams&lt;/em&gt;        method, the stored procedure used takes a single parameter.  This         demonstrates that there is no difference between using parameters with query         strings and stored procedures.  The rest of the code should be familiar to         those who have read previous lessons in this tutorial.&lt;/p&gt;       &lt;h4&gt;Summary&lt;/h4&gt;       &lt;p&gt;To execute stored procedures, you specify the name of the stored procedure in         the first parameter of a SqlCommand constructor and then set the &lt;em&gt;CommandType&lt;/em&gt;        of the SqlCommand to &lt;em&gt;StoredProcedure&lt;/em&gt;.  You can also send         parameters to a stored procedure by using SqlParameter objects, the same         way it is done with SqlCommand objects that execute query strings.  Once         the SqlCommand object is constructed, you can use it just like any other         SqlCommand object as described in previous lessons.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2633925610864926280?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2633925610864926280/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2633925610864926280' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2633925610864926280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2633925610864926280'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/lesson-07-using-stored-procedures.html' title='Lesson 07: Using Stored Procedures'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-3734603226855432184</id><published>2008-08-13T06:11:00.000-07:00</published><updated>2008-08-13T06:12:17.349-07:00</updated><title type='text'>Lesson 06: Adding Parameters to Commands</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This lesson shows you how to use parameters in your commands.  Here are the         objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Understand what a parameter is.        &lt;/li&gt;&lt;li&gt;        Be informed about the benefits of using parameters.         &lt;/li&gt;&lt;li&gt;        Learn how to create a parameter.        &lt;/li&gt;&lt;li&gt;         Learn how to assign parameters to commands.&lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;When working with data, you'll often want to filter results based on some         criteria.  Typically, this is done by accepting input from a user and         using that input to form a SQL query.  For example, a sales person may         need to see all orders between specific dates.  Another query might be to         filter customers by city.&lt;/p&gt;       &lt;p&gt;As you know, the SQL query assigned to a SqlCommand object is simply a         string.  So, if you want to filter a query, you could build the string         dynamically, but you wouldn't want to.  Here is a bad example of filtering         a query.&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// don't ever do this!&lt;/span&gt;&lt;br /&gt; SqlCommand cmd = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;  "select * from Customers where city = '" + inputCity + "'";&lt;/pre&gt;       &lt;p&gt;Don't ever build a query this way!  The input variable, &lt;em&gt;inputCity&lt;/em&gt;,         is typically retrieved from a TextBox control on either a Windows form or a Web         Page.  Anything placed into that TextBox control will be put into &lt;em&gt;inputCity&lt;/em&gt;        and added to your SQL string.  This situation invites a hacker to replace         that string with something malicious.  In the worst case, you could give         full control of your computer away.&lt;/p&gt;       &lt;p&gt;Instead of dynamically building a string, as shown in the bad example above, use         parameters.  Anything placed into a parameter will be treated as field         data, not part of the SQL statement, which makes your application much more         secure.&lt;/p&gt;       &lt;p&gt;Using parameterized queries is a three step process:&lt;/p&gt;       &lt;ol&gt;&lt;li&gt;        Construct the SqlCommand command string with parameters.        &lt;/li&gt;&lt;li&gt;        Declare a SqlParameter object, assigning values as appropriate.        &lt;/li&gt;&lt;li&gt;         Assign the SqlParameter object to the SqlCommand object's Parameters property.&lt;/li&gt;&lt;/ol&gt;       &lt;p&gt;The following sections take you step-by-step through this process.&lt;/p&gt;       &lt;h4&gt;preparing a SqlCommand Object for Parameters&lt;/h4&gt;       &lt;p&gt;The first step in using parameters in SQL queries is to build a command string         containing parameter placeholders.  These placeholders are filled in         with actual parameter values when the SqlCommand executes.  Proper syntax         of a parameter is to use an '@' symbol prefix on the parameter name as shown         below:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1. declare command object with parameter&lt;/span&gt;&lt;br /&gt; SqlCommand cmd = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;  "select * from Customers where city = @City", conn);&lt;/pre&gt;       &lt;p&gt;In the SqlCommand constructor above, the first argument contains a         parameter declaration, &lt;em&gt;@City&lt;/em&gt;.  This example used one parameter,         but you can have as many parameters as needed to customize the query.          Each parameter will match a SqlParameter object that must be assigned to this         SqlCommand object.&lt;/p&gt;       &lt;h4&gt;Declaring a SqlParameter Object&lt;/h4&gt;       &lt;p&gt;Each parameter in a SQL statement must be defined.  This is the purpose of         the SqlParameter type.  Your code must define a SqlParameter instance for         each parameter in a SqlCommand object's SQL command.  The following code         defines a parameter for the &lt;em&gt;@City&lt;/em&gt; parameter from the previous section:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. define parameters used in command object&lt;/span&gt;&lt;br /&gt; SqlParameter param  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlParameter();&lt;br /&gt; param.ParameterName = "@City";&lt;br /&gt; param.Value         = inputCity;&lt;/pre&gt;       &lt;p&gt;Notice that the ParameterName property of the SqlParameter instance must be         spelled exactly as the parameter that is used in the SqlCommand SQL command         string.  You must also specify a value for the command.  When the         SqlCommand object executes, the parameter will be replaced with this value.&lt;/p&gt;       &lt;h4&gt;Associate a SqlParameter Object with a SqlCommand Object&lt;/h4&gt;       &lt;p&gt;For each parameter defined in the SQL command string argument to a SqlCommand         object, you must define a SqlParameter.  You must also let the SqlCommand         object know about the SqlParameter by assigning the SqlParameter instance to         the Parameters property of the SqlCommand object.  The following code         shows how to do this:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. add new parameter to command object&lt;/span&gt;&lt;br /&gt; cmd.Parameters.Add(param);&lt;/pre&gt;       &lt;p&gt;The SqlParameter instance is the argument to the Add method of the Parameters         property for the SqlCommand object above.  You must add a unique         SqlParameter for each parameter defined in the SqlCommand object's SQL command         string.&lt;/p&gt;       &lt;h4&gt;Putting it All Together&lt;/h4&gt;       &lt;p&gt;        You already know how to use SqlCommand and SqlDataReader objects.  The         following code demonstrates a working program that uses SqlParameter         objects.  So, everything should be familiar by now, except for the new         parts presented in this article:        &lt;/p&gt;&lt;h5&gt;Listing 1: Adding Parameters to Queries&lt;/h5&gt;        &lt;pre&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;br /&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;class&lt;/span&gt; ParamDemo&lt;br /&gt;{&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;static&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; Main()&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// conn and reader declared outside try&lt;/span&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// block for visibility in finally block&lt;/span&gt;&lt;br /&gt;  SqlConnection conn   = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;  SqlDataReader reader = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; inputCity = "London";&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;try&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// instantiate and open connection&lt;/span&gt;&lt;br /&gt;   conn =  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt;&lt;br /&gt;    SqlConnection("Server=(local);DataBase=Northwind;Integrated Security=SSPI");&lt;br /&gt;   conn.Open();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// don't ever do this!&lt;/span&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//   SqlCommand cmd = new SqlCommand(&lt;/span&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;//    "select * from Customers where city = '" + inputCity + "'";&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1. declare command object with parameter&lt;/span&gt;&lt;br /&gt;   SqlCommand cmd = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;    "select * from Customers where city = @City", conn);&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. define parameters used in command object&lt;/span&gt;&lt;br /&gt;   SqlParameter param  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlParameter();&lt;br /&gt;   param.ParameterName = "@City";&lt;br /&gt;   param.Value         = inputCity;&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. add new parameter to command object&lt;/span&gt;&lt;br /&gt;   cmd.Parameters.Add(param);&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// get data stream&lt;/span&gt;&lt;br /&gt;   reader = cmd.ExecuteReader();&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// write each record&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;while&lt;/span&gt;(reader.Read())&lt;br /&gt;   {&lt;br /&gt;    Console.WriteLine("{0}, {1}",&lt;br /&gt;     reader["CompanyName"],&lt;br /&gt;     reader["ContactName"]);&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;finally&lt;/span&gt;&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// close reader&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (reader != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    reader.Close();&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// close connection&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (conn != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;   {&lt;br /&gt;    conn.Close();&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;       &lt;p&gt;The code in Listing 1 simply retrieves records for each customer that lives in         London.  This was made more secure through the use of parameters.          Besides using parameters, all of the other code contains techniques you've         learned in previous lessons.&lt;/p&gt;       &lt;h4&gt;Summary&lt;/h4&gt;       &lt;p&gt;You should use parameters to filter queries in a secure manner.  The         process of using parameter contains three steps:  define the parameter in         the SqlCommand command string, declare the SqlParameter object with applicable         properties, and assign the SqlParameter object to the SqlCommand object.          When the SqlCommand executes, parameters will be replaced with values specified         by the SqlParameter object.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-3734603226855432184?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/3734603226855432184/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=3734603226855432184' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3734603226855432184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/3734603226855432184'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/lesson-06-adding-parameters-to-commands.html' title='Lesson 06: Adding Parameters to Commands'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2410508971347383461</id><published>2008-08-13T06:08:00.001-07:00</published><updated>2008-08-13T06:08:53.908-07:00</updated><title type='text'>Lesson 05: Working with Disconnected Data - The DataSet and SqlDataAdapter</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;       &lt;p&gt;This lesson explains how to work with disconnected data, using the DataSet and         SqlDataAdapter objects.  Here are the objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Understand the need for disconnected data.        &lt;/li&gt;&lt;li&gt;        Obtain a basic understanding of what a DataSet is for.        &lt;/li&gt;&lt;li&gt;         Learn to use a SqlDataAdapter to retrieve and update data.&lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;In Lesson 3, we discussed a fully connected mode of operation for interacting         with a data source by using the SqlCommand object.  In Lesson 4, we         learned about how to read data quickly an let go of the connection with the         SqlDataReader.  This Lesson shows how to accomplish something in-between         SqlConnection and SqlDataReader interaction by using the DataSet and         SqlDataAdapter objects.&lt;/p&gt;       &lt;p&gt;A DataSet is an in-memory data store that can hold numerous tables.          DataSets only hold data and do not interact with a data source.  It is the         SqlDataAdapter that manages connections with the data source and gives us         disconnected behavior.  The SqlDataAdapter opens a connection only when         required and closes it as soon as it has performed its task.  For example,         the SqlDataAdapter performs the following tasks when filling a DataSet with         data:&lt;/p&gt;       &lt;ol&gt;&lt;li&gt;        Open connection        &lt;/li&gt;&lt;li&gt;        Retrieve data into DataSet        &lt;/li&gt;&lt;li&gt;         Close connection&lt;/li&gt;&lt;/ol&gt;       &lt;p&gt;and performs the following actions when updating data source with DataSet         changes:&lt;/p&gt;       &lt;ol&gt;&lt;li&gt;        Open connection        &lt;/li&gt;&lt;li&gt;        Write changes from DataSet to data source        &lt;/li&gt;&lt;li&gt;         Close connection&lt;/li&gt;&lt;/ol&gt;       &lt;p&gt;In between the Fill and Update operations, data source connections are closed         and you are free to read and write data with the DataSet as you need.          These are the mechanics of working with disconnected data.  Because the         applications holds on to connections only when necessary, the application         becomes more scalable.&lt;/p&gt;       &lt;p&gt;A couple scenarios illustrate why you would want to work with disconnected data:         people working without network connectivity and making Web sites more         scalable.  Consider sales people who need customer data as they         travel.  At the beginning of the day, they'll need to sync up with the         main data base to have the latest information available.  During the day,         they'll make modifications to existing customer data, add new customers, and         input new orders.  This is okay because they have a given region or         customer base where other people won't be changing the same records.          At the end of the day, the sales person will connect to the network and update         changes for overnight processing.&lt;/p&gt;       &lt;p&gt;Another scenario is making a Web site more scalable.  With a SqlDataReader,         you have to go back to the data base for records every time you show a         page.  This requires a new connection for each page load, which will hurt         scalability as the number of users increase.  One way to relieve this is         to use a DataSet that is updated one time and stored in cache.  Every         request for the page checks the cache and loads the data if it isn't there or         just pulls the data out of cache and displays it.  This avoids a trip to         the data base, making your application more efficient.&lt;/p&gt;       &lt;p&gt;Exceptions to the scenario above include situations where you need to update         data.  You then have to make a decision, based on the nature of how         the data will be used as to your strategy.  Use disconnected data when         your information is primarily read only, but consider other alternatives         (such as using SqlCommand object for immediate update) when your         requirements call for something more dynamic.  Also, if the amount of data         is so large that holding it in memory is impractical, you will need to use         SqlDataReader for read-only data.  Really, one could come up with all         kinds of exceptions, but the true guiding force should be the requirements of         your application which will influence what your design should be.&lt;/p&gt;       &lt;h4&gt;Creating a DataSet Object&lt;/h4&gt;       &lt;p&gt;There isn't anything special about instantiating a DataSet.  You just         create a new instance, just like any other object:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;DataSet dsCustomers = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt;         DataSet();&lt;/span&gt;&lt;/p&gt;       &lt;p&gt;The DataSet constructor doesn't require parameters.  However         there is one overload that accepts a string for the name of the DataSet, which         is used if you were to serialize the data to XML.  Since that isn't a         requirement for this example, I left it out.  Right now, the DataSet is         empty and you need a SqlDataAdapter to load it.&lt;/p&gt;       &lt;h4&gt;Creating A SqlDataAdapter&lt;/h4&gt;       &lt;p&gt;The SqlDataAdapter holds the SQL commands and connection object for reading and         writing data.  You initialize it with a SQL select statement and         connection object:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;SqlDataAdapter daCustomers = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;          new&lt;/span&gt; SqlDataAdapter(&lt;br /&gt;            "select CustomerID, CompanyName from Customers", conn); &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;The code above creates a new SqlDataAdapter, &lt;em&gt;daCustomers&lt;/em&gt;.  The SQL         select statement specifies what data will be read into a DataSet.  The         connection object, &lt;em&gt;conn&lt;/em&gt;, should have already been instantiated, but         not opened.  It is the SqlDataAdapter's responsibility to open and close         the connection during Fill and Update method calls.&lt;/p&gt;       &lt;p&gt;        As indicated earlier, the SqlDataAdapter contains all of the commands necessary         to interact with the data source.  The code showed how to specify the         select statment, but didn't show the insert, update, and delete         statements.  These are added to the SqlDataAdapter after it is         instantiated.&lt;/p&gt;       &lt;p&gt;There are two ways to add insert, update, and delete commands:  via         SqlDataAdapter properties or with a SqlCommandBuilder.  In this lesson,         I'm going to show you the easy way of doing it with the         SqlCommandBuilder.  In a later lesson, I'll show you how to use the         SqlDataAdapter properties, which takes more work but will give you more         capabilities than what the SqlCommandBuilder does.  Here's how to add         commands to the SqlDataAdapter with the SqlCommandBuilder:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;SqlCommandBuilder cmdBldr = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;          new&lt;/span&gt; SqlCommandBuilder(daCustomers); &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;Notice in the code above that the SqlCommandBuilder is instantiated with a         single constructor parameter of the SqlDataAdapter, &lt;em&gt;daCustomers&lt;/em&gt;,         instance.  This tells the SqlCommandBuilder what SqlDataAdapter to add         commands to.  The SqlCommandBuilder will read the SQL select statement         (specified when the SqlDataAdapter was instantiated), infer the insert, update,         and delete commands, and assign the new commands to the Insert, Update, and         Delete properties of the SqlDataAdapter, respectively.&lt;/p&gt;       &lt;p&gt;As I mentioned earlier, the SqlCommandBuilder has limitations.  It works         when you do a simple select statement on a single table.  However, when         you need a join of two or mor tables or must do a stored procedure, it won't         work.  I'll describe a work-around for these scenarios in future lessons.&lt;/p&gt;       &lt;h4&gt;Filling the DataSet&lt;/h4&gt;       &lt;p&gt;Once you have a DataSet and SqlDataAdapter instances, you need to fill the         DataSet.  Here's how to do it, by using the Fill method of the         SqlDataAdapter:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;daCustomers.Fill(dsCustomers, "Customers"); &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;The &lt;em&gt;Fill&lt;/em&gt; method, in the code above, takes two parameters: a DataSet and         a table name.  The DataSet must be instantiated before trying to fill it         with data.  The second parameter is the name of the table that will be         created in the DataSet.  You can name the table anything you want.          Its purpose is so you can identify the table with a meaningful name later         on.  Typically, I'll give it the same name as the database table.          However, if the SqlDataAdapter's select command contains a join, you'll need to         find another meaningful name.&lt;/p&gt;       &lt;p&gt;The &lt;em&gt;Fill&lt;/em&gt; method has an overload that accepts one parameter for the         DataSet only.  In that case, the table created has a default name of         "table1" for the first table.  The number will be incremented         (table2, table3, ..., tableN) for each table added to the DataSet where         the table name was not specified in the Fill method.&lt;/p&gt;       &lt;h4&gt;Using the DataSet&lt;/h4&gt;       &lt;p&gt;A DataSet will bind with both ASP.NET and Windows forms DataGrids.  Here's         an example that assigns the DataSet to a Windows forms DataGrid:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;dgCustomers.DataSource = dsCustomers;         &lt;br /&gt;        dgCustomers.DataMember = "Customers"; &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;The first thing we do, in the code above, is assign the DataSet to the         DataSource property of the DataGrid.  This lets the DataGrid know that it         has something to bind to, but you will get a '+' sign in the GUI because the         DataSet can hold multiple tables and this would allow you to expand each         available table.  To specify exactly which table to use, set the         DataGrid's &lt;em&gt;DataMember&lt;/em&gt; property to the name of the table.  In the         example, we set the name to &lt;em&gt;Customers&lt;/em&gt;, which is the same name used as         the second parameter to the SqlDataAdapter Fill method.  This is why I         like to give the table a name in the &lt;em&gt;Fill&lt;/em&gt; method, as it makes         subsequent code more readable.&lt;/p&gt;       &lt;h4&gt;Updating Changes&lt;/h4&gt;       &lt;p&gt;After modifications are made to the data, you'll want to write the changes back         to the data base.  Refer to previous discussion in the Introduction of         this article on update guidance.  The following code shows how to use the &lt;em&gt;Update&lt;/em&gt;        method of the SqlDataAdapter to push modifications back to the data base.&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;daCustomers.Update(dsCustomers, "Customers"); &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;The &lt;em&gt;Update&lt;/em&gt; method, above, is called on the SqlDataAdapter instance that         originally filled the &lt;em&gt;dsCustomers&lt;/em&gt; DataSet.  The second parameter         to the &lt;em&gt;Update&lt;/em&gt; method specifies which table, from the DataSet, to         update.  The table contains a list of records that have been modified and         the Insert, Update, and Delete properties of the SqlDataAdapter contain the SQL         statements used to make data base modifications.&lt;/p&gt;       &lt;h4&gt;Putting it All Together&lt;/h4&gt;       &lt;p&gt;        Until now, you've seen the pieces required to implement disconnected data         managment.  What you really need is to see all this implemented in an         application.  Listing 1 shows how the code from all the previous sections         is used in a working program that has been simplified to enhance the points of         this lesson:        &lt;/p&gt;&lt;h5&gt;Listing 1: Implementing a Disconnected Data Management Strategy&lt;/h5&gt;        &lt;pre&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Drawing;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Windows.forms;&lt;br /&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;class&lt;/span&gt; DisconnectedDataform : form&lt;br /&gt;{&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;private&lt;/span&gt; SqlConnection  conn;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;private&lt;/span&gt; SqlDataAdapter daCustomers;&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;private&lt;/span&gt; DataSet  dsCustomers;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;private&lt;/span&gt; DataGrid dgCustomers;&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;private&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;const&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; tableName = "Customers";&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// initialize form with DataGrid and Button&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; DisconnectedDataform()&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// fill dataset&lt;/span&gt;&lt;br /&gt;  Initdata();&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// set up datagrid&lt;/span&gt;&lt;br /&gt;  dgCustomers = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; DataGrid();&lt;br /&gt;  dgCustomers.Location = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; Point(5, 5);&lt;br /&gt;  dgCustomers.Size = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; Size(&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;this&lt;/span&gt;.Clientrectangle.Size.Width - 10,&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;this&lt;/span&gt;.Clientrectangle.Height - 50);&lt;br /&gt;  dgCustomers.DataSource = dsCustomers;&lt;br /&gt;  dgCustomers.DataMember = tableName;&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// create update button&lt;/span&gt;&lt;br /&gt;  Button btnUpdate = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; Button();&lt;br /&gt;  btnUpdate.Text = "Update";&lt;br /&gt;  btnUpdate.Location = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; Point(&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;this&lt;/span&gt;.Clientrectangle.Width/2 - btnUpdate.Width/2,&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;this&lt;/span&gt;.Clientrectangle.Height - (btnUpdate.Height + 10));&lt;br /&gt;  btnUpdate.Click += &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; EventHandler(btnUpdateClicked);&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// make sure controls appear on form&lt;/span&gt;&lt;br /&gt;  Controls.AddRange(&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; Control[] { dgCustomers, btnUpdate });&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// set up ADO.NET objects&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; Initdata()&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// instantiate the connection&lt;/span&gt;&lt;br /&gt;  conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlConnection(&lt;br /&gt;   "Server=(local);DataBase=Northwind;Integrated Security=SSPI");&lt;br /&gt;  &lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1. instantiate a new DataSet&lt;/span&gt;&lt;br /&gt;  dsCustomers = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; DataSet();&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2. init SqlDataAdapter with select command and connection&lt;/span&gt;&lt;br /&gt;  daCustomers = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlDataAdapter(&lt;br /&gt;   "select CustomerID, CompanyName from Customers", conn);&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. fill in insert, update, and delete commands&lt;/span&gt;&lt;br /&gt;  SqlCommandBuilder cmdBldr = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommandBuilder(daCustomers);&lt;br /&gt;  &lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 4. fill the dataset&lt;/span&gt;&lt;br /&gt;  daCustomers.Fill(dsCustomers, tableName);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// Update button was clicked&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; btnUpdateClicked(&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// write changes back to DataBase&lt;/span&gt;&lt;br /&gt;  daCustomers.Update(dsCustomers, tableName);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// start the Windows form&lt;/span&gt;&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;static&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; Main()&lt;br /&gt; {&lt;br /&gt;  Application.Run(&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; DisconnectedDataform());&lt;br /&gt; }&lt;br /&gt;}&lt;/pre&gt;       &lt;p&gt;The &lt;em&gt;Initdata&lt;/em&gt; method in Listing 1 contains the methods necessary to set         up the SqlDataAdapter and DataSet.  Notice that various data objects are         defined at class level so they can be used in multiple methods.  The         DataGrid's &lt;em&gt;DataSource&lt;/em&gt; property is set in the constructor.          Whenever a user clicks the Update button, the &lt;em&gt;Update&lt;/em&gt; method in the &lt;em&gt;btnUpdateClicked&lt;/em&gt;        event handler is called, pushing modifications back to the data base.&lt;/p&gt;       &lt;h4&gt;Summary&lt;/h4&gt;       &lt;p&gt;DataSets hold multiple tables and can be kept in memory and reused.  The         SqlDataAdapter enables you to fill a DataSet and Update changes back to the         data base.  You don't have to worry about opening and closing the         SqlConnection because the SqlDataAdapter does it automatically.  A         SqlCommandBuilder populates insert, update, and delete commands based on the         SqlDataAdapter's select statement.  Use the &lt;em&gt;Fill&lt;/em&gt; method of the         SqlDataAdapter to fill a DataSet with data.  Call the SqlDataAdapter's &lt;em&gt;Update&lt;/em&gt;        method to push changes back to a data base.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2410508971347383461?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2410508971347383461/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2410508971347383461' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2410508971347383461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2410508971347383461'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/lesson-05-working-with-disconnected.html' title='Lesson 05: Working with Disconnected Data - The DataSet and SqlDataAdapter'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-7204686952081238694</id><published>2008-08-13T06:01:00.000-07:00</published><updated>2008-08-13T06:02:01.949-07:00</updated><title type='text'>Lesson 04: Reading Data with the SqlDataReader</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This lesson explains how to read data with a SqlDataReader object.  Here         are the objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Learn what a SqlDataReader is used for.        &lt;/li&gt;&lt;li&gt;        Know how to read data using a SqlDataReader.        &lt;/li&gt;&lt;li&gt;         Understand the need to close a SqlDataReader.&lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;A SqlDataReader is a type that is good for reading data in the most efficient         manner possible.  You can *not* use it for writing data.          SqlDataReaders are often described as fast-forward firehose-like streams of         data.&lt;/p&gt;       &lt;p&gt;You can read from SqlDataReader objects in a forward-only sequential         manner.  Once you've read some data, you must save it because you will not         be able to go back and read it again.&lt;/p&gt;       &lt;p&gt;The forward only design of the SqlDataReader is what enables it to be         fast.  It doesn't have overhead associated with traversing the data or         writing it back to the data source.  Therefore, if your only requirement         for a group of data is for reading one time and you want the fastest         method possible, the SqlDataReader is the best choice.  Also, if the         amount of data you need to read is larger than what you would prefer to hold in         memory beyond a single call, then the streaming behavior of the SqlDataReader         would be a good choice.&lt;/p&gt;       &lt;p&gt;Note:  Observe that I used the term "one time" in the previous paragraph         when discussing the reasons why you would use a SqlDataReader.  As with         anything, there are exceptions.  In many cases, it is more efficient to         use a cached DataSet.  While caching is outside the scope of this         tutorial, we will discuss using DataSet objects in the next lesson.&lt;/p&gt;       &lt;h4&gt;Creating a SqlDataReader Object&lt;/h4&gt;       &lt;p&gt;Getting an instance of a SqlDataReader is a little different than the way you         instantiate other ADO.NET objects.  You must call &lt;em&gt;ExecuteReader&lt;/em&gt; on         a command object, like this:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;     SqlDataReader rdr = cmd.ExecuteReader();&lt;/span&gt;&lt;/p&gt;       &lt;p&gt;The &lt;em&gt;ExecuteReader&lt;/em&gt; method of the SqlCommand object, &lt;em&gt;cmd&lt;/em&gt; ,         returns a SqlDataReader instance.  Creating a SqlDataReader with the new         operator doesn't do anything for you.  As you learned in previous lessons,         the SqlCommand object references the connection and the SQL statement necessary         for the SqlDataReader to obtain data.&lt;/p&gt;       &lt;h4&gt;Reading Data&lt;/h4&gt;       &lt;p&gt;        previous lessons contained code that used a SqlDataReader, but the discussion         was delayed so we could focus on the specific subject of that         particular lesson.  This lesson builds from what you've seen and         explains how to use the SqlDataReader.&lt;/p&gt;       &lt;p&gt;As explained earlier, the SqlDataReader returns data via a sequential         stream.  To read this data, you must pull data from a table         row-by-row.  Once a row has been read, the previous row is no longer         available.  To read that row again, you would have to create a new         instance of the SqlDataReader and read through the data stream again.&lt;/p&gt;       &lt;p&gt;The typical method of reading from the data stream returned by the SqlDataReader         is to iterate through each row with a while loop.  The following code         shows how to accomplish this:&lt;/p&gt;       &lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;while&lt;/span&gt; (rdr.Read())&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// get the results of each column&lt;/span&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; contact = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["ContactName"];&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; company = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["CompanyName"];&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; city    = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["City"];&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// print out the results&lt;/span&gt;&lt;br /&gt;  Console.Write("{0,-25}", contact);&lt;br /&gt;  Console.Write("{0,-20}", city);&lt;br /&gt;  Console.Write("{0,-25}", company);&lt;br /&gt;  Console.WriteLine();&lt;br /&gt; }&lt;br /&gt;&lt;/pre&gt;       &lt;p&gt;Notice the call to &lt;em&gt;Read&lt;/em&gt; on the SqlDataReader, &lt;em&gt;rdr&lt;/em&gt;, in the &lt;em&gt;while&lt;/em&gt;        loop condition in the code above.  The return value of &lt;em&gt;Read&lt;/em&gt; is         type bool and returns true as long as there are more records to read.          After the last record in the data stream has been read, &lt;em&gt;Read&lt;/em&gt; returns         false.       &lt;/p&gt;       &lt;p&gt;In previous lessons, we extracted the first column from the row by using the         SqlDataReader indexer, i.e. &lt;em&gt;rdr[0]&lt;/em&gt;.  You can extract each column         of the row with a numeric indexer like this, but it isn't very readable.          The example above uses a string indexer, where the string is the column name         from the SQL query (the table column name if you used an asterisk, *.          String indexers are much more readable, making the code easier to maintain.&lt;/p&gt;       &lt;p&gt;Regardless of the type of the indexer parameter, a SqlDataReader indexer will         return type object.  This is why the example above casts results to a         string.  Once the values are extracted, you can do whatever you want with         them, such as printing them to output with Console type methods.&lt;/p&gt;       &lt;h4&gt;Finishing Up&lt;/h4&gt;       &lt;p&gt;        Always remember to close your SqlDataReader, just like you need to close the         SqlConnection.  Wrap the data access code in a try block and put the close         operation in the finally block, like this:        &lt;/p&gt;&lt;pre&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;try&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// data access code&lt;/span&gt;&lt;br /&gt; }&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;finally&lt;/span&gt;&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. close the reader&lt;/span&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (rdr != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;  {&lt;br /&gt;   rdr.Close();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// close the connection too&lt;/span&gt;&lt;br /&gt; } &lt;br /&gt;&lt;/pre&gt;       &lt;p&gt;        The code above checks the SqlDataReader to make sure it isn't null.  After         the code knows that a good instance of the SqlDataReader exists, it can         close it.  Listing 1 shows the code for the previous sections in its         entirety.&lt;/p&gt;       &lt;h5&gt;Listing 1: Using the SqlDataReader&lt;/h5&gt;       &lt;pre&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;br /&gt;&lt;br /&gt;&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;namespace&lt;/span&gt; Lesson04&lt;br /&gt;{&lt;br /&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;class&lt;/span&gt; ReaderDemo&lt;br /&gt; {&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;static&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; Main()&lt;br /&gt;  {&lt;br /&gt;   ReaderDemo rd = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; ReaderDemo();&lt;br /&gt;   rd.SimpleRead();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;public&lt;/span&gt; &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;void&lt;/span&gt; SimpleRead()&lt;br /&gt;  {&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// declare the SqlDataReader, which is used in&lt;/span&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// both the try block and the finally block&lt;/span&gt;&lt;br /&gt;   SqlDataReader rdr = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// create a connection object&lt;/span&gt;&lt;br /&gt;   SqlConnection conn = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlConnection(&lt;br /&gt;"Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI");&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// create a command object&lt;/span&gt;&lt;br /&gt;   SqlCommand cmd  = &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;new&lt;/span&gt; SqlCommand(&lt;br /&gt;    "select * from Customers", conn);&lt;br /&gt;&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;try&lt;/span&gt;&lt;br /&gt;   {&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// open the connection&lt;/span&gt;&lt;br /&gt;    conn.Open();&lt;br /&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 1.  get an instance of the SqlDataReader&lt;/span&gt;&lt;br /&gt;    rdr = cmd.ExecuteReader();&lt;br /&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// print a set of column headers&lt;/span&gt;&lt;br /&gt;    Console.WriteLine(&lt;br /&gt;"Contact Name             City                Company Name");&lt;br /&gt;    Console.WriteLine(&lt;br /&gt;"------------             ------------        ------------");&lt;br /&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 2.  print necessary columns of each record&lt;/span&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;while&lt;/span&gt; (rdr.Read())&lt;br /&gt;    {&lt;br /&gt;     &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// get the results of each column&lt;/span&gt;&lt;br /&gt;     &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; contact = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["ContactName"];&lt;br /&gt;     &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; company = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["CompanyName"];&lt;br /&gt;     &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt; city    = (&lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;string&lt;/span&gt;)rdr["City"];&lt;br /&gt;&lt;br /&gt;     &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// print out the results&lt;/span&gt;&lt;br /&gt;     Console.Write("{0,-25}", contact);&lt;br /&gt;     Console.Write("{0,-20}", city);&lt;br /&gt;     Console.Write("{0,-25}", company);&lt;br /&gt;     Console.WriteLine();&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;   &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;finally&lt;/span&gt;&lt;br /&gt;   {&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// 3. close the reader&lt;/span&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (rdr != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;    {&lt;br /&gt;     rdr.Close();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:green;"&gt;// close the connection&lt;/span&gt;&lt;br /&gt;    &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;if&lt;/span&gt; (conn != &lt;span family="Microsoft Sans Serif"  style="color:blue;"&gt;null&lt;/span&gt;)&lt;br /&gt;    {&lt;br /&gt;     conn.Close();&lt;br /&gt;    }&lt;br /&gt;   } &lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;       &lt;h4&gt;Summary&lt;/h4&gt;       &lt;p&gt;        SqlDataReader objects allow you to read data in a fast forward-only         manner.  You obtain data by reading each row from the data         stream.  Call the Close method of the SqlDataReader to ensure there         are not any resource leaks. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-7204686952081238694?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/7204686952081238694/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=7204686952081238694' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7204686952081238694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/7204686952081238694'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/lesson-04-reading-data-with.html' title='Lesson 04: Reading Data with the SqlDataReader'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-2937062227460099878</id><published>2008-08-13T05:59:00.000-07:00</published><updated>2008-08-13T06:03:55.741-07:00</updated><title type='text'>Lesson 03: The SqlCommand Object</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;       &lt;p&gt;This lesson describes the SqlCommand object and how you use it to interact with         a data base.  Here are the objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Know what a command object is.        &lt;/li&gt;&lt;li&gt;        Learn how to use the ExecuteReader method to query data.        &lt;/li&gt;&lt;li&gt;        Learn how to use the ExecuteNonQuery method to insert and delete data.        &lt;/li&gt;&lt;li&gt;         Learn how to use the ExecuteScalar method to return a single value.&lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;A SqlCommand object allows you to specify what type of interaction you want to         perform with a data base.  For example, you can do select, insert, modify,         and delete commands on rows of data in a data base table.  The SqlCommand         object can be used to support disconnected data management scenarios, but         in this lesson we will only use the SqlCommand object alone.  A later         lesson on the SqlDataAdapter will explain how to implement an application that         uses disconnected data.  This lesson will also show you how to retrieve a         single value from a data base, such as the number of records in a table.&lt;/p&gt;       &lt;h4&gt;Creating a SqlCommand Object&lt;/h4&gt;       &lt;p&gt;Similar to other C# objects, you instantiate a SqlCommand object via the new         instance declaration, as follows:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;    SqlCommand cmd = new SqlCommand("select          CategoryName from Categories", conn);&lt;/span&gt;&lt;/p&gt;       &lt;p&gt;The line above is typical for instantiating a SqlCommand object.  It takes         a string parameter that holds the command you want to execute and a reference         to a SqlConnection object.  SqlCommand has a few overloads, which you will         see in the examples of this tutorial.&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;             &lt;/span&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;Querying Data&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;      &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;        When using a SQL select command, you retrieve a data set for          viewing.  To accomplish this with a SqlCommand object, you would use          the ExecuteReader method, which returns a SqlDataReader object.  We'll          discuss the SqlDataReader in a future lesson.  The example below shows how          to use the SqlCommand object to obtain a SqlDataReader object:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command with a query          and connection&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;        SqlCommand cmd = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt;&lt;span style="font-size:85%;"&gt;         SqlCommand("select CategoryName from Categories", conn);&lt;br /&gt;        &lt;br /&gt;       &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2. Call Execute reader to get query          results&lt;br /&gt;       &lt;/span&gt;&lt;span style="font-size:85%;"&gt;SqlDataReader rdr = cmd.ExecuteReader();&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;In the example above, we instantiate a SqlCommand object, passing the command          string and connection object to the constructor.  Then we obtain a          SqlDataReader object by calling the ExecuteReader method of the SqlCommand          object, cmd.         &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;This code is part of the ReadData method of Listing 1 in the Putting it All          Together section later in this lesson.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Inserting Data&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;                  To insert data into a data base, use the ExecuteNonQuery method of the          SqlCommand object.  The following code shows how to insert data into a          data base table:         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// prepare command string&lt;br /&gt;           &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt;&lt;span style="font-size:85%;"&gt; insertString            = @"&lt;br /&gt;               insert into Categories&lt;br /&gt;               (CategoryName, Description)&lt;br /&gt;               values ('Miscellaneous', 'Whatever doesn''t fit            elsewhere')";&lt;br /&gt;          &lt;br /&gt;           &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command            with a query and connection&lt;br /&gt;           &lt;/span&gt;&lt;span style="font-size:85%;"&gt;SqlCommand cmd = &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;           new&lt;/span&gt;&lt;span style="font-size:85%;"&gt; SqlCommand(insertString, conn);&lt;br /&gt;          &lt;br /&gt;           &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2. Call ExecuteNonQuery to send            command&lt;br /&gt;           &lt;/span&gt;&lt;span style="font-size:85%;"&gt;cmd.ExecuteNonQuery();&lt;/span&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;        The SqlCommand instantiation is just a little different from what you've seen          before, but it is basically the same.  Instead of a literal string as the          first parameter of the SqlCommand constructor, we are using a variable,          insertString.  The insertString variable is declared just above the          SqlCommand declaration.          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;        Notice the two apostrophes ('') in the insertString text for the word          "doesn''t".  This is how you escape the apostrophe to get the string to          populate column properly.          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;        Another observation to make about the insert command is that we explicitly          specified the columns CategoryName and Description.  The Categories table          has a primary key field named CategoryID.  We left this out of the list          because SQL Server will add this field itself.  trying to add a value to a          primary key field, such as CategoryID, will generate an exception.         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;        To execute this command, we simply call the ExecuteNonQuery method on the          SqlCommand instance, cmd.         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;This code is part of the Insertdata method of Listing 1 in the Putting it All           Together section later in this lesson.          &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Updating Data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;                      The ExecuteNonQuery method is also used for updating data.  The following            code shows how to update data:           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// prepare command string&lt;br /&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt; updateString = @"&lt;br /&gt;                 update Categories&lt;br /&gt;                 set CategoryName = 'Other'&lt;br /&gt;                 where CategoryName = 'Miscellaneous'";&lt;br /&gt;             &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;              // 1. Instantiate a new command with command text only&lt;br /&gt;              &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand(updateString);&lt;br /&gt;             &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;              // 2. Set the Connection property&lt;br /&gt;              &lt;/span&gt;cmd.Connection = conn;&lt;br /&gt;             &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;              // 3. Call ExecuteNonQuery to send command&lt;br /&gt;              &lt;/span&gt;cmd.ExecuteNonQuery();&lt;/span&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;          Again, we put the SQL command into a string variable, but this time we used a            different SqlCommand constructor that takes only the command.  In step 2,            we assign the SqlConnection object, conn, to the Connection property of the            SqlCommand object, cmd.            &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;          This could have been done with the same constructor used for the insert            command, with two parameters.  It demonstrates that you can change the            connection object assigned to a command at any time.           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;          The ExecuteNonQuery method performs the update command.           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;This code is part of the UpdateData method of Listing 1 in the Putting it All             Together section later in this lesson.            &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Deleting Data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;           &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;                          You can also delete data using the ExecuteNonQuery method.  The following              example shows how to delete a record from a data base with the ExecuteNonQuery              method:             &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// prepare command string&lt;br /&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;string&lt;/span&gt; deleteString = @"&lt;br /&gt;                   delete from Categories&lt;br /&gt;                   where CategoryName = 'Other'";&lt;br /&gt;               &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;                // 1. Instantiate a new command&lt;br /&gt;                &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand();&lt;br /&gt;               &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;                // 2. Set the CommandText property&lt;br /&gt;                &lt;/span&gt;cmd.CommandText = deleteString;&lt;br /&gt;               &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;                // 3. Set the Connection property&lt;br /&gt;                &lt;/span&gt;cmd.Connection = conn;&lt;br /&gt;               &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;                // 4. Call ExecuteNonQuery to send command&lt;br /&gt;                &lt;/span&gt;cmd.ExecuteNonQuery();&lt;/span&gt;             &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;            This example uses the SqlCommand constructor with no parameters.  Instead,              it explicity sets the CommandText and Connection properties of the SqlCommand              object, cmd.              &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;            We could have also used either of the two previous SqlCommand constructor              overloads, used for the insert or update command, with the same result.               This demonstrates that you can change both the command text and the connection              object at any time.              &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;            The ExecuteNonQuery method call sends the command to the data base.             &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;This code is part of the DeleteData method of Listing 1 in the Putting it All               Together section later in this lesson.              &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Getting Single values&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;             &lt;span style="font-family:trebuchet MS;"&gt;               &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;              Sometimes all you need from a data base is a single value, which could be a                count, sum, average, or other aggregated value from a data set.                 Performing an ExecuteReader and calculating the result in your code is not the                most efficient way to do this.  The best choice is to let the data base                perform the work and return just the single value you need.  The following                example shows how to do this with the ExecuteScalar method:               &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command&lt;br /&gt;                  &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand("select                  count(*) from Categories", conn);&lt;br /&gt;                 &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;                  // 2. Call ExecuteNonQuery to send command&lt;br /&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;int &lt;/span&gt;count = (&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;)cmd.ExecuteScalar();&lt;/span&gt;               &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;              The query in the SqlCommand constructor obtains the count of all records from                the Categories table.  This query will only return a single value.                 The ExecuteScalar method in step 2 returns this value.  Since the return                type of ExecuteScalar is type object, we use a cast operator to convert the                value to int.               &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;This code is part of the GetNumberOfRecords method of Listing 1 in the Putting                 it All Together section later in this lesson.                &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Putting it All Together&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;               &lt;span style="font-family:trebuchet MS;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;                For simplicity, we showed snippets of code in previous sections to demonstrate                  the applicable techniques&lt;/span&gt;              &lt;/span&gt;            &lt;/span&gt;          &lt;/span&gt;        &lt;/span&gt;.  It is also useful to have an entire code listing to see how this         code is used in a working program.  Listing 1 shows all of the code used         in this example, along with a driver in the Main method to produce formatted         output.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;      &lt;/span&gt;&lt;/span&gt;&lt;h5&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Listing 1.  SqlConnection Demo&lt;/span&gt;&lt;/span&gt;&lt;/h5&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;      &lt;span style="font-family:trebuchet MS;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; using&lt;/span&gt;&lt;span style="font-size:85%;"&gt;            System;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.Data;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.Data.SqlClient;&lt;br /&gt;           &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;           &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;&lt;summary&gt;&lt;br /&gt;            ///&lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; Demonstrates how to work with             SqlCommand objects&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;           &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;class&lt;/span&gt;&lt;span style="font-size:85%;"&gt; SqlCommandDemo&lt;br /&gt;            {&lt;br /&gt;                SqlConnection conn;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;            public&lt;/span&gt;&lt;span style="font-size:85%;"&gt; SqlCommandDemo()&lt;br /&gt;                {&lt;br /&gt;                    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Instantiate the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           conn = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlConnection(&lt;br /&gt;                      "Data            Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI");&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;    &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // call methods that demo SqlCommand capabilities&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;            static&lt;/span&gt; &lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt; Main()&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;SqlCommandDemo            scd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommandDemo();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("Categories            Before Insert");&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("------------------------");&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;// use ExecuteReader method&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           scd.ReadData();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;// use ExecuteNonQuery method for Insert&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           scd.Insertdata();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("Categories            After Insert");&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("------------------------------");&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;/span&gt;scd.ReadData();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // use ExecuteNonQuery method for Update&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           scd.UpdateData();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("Categories            After Update");&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("------------------------------");&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;scd.ReadData();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // use ExecuteNonQuery method for Delete&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           scd.DeleteData();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("Categories            After Delete");&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("------------------------------");&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;scd.ReadData();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // use ExecuteScalar method&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt; numberOfRecords =            scd.GetNumberOfRecords();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;/span&gt;Console.WriteLine("Number            of Records: {0}", numberOfRecords);&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;    &lt;/span&gt;}&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;summary&gt;&lt;br /&gt;            &lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; use ExecuteReader method&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    public&lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt; ReadData()&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;"&gt;             &lt;/span&gt;SqlDataReader rdr = &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;;&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;try&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;&lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;        &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// Open the             connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;conn.Open();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1.             Instantiate a new command with a query and connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;            new&lt;/span&gt; SqlCommand("select CategoryName from Categories", conn);&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2.             Call Execute reader to get query results&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;rdr = cmd.ExecuteReader();&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;//             print the CategoryName of each record&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;while&lt;/span&gt;           (rdr.Read())&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;     &lt;/span&gt;Console.WriteLine(rdr[0]);&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;  &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;              &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;  &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;finally&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;  &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;      &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// close the reader&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;      &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;if&lt;/span&gt;           (rdr != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;      &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;      &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;      &lt;/span&gt;rdr.Close();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;     &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;   &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;     &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Close the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;"&gt;     &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;            if&lt;/span&gt; (conn != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;     &lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;   &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;     &lt;/span&gt;conn.Close();&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;       &lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt; &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;"&gt;   &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;             &lt;/span&gt;}           &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;summary&gt;&lt;br /&gt;            &lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; use ExecuteNonQuery method for Insert&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;"&gt;            &lt;span style="font-size:85%;color:#808080;"&gt;///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;            &lt;span style="font-size:85%;color:#808080;"&gt;&lt;br /&gt;             &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;public&lt;/span&gt; &lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt;           Insertdata()&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        try&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Open the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;conn.Open();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// prepare command string&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                string&lt;/span&gt; insertString = @"&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;insert into            Categories&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;(CategoryName, Description)&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;values ('Miscellaneous', 'Whatever doesn''t fit            elsewhere')";&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command with a query             and connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand(insertString,            conn);&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;             &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2. Call ExecuteNonQuery to send command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.ExecuteNonQuery();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  finally&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Close the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;      if&lt;/span&gt;           (conn != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;             &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;conn.Close();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;               &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;     &lt;/span&gt;           }&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;}           &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#808080;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;summary&gt;&lt;br /&gt;            &lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; use ExecuteNonQuery method for Update&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    public&lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt; UpdateData()&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  try&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Open the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;conn.Open();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // prepare command string&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    string&lt;/span&gt; updateString            = @"&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;update Categories&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;set CategoryName = 'Other'&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;where CategoryName = 'Miscellaneous'";&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command with command             text only&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand(updateString);&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // 2. Set the Connection property&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.Connection = conn;&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;     &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // 3. Call ExecuteNonQuery to send command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.ExecuteNonQuery();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  finally&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Close the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                if&lt;/span&gt; (conn != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;conn.Close();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;}           &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#808080;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;summary&gt;&lt;br /&gt;            &lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; use ExecuteNonQuery method for Delete&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    public&lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;void&lt;/span&gt; DeleteData()&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        try&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Open the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;conn.Open();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// prepare command string&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                string&lt;/span&gt; deleteString = @"&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;delete from            Categories&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;where CategoryName = 'Other'";&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 1. Instantiate a new command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;SqlCommand cmd            = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2. Set the CommandText property&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.CommandText = deleteString;&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 3. Set the Connection property&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.Connection = conn;&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 4. Call ExecuteNonQuery to send command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;cmd.ExecuteNonQuery();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;                    finally&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Close the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                if&lt;/span&gt; (conn != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;conn.Close();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;}           &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;          &lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;summary&gt;&lt;br /&gt;            &lt;/summary&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; use ExecuteScalar method&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            ///&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;            &lt;returns&gt;&lt;/returns&gt;&lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;number of records&lt;/span&gt;&lt;span style="font-size:85%;color:#808080;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    public&lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt; GetNumberOfRecords()&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   int&lt;/span&gt; count = -1;&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   try&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                   &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;        &lt;/span&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Open the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;conn.Open();&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // 1. Instantiate a new command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;SqlCommand cmd = &lt;span style="font-size:85%;color:#0000ff;"&gt;new&lt;/span&gt; SqlCommand("select            count(*) from Categories", conn);&lt;br /&gt;           &lt;span style="font-size:85%;color:#008000;"&gt;&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;// 2. Call ExecuteNonQuery to send command&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;              &lt;/span&gt;count = (&lt;span style="font-size:85%;color:#0000ff;"&gt;int&lt;/span&gt;)cmd.ExecuteScalar();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;                    finally&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;   &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#008000;"&gt;            // Close the connection&lt;br /&gt;            &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                if&lt;/span&gt; (conn != &lt;span style="font-size:85%;color:#0000ff;"&gt;null&lt;/span&gt;)&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;  &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;{&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                &lt;/span&gt;conn.Close();&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt; &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;                 &lt;/span&gt;}&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;                    return&lt;/span&gt; count;&lt;br /&gt;           &lt;span style="font-size:85%;color:#0000ff;"&gt;    &lt;/span&gt;}&lt;br /&gt;           }&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;In Listing 1, the SqlConnection object is instantiated in the SqlCommandDemo          structure.  This is okay because the object itself will be cleaned up when          the CLR garbage collector executes.  What is important is that we close          the connection when we are done using it.  This program opens the          connection in a try block and closes it in a finally block in each method.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;The ReadData method displays the contents of the CategoryName column of the          Categories table.  We use it several times in the Main method to show the          current status of the Categories table, which changes after each of the insert,          update, and delete commands.  Because of this, it is convenient to reuse          to show you the effects after each method call.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;      &lt;/span&gt;       &lt;/span&gt;&lt;/span&gt;&lt;h4&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;Summary&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt; &lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;      &lt;span style="font-family:trebuchet MS;"&gt;        &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="font-family:trebuchet MS;"&gt;A SqlCommand object allows you to query and send commands to a data base.           It has methods that are specialized for different commands.  The          ExecuteReader method returns a SqlDataReader object for viewing the results of          a select query.  For insert, update, and delete SQL commands, you use the          ExecuteNonQuery method.  If you only need a single aggregate value from a          query, the ExecuteScalar is the best choice.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6211377363852492047-2937062227460099878?l=fatalerrordoom.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fatalerrordoom.blogspot.com/feeds/2937062227460099878/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6211377363852492047&amp;postID=2937062227460099878' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2937062227460099878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6211377363852492047/posts/default/2937062227460099878'/><link rel='alternate' type='text/html' href='http://fatalerrordoom.blogspot.com/2008/08/lesson-03-sqlcommand-object.html' title='Lesson 03: The SqlCommand Object'/><author><name>entropija</name><uri>http://www.blogger.com/profile/17406959509166416818</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_sX-WxN35S4Y/R5VTjD-h3fI/AAAAAAAAAWc/axsyDfYjvVY/S220/Smrcika_Smrc.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6211377363852492047.post-1860954484314983385</id><published>2008-08-13T05:01:00.000-07:00</published><updated>2008-08-13T05:03:36.113-07:00</updated><title type='text'>Lesson 02: The SqlConnection Object</title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This lesson describes the SqlConnection object and how to connect to a data         base.  Here are the objectives of this lesson:&lt;/p&gt;       &lt;ul&gt;&lt;li&gt;        Know what connection objects are used for.        &lt;/li&gt;&lt;li&gt;        Learn how to instantiate a SqlConnection object.        &lt;/li&gt;&lt;li&gt;        Understand how the SqlConnection object is used in applications.        &lt;/li&gt;&lt;li&gt;         Comprehend the importance of effective connection lifetime management.&lt;/li&gt;&lt;/ul&gt;       &lt;h4&gt;Introduction&lt;/h4&gt;       &lt;p&gt;The first thing you will need to do when interacting with a data         base is to create a connection.  The connection tells the rest         of the ADO.NET code which data base it is talking to.  It manages all of         the low level logic associated with the specific data base protocols.          This makes it easy for you because the most work you will have to do in code is         instantiate the connection object, open the connection, and then close the         connection when you are done.  Because of the way that other classes in         ADO.NET are built, sometimes you don't even have to do that much work.&lt;/p&gt;       &lt;p&gt;        Although working with connections is very easy in ADO.NET, you need to         understand connections in order to make the right decisions when coding your         data access routines.  Understand that a connection is a valuable         resource.  Sure, if you have a stand-alone client application that works         on a single data base one one machine, you probably don't care about         this.  However, think about an enterprise application where hundreds of         users throughout a company are accessing the same data base.  Each         connection represents overhead and there can only be a finite amount of         them.  To look at a more extreme case, consider a Web site that is being         hit with hundreds of thousands of hits a day.  Applications that grab         connections and don't let them go can have seriously negative impacts on         performance and scalability.&lt;/p&gt;       &lt;h4&gt;Creating a SqlConnection Object&lt;/h4&gt;       &lt;p&gt;A SqlConnection is an object, just like any other C# object.  Most of the         time, you just declare and instantiate the SqlConnection all at the same time,         as shown below:&lt;/p&gt;       &lt;p&gt;&lt;span style="font-size:85%;"&gt;SqlConnection conn = new SqlConnection(&lt;br /&gt;     &lt;/span&gt;&lt;span style="font-size:85%;"&gt;    "Data Source=(local);Initial          Catalog=Northwind;Integrated Security=SSPI"); &lt;/span&gt;       &lt;/p&gt;       &lt;p&gt;The SqlConnection object instantiated above uses a constructor with a single         argument of type string.  This argument is called a connection         string.  table 1 describes common parts of a connection string.&lt;/p&gt;       &lt;h6&gt;&lt;span style="font-size:85%;"&gt;table 1.  ADO.NET Connection Strings contain certain key/value          pairs for specifying how to make a data base connection.  They include the          location, name of the database, and security credentials.&lt;/span&gt;&lt;/h6&gt;       &lt;table id="table3" width="100%" border="1" cellpadding="0" cellspacing="0"&gt;        &lt;tbody&gt;&lt;tr&gt;         &lt;th&gt;          Connection String Parameter Name&lt;/th&gt;         &lt;th&gt;          Description&lt;/th&gt;&lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;          Data Source&lt;/td&gt;         &lt;td&gt;Identifies the server.  Could be local machine, machine domain name, or IP           Address.&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;          Initial Catalog&lt;/td&gt;         &lt;td&gt;Data base name.&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;          Integrated Security&lt;/td&gt;         &lt;td&gt;Set to SSPI to make connection with user's Windows login&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;          User ID&lt;/td&gt;         &lt;td&gt;Name of user configured in SQL Server.&lt;/td&gt;        &lt;/tr&gt;        &lt;tr&gt;         &lt;td&gt;          Password&lt;/td&gt;         &lt;td&gt;          Password matching SQL Server User ID.&lt;/td&gt;        &lt;/tr&gt;       &lt;/tbody&gt;&lt;/table&gt;       &lt;span style="font-family:trebuchet MS;"&gt;        &lt;p&gt;         Integrated Security is secure when you are on a single machine doing          development.  However, you will often want to specify security based on a          SQL Server User ID with permissions set specifically for the application you          are using.  The following shows a connection string, using the User ID and          Password parameters:&lt;/p&gt;        &lt;p&gt;&lt;span style="font-size:85%;"&gt;SqlConnection conn = new SqlConnection(&lt;br /&gt;      &lt;/span&gt;&lt;span style="font-size:85%;"&gt;"Data Source=DatabaseServer;Initial Catalog=Northwind;User           ID=YourUserID;Password=YourPassword");&lt;/span&gt;&lt;/p&gt;        &lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-size:100%;"&gt;Notice how the Data Source is set to DatabaseServer to            indicate that you can identify a data base located on a different machine, over            a LAN, or over the Internet.  Additionally, User ID and Password replace            the Integrated Security parameter.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;       &lt;/span&gt;       &lt;h4&gt;Using a SqlConnection&lt;/h4&gt;       &lt;span style="font-family:trebuchet MS;"&gt;        &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;The purpose of creating a SqlConnection object is so you can enable other          ADO.NET code to work with a data base.  Other ADO.NET objects, such as a          SqlCommand and a SqlDataAdapter take a connection object as a parameter.           The sequence of operations occurring in the lifetime of a SqlConnection are as          follows:&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;ol&gt;&lt;span style="font-family:trebuchet MS;"&gt;        &lt;li&gt;         Instantiate the SqlConnection.         &lt;/li&gt;&lt;li&gt;         Open the connection.         &lt;/li&gt;&lt;li&gt;         Pass the connection to other ADO.NET objects.         &lt;/li&gt;&lt;li&gt;         Perform data base operations with the other ADO.NET objects.         &lt;/li&gt;&lt;li&gt;          Close the connection.&lt;/li&gt;&lt;/span&gt;&lt;/ol&gt; &lt;span style="font-family:trebuchet MS;"&gt;       &lt;/span&gt;&lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;We've already seen how to instantiate a SqlConnection.  The rest of the          steps, opening, passing, using, and closing are shown in Listing 1.&lt;/span&gt;&lt;/p&gt; &lt;span style="font-family:trebuchet MS;"&gt;      &lt;/span&gt;       &lt;h5&gt;Listing 1.  Using a SqlConnection&lt;/h5&gt;       &lt;p&gt;&lt;span style="font-family:trebuchet MS;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;                  using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System;&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.Data;&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;using&lt;/span&gt;&lt;span style="font-size:85%;"&gt; System.Data.SqlClient;&lt;br /&gt;    &lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);font-size:85%;" &gt;///&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt; &lt;/span&gt;        &lt;span style="color: rgb(128, 128, 128);font-size:85%;" &gt;&lt;summary&gt;&lt;br /&gt;      ///&lt;/summary&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt; Demonstrates how to work with          SqlConnection objects&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(128, 128, 128);font-size:85%;" &gt;///&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt; &lt;/span&gt;        &lt;span style="color: rgb(128, 128, 128);font-size:85%;" &gt;&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;class&lt;/span&gt;&lt;span style="font-size:85%;"&gt; SqlConnectionDemo&lt;br /&gt;      {&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    static&lt;/span&gt;&lt;span style="font-size:85%;"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;void&lt;/span&gt;&lt;span style="font-size:85%;"&gt; Main()&lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;{&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;// 1. Instantiate the connection&lt;br /&gt;     &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;            &lt;/span&gt;SqlConnection conn = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;new&lt;/span&gt;&lt;span style="font-size:85%;"&gt;         SqlConnection(&lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;"Data Source=(local);Initial          Catalog=Northwind;Integrated Security=SSPI");&lt;br /&gt;    &lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;            &lt;/span&gt;SqlDataReader rdr = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;null&lt;/span&gt;&lt;span style="font-size:85%;"&gt;;&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;       &lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;            &lt;/span&gt;try&lt;br /&gt;     &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;{&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;              &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;// 2. Open the connection&lt;br /&gt;     &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;conn.Open();&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;       &lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;// 3. Pass the connection to a command object&lt;br /&gt;     &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;SqlCommand cmd = &lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;new&lt;/span&gt;&lt;span style="font-size:85%;"&gt;         SqlCommand("select * from Customers", conn);&lt;br /&gt;     &lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);font-size:85%;" &gt;       &lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;    &lt;/span&gt;    &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;             &lt;/span&gt;&lt;/span&gt;//&lt;br /&gt;      &lt;span style="color: rgb(0, 0, 255);font-size:85%;" &gt;&lt;span style="c
