<?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-917132487158712193</id><updated>2012-02-16T05:56:37.131-08:00</updated><category term='sharepoint'/><category term='event handlers'/><category term='document library receiving mails'/><category term='incoming mails'/><category term='cloud computing'/><category term='sharepoint in cloud'/><category term='Central administration'/><category term='itemupdate'/><category term='Errors'/><category term='search'/><category term='sharepoint 2010'/><category term='document libraries'/><category term='features'/><category term='event reciever'/><category term='cloud'/><category term='jquery typing search'/><category term='digital signature'/><category term='sharepoint 2007'/><title type='text'>SPTechyTalk's</title><subtitle type='html'>Sharepoint blog - by OMSian Geek - Freddy Khalaf</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sptechytalks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4817489315939883309</id><published>2011-07-04T14:11:00.001-07:00</published><updated>2011-07-04T14:11:29.423-07:00</updated><title type='text'>Thanks Jesus , I am a Microsoft Certified Technology Specialist - SharePoint® 2010, Application Development</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: center;"&gt;&lt;iframe frameborder="0" height="180px" scrolling="no" src="https://www.mcpvirtualbusinesscard.com/VBCServer/jrfreddiekhalaf/card" width="397px"&gt;&lt;/iframe&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/917132487158712193-4817489315939883309?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4817489315939883309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4817489315939883309'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2011/07/thanks-jesus-i-am-microsoft-certified.html' title='Thanks Jesus , I am a Microsoft Certified Technology Specialist - SharePoint® 2010, Application Development'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-6426831306244208234</id><published>2011-04-11T03:18:00.000-07:00</published><updated>2011-04-11T03:32:11.923-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Errors'/><category scheme='http://www.blogger.com/atom/ns#' term='Central administration'/><title type='text'>How to Install Microsoft Sharepoint 2010 Installation on Windows 7 ?!!! ( part two )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;while installing Microsoft Sharepoint 2010 , and running the Central administration wizard for the first time , i found two errors , but the fixes are much pretier and easier than i thought...&lt;br /&gt;&lt;br /&gt;the first error was :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;" Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;and its solution is to go to :&lt;/span&gt;&lt;span style="color: #3d85c6;"&gt; &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&amp;amp;displaylang=en"&gt;&lt;span style="background-color: white; color: #3d85c6;"&gt;http://www.microsoft.com/downloads/en/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&amp;amp;displaylang=en&lt;/span&gt;&lt;/a&gt;&lt;span style="background-color: white; color: #3d85c6;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;and download the windows identity foundation , and it will solve this error...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and the second error was : &lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;" Microsoft.SharePoint.Upgrade.SPUpgradeException: Failed to call GetTypes on assembly Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c. Could not load file or assembly 'System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.&amp;nbsp; "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;span style="color: black;"&gt;and its solution is to download the following MsChart from this link : &lt;/span&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkID=122517"&gt;http://go.microsoft.com/fwlink/?LinkID=122517&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="background-color: white; color: black;"&gt;enjoyyyy , sharepoint 2010 installation , everything will go smooth after solving these two issues&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-6426831306244208234?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/6426831306244208234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/6426831306244208234'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2011/04/microsoft-sharepoint-2010-installation.html' title='How to Install Microsoft Sharepoint 2010 Installation on Windows 7 ?!!! ( part two )'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-3310267317554202823</id><published>2011-04-10T07:36:00.000-07:00</published><updated>2011-04-11T03:31:37.309-07:00</updated><title type='text'>How to install Microsoft Sharepoint 2010 on Windows 7 ?!!! ( part one )</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;dears , today i was installing Microsoft Sharepoint 2010 , on Windows 7 , when i was surfing the internet i found a very nice link to share with you , that helped me so much while installing the Sharepoint ...&lt;br /&gt;&lt;br /&gt;cause it gives some errors while starting to install the sharepoint directly without doing the steps mentioned in this link.&lt;br /&gt;&lt;br /&gt;this is the link : &lt;a href="http://msdn.microsoft.com/en-us/library/ee554869.aspx"&gt;http://msdn.microsoft.com/en-us/library/ee554869.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;enjoy it :) &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-3310267317554202823?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3310267317554202823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3310267317554202823'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2011/04/how-to-install-microsoft-sharepoint.html' title='How to install Microsoft Sharepoint 2010 on Windows 7 ?!!! ( part one )'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-1035792424125392876</id><published>2011-03-29T00:04:00.001-07:00</published><updated>2011-03-29T00:04:11.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='incoming mails'/><category scheme='http://www.blogger.com/atom/ns#' term='document library receiving mails'/><category scheme='http://www.blogger.com/atom/ns#' term='document libraries'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint 2007'/><title type='text'>Setup your document library to receive mails ?!!</title><content type='html'>Dears , I was working in a project on a module that requires to make a document library in sharepoint 2007 site that recieves mails, i faced a problem that I made everything right but it didn't work. &lt;br/&gt; I found this very nice article that talks about How to setup your document library to receive mails and how to test it ?!!!  &lt;br/&gt; You can find the answer at the following url : http://www.dzeee.net/sharepoint/post/2010/01/17/Incoming-email-not-working.aspx &lt;br/&gt;  &lt;br/&gt; Enjooooy it ;)&lt;div style='clear: both; text-align: center; font-size: xx-small;'&gt;Published with Blogger-droid v1.6.8&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-1035792424125392876?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/1035792424125392876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/1035792424125392876'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2011/03/setup-your-document-library-to-receive.html' title='Setup your document library to receive mails ?!!'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-2865866431129361505</id><published>2011-03-28T23:04:00.001-07:00</published><updated>2011-03-28T23:48:07.089-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='cloud'/><category scheme='http://www.blogger.com/atom/ns#' term='cloud computing'/><category scheme='http://www.blogger.com/atom/ns#' term='sharepoint in cloud'/><title type='text'>sharepoint 2010 in cloud ?!!!</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Dears , I know that I didn't write for a very long time , but I am back and will write a lot of posts again , may Jesus helps me with this ... &lt;br /&gt;&lt;br /&gt;today I found an article that I was searching for it since the release of sharepoint 2010.  Its talking about hosting sharepoint in cloud , you can find more details at  &lt;br /&gt;http://msdn.microsoft.com/en-us/magazine/gg650656.aspx &lt;br /&gt;&lt;br /&gt;enjoy it ... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="clear: both; font-size: xx-small; text-align: center;"&gt;Published with Blogger-droid v1.6.8&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/917132487158712193-2865866431129361505?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/2865866431129361505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/2865866431129361505'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2011/03/sharepoint-2010-in-cloud.html' title='sharepoint 2010 in cloud ?!!!'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-8164910636074376804</id><published>2010-09-26T10:13:00.001-07:00</published><updated>2010-09-26T10:13:17.234-07:00</updated><title type='text'>My First session ever :) - TG</title><content type='html'>Today , it was my first session ever , it was talking about Sharepoint Customization ( part one ) , it was nice thanks God , and the people were also nice , it was held at Linkdev ( OTVentures ) , it was really nice Thanks Jesus ;)&lt;br /&gt;&lt;br /&gt;i will try to write all the session parts as post soon , God bless :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-8164910636074376804?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/8164910636074376804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/8164910636074376804'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/09/my-first-session-ever-tg.html' title='My First session ever :) - TG'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-7970159538379808921</id><published>2010-08-24T13:46:00.000-07:00</published><updated>2010-08-24T13:46:46.460-07:00</updated><title type='text'>Map arabic urls to Sharepoint site !!!</title><content type='html'>dears , long time not to post any new thing about sharepoint , sorry for that ...&lt;br /&gt;&lt;br /&gt;Today we will write how to map arabic urls to your Sharepoint site ?&amp;nbsp; , its very easy and we will see its steps .&lt;br /&gt;&lt;br /&gt;you will need to make the following steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Open the IIS and right click on your site , edit your bindings , add a new binding , then write the arabic url you want to map for ex: &lt;a href="http://العنوان.الدومين/"&gt;http://العنوان.الدومين/&lt;/a&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;Write this url in your ie and you will get the bunny code that converts this arabic url into english letters and the bunny code of our url is :&amp;nbsp;&amp;nbsp;xn--mgba7c0blbm.xn--mgbq6dffkp &lt;span style="color: red;"&gt;( put http before it , write it as a url )&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Take the bunng code , go to the central administration , Operations, Alternate access mapping , choose your site that you need to add the arabic url for it&amp;nbsp; , add internal urls , then put the bunny code you got , and choose the zone to be extranet ..&lt;/li&gt;&lt;/ol&gt;by this very easy 3 steps you will map your sharepoint site to an arabic url ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-7970159538379808921?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7970159538379808921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7970159538379808921'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/08/map-arabic-urls-to-sharepoint-site.html' title='Map arabic urls to Sharepoint site !!!'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-8955653165658275769</id><published>2010-05-14T00:12:00.003-07:00</published><updated>2010-05-14T00:12:32.216-07:00</updated><title type='text'>Sharepoint 2010 --&gt; developers center</title><content type='html'>Sharepoint 2010 developer's center , i think its the best place to read about sharepoint 2010 development , sdk , and all the new feature in sharepoint 2010 ...&lt;br /&gt;&lt;br /&gt;Sharepoint developer's center @ &lt;a href="http://msdn.microsoft.com/en-us/sharepoint/default.aspx"&gt;http://msdn.microsoft.com/en-us/sharepoint/default.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-8955653165658275769?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/8955653165658275769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/8955653165658275769'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/05/sharepoint-2010-developers-center.html' title='Sharepoint 2010 --&gt; developers center'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4755827833121526132</id><published>2010-05-01T00:34:00.000-07:00</published><updated>2010-05-01T00:34:47.879-07:00</updated><title type='text'>SpTechyTalks celebrating one year of blogging :)</title><content type='html'>SpTechyTalks is celebrating one year of blogging Thanks Jesus, whohooooooo , Thanks very much my dear readers , and i will share with you some of the numbers you have achieved :) :&lt;br /&gt;&lt;br /&gt;1.&lt;b&gt; Total number of visits :&lt;/b&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;b style="color: red;"&gt;2554 visits.&lt;/b&gt;&lt;br /&gt;2. &lt;b&gt;Total number of page views :&lt;span style="color: red;"&gt; 4088 views.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;3. &lt;b&gt;Total number of hours surfing the blog :&lt;/b&gt; &lt;b style="color: red;"&gt;54 hours.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Just wanted to thank you all , and may Jesus bless the coming years ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4755827833121526132?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4755827833121526132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4755827833121526132'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/05/sptechytalks-celebrating-one-year-of.html' title='SpTechyTalks celebrating one year of blogging :)'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-3571967930806893975</id><published>2010-04-20T13:36:00.000-07:00</published><updated>2010-04-20T13:44:47.484-07:00</updated><title type='text'>Tagging Control in pictures :) ?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;dears i found that putting some images for the tagging control after finishing it...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left; width: 407px; height: 216px;" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_NAlRSaKxDlg/S81xWFp7GdI/AAAAAAAAAFs/VTXpuu4_mW8/s1600/Tagging+control+0.JPG" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img style="width: 295px; height: 154px;" src="http://1.bp.blogspot.com/_NAlRSaKxDlg/S81xWFp7GdI/AAAAAAAAAFs/VTXpuu4_mW8/s640/Tagging+control+0.JPG" wt="true" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Here we write the column name and fill in the list name property , which is the centralized tagging list...&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left; width: 407px; height: 215px;" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/S81xW7rIu_I/AAAAAAAAAFw/DbqHklW6GTw/s1600/Tagging+control+1.JPG" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img style="width: 340px; height: 138px;" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/S81xW7rIu_I/AAAAAAAAAFw/DbqHklW6GTw/s640/Tagging+control+1.JPG" wt="true" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Here we can see the tagging control in action , with auto complete done by the jquery plugin we have used and the tagging words are got from the centralized tagging list...&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left; width: 407px; height: 211px;" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_NAlRSaKxDlg/S81xXP5NE3I/AAAAAAAAAF0/NNYmeZOEWkM/s1600/Tagging+control+2.JPG" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img style="width: 315px; height: 120px;" src="http://3.bp.blogspot.com/_NAlRSaKxDlg/S81xXP5NE3I/AAAAAAAAAF0/NNYmeZOEWkM/s640/Tagging+control+2.JPG" wt="true" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;These are the values which the tagging control saves which is a guid that identifies this tagged item.&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;table class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left; width: 407px; height: 207px;" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_NAlRSaKxDlg/S81xXoRwdLI/AAAAAAAAAF4/VCuGsV6tKiU/s1600/Tagging+control+3JPG.JPG" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img style="width: 342px; height: 112px;" src="http://2.bp.blogspot.com/_NAlRSaKxDlg/S81xXoRwdLI/AAAAAAAAAF4/VCuGsV6tKiU/s640/Tagging+control+3JPG.JPG" wt="true" border="0" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;This is the centralized tagging list which saves our tags as Title and saves the list name which the tagged item comes from and also the item id to link both the items in the first previous list and opponent tag item saved in this centralized tagging list...&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;&lt;br /&gt;&lt;/td&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/917132487158712193-3571967930806893975?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3571967930806893975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3571967930806893975'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/04/tagging-control-in-pictures.html' title='Tagging Control in pictures :) ?'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_NAlRSaKxDlg/S81xWFp7GdI/AAAAAAAAAFs/VTXpuu4_mW8/s72-c/Tagging+control+0.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-3124305760152747236</id><published>2010-04-18T15:05:00.001-07:00</published><updated>2010-04-18T15:07:09.983-07:00</updated><title type='text'>Tagging control --&gt;Part 2 - The implementation of the tagging control ?</title><content type='html'>&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Calfrred%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Calfrred%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Calfrred%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac m:val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin m:val="0"&gt;    &lt;m:rmargin m:val="0"&gt;    &lt;m:defjc m:val="centerGroup"&gt;    &lt;m:wrapindent m:val="1440"&gt;    &lt;m:intlim m:val="subSup"&gt;    &lt;m:narylim m:val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;&lt;br /&gt;&lt;!--&lt;br /&gt; /* Font Definitions */&lt;br /&gt; @font-face&lt;br /&gt;	{font-family:"Cambria Math";&lt;br /&gt;	panose-1:2 4 5 3 5 4 6 3 2 4;&lt;br /&gt;	mso-font-charset:1;&lt;br /&gt;	mso-generic-font-family:roman;&lt;br /&gt;	mso-font-format:other;&lt;br /&gt;	mso-font-pitch:variable;&lt;br /&gt;	mso-font-signature:0 0 0 0 0 0;}&lt;br /&gt;@font-face&lt;br /&gt;	{font-family:Calibri;&lt;br /&gt;	panose-1:2 15 5 2 2 2 4 3 2 4;&lt;br /&gt;	mso-font-charset:0;&lt;br /&gt;	mso-generic-font-family:swiss;&lt;br /&gt;	mso-font-pitch:variable;&lt;br /&gt;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}&lt;br /&gt; /* Style Definitions */&lt;br /&gt; p.MsoNormal, li.MsoNormal, div.MsoNormal&lt;br /&gt;	{mso-style-unhide:no;&lt;br /&gt;	mso-style-qformat:yes;&lt;br /&gt;	mso-style-parent:"";&lt;br /&gt;	margin-top:0in;&lt;br /&gt;	margin-right:0in;&lt;br /&gt;	margin-bottom:10.0pt;&lt;br /&gt;	margin-left:0in;&lt;br /&gt;	line-height:115%;&lt;br /&gt;	mso-pagination:widow-orphan;&lt;br /&gt;	font-size:11.0pt;&lt;br /&gt;	font-family:"Calibri","sans-serif";&lt;br /&gt;	mso-ascii-font-family:Calibri;&lt;br /&gt;	mso-ascii-theme-font:minor-latin;&lt;br /&gt;	mso-fareast-font-family:Calibri;&lt;br /&gt;	mso-fareast-theme-font:minor-latin;&lt;br /&gt;	mso-hansi-font-family:Calibri;&lt;br /&gt;	mso-hansi-theme-font:minor-latin;&lt;br /&gt;	mso-bidi-font-family:Arial;&lt;br /&gt;	mso-bidi-theme-font:minor-bidi;}&lt;br /&gt;.MsoChpDefault&lt;br /&gt;	{mso-style-type:export-only;&lt;br /&gt;	mso-default-props:yes;&lt;br /&gt;	mso-ascii-font-family:Calibri;&lt;br /&gt;	mso-ascii-theme-font:minor-latin;&lt;br /&gt;	mso-fareast-font-family:Calibri;&lt;br /&gt;	mso-fareast-theme-font:minor-latin;&lt;br /&gt;	mso-hansi-font-family:Calibri;&lt;br /&gt;	mso-hansi-theme-font:minor-latin;&lt;br /&gt;	mso-bidi-font-family:Arial;&lt;br /&gt;	mso-bidi-theme-font:minor-bidi;}&lt;br /&gt;.MsoPapDefault&lt;br /&gt;	{mso-style-type:export-only;&lt;br /&gt;	margin-bottom:10.0pt;&lt;br /&gt;	line-height:115%;}&lt;br /&gt;@page Section1&lt;br /&gt;	{size:8.5in 11.0in;&lt;br /&gt;	margin:1.0in 1.25in 1.0in 1.25in;&lt;br /&gt;	mso-header-margin:.5in;&lt;br /&gt;	mso-footer-margin:.5in;&lt;br /&gt;	mso-paper-source:0;}&lt;br /&gt;div.Section1&lt;br /&gt;	{page:Section1;}&lt;br /&gt;--&gt;&lt;br /&gt;&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="line-height: 115%;"&gt;Dears , sorry for the delay of posting the second part of the tagging control which talks about the implementation of it , but know its well tested and its used in more than one project...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="line-height: 115%;"&gt;&lt;span style="font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;"&gt;Now we will write the code with the comments describing each line of code. And if you have any questions please contact me or comment on this post...&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; Microsoft.SharePoint;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; Microsoft.SharePoint.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; System.Configuration;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;namespace&lt;/span&gt; SpCustomFields&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;TagsField&lt;/span&gt; : SPFieldText&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;bool&lt;/span&gt; isRequired = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;// the constructor of the spfieldtext...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; TagsField(SPFieldCollection field1, &lt;span style="color: blue;"&gt;string&lt;/span&gt; field2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;: &lt;span style="color: blue;"&gt;base&lt;/span&gt;(field1, field2)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;// the constructor of the spfieldtext...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; TagsField(SPFieldCollection field1, &lt;span style="color: blue;"&gt;string&lt;/span&gt; field2, &lt;span style="color: blue;"&gt;string&lt;/span&gt; field3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;: &lt;span style="color: blue;"&gt;base&lt;/span&gt;(field1, field2, field3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we override the function that defines which implemented class will act as the codebehind of the control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; Microsoft.SharePoint.WebControls.BaseFieldControl FieldRenderingControl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;isRequired = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Required;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;BaseFieldControl control = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;TagsFieldImplementation&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;control.FieldName = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.InternalName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; control;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;// here is the override of the function called GetValidatedString which returns the value that appears to the user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; GetValidatedString(&lt;span style="color: blue;"&gt;object&lt;/span&gt; value)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; value.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here is the class that act as the codebehind the custom control we are developing...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;TagsFieldImplementation&lt;/span&gt; : BaseFieldControl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt; txtTags;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt; txtPossibleTags;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;RequiredFieldValidator&lt;/span&gt; reqTxtTags;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; ItemGuidId = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we override the DefaultTemplateName property which returns the template name that represents the .ascx file that will appear as the custom control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; DefaultTemplateName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; &lt;span style="color: #a31515;"&gt;"TaggingTemplate"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//this property is called everytime we need to save or load the value of our control , so you will see that here we define the entering of a new item into the list , and editting an existing one...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;object&lt;/span&gt; Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we generate a new guid that represents our new item and we enter the tag into the centralized list that will act as our central indexing list...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ControlMode == SPControlMode.New)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;ItemGuidId = &lt;span style="color: #2b91af;"&gt;Guid&lt;/span&gt;.NewGuid().ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;EnterTagsIntoList(ItemGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we are implementing the editting of the previous tags added to the centralized list...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ControlMode == SPControlMode.Edit)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: blue;"&gt;this&lt;/span&gt;.ListItemFieldValue != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;ItemGuidId = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.ListItemFieldValue.ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;UpdateTagsIntoList(ItemGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;ItemGuidId = &lt;span style="color: #2b91af;"&gt;Guid&lt;/span&gt;.NewGuid().ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;EnterTagsIntoList(ItemGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; ItemGuidId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;set&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtTags.Text = GetTags(&lt;span style="color: blue;"&gt;value&lt;/span&gt;.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Focus()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we override the main function that called CreateChildControls that renders our asp control...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; CreateChildControls()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;base&lt;/span&gt;.CreateChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (Field == &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//if the control not in the display mode , render all the controls on it... &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ControlMode != SPControlMode.Display)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;// rendering the main txt box that will take the tags.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtTags = (System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"txtTags"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//a hidden text box that is called in the javascript written in the previous post...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtPossibleTags = (System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"txtPossibleTags"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//rendering a required validator so if its required it will be so...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;reqTxtTags = (System.Web.UI.WebControls.&lt;span style="color: #2b91af;"&gt;RequiredFieldValidator&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"reqTxtTags"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we read if the sharepoint control is required or not , so we can show or hide our validator...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: #2b91af;"&gt;TagsField&lt;/span&gt;.isRequired)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;reqTxtTags.ErrorMessage = &lt;span style="color: #a31515;"&gt;"You must specify a value for this required field."&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;reqTxtTags.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;reqTxtTags.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we get all the tags exists in the centralized list and make this text box takes them as text property so we can pass them to the javascript...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtPossibleTags.Text = GetAllListPossibleTags();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (ControlMode == SPControlMode.New)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span style="color: blue;"&gt;delegate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we make sure that the tagging list contains the following columns called ListName and ItemId and the default column Title ( all of them are of text type )...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPList taggingList = SPContext.Current.Site.RootWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;).ToString()];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (!taggingList.Fields.ContainsField(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;) ||&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;!taggingList.Fields.ContainsField(&lt;span style="color: #a31515;"&gt;"ItemId"&lt;/span&gt;) ||&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;!taggingList.Fields.ContainsField(&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtTags.Text = &lt;span style="color: #a31515;"&gt;"The aggregation used list has invalid columns"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;txtTags.Enabled = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;// here is the function that collects all the tags written in the centralized list and filters them and remove any repeatance...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; GetAllListPossibleTags()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&amp;gt; Tags = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; returnedTag = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span style="color: blue;"&gt;delegate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPWeb currentWeb = SPContext.Current.Site.RootWeb;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPList taggingList = currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;).ToString()];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPListItemCollection itmCollection = taggingList.Items;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (itmCollection != &lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; itmCollection.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (SPListItem itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; itmCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt;(!&lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty((&lt;span style="color: blue;"&gt;string&lt;/span&gt;)itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;]))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; currentItemTag=itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (currentItemTag.Contains(&lt;span style="color: #a31515;"&gt;';'&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; str &lt;span style="color: blue;"&gt;in&lt;/span&gt; currentItemTag.Split(&lt;span style="color: #a31515;"&gt;';'&lt;/span&gt;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; currentStr = str;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (!&lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty(currentStr))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentStr= currentStr.Trim();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (!Tags.Contains(currentStr.ToLower()))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;Tags.Add(currentStr.ToLower());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItemTag = currentItemTag.Trim();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (!Tags.Contains(currentItemTag.ToLower()))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;Tags.Add(currentItemTag.ToLower());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; tag &lt;span style="color: blue;"&gt;in&lt;/span&gt; Tags)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;returnedTag += tag + &lt;span style="color: #a31515;"&gt;";"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; returnedTag;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;#region&lt;/span&gt; External Functions Implementation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here is the function that enter the tags into the centralized list...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; EnterTagsIntoList(&lt;span style="color: blue;"&gt;string&lt;/span&gt; ItemId)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span style="color: blue;"&gt;delegate&lt;/span&gt; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPWeb tempWeb = SPContext.Current.Site.OpenWeb(SPContext.Current.Site.RootWeb.ID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we can open the site with an admin user in the web.config...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPUserToken user = tempWeb.AllUsers[&lt;span style="color: #2b91af;"&gt;ConfigurationManager&lt;/span&gt;.AppSettings[&lt;span style="color: #a31515;"&gt;"AdministrationUser"&lt;/span&gt;]].UserToken;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSite openArCc = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SPSite(SPContext.Current.Site.ID, user);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPWeb currentWeb = openArCc.RootWeb;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPList taggingList= currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;).ToString()];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPListItem newItm = taggingList.Items.Add();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;newItm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] = txtTags.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;newItm[&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;] = currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.ListId].Title;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;newItm[&lt;span style="color: #a31515;"&gt;"ItemId"&lt;/span&gt;] = ItemId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;newItm.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;taggingList.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here we update the previous added tags...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; UpdateTagsIntoList(&lt;span style="color: blue;"&gt;string&lt;/span&gt; ItemGuidId)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span style="color: blue;"&gt;delegate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPWeb currentWeb = SPContext.Current.Site.RootWeb;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPList taggingList = currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;).ToString()];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPQuery query = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SPQuery();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;query.Query = &lt;span style="color: #a31515;"&gt;"&lt;where&gt;&lt;eq&gt;&lt;fieldref name="\&amp;quot;ItemId\&amp;quot;"&gt;&lt;value type="\&amp;quot;Text\&amp;quot;"&gt;"&lt;/value&gt;&lt;/fieldref&gt;&lt;/eq&gt;&lt;/where&gt;&lt;/span&gt; + ItemGuidId + &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPListItemCollection newItm = taggingList.GetItems(query) ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPListItem currentItem;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;query = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (newItm != &lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; newItm.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItem = newItm[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItem[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] = txtTags.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItem[&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;] = currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.ListId].Title;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItem[&lt;span style="color: #a31515;"&gt;"ItemId"&lt;/span&gt;] = ItemGuidId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentItem.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;taggingList.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: red;"&gt;//here it the function that get the tags added to the centralized list...&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; GetTags(&lt;span style="color: blue;"&gt;string&lt;/span&gt; ItemGuidId)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; Tag = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPSecurity.RunWithElevatedPrivileges(&lt;span style="color: blue;"&gt;delegate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPWeb currentWeb = SPContext.Current.Site.RootWeb;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPList taggingList = currentWeb.Lists[&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ListName"&lt;/span&gt;).ToString()];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPQuery query = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SPQuery();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;query.Query = &lt;span style="color: #a31515;"&gt;"&lt;where&gt;&lt;eq&gt;&lt;fieldref name="\&amp;quot;ItemId\&amp;quot;"&gt;&lt;value type="\&amp;quot;Text\&amp;quot;"&gt;"&lt;/value&gt;&lt;/fieldref&gt;&lt;/eq&gt;&lt;/where&gt;&lt;/span&gt; + ItemGuidId + &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;SPListItemCollection newItm = taggingList.GetItems(query);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;query = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (newItm != &lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; newItm.Count &amp;gt; 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;Tag=newItm[0][&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;currentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; Tag;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: small;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(217, 217, 217) none repeat scroll 0% 0%;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="line-height: 115%;"&gt;&lt;o:p&gt;&amp;nbsp;that is the tagging control any questions you have you cant comment or contact me...&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="line-height: 115%;"&gt;&lt;o:p&gt;and i will work on an open source project that contains all the controls i ve made before , Multiple file uploader , Tagging control , and many others that i hope that it add value to you dear readers .....&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-3124305760152747236?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3124305760152747236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/3124305760152747236'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/04/tagging-control-implementation-of.html' title='Tagging control --&gt;Part 2 - The implementation of the tagging control ?'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-7973421185876740987</id><published>2010-03-14T14:53:00.000-07:00</published><updated>2010-04-18T15:14:56.088-07:00</updated><title type='text'>Tagging Control -&gt; Part 1 -  What about relating items using Tags ?</title><content type='html'>About 90 % of my previous posts , were written as a result of a real life problem that faced me when developing , and i wrote how i solved them .&lt;br /&gt;&lt;br /&gt;a couple of days ago , when working on a sharepoint project , we had a small problem , which was:&lt;br /&gt;&lt;br /&gt;note: if you dont know how to create custom columns please visit :&lt;br /&gt;&lt;a href="http://sptechytalks.blogspot.com/2009/08/how-to-create-sharepoint-custom-fields.html"&gt;http://sptechytalks.blogspot.com/2009/08/how-to-create-sharepoint-custom-fields.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;We want to relate items (ex: News ) with another ones in the same list , or in a different list in the same subsite or may be in a different one?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;we organized a brain storming meeting&amp;nbsp; and we started sharing ideas about how this problem could be solved , with a very high performance , cause the number of lists we have to link together , are&amp;nbsp; about 20 lists in different subsites&amp;nbsp; , so there are some ideas that we thought about :&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&amp;nbsp;1. To make a user control in the details page of each item , and when displaying the item we will go to the 20 lists and search about the items that shares the same tag of our displayed item.&lt;/div&gt;&lt;br /&gt;but we found that this solution will be the worst performance wise solution ever&amp;nbsp; , cause we need to open the 20 lists then querying them...&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;2. To make a lookup field that relates the items in a one to one relation , which means that news 2 for ex , is related to news 2 only ,,,&lt;/div&gt;&lt;br /&gt;and this solution is very good as a performance wise but it doesnt make any sense to relate the items to each others in a one to one relation.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;3. To make a list field that can have a one to many relation between items .&lt;/div&gt;&lt;br /&gt;and also this solution is very good as a performance , but it wouldn't be good for the user , as for user experience wise...&lt;br /&gt;&lt;br /&gt;after a while , i got an idea , its very easy and also its performance and cost of development is very good to us , and it was the optimum solution for this problem&lt;br /&gt;&lt;br /&gt;The solution was:&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #38761d;"&gt;&amp;nbsp;we will make a custom column for tagging , we will relate items through tagging , as blogspot is working and many other sites relate its news for ex through tagging ,and this custom column will make the following:&lt;/div&gt;&lt;br /&gt;1. will be added to all the lists you want to relate them with each others . &lt;br /&gt;&lt;br /&gt;2. will take as a parameter a list name , and this list will be a centralized list for saving all tags and the list ids and item ids .&lt;br /&gt;&lt;br /&gt;3. so when trying to get the related data , we dont want more than accessing only one list to have all this info.&lt;br /&gt;its a way of indexing all items , so when we need to get related data .&lt;br /&gt;&lt;br /&gt;4. will suggest for the user the possible tags , added to all the lists he is going to relate with each others...&lt;br /&gt;&lt;br /&gt;and now its time to develop this control :)&lt;br /&gt;&lt;br /&gt;The following steps are the psuedo code of the control:&lt;br /&gt;1. The control will take different tags separated with semi colons. ';'.&lt;br /&gt;2. On entering data , a jquery plugin will be responsible of showing existing tags in our central list.&lt;br /&gt;3. When entering the tags and saving the item , the item will be written in our central list as follows&lt;br /&gt;,&amp;nbsp; we will save the ListName , Tag , and ItemId ( a generated Guid ).&lt;br /&gt;4. The saved value inside the control will be the ItemId we have wriiten in our central tag.&lt;br /&gt;&lt;br /&gt;and by the previous 4 steps we can have all the data related to each other in our central tagging list...&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;************************************************************************&lt;/div&gt;The previous was an introduction about what we are going to develop...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;first of all we are going to write our ascx :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:1;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:variable;	mso-font-signature:0 0 0 0 0 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0in;	margin-right:0in;	margin-bottom:10.0pt;	margin-left:0in;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:Arial;	mso-bidi-theme-font:minor-bidi;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:Arial;	mso-bidi-theme-font:minor-bidi;}.MsoPapDefault	{mso-style-type:export-only;	margin-bottom:10.0pt;	line-height:115%;}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;%&lt;span style="color: blue;"&gt;@&lt;/span&gt; &lt;span style="color: #a31515;"&gt;Control&lt;/span&gt; &lt;span style="color: red;"&gt;Language&lt;/span&gt;&lt;span style="color: blue;"&gt;="C#"&lt;/span&gt;%&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//referencing the dll of Microsoft.Sharepoint and registering the assembly&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;%&lt;span style="color: blue;"&gt;@&lt;/span&gt; &lt;span style="color: #a31515;"&gt;Assembly&lt;/span&gt; &lt;span style="color: red;"&gt;Name&lt;/span&gt;&lt;span style="color: blue;"&gt;="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"&lt;/span&gt; %&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;%&lt;span style="color: blue;"&gt;@&lt;/span&gt; &lt;span style="color: #a31515;"&gt;Register&lt;/span&gt; &lt;span style="color: red;"&gt;TagPrefix&lt;/span&gt;&lt;span style="color: blue;"&gt;="SharePoint"&lt;/span&gt; &lt;span style="color: red;"&gt;Assembly&lt;/span&gt;&lt;span style="color: blue;"&gt;="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: red; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;Namespace&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;="Microsoft.SharePoint.WebControls"&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; %&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//The rendering template that we will use inside the code to load our ascx control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;SharePoint&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;RenderingTemplate&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="TaggingTemplate"&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;Template&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//referencing the styles and jquery plugins related to the part of the autocomplete&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;link&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;rel&lt;/span&gt;&lt;span style="color: blue;"&gt;="stylesheet"&lt;/span&gt; &lt;span style="color: red;"&gt;href&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Js/main.css"&lt;/span&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/css"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;link&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;rel&lt;/span&gt;&lt;span style="color: blue;"&gt;="stylesheet"&lt;/span&gt; &lt;span style="color: red;"&gt;href&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Js/jquery.autocomplete.css"&lt;/span&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/css"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/javascript"&lt;/span&gt; &lt;span style="color: red;"&gt;src&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Js/jquery.js"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;script&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/javascript"&lt;/span&gt; &lt;span style="color: red;"&gt;src&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Jsjquery.bgiframe.min.js"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;script&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/javascript"&lt;/span&gt; &lt;span style="color: red;"&gt;src&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Js/jquery.dimensions.js"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;script&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/javascript"&lt;/span&gt; &lt;span style="color: red;"&gt;src&lt;/span&gt;&lt;span style="color: blue;"&gt;="/Style Library/Js/jquery.autocomplete.js"&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;script&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//This script do as follows:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//var data , it will search for a hidden text box that will carry all //the tags added before in the central list and they will be splitted &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;// by a semicolon &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//then you call the plugin function called autocomplete on the main //textbox you are writing in your tags passing the below parameters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//the data the control will autocomplete with and another properties &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//that are related to high , width , and whether the control allows&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//multiple taggings or no and also the separator will be used in case &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//of multiple tags entered…&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;="text/javascript"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;$(document).ready(&lt;span style="color: blue;"&gt;function&lt;/span&gt;() {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;var&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; data = $(&lt;span style="color: #a31515;"&gt;"[id$='_txtPossibleTags']"&lt;/span&gt;).val().split(&lt;span style="color: #a31515;"&gt;";"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;$(&lt;span style="color: #a31515;"&gt;"[id$='_txtTags']"&lt;/span&gt;).autocomplete(data, {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;width: 320,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;max: 4,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;highlight: &lt;span style="color: blue;"&gt;false&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;multiple: &lt;span style="color: blue;"&gt;true&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;multipleSeparator: &lt;span style="color: #a31515;"&gt;";"&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;scroll: &lt;span style="color: blue;"&gt;true&lt;/span&gt;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;scrollHeight: 300&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;});&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;script&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//The main text box that will act as our tagging control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;asp&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="txtTags"&lt;/span&gt;&amp;nbsp; &lt;span style="color: red;"&gt;Width&lt;/span&gt;&lt;span style="color: blue;"&gt;="320px"&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;br&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//a validator on the control to set whether its required or no&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;asp&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;RequiredFieldValidator&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="reqTxtTags"&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&lt;/span&gt; &lt;span style="color: red;"&gt;ControlToValidate&lt;/span&gt;&lt;span style="color: blue;"&gt;="txtTags"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//The text box that will contain the previous added tags to &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;b&gt;&lt;span style="color: #00b050; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;//autocomplete with.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;asp&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt; &lt;span style="color: red;"&gt;style&lt;/span&gt;&lt;span style="color: blue;"&gt;="display:none"&lt;/span&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="txtPossibleTags"&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&lt;/span&gt; &lt;span style="color: blue;"&gt;/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;Template&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(242, 242, 242) none repeat scroll 0% 0%;"&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;"&gt;SharePoint&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;"&gt;RenderingTemplate&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;To download the Jquery plug-in go-to: &lt;/span&gt;&lt;a href="http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/"&gt;http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Note :there is a small issue within this plug-in , that when you enter the first letter in the control with a white space it gives null reference so its solution is to make the following:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;&amp;nbsp;go to the file called autocomplete.js and replace the following line :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: red;"&gt;&lt;span style="color: blue; font-size: small;"&gt;&lt;b&gt;if(currentValue.length &amp;gt;= options.minChars)&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: blue; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;with&amp;nbsp;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;if (currentValue!=null &amp;amp;&amp;amp; currentValue.length &amp;gt;= options.minChars)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;and it will work fine ,,,&lt;br /&gt;&lt;br /&gt;To continue on with developing this control go to &lt;a href="http://sptechytalks.blogspot.com/2010/04/tagging-control-implementation-of.html"&gt;http://sptechytalks.blogspot.com/2010/04/tagging-control-implementation-of.html&lt;/a&gt;....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CFREDDY%7E1.KHA%5CLOCALS%7E1%5CTemp%5C1%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:1;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:variable;	mso-font-signature:0 0 0 0 0 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0in;	margin-right:0in;	margin-bottom:10.0pt;	margin-left:0in;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:Arial;	mso-bidi-theme-font:minor-bidi;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:Arial;	mso-bidi-theme-font:minor-bidi;}.MsoPapDefault	{mso-style-type:export-only;	margin-bottom:10.0pt;	line-height:115%;}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-7973421185876740987?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7973421185876740987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7973421185876740987'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/03/tagging-control-part-1-what-about.html' title='Tagging Control -&gt; Part 1 -  What about relating items using Tags ?'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-1289269208557793445</id><published>2010-03-03T02:46:00.000-08:00</published><updated>2010-03-03T02:48:07.881-08:00</updated><title type='text'>xmp , a magical  tag ...</title><content type='html'>this post will be very short , i just  remembered 3 magical lines that i loved to share with you..&lt;br /&gt;&lt;br /&gt;when creating a dataview web part , or a content query web part , and you dont know the data returned to you from the list xml , you can use the following 3 lines to view the xml returned by the list you are quering ...&lt;br /&gt;&lt;br /&gt;after the main template , that matches ( match="/" ) write the following 3 magical lines :&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&amp;lt;xmp&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&amp;lt;xsl:copy-of select="*" /&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FF0000;"&gt;&amp;lt;/xmp&amp;gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-1289269208557793445?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/1289269208557793445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/1289269208557793445'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/03/xmp-magical-tag.html' title='xmp , a magical  tag ...'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-7877459361742993676</id><published>2010-02-24T14:46:00.000-08:00</published><updated>2010-02-24T14:47:31.870-08:00</updated><title type='text'>SpTechyTalks: " Thank You Guys , you made it  , now we have 2000 visitors"</title><content type='html'>&lt;span class="Apple-style-span"   style=" ;font-family:Arial;font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-size:13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;Dear Readers  ;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;when i've started this blog at may 2009 , all what i was expecting is to collect only 100 visitor , and may only 10 of them use my blog and read my posts for 10 minutes only ...&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;but now , SpTechyTalks has 2000 visitors with more than 41 hours of surfing , more than half the users knew the site from search engines , and specially Google , all what i can say t hanks to Jesus , and thanks to all of you my dear readers , this makes me works harder on my coming posts and it will increase my responsibility towards my blog and my readers ;)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;Thanks very much;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;Freddy Khalaf &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#0b5394;"&gt;Solution developer @ Linkdev , Egypt &lt;/span&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-7877459361742993676?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7877459361742993676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7877459361742993676'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/02/sptechytalks-thanks-guys-for-your.html' title='SpTechyTalks: &quot; Thank You Guys , you made it  , now we have 2000 visitors&quot;'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4227085120576514768</id><published>2010-02-12T00:01:00.000-08:00</published><updated>2010-02-12T00:01:15.995-08:00</updated><title type='text'>Sharepoint 2010 - Object models</title><content type='html'>&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;Writing the first post in the new year 2010 , wasnt so easy for me , i have thought alot , which will be my new post....&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #6fa8dc;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;while thinking i found that the most possible thing to talk about is the Sharepoint object model .&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;Sharepoint 2010 introduces to us 3 object models that satisfy all developer's needs , and i think it also introduces a very smart solutions.&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;Sharepoint 2010 object models:&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 1. .Net object model : the same as what we have in Sharepoint 2007, although it has alot of&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;new features added to it , such as Linq to Sharepoint, and many other new features , but it has the same look and feel :) as the previous .net object model.&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Silverlight object model : its an object model that works with silverlight , and i think its a very useful model for silverlight mania :).&lt;/b&gt;&lt;/div&gt;&lt;div style="background-color: white; color: #0b5394;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Client object model : its an object model that is written as a client side code, which i think it will be very useful&amp;nbsp; , its using a script called ECMA script , you can know more about it in &lt;a href="http://www.wikipedia.com/"&gt;http://www.wikipedia.com/&lt;/a&gt; :) , if you want more historical info about it.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;i found its too interesting to start exploring the client object model&amp;nbsp; , i want to know how it works ? , how to write some small &lt;/b&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;snippets of&lt;/b&gt;&lt;b style="background-color: white; color: #0b5394;"&gt; code ?&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;first of all , lets take alook on the client object model , its properties and classes all written in the following link from the msdn &lt;a href="http://msdn.microsoft.com/en-us/library/ee557057(office.14).aspx"&gt;http://msdn.microsoft.com/en-us/library/ee557057(office.14).aspx&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;you will find all the object model classes , methods , properties listed their in the previous site...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: #0b5394;"&gt;thats was an introduction about the object models presented by sharepoint 2010 , my coming post will introduce in details the Client object model of Sharepoint 2010 ...&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;b style="background-color: white; color: #0b5394;"&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4227085120576514768?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4227085120576514768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4227085120576514768'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2010/02/sharepoint-2010-object-models.html' title='Sharepoint 2010 - Object models'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4832435495003949436</id><published>2009-12-31T09:42:00.000-08:00</published><updated>2009-12-31T09:42:39.040-08:00</updated><title type='text'>Happy New Year</title><content type='html'>&lt;strong&gt;&lt;span style="color: red; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: x-large;"&gt;Happy New Year&lt;/span&gt;&lt;/strong&gt; my dear &lt;strong&gt;&lt;span style="font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;"&gt;Readers&lt;/span&gt;&lt;/strong&gt; , and i hope all your dreams come true this year , with God blessings and may&lt;span style="color: blue; font-size: x-large;"&gt; Jesus&lt;/span&gt; give u all joy and happiness ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4832435495003949436?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4832435495003949436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4832435495003949436'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/12/happy-new-year.html' title='Happy New Year'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-7086434146010261553</id><published>2009-12-11T13:46:00.000-08:00</published><updated>2009-12-11T13:50:34.508-08:00</updated><title type='text'>Sharepoint 2010 developers guide is out</title><content type='html'>dears , Sharepoint 2010 developers guide is out , it was released on 06-12-2009  , sorry for delay , but this post just an information about the developers guide release , and coming posts will be on what i've read and found and the new features in Sharepoint 2010 .&lt;br /&gt;&lt;br /&gt;to download this guidance go to:&lt;br /&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=cffb14e8-88a9-43bd-87aa-4792ab60d320&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=cffb14e8-88a9-43bd-87aa-4792ab60d320&amp;amp;displaylang=en&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_NAlRSaKxDlg/SyK-hnTso1I/AAAAAAAAAFY/8aEhQ8WsNlI/s1600-h/dguide.JPG"&gt;&lt;img style="cursor: pointer; width: 389px; height: 510px;" src="http://3.bp.blogspot.com/_NAlRSaKxDlg/SyK-hnTso1I/AAAAAAAAAFY/8aEhQ8WsNlI/s400/dguide.JPG" alt="" id="BLOGGER_PHOTO_ID_5414099186749317970" 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/917132487158712193-7086434146010261553?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7086434146010261553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/7086434146010261553'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/12/sharepoint-2010-developers-guide-is-out.html' title='Sharepoint 2010 developers guide is out'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_NAlRSaKxDlg/SyK-hnTso1I/AAAAAAAAAFY/8aEhQ8WsNlI/s72-c/dguide.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4685422433008281463</id><published>2009-11-21T12:26:00.000-08:00</published><updated>2009-11-21T12:26:09.864-08:00</updated><title type='text'>How to make more than one URL links to your sharepoint site ?</title><content type='html'>&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;its distiny :) , today i've learned a very awesome lesson in sharepoint deployment , i was working on a project and today was the day of its live deployment , after finishing deployment successfully , we found that when we write &lt;a href="http:///sitename.com"&gt;http:///sitename.com&lt;/a&gt;&amp;nbsp; it works fin , but when we write &lt;a href="http://www.sitename.com/"&gt;http://www.sitename.com/&lt;/a&gt; it goes to a 404 page , and thats represents a headache for us , after alot of mobile phones with the customer , ,managers , my mobile shut down his mouth , and i've started to play to with IIS 7 and Sharepoint Central Administration till i found the solution of this problem , and i was so so so happy , and Thanks God the site now is live and working correctly....&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;First of all , you must do the following at Sharepoint Central Administration:&lt;br /&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;1. Open Sharepoint Central Administration:&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhGFFaTm2I/AAAAAAAAAEw/TD_NmwVjG2U/s1600/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhGFFaTm2I/AAAAAAAAAEw/TD_NmwVjG2U/s320/1.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;2. Click on Operation Tab:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhG5HJOIwI/AAAAAAAAAE0/AHXkr28vwlY/s1600/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhG5HJOIwI/AAAAAAAAAE0/AHXkr28vwlY/s320/2.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;3. Click on Alternate Access Mappings:&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_NAlRSaKxDlg/SwhHR5_nUDI/AAAAAAAAAE4/PpADBgIy8AM/s1600/3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_NAlRSaKxDlg/SwhHR5_nUDI/AAAAAAAAAE4/PpADBgIy8AM/s320/3.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;4. Then Click on Show all , then Change Alternate Access Mapping Collection :&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhIClFw1JI/AAAAAAAAAFA/3te0WelFDDI/s1600/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhIClFw1JI/AAAAAAAAAFA/3te0WelFDDI/s320/4.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;5. From here select&amp;nbsp;the site you need to have more than one url to access:&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhIYrcy5eI/AAAAAAAAAFE/W_wIvwSXk4o/s1600/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhIYrcy5eI/AAAAAAAAAFE/W_wIvwSXk4o/s320/5.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;6. Click on Add on Internal Urls:&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_NAlRSaKxDlg/SwhJcJCrQpI/AAAAAAAAAFI/9rXulNlGIdg/s1600/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_NAlRSaKxDlg/SwhJcJCrQpI/AAAAAAAAAFI/9rXulNlGIdg/s320/6.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;7. Add the second url you want to add , and make the Zone equal to Default:&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_NAlRSaKxDlg/SwhJ11CwoWI/AAAAAAAAAFM/B9Ds4gt3qek/s1600/7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_NAlRSaKxDlg/SwhJ11CwoWI/AAAAAAAAAFM/B9Ds4gt3qek/s320/7.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;8. by adding the second url with zone equal to Default , this will make the second url looks at the first default site url , you already have:&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="left" class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhKZYD8ezI/AAAAAAAAAFQ/yQ3MM-8BVO4/s1600/8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhKZYD8ezI/AAAAAAAAAFQ/yQ3MM-8BVO4/s320/8.JPG" yr="true" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;9. There is Missing step , by making it ,&amp;nbsp;both urls will work , this step will be done in the IIS:&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;i've made this step on IIS 7.0 ,&amp;nbsp; first of all open iis , by running (inetmgr) , then open the tab of all sites you have , then make a right click on your site , then click edit bindings , you will find a binding which is added with the&amp;nbsp;url of your site , click on add button , then write the new url you have added in Alternate Access Mappings page in your sharepoint central administration&amp;nbsp; ,&amp;nbsp; with the same port&amp;nbsp;number and same properties.&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;By that both Urls will work successfully&amp;nbsp;&amp;nbsp; , just note that , configure your web.config to work as if the url is the first default one you had before adding any other urls...&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4685422433008281463?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4685422433008281463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4685422433008281463'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/11/how-to-make-more-than-one-url-links-to.html' title='How to make more than one URL links to your sharepoint site ?'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_NAlRSaKxDlg/SwhGFFaTm2I/AAAAAAAAAEw/TD_NmwVjG2U/s72-c/1.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-228381912028496943</id><published>2009-11-17T01:53:00.001-08:00</published><updated>2009-11-17T01:53:58.938-08:00</updated><title type='text'>Sharepoint 2010 beta version Released ...</title><content type='html'>Dears , lets celebrate the release the beta version of Sharepoint 2010 , its now released you can get yours from the following link :&lt;br /&gt;&lt;a href="https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=42:393"&gt;https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx?pv=42:393&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-228381912028496943?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/228381912028496943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/228381912028496943'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/11/sharepoint-2010-beta-version-released.html' title='Sharepoint 2010 beta version Released ...'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-6345839312969069809</id><published>2009-11-10T02:00:00.000-08:00</published><updated>2009-11-10T02:00:24.894-08:00</updated><title type='text'>Collaborative Workflow - Improvements in SharePoint 2010</title><content type='html'>see this article in MSDN Magazine ( for November ) talking about improvements in workflow world in sharepoint 2010 :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/magazine/ee335710.aspx"&gt;http://msdn.microsoft.com/en-us/magazine/ee335710.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-6345839312969069809?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/6345839312969069809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/6345839312969069809'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/11/collaborative-workflow-improvements-in.html' title='Collaborative Workflow - Improvements in SharePoint 2010'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4939232756669270421</id><published>2009-11-07T01:30:00.000-08:00</published><updated>2009-11-07T01:30:42.965-08:00</updated><title type='text'>Sharepoint 2010 : What's New? ( Visual studio 2010 Sharepoint development )</title><content type='html'>I believe that Sharepoint 2010 and Visual studio 2010 will be a very powerfull suite and will make sharepoint development much easier , more effective...&lt;br /&gt;&lt;br /&gt;Take a look on the following link , from MSDN talking about the new features in Visual studio 2010 sharepoint development..&lt;br /&gt;&lt;a href="http://draft.blogger.com/goog_1257586060377"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ee290856%28VS.100%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/ee290856(VS.100).aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4939232756669270421?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4939232756669270421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4939232756669270421'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/11/sharepoint-2010-whats-new-visual-studio.html' title='Sharepoint 2010 : What&apos;s New? ( Visual studio 2010 Sharepoint development )'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-4404747741434227072</id><published>2009-11-06T14:37:00.000-08:00</published><updated>2009-11-06T14:39:24.705-08:00</updated><title type='text'>Developing, Deploying, and Monitoring Sandboxed Solutions in SharePoint 2010</title><content type='html'>visit the msdn magazine article which talks about developing , deploying and monitoring sandboxed solutions in sharepoint 2010  visit this link:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/magazine/ee335711.aspx"&gt;http://msdn.microsoft.com/en-us/magazine/ee335711.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/917132487158712193-4404747741434227072?l=sptechytalks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4404747741434227072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/917132487158712193/posts/default/4404747741434227072'/><link rel='alternate' type='text/html' href='http://sptechytalks.blogspot.com/2009/11/developing-deploying-and-monitoring.html' title='Developing, Deploying, and Monitoring Sandboxed Solutions in SharePoint 2010'/><author><name>freddy mounir</name><uri>https://profiles.google.com/117060021369190530067</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-ZAhKQY15WJE/AAAAAAAAAAI/AAAAAAAAAAA/Pj8DrwREM0U/s512-c/photo.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-917132487158712193.post-5385066923785356273</id><published>2009-11-06T12:34:00.000-08:00</published><updated>2009-11-06T13:39:09.669-08:00</updated><title type='text'>Part 4 (last part) : Continuing on development --&gt; File Upload class creation--&gt; Multiple Attachment custom control , Uploads them in Sharepoint document libraries...</title><content type='html'>&lt;div style="color: #e06666;"&gt;hey guys , sorry for not writing this part within the same period i've written the previous 3 parts , but that because i wanted to be sure that the code is written without bugs , so in the previous 3 weeks we have tested the control very well and solved alot of issues we have found in it , and now its stable , so finally we have decided to post the code to continue our 4 part's post... &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;now , we are going to discuss the most important part of our Multiple upload attachment control implementation , which is the class that implements all the logic of our control...&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;Remember:  The control we are going to make , is a control which adds multiple attachments in different 3 lists regarding to the type of the file you are going to upload , and the three types of files we have are Images ,Videos and Other files or Pdfs ... &lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;so after uploading any file there is a GUID id generated as an id for the file , is saved with the same list as a name for the file uploaded , and as a title for the file , the title column will contains the file name and the Guids of all the items that contains this file ...&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;i know that this post may be some how dummy but i think some photos will make everything more obvious...&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;in the next image , this is the back end of our control , this is how to create a new column of the Type of our &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;uploader... &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;here you will specify the 3 lists you will upload your files , these lists are preferred to be on the root of your application ... and then you will specify the number of files you want to upload per each type , if you want to disable uploading images for example , just make the No. of image files = 0. and by that you can put Images list name = any string as null ...&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SvPj7XzpWAI/AAAAAAAAADY/LTWkCYKCG-Y/s1600-h/1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SvPj7XzpWAI/AAAAAAAAADY/LTWkCYKCG-Y/s640/1.JPG" style="height: 300px; width: 401px;" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;and this image is the layout of our control&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_NAlRSaKxDlg/SvSEJcBD3KI/AAAAAAAAAEQ/EXStZCEaxqo/s1600-h/2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_NAlRSaKxDlg/SvSEJcBD3KI/AAAAAAAAAEQ/EXStZCEaxqo/s640/2.JPG" style="height: 129px; width: 400px;" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvPpeTsC5xI/AAAAAAAAAEI/HZce7ik8I1A/s1600-h/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvPpeTsC5xI/AAAAAAAAAEI/HZce7ik8I1A/s640/4.JPG" style="height: 137px; width: 401px;" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;and that how to select a file from the previous files you've uploaded , and the existing files are loaded from the list related to the type you are choosing...&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;Uploading files... &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_NAlRSaKxDlg/SvPoj51LkNI/AAAAAAAAAD4/w9qpS-YHG5s/s1600-h/4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_NAlRSaKxDlg/SvPoj51LkNI/AAAAAAAAAD4/w9qpS-YHG5s/s640/4.JPG" style="height: 137px; width: 399px;" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;the following pic , shows the item added in the images list , and as shown it's name is a guid representing this file id , and its title is : Testing File.Jpg * {GUID id of the main item that contains this file} &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvSFRJOulWI/AAAAAAAAAEg/lIzg75sjDz0/s1600-h/5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvSFRJOulWI/AAAAAAAAAEg/lIzg75sjDz0/s640/5.JPG" style="height: 23px; width: 399px;" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;and after creating the main item in my list that will contains many attached files , it will be shown as follows:&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvSF8HDeA5I/AAAAAAAAAEo/g9-rwxkKdxg/s1600-h/6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_NAlRSaKxDlg/SvSF8HDeA5I/AAAAAAAAAEo/g9-rwxkKdxg/s400/6.JPG" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/div&gt;&lt;span style="color: black;"&gt;in the previous image you can see the item with title = News Item and the value stored in the Multiple File Uploader is the GUID id  representing this item , and this id is used to connect the item with its related uploaded files as shown in the pic representing the images list (id of news item is the same found in the title column of the image created in images list ) ...&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt; &lt;br /&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="color: black;"&gt;i think by now everything is more clearer so i can post the code that implements this control...&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;meta content="text/html; charset=utf-8" equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///G:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///G:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///G:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;    &lt;m:smallfrac val="off"&gt;    &lt;m:dispdef&gt;    &lt;m:lmargin val="0"&gt;    &lt;m:rmargin val="0"&gt;    &lt;m:defjc val="centerGroup"&gt;    &lt;m:wrapindent val="1440"&gt;    &lt;m:intlim val="subSup"&gt;    &lt;m:narylim val="undOvr"&gt;   &lt;/m:narylim&gt;&lt;/m:intlim&gt; &lt;/m:wrapindent&gt;&lt;style&gt;&lt;!--  /* Font Definitions */  @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:1; 	mso-generic-font-family:roman; 	mso-font-format:other; 	mso-font-pitch:variable; 	mso-font-signature:0 0 0 0 0 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:"Times New Roman"; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.25in 1.0in 1.25in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --&gt;&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt; &lt;br /&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Web;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; Microsoft.SharePoint;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; Microsoft.SharePoint.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Web.UI.WebControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Threading;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Web.UI;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;using&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; System.Web.UI.HtmlControls;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;namespace&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; SpCustomFields&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;FileUploader&lt;/span&gt; : &lt;span style="color: #2b91af;"&gt;SPFieldText&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; internalFieldName = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;bool&lt;/span&gt; isRequired = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; FileUploader(&lt;span style="color: #2b91af;"&gt;SPFieldCollection&lt;/span&gt; spFieldCollection, &lt;span style="color: blue;"&gt;string&lt;/span&gt; spName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;: &lt;span style="color: blue;"&gt;base&lt;/span&gt;(spFieldCollection, spName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; FileUploader(&lt;span style="color: #2b91af;"&gt;SPFieldCollection&lt;/span&gt; spFieldCollection, &lt;span style="color: blue;"&gt;string&lt;/span&gt; spName, &lt;span style="color: blue;"&gt;string&lt;/span&gt; dispName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;: &lt;span style="color: blue;"&gt;base&lt;/span&gt;(spFieldCollection, spName, dispName)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{ }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;BaseFieldControl&lt;/span&gt; FieldRenderingControl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;isRequired = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Required;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;internalFieldName = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.InternalName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;FileUploaderImplementation&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileControl = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;FileUploaderImplementation&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileControl.FieldName = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.InternalName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileControl;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;object&lt;/span&gt; GetFieldValue(&lt;span style="color: blue;"&gt;string&lt;/span&gt; value)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;base&lt;/span&gt;.GetFieldValue(value);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;FileUploaderImplementation&lt;/span&gt; : &lt;span style="color: #2b91af;"&gt;BaseFieldControl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; Form Controls and Variable initialization&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;FileUpload&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileUploader;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;LinkButton&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; btnUpload;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; FileNameTextBox;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;RadioButton&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; RdImages, RdPdfs, RdVideos, RdUpload, RdSelect;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;GridView&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; UploadingGrid;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DropDownList&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; SelectDropDown;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;CustomValidator&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; customUploadValidator;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;RequiredFieldValidator&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; UploadRequiredValidator, FileNameRequiredValidator, GridValidator;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;Label&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; lblFileName;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;TextBox&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; HiddenFieldGridValidator;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; ImagesUploadList, VideosUploadList, PdfsUploadList ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;int&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; ImagesMaximumLength, VideosMaximumLength, PdfsMaximumLength;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;bool&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; extFound = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;static&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; newsItemId = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; Main Functions to be overrided for the custom control&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; DefaultTemplateName&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: #a31515;"&gt;"FileUploaderTemplate"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Focus()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileUploader.Focus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;protected&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; CreateChildControls()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;base&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;.CreateChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//Reading lists names.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;ImagesUploadList = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ImagesList"&lt;/span&gt;).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;VideosUploadList = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"VideosList"&lt;/span&gt;).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;PdfsUploadList = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"PdfsList"&lt;/span&gt;).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;ImagesMaximumLength =&lt;span style="color: blue;"&gt;int&lt;/span&gt;.Parse(&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"ImagesMaximumLength"&lt;/span&gt;).ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;VideosMaximumLength = &lt;span style="color: blue;"&gt;int&lt;/span&gt;.Parse(&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"VideosMaximumLength"&lt;/span&gt;).ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;PdfsMaximumLength = &lt;span style="color: blue;"&gt;int&lt;/span&gt;.Parse(&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Field.GetCustomProperty(&lt;span style="color: #a31515;"&gt;"PdfsMaximumLength"&lt;/span&gt;).ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log Exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (ControlMode == &lt;span style="color: #2b91af;"&gt;SPControlMode&lt;/span&gt;.New || ControlMode == &lt;span style="color: #2b91af;"&gt;SPControlMode&lt;/span&gt;.Edit)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; rendering all controls&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lblFileName = (&lt;span style="color: #2b91af;"&gt;Label&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"lblFileName"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameTextBox = (&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"FileNameTextBox"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdImages = (&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"RdImages"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdPdfs = (&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"RdPdfs"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdVideos = (&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"RdVideos"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdUpload = (&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"RdUpload"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdSelect = (&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"RdSelect"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;customUploadValidator = &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;(&lt;span style="color: #2b91af;"&gt;CustomValidator&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"UploadControlCustomValidator"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator = (&lt;span style="color: #2b91af;"&gt;RequiredFieldValidator&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"UploadControlRequiredValidator"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator = (&lt;span style="color: #2b91af;"&gt;RequiredFieldValidator&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"FileNameRequiredValidator"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;GridValidator = (&lt;span style="color: #2b91af;"&gt;RequiredFieldValidator&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"GridValidator"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileUploader = (&lt;span style="color: #2b91af;"&gt;FileUpload&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"FilesUploader"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown = (&lt;span style="color: #2b91af;"&gt;DropDownList&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"SelectDropDown"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;btnUpload = (&lt;span style="color: #2b91af;"&gt;LinkButton&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"UploadButton"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid = (&lt;span style="color: #2b91af;"&gt;GridView&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;HiddenFieldGridValidator = (&lt;span style="color: #2b91af;"&gt;TextBox&lt;/span&gt;)TemplateContainer.FindControl(&lt;span style="color: #a31515;"&gt;"HiddenFieldGridValidator"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log the Exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; defining controls properties and assigning events to them&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;btnUpload.Click += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(BtnUploadClick);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdUpload.CheckedChanged += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(UploadOrSelect);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdSelect.CheckedChanged += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(UploadOrSelect);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdPdfs.CheckedChanged += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(FillInSelectDropDown);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdVideos.CheckedChanged += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(FillInSelectDropDown);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;RdImages.CheckedChanged += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;EventHandler&lt;/span&gt;(FillInSelectDropDown);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;customUploadValidator.ServerValidate += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ServerValidateEventHandler&lt;/span&gt;(customUploadValidator_ServerValidate);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.RowDeleting += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;GridViewDeleteEventHandler&lt;/span&gt;(UploadingGridRowDelete);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; dt = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataTable&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt = (&lt;span style="color: #2b91af;"&gt;DataTable&lt;/span&gt;)ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataSource = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataBind();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;// To do: Log the Exception&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckDataGrid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;newsItemId = UpdateNewsItemID();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckUploadStatus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (ControlMode == &lt;span style="color: #2b91af;"&gt;SPControlMode&lt;/span&gt;.Edit)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;HiddenFieldGridValidator.Text = &lt;span style="color: #a31515;"&gt;"Edit mode"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FillInGridWithUploads();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;newsItemId = UpdateNewsItemID();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckUploadStatus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;public&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;object&lt;/span&gt; Value&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; newsItemId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;set&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;EnsureChildControls();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;base&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;.Value = newsItemId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; Form Events&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;void&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; BtnUploadClick(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator.Validate();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator.Validate();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty(newsItemId) &amp;amp;&amp;amp; ControlMode==&lt;span style="color: #2b91af;"&gt;SPControlMode&lt;/span&gt;.New )&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;newsItemId = &lt;span style="color: #2b91af;"&gt;Guid&lt;/span&gt;.NewGuid().ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (ControlMode == &lt;span style="color: #2b91af;"&gt;SPControlMode&lt;/span&gt;.Edit &amp;amp;&amp;amp; &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Value!=&lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style="color: blue;"&gt;string&lt;/span&gt;.IsNullOrEmpty(&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Value.ToString()))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;newsItemId = UpdateNewsItemID();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;newsItemId = UpdateNewsItemID();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (SelectDropDown.Visible == &lt;span style="color: blue;"&gt;true&lt;/span&gt; || extFound)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (fileUploader.Visible == &lt;span style="color: blue;"&gt;true&lt;/span&gt; &amp;amp;&amp;amp; fileUploader.HasFile &amp;amp;&amp;amp; fileUploader.FileBytes != &lt;span style="color: blue;"&gt;null&lt;/span&gt;&amp;amp;&amp;amp; FileNameRequiredValidator.IsValid &amp;amp;&amp;amp; UploadRequiredValidator.IsValid)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;AddUploadsToUploadingGrid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;AddUploadsToDocLib();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckUploadStatus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameTextBox.Text = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (SelectDropDown.Visible == &lt;span style="color: blue;"&gt;true&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;AddUploadsToUploadingGrid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;AddSelectedToNewsItem();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckUploadStatus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; FillInSelectDropDown(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdSelect.Checked &amp;amp;&amp;amp; sender!=&lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; lstName = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (((&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)sender).ID == &lt;span style="color: #a31515;"&gt;"RdImages"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = ImagesUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (((&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)sender).ID == &lt;span style="color: #a31515;"&gt;"RdPdfs"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = PdfsUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (((&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)sender).ID == &lt;span style="color: #a31515;"&gt;"RdVideos"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = VideosUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItemCollection&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; spListItemColl = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[lstName].Items;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;DeleteItemsInDrpDown();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (spListItemColl.Count &amp;lt;= 0)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Items.Add(&lt;span style="color: #a31515;"&gt;"No Files Uploaded under this Type"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;btnUpload.Enabled = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.SelectedIndex = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Enabled = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;btnUpload.Enabled = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Enabled = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: #2b91af;"&gt;SPListItem&lt;/span&gt; itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; spListItemColl)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;ListItem&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; lstItem = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;ListItem&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstItem.Text = (!itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Contains(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)) ? itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString() : itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Split(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstItem.Value = itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Items.Add(lstItem);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; customUploadValidator_ServerValidate(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;ServerValidateEventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;List&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;&amp;lt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&amp;gt; allowedFileExtensions = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: blue;"&gt;string&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; errorMessage = &lt;span style="color: #a31515;"&gt;"Invalid File Extension, Valid extensions ("&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdImages.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".jpg"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".gif"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".bmp"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (RdVideos.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".wmv"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".mpeg"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".mpg"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;if&lt;/span&gt; (RdPdfs.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".pdf"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".doc"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".docx"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".xls"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".xlsx"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".ppt"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;allowedFileExtensions.Add(&lt;span style="color: #a31515;"&gt;".pptx"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; str &lt;span style="color: blue;"&gt;in&lt;/span&gt; allowedFileExtensions)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (e.Value.ToLower().EndsWith(str))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;extFound = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;break&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;extFound = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;errorMessage += str + &lt;span style="color: #a31515;"&gt;' '&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;continue&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (extFound)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;e.IsValid = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;customUploadValidator.ErrorMessage = errorMessage + &lt;span style="color: #a31515;"&gt;" )"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;e.IsValid = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; UploadOrSelect(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (((&lt;span style="color: #2b91af;"&gt;RadioButton&lt;/span&gt;)sender).ID == &lt;span style="color: #a31515;"&gt;"RdUpload"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;btnUpload.Enabled = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileUploader.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameTextBox.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lblFileName.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;object&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; eventSender = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileUploader.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;SelectDropDown.Visible = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadRequiredValidator.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameTextBox.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FileNameRequiredValidator.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lblFileName.Visible = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdImages.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;eventSender = RdImages;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdPdfs.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;eventSender = RdPdfs;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdVideos.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;eventSender = RdVideos;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FillInSelectDropDown(eventSender, e);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; UploadingGridRowDelete(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: #2b91af;"&gt;GridViewDeleteEventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; deletedItmGuidId = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileType = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;(ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;]!=&lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; dt = (&lt;span style="color: #2b91af;"&gt;DataTable&lt;/span&gt;)ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataRow&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; dr = dt.Rows[e.RowIndex];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;deletedItmGuidId = dr[3].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;fileType = dr[1].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Rows.RemoveAt(e.RowIndex);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataSource = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataBind();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;] = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;DeleteItem(deletedItmGuidId,fileType);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckDataGrid();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;CheckUploadStatus();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log the Exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; DeleteItem(&lt;span style="color: blue;"&gt;string&lt;/span&gt; deletedItmGuidId,&lt;span style="color: blue;"&gt;string&lt;/span&gt; fileType)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; latestItemId = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; lstName = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (fileType.ToLower()==&lt;span style="color: #a31515;"&gt;"images"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = ImagesUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (fileType.ToLower() == &lt;span style="color: #a31515;"&gt;"pdf files"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = PdfsUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (fileType.ToLower()==&lt;span style="color: #a31515;"&gt;"videos"&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = VideosUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPQuery&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; getDeletedItemQuery = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;SPQuery&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;getDeletedItemQuery.Query = &lt;span style="color: #a31515;"&gt;"&lt;where&gt;&lt;and&gt;&lt;contains&gt;&lt;fieldref name="\&amp;quot;FileLeafRef\&amp;quot;"&gt;&lt;value type="\&amp;quot;File\&amp;quot;"&gt;"&lt;/value&gt;&lt;/fieldref&gt;&lt;/contains&gt;&lt;/and&gt;&lt;/where&gt;&lt;/span&gt; + deletedItmGuidId + &lt;span style="color: #a31515;"&gt;"&lt;contains&gt;&lt;fieldref name="\&amp;quot;Title\&amp;quot;"&gt;&lt;value type="\&amp;quot;Text\&amp;quot;"&gt;"&lt;/value&gt;&lt;/fieldref&gt;&lt;/contains&gt;&lt;/span&gt; + newsItemId + &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPList&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; spList = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[lstName];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItemCollection&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; coll = spList.GetItems(getDeletedItemQuery);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;getDeletedItemQuery = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;latestItemId= DeleteNewsIdFromItemTitle(coll);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItem&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; itm= spList.GetItemById(coll[0].ID);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;spList.ParentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;true&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] = latestItemId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;itm.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;spList.Update();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;spList.ParentWeb.AllowUnsafeUpdates = &lt;span style="color: blue;"&gt;false&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log the Exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#endregion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;#region&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; External helper functions&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt; DeleteNewsIdFromItemTitle(&lt;span style="color: #2b91af;"&gt;SPListItemCollection&lt;/span&gt; coll)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;[] strCollection ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; latestItemId=&lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (coll.Count &amp;gt; 0 &amp;amp;&amp;amp; coll[0][&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;]!=&lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;strCollection= coll[0][&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Split(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: blue;"&gt;string&lt;/span&gt; str &lt;span style="color: blue;"&gt;in&lt;/span&gt; strCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (str.Trim() == newsItemId)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;continue&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;latestItemId += str + &lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; latestItemId;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log the Exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;return&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; FillInGridWithUploads()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (Item[&lt;span style="color: #2b91af;"&gt;FileUploader&lt;/span&gt;.internalFieldName] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; newsItemId = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Item[&lt;span style="color: #2b91af;"&gt;FileUploader&lt;/span&gt;.internalFieldName].ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPQuery&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; getElementsByGuidId = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;SPQuery&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;getElementsByGuidId.Query = &lt;span style="color: #a31515;"&gt;"&lt;where&gt;&lt;contains&gt;&lt;fieldref name="\&amp;quot;Title\&amp;quot;"&gt;&lt;value type="\&amp;quot;Text\&amp;quot;"&gt;"&lt;/value&gt;&lt;/fieldref&gt;&lt;/contains&gt;&lt;/where&gt;&lt;/span&gt; + newsItemId + &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItemCollection&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; imagesCollection = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[ImagesUploadList].GetItems(getElementsByGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItemCollection&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; videosCollection = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[VideosUploadList].GetItems(getElementsByGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPListItemCollection&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; pdfsCollection = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[PdfsUploadList].GetItems(getElementsByGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;FillDataGrid(imagesCollection, pdfsCollection, videosCollection);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;getElementsByGuidId = &lt;span style="color: blue;"&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;catch&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: green; font-family: &amp;quot;; font-size: 10;"&gt;//To do: Log the Exception.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; FillDataGrid(&lt;span style="color: #2b91af;"&gt;SPListItemCollection&lt;/span&gt; imagesCollection, &lt;span style="color: #2b91af;"&gt;SPListItemCollection&lt;/span&gt; pdfsCollection, &lt;span style="color: #2b91af;"&gt;SPListItemCollection&lt;/span&gt; videosCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataTable&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; dt = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataTable&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataColumn&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileName = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataColumn&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"File name"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataColumn&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileType = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataColumn&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"File type"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataColumn&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileSize = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataColumn&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"File size"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataColumn&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; fileGuidId = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;DataColumn&lt;/span&gt;(&lt;span style="color: #a31515;"&gt;"File guid id"&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Columns.Add(fileName);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Columns.Add(fileType);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Columns.Add(fileSize);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Columns.Add(fileGuidId);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: #2b91af;"&gt;SPListItem&lt;/span&gt; itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; imagesCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataRow&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; row = dt.NewRow();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileName] = (!itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Contains(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)) ? itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString() : itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Split(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileType] = &lt;span style="color: #a31515;"&gt;"Images"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileSize] = itm.File.Length.ToString()+&lt;span style="color: #a31515;"&gt;" bytes"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileGuidId] = (itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;]!=&lt;span style="color: blue;"&gt;null&lt;/span&gt;) ? itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;].ToString() : &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Rows.Add(row);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: #2b91af;"&gt;SPListItem&lt;/span&gt; itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; pdfsCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataRow&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; row = dt.NewRow();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileName] = (!itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Contains(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)) ? itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString() : itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Split(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileType] = &lt;span style="color: #a31515;"&gt;"pdf files"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileSize] = itm.File.Length.ToString() + &lt;span style="color: #a31515;"&gt;" bytes"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileGuidId] = (itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) ? itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;].ToString() : &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Rows.Add(row);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: #2b91af;"&gt;SPListItem&lt;/span&gt; itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; videosCollection)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;DataRow&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; row = dt.NewRow();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileName] = (!itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Contains(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)) ? itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString() : itm[&lt;span style="color: #a31515;"&gt;"Title"&lt;/span&gt;].ToString().Split(&lt;span style="color: #a31515;"&gt;'*'&lt;/span&gt;)[0];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileType] = &lt;span style="color: #a31515;"&gt;"pdf files"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileSize] = itm.File.Length.ToString() + &lt;span style="color: #a31515;"&gt;" bytes"&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;row[fileGuidId] = (itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) ? itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;].ToString() : &lt;span style="color: #a31515;"&gt;""&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;dt.Rows.Add(row);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataSource = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;UploadingGrid.DataBind();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;ViewState[&lt;span style="color: #a31515;"&gt;"UploadingGrid"&lt;/span&gt;] = dt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;private&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; AddSelectedToNewsItem()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;string&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; lstName = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdImages.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = ImagesUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdVideos.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = VideosUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (RdPdfs.Checked)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;lstName = PdfsUploadList;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: #2b91af; font-family: &amp;quot;; font-size: 10;"&gt;SPList&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; list = &lt;span style="color: #2b91af;"&gt;SPContext&lt;/span&gt;.Current.Site.RootWeb.Lists[lstName];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;foreach&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (&lt;span style="color: #2b91af;"&gt;SPListItem&lt;/span&gt; itm &lt;span style="color: blue;"&gt;in&lt;/span&gt; list.Items)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="color: blue; font-family: &amp;quot;; font-size: 10;"&gt;if&lt;/span&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt; (itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;] != &lt;span style="color: blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; itm[&lt;span style="color: #a31515;"&gt;"Name"&lt;/span&gt;].ToString().Contains(SelectDropDown.SelectedValue))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(217, 217, 217) none repeat scroll 0% 0%; line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;; font-size: 10;"&gt;list.ParentWeb.AllowUnsafeUpdates = &lt;span sty
