<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dotnet-developer.de</title>
	<atom:link href="http://www.dotnet-developer.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnet-developer.de</link>
	<description>Tips for vb.net, asp.net and SQL</description>
	<lastBuildDate>Sun, 15 Jan 2012 19:53:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Session Cookies lost in Internet Explorer IE9 ..</title>
		<link>http://www.dotnet-developer.de/2012/01/aspnet2005/session-cookies-lost-in-internet-explorer-ie9/</link>
		<comments>http://www.dotnet-developer.de/2012/01/aspnet2005/session-cookies-lost-in-internet-explorer-ie9/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 19:53:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net 2005]]></category>
		<category><![CDATA[P3P]]></category>
		<category><![CDATA[Privacy Policy]]></category>
		<category><![CDATA[Session Cookies]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/?p=160</guid>
		<description><![CDATA[or: How to create P3P (privacy policy) Files for IIS. I have a facebook application which runs within the facebook frame. Everything works fine. I’m using Facebook C# SDK to authenticate the user. Then I store several information, e.g. users name and his facebook id, in session variables. Everything works fine but I betatester complained [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2012/01/aspnet2005/session-cookies-lost-in-internet-explorer-ie9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2012%2F01%2Faspnet2005%2Fsession-cookies-lost-in-internet-explorer-ie9%2F&amp;language=en_GB&amp;category=text&amp;title=Session+Cookies+lost+in+Internet+Explorer+IE9+..&amp;description=or%3A+How+to+create+P3P+%28privacy+policy%29+Files+for+IIS.+++I+have+a+facebook+application+which+runs+within+the+facebook+frame.+Everything+works+fine.+I%E2%80%99m+using+Facebook+C%23+SDK+to+authenticate+the+user.+Then+I+store+several+information%2C+e.g.+users+name+and+his+facebook+id%2C+in+session+variables.+Everything+works+fine+but+I+betatester+complained+that+he+is+not+able+to+use+the+application.+Checking+his+settings+shows+that+he+uses+IE+9.+That+should+not+be+the+problem%2C+just+a+side+note%3A+All+others+use+Firefox+and+Chrome%E2%80%A6.+However%2C+taking+a+closer+look+shows+that+his+session+cookies+are+lost%21+I+could+store+them+and+immediately+retrieve+them%2C+but+if+I+want+to+access+them+in+another+part+2+seconds+later+they+are+gone.+I%E2%80%99ve+tried+with+my+own+IE+9+and+it%E2%80%99s+the+same+result%3A+Session+Cookies+are+lost.+Firefox%2C+Chrome+and+Opera+work+fine.+So+what%E2%80%99s+the+difference+with+IE%3F+I+have+another+app+where+each+user+has+to+authenticate+with+Facebook+but+there+the+app+does+not+run+within+the+facebook+frame+but+in+a+seperate+window%2C+and+there+everything+is+working+fine%E2%80%A6+++I+found+several+different+places+with+several+small+parts+of+explanations%2C+e.g.+Images+without+URL%2C+and+several+solutions%2C+e.g.+add+my+site+to+the+trusted+sites+in+each+IE%2C+and+after+some+articles+I+found+the+reason%3A+The+Platform+for+Privacy+Preferences+%28P3P%29+Project.%26%23160%3B+Wikipedia+says%3A+%E2%80%9CThe+Platform+for+Privacy+Preferences+Project%2C+or+P3P%2C+is+a+protocol+allowing+websites+to+declare+their+intended+use+of+information+they+collect+about+browsing+users.+Designed+to+give+users+more+control+of+their+personal+information+when+browsing%2C+P3P+was+developed+by+the+World+Wide+Web+Consortium+%28W3C%29+and+officially+recommended+on+April+16%2C+2002.%E2%80%9D+So+why+does+this+disturb+IE9+and+not+Firefox%3F+And+only+within+the+facebook+frame+and+not+as+standalone%3F+P3P+should+make+the+privacy+policy+of+each+domain+readable+for+machines%2C+especially+browsers.+My+page+did+not+have+such%2C+probably+like+most+other+home-made+sites.+Most+browsers+don%E2%80%99t+bother+about+missing+privacy+policy%2C+but+IE+does.+But+only+from+third+party.+It%E2%80%99s+also+written+in+the+Privacy+tab+of+Internet+explorer.+Default+privacy+setting+is+%E2%80%98Medium%E2%80%99+which+means+++++Block+third-party+cookies+that+do+not+have+a+compact+privacy+policy++++Block+third-party+cookies+that+save+information+that+can+be+used+to+contact+you+without+your+explicit+consent+++++So+in+my+case+my+application+is+%27%E2%80%9Dthird-party%E2%80%9D+because+it+runs+in+the+Facebook+Frame+at+url+http%3A%2F%2Fapps.facebook.com+.+For+you+it%E2%80%99s+easy+to+find+out+whether+it%E2%80%99s+the+same+case%3A+In+IE+click+%E2%80%98View%E2%80%99+%E2%80%93%26gt%3B+%E2%80%98Webpage+Privacy+Policy%E2%80%99.+If+your+domain+is+blocked+than+you+probably+need+a+privacy+policy.%26%23160%3B+++++What+is+a+privacy+policy+and+how+to+get+one%3F++W3C+defines+P3P+standards.+As+I%E2%80%99m+probably+not+the+first+one+searching+for+it+I+hoped+to+find+a+simple+editor+which+creates+such+files+for+me+and+I%E2%80%99m+done.+Unfortunately+it%E2%80%99s+a+bit+more+complicated++There+are+some+online+services+offering+to+create+P3P+files+but+before+spending+money+I+tried+to+find+some+free+services.+Surprisingly+there+are+not+too+many%2C+most+websites+recommend+%E2%80%98P3P+Policy+Editor%E2%80%99+from+IBMs+Alphaworks.+It+could+be+downloaded+from+IBMs+Download+page.++If+you+are+using+it+for+the+first+time+it+might+be+confusing+%28at+least+for+me%29+so+I%E2%80%99m+happy+to+find+section+%E2%80%98An+example%E2%80%99+on+Content+With+Style.+This+helped+me+to+create+the+necessary+files.+When+you+are+done%2C+save+your+files+in+all+available+options%3A+++++%E2%80%98Save+Policy+as%E2%80%99%E2%80%A6+policy.xml++++%E2%80%98Save+HTML+as%E2%80%99+%E2%80%A6+privacy.html++++%E2%80%98Save+Compact+policy+as%E2%80%99%E2%80%A6.+compact.txt+++Changes+on+IIS+Configuration++Now+go+to+your+servers+IIS+and+change+the+HTTP+Response+Header+for+your+site.+Add+a+new+element+called+%E2%80%98p3p%E2%80%99+and+copy+the+text+from+compact.txt+as+value%3A++++Also+create+a+new+directory+%E2%80%98w3c%E2%80%99+in+your+root+directory.+Before+uploading+the+other+files%2C+a+change+has+to+be+made+to+p3p.xml+%28example+file+below%29+according+to+this+answer+on+ExpertsExchange%3A+Policy-Ref+has+to+be+updated.+++When+this+is+done%2C+upload+p3p.xml%2C+privacy.xml+and+privacy.html+to+w3c-directory+in+your+root.+Use+the+P3P+Validator+from+W3C+to+check+whether+all+settings+are+correct.+If+not%2C+take+care+about+the+advices+from+W3C+and+update+your+links+or+else.++Live+Test++Now+open+your+app+again+in+IE.+You+should+see+that+session+cookies+are+now+stored+as+expected.+You+could+confirm+this+when+you+again+check+%E2%80%98View%E2%80%99+%E2%80%93%26gt%3B+%E2%80%98Webpage+Privacy+Policy%E2%80%99%3A+Your+domain+should+not+be+blocked+anymore%21++Example+P3P.XML++%26lt%3BMETA+xmlns%3D%26quot%3Bhttp%3A%2F%2Fwww.w3.org%2F2002%2F01%2FP3Pv1%26quot%3B%26gt%3B%0A%26lt%3BPOLICY-REFERENCES%26gt%3B%0A++++%26lt%3BPOLICY-REF+about%3D%26quot%3Bhttps%3A%2F%2F%5Byour+domain+here%5D.com%2Fw3c%2Fpolicy.xml%23PrivacyPolicy%26quot%3B%26gt%3B%0A++++++%26lt%3BINCLUDE%26gt%3B%2F%2A%26lt%3B%2FINCLUDE%26gt%3B%0A++++++%26lt%3BCOOKIE-INCLUDE%2F%26gt%3B%0A++++%26lt%3B%2FPOLICY-REF%26gt%3B%0A%0A%26lt%3B%2FPOLICY-REFERENCES%26gt%3B%0A%26lt%3B%2FMETA%26gt%3B&amp;tags=P3P%2CPrivacy+Policy%2CSession+Cookies%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Uploading a file with asp.net, jQuery and jTemplate</title>
		<link>http://www.dotnet-developer.de/2011/03/vbnet2005/uploading-a-file-with-asp-net-jquery-and-jtemplate/</link>
		<comments>http://www.dotnet-developer.de/2011/03/vbnet2005/uploading-a-file-with-asp-net-jquery-and-jtemplate/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 19:41:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net 2005]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[vb.net 2005]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/2011/03/vbnet2005/uploading-a-file-with-asp-net-jquery-and-jtemplate/</guid>
		<description><![CDATA[Playing around with jQuery and jTemplate and I had the following problem: On a page created with jTemplate I could not use asp:FileUpload Control. Additionally it would of course be better to have an Ajax / jQuery control as this would better integrate into a jQuery website. There are several jQuery Fileupload controls, and Ajax-Upload [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2011/03/vbnet2005/uploading-a-file-with-asp-net-jquery-and-jtemplate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2011%2F03%2Fvbnet2005%2Fuploading-a-file-with-asp-net-jquery-and-jtemplate%2F&amp;language=en_GB&amp;category=text&amp;title=Uploading+a+file+with+asp.net%2C+jQuery+and+jTemplate&amp;description=Playing+around+with+jQuery+and+jTemplate+and+I+had+the+following+problem%3A+On+a+page+created+with+jTemplate+I+could+not+use+asp%3AFileUpload+Control.+Additionally+it+would+of+course+be+better+to+have+an+Ajax+%2F+jQuery+control+as+this+would+better+integrate+into+a+jQuery+website.+There+are+several+jQuery+Fileupload+controls%2C+and+Ajax-Upload+is+my+favorite%2C+e.g.+because+it+allows+multiple+fileupload+and+does+not+require+Flash.+Andrew+Valums%2C+the+creator+of+the+Ajax-Upload%2C+has+posted+a+C%23-Example+but+as+it%E2%80%99s+just+posted+in+the+comments+it+might+be+missed+easily.+Additionally+I+needed+it+for+Visual+Basic+so+I%E2%80%99ve+transfered+it+and+wrote+this+short+blog+entry.First+follow+the+instructions+at+Ajax-Upload+page+to+setup+your+page.+I+use+the+following+JavaScript-Code+within+my+function+++++1+var+uploader+%3D+new+qq.FileUploader%28%7B%0A2+++++element%3A+document.getElementById%28%27file-uploader%27%29%2C%0A3+++++action%3A+%27MyWebservice.asmx%2FProcessFile%27%2C%0A4+++++debug%3A+false%2C%0A5+++++sizeLimit%3A+1100000%2C+%2F%2F+max+size+1+MB++%0A6+++++allowedExtensions%3A+%5B%27txt%27%5D%0A7+%7D%29%3B&amp;tags=blog" type="text/html" />
	</item>
		<item>
		<title>Compare XML Values with existing table rows</title>
		<link>http://www.dotnet-developer.de/2011/01/sql/compare-xml-values-with-existing-table-rows/</link>
		<comments>http://www.dotnet-developer.de/2011/01/sql/compare-xml-values-with-existing-table-rows/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 10:17:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[MS SQL 2005]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/2011/01/sql/compare-xml-values-with-existing-table-rows/</guid>
		<description><![CDATA[I have a MS SQL Table containing user data, e.g. Username and ID. This list should be compared with another list which is available as XML Document. Fortunately MS SQL 2005 is able to process XML so I searched around and found a post from Divya Agrawal on MSSQLTips.com. In Divyas tip 2 XML files [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2011/01/sql/compare-xml-values-with-existing-table-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2011%2F01%2Fsql%2Fcompare-xml-values-with-existing-table-rows%2F&amp;language=en_GB&amp;category=text&amp;title=Compare+XML+Values+with+existing+table+rows&amp;description=I+have+a+MS+SQL+Table+containing+user+data%2C+e.g.+Username+and+ID.+This+list+should+be+compared+with+another+list+which+is+available+as+XML+Document.+Fortunately+MS+SQL+2005+is+able+to+process+XML+so+I+searched+around+and+found+a+post+from+Divya+Agrawal+on+MSSQLTips.com.+In+Divyas+tip+2+XML+files+are+compared%2C+so+I+modified+it+to+compare+XML+and+SQL+row.++++For+this+example%2C+my+SQL+Table+%E2%80%98Users%E2%80%99+has+just+2+rows%3A+%E2%80%9CName%E2%80%9D+%28varchar%28100%29%29+and+%E2%80%9CID%E2%80%9D+%28int%29.+My+XML+File+looks+like+this%3A++++++++1%3A+++%26lt%3Broot%26gt%3B%0A%0A+++++2%3A+++++++%26lt%3Bdata%26gt%3B%0A%0A+++++3%3A+++++++++++%26lt%3Bname%26gt%3BThorsten+Test%26lt%3B%2Fname%26gt%3B%0A%0A+++++4%3A+++++++++++%26lt%3Bid%26gt%3B123%26lt%3B%2Fid%26gt%3B%0A%0A+++++5%3A+++++++%26lt%3B%2Fdata%26gt%3B%0A%0A+++++6%3A+++++++%26lt%3Bdata%26gt%3B%0A%0A+++++7%3A+++++++++++%26lt%3Bname%26gt%3BPeter+Pommes%26lt%3B%2Fname%26gt%3B%0A%0A+++++8%3A+++++++++++%26lt%3Bid%26gt%3B124%26lt%3B%2Fid%26gt%3B%0A%0A+++++9%3A+++++++%26lt%3B%2Fdata%26gt%3B%0A%0A++++10%3A+++++++%26lt%3Bdata%26gt%3B%0A%0A++++11%3A+++++++++++%26lt%3Bname%26gt%3BWiki+Pedia%26lt%3B%2Fname%26gt%3B%0A%0A++++12%3A+++++++++++%26lt%3Bid%26gt%3B125%26lt%3B%2Fid%26gt%3B%0A%0A++++13%3A+++++++%26lt%3B%2Fdata%26gt%3B%0A%0A++++14%3A+++%26lt%3B%2Froot%26gt%3B%0A%0A%0A.csharpcode%2C+.csharpcode+pre%0A%7B%0A%09font-size%3A+small%3B%0A%09color%3A+black%3B%0A%09font-family%3A+consolas%2C+%22Courier+New%22%2C+courier%2C+monospace%3B%0A%09background-color%3A+%23ffffff%3B%0A%09%2F%2Awhite-space%3A+pre%3B%2A%2F%0A%7D%0A.csharpcode+pre+%7B+margin%3A+0em%3B+%7D%0A.csharpcode+.rem+%7B+color%3A+%23008000%3B+%7D%0A.csharpcode+.kwrd+%7B+color%3A+%230000ff%3B+%7D%0A.csharpcode+.str+%7B+color%3A+%23006080%3B+%7D%0A.csharpcode+.op+%7B+color%3A+%230000c0%3B+%7D%0A.csharpcode+.preproc+%7B+color%3A+%23cc6633%3B+%7D%0A.csharpcode+.asp+%7B+background-color%3A+%23ffff00%3B+%7D%0A.csharpcode+.html+%7B+color%3A+%23800000%3B+%7D%0A.csharpcode+.attr+%7B+color%3A+%23ff0000%3B+%7D%0A.csharpcode+.alt+%0A%7B%0A%09background-color%3A+%23f4f4f4%3B%0A%09width%3A+100%25%3B%0A%09margin%3A+0em%3B%0A%7D%0A.csharpcode+.lnum+%7B+color%3A+%23606060%3B+%7D%0A%0A%0ASo+I+need+to+check+whether+%E2%80%98root%2Fdata%2Fid%E2%80%99+from+XML+file+is+already+in+table+column+%E2%80%98ID%E2%80%99.+If+not%2C+the+name+and+the+ID+should+be+returned.+This+could+be+done+with+this+little+query%3A%0A%0A%0A+++++1%3A+++CREATE+PROCEDURE+%5Bdbo%5D.%5BFindNewUsers%5D%0A%0A+++++2%3A+++++++%40Userlist+XML%0A%0A+++++3%3A+++AS%0A%0A+++++4%3A+++BEGIN%0A%0A+++++5%3A+++++++SET+NOCOUNT+ON%3B%0A%0A+++++6%3A+++%0A%0A+++++7%3A+++++++Select+N.value%28%27name%5B1%5D%27%2C+%27varchar%28100%29%27%29+as+Username%2C%0A%0A+++++8%3A+++++++++++++++N.value%28%27id%5B1%5D%27%2C+%27int%27%29+as+ID%0A%0A+++++9%3A+++++++++++++++from+%40Userlist.nodes%28%27%2Froot%2Fdata%27%29+as+X%28N%29%0A%0A++++10%3A+++++++where+N.value%28%27id%5B1%5D%27%2C+%27int%27%29+Not+in+%28select+ID+from+Users%29%0A%0A++++11%3A+++END%0A%0A%0A.csharpcode%2C+.csharpcode+pre%0A%7B%0A%09font-size%3A+small%3B%0A%09color%3A+black%3B%0A%09font-family%3A+consolas%2C+%22Courier+New%22%2C+courier%2C+monospace%3B%0A%09background-color%3A+%23ffffff%3B%0A%09%2F%2Awhite-space%3A+pre%3B%2A%2F%0A%7D%0A.csharpcode+pre+%7B+margin%3A+0em%3B+%7D%0A.csharpcode+.rem+%7B+color%3A+%23008000%3B+%7D%0A.csharpcode+.kwrd+%7B+color%3A+%230000ff%3B+%7D%0A.csharpcode+.str+%7B+color%3A+%23006080%3B+%7D%0A.csharpcode+.op+%7B+color%3A+%230000c0%3B+%7D%0A.csharpcode+.preproc+%7B+color%3A+%23cc6633%3B+%7D%0A.csharpcode+.asp+%7B+background-color%3A+%23ffff00%3B+%7D%0A.csharpcode+.html+%7B+color%3A+%23800000%3B+%7D%0A.csharpcode+.attr+%7B+color%3A+%23ff0000%3B+%7D%0A.csharpcode+.alt+%0A%7B%0A%09background-color%3A+%23f4f4f4%3B%0A%09width%3A+100%25%3B%0A%09margin%3A+0em%3B%0A%7D%0A.csharpcode+.lnum+%7B+color%3A+%23606060%3B+%7D%0A%0AThat%E2%80%99s+it%21&amp;tags=MS+SQL+2005%2Cxml%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Use CustomValidator to check textbox depending on Radiobutton</title>
		<link>http://www.dotnet-developer.de/2010/10/aspnet2005/use-customvalidator-to-check-textbox-depending-on-radiobutton/</link>
		<comments>http://www.dotnet-developer.de/2010/10/aspnet2005/use-customvalidator-to-check-textbox-depending-on-radiobutton/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 22:21:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net 2005]]></category>
		<category><![CDATA[validator]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/2010/10/aspnet2005/use-customvalidator-to-check-textbox-depending-on-radiobutton/</guid>
		<description><![CDATA[For input validation I often use the Validators provided by Microsoft out of the box: RequiredFieldValidator to check whether user entered some data into the textbox, RangeValidator to check the range of numeric values or dates, RegularExpressionValidator to check the size of user input (and much more of course), CompareValidator to check dates, and today [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2010/10/aspnet2005/use-customvalidator-to-check-textbox-depending-on-radiobutton/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2010%2F10%2Faspnet2005%2Fuse-customvalidator-to-check-textbox-depending-on-radiobutton%2F&amp;language=en_GB&amp;category=text&amp;title=Use+CustomValidator+to+check+textbox+depending+on+Radiobutton&amp;description=For+input+validation+I+often+use+the+Validators+provided+by+Microsoft+out+of+the+box%3A+RequiredFieldValidator+to+check+whether+user+entered+some+data+into+the+textbox%2C+RangeValidator+to+check+the+range+of+numeric+values+or+dates%2C+RegularExpressionValidator+to+check+the+size+of+user+input+%28and+much+more+of+course%29%2C+CompareValidator+to+check+dates%2C+and+today+I+had+to+use+CustomValidator+to+check+one+field+depending+on+another+field.%0D%0AMy+asp.net+application+contains+a+textbox+which+has+to+be+filled+if+the+user+selected+%27Yes%27+on+a+radiobutton.+The+RequiredFieldValidator+does+not+help+because+you+could+not+add+a+condition+there.+So+it+has+to+be+done+with+the+CustomValidator.+I%27ve+searched+around+and+finally+combined+several+sources+into+this+solution+so+here+is+a+complete+overview+how+to+set+up.%0D%0A%0D%0A%0D%0A%0D%0AHave+a+look+at+my+RadioButton.+Nothing+special+here.%0D%0A%0D%0A%0D%0A%26lt%3Basp%3ARadioButtonList+ID%3D%22MyBtn%22+runat%3D%22server%22+RepeatDirection%3D%22Horizontal%22%26gt%3B%0D%0A++++++++++++++++++++%26lt%3Basp%3AListItem+Value%3D%22Yes%22+%2F%26gt%3B%0D%0A++++++++++++++++++++%26lt%3Basp%3AListItem+Value%3D%22No%22+%2F%26gt%3B%0D%0A++++++++++++++++%26lt%3B%2Fasp%3ARadioButtonList%26gt%3B%26lt%3B%2Ftd%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AAs+I+want+to+do+the+validation+in+the+client+we+have+to+do+some+Javascript+here.%0D%0A%0D%0A%0D%0A%26lt%3Bscript+type%3D%22text%2Fjavascript%22%26gt%3B%0D%0A++function+validateMyBtn%28oSrc%2C+args%29%7B%0D%0A++++++var+rbtnValue+%3D+null%3B%0D%0A++++++var+rbtnList+%3D+document.getElementsByName%28%27%26lt%3B%25%3D+MyBtn.ClientID+%25%26gt%3B%27%29%3B%0D%0A++++++var+radio+%3D+rbtnList%5B0%5D.getElementsByTagName%28%22input%22%29%3B%0D%0A++++++for+%28var+j+%3D+0%3B+j+%26lt%3B+radio.length%3B+j%2B%2B%29+%7B%0D%0A+++++++++if+%28radio%5Bj%5D.checked%29%0D%0A+++++++++++++rbtnValue+%3D+radio%5Bj%5D.value%3B%0D%0A++++++%7D%0D%0A++++++if+%28rbtnValue+%3D%3D+%27Yes%27%29+%7B%0D%0A+++++++++++++args.IsValid+%3D+%21%28args.Value+%3D%3D+%22%22%29%0D%0A++++++++++++%7D%0D%0A++++++else+%7B%0D%0A++++++++++++++args.IsValid+%3D+true%3B%0D%0A++++++++++++%7D%0D%0A%7D%0D%0A%26lt%3B%2Fscript%26gt%3B%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ATake+care+about+the+property+%22ValidateEmptyText%22%3A+If+you+miss+this+one%2C+the+validation+is+always+%22true%22+for+empty+fields....%0D%0A%0D%0AJust+to+have+it+complete%2C+here+is+the+RequiredFieldValidator+for+the+radiobutton%3A%0D%0A%0D%0A%0D%0A%26lt%3Basp%3ARequiredFieldValidator+ID%3D%22MyBtnValidator%22+ControlToValidate%3D%22MyBtn%22%0D%0A++++runat%3D%22server%22+ErrorMessage%3D%22Please+make+your+choice%22%0D%0A++++SetFocusOnError%3D%22true%22+%2F%26gt%3B%0D%0A%0D%0A%0D%0A&amp;tags=validator%2Cblog" type="text/html" />
	</item>
		<item>
		<title>How to call a modal popup from backend</title>
		<link>http://www.dotnet-developer.de/2010/06/aspnet2005/how-to-call-a-modal-popup-from-backend/</link>
		<comments>http://www.dotnet-developer.de/2010/06/aspnet2005/how-to-call-a-modal-popup-from-backend/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 18:47:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[asp.net 2005]]></category>
		<category><![CDATA[Modal Popup]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/?p=121</guid>
		<description><![CDATA[There are several ways to call a modal popup from asp.net. You could code it on your own using JavaScript, or you could use existing frameworks like jQuery or Ajax Control Toolkit. As I use both of them, I decided to check with the Ajax Control Toolkit as this is already implemented and no further [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2010/06/aspnet2005/how-to-call-a-modal-popup-from-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2010%2F06%2Faspnet2005%2Fhow-to-call-a-modal-popup-from-backend%2F&amp;language=en_GB&amp;category=text&amp;title=How+to+call+a+modal+popup+from+backend&amp;description=There+are+several+ways+to+call+a+modal+popup+from+asp.net.+You+could+code+it+on+your+own+using+JavaScript%2C+or+you+could+use+existing+frameworks+like+jQuery+or+Ajax+Control+Toolkit.+As+I+use+both+of+them%2C+I+decided+to+check+with+the+Ajax+Control+Toolkit+as+this+is+already+implemented+and+no+further+module+needs+to+be+referenced.%0D%0AYou+could+call+the+modal+popup+from+the+UI+or+from+Backend.+The+current+posting+is+just+a+reminder+for+me+how+to+use+it+in+backend.%0D%0A%0D%0AFirst%2C+ModalPopup+from+Ajax+Control+Toolkit+always+needs+to+be+initiated+by+a+button+click.+So+even+if+using+from+backend+we+still+have+to+define+a+button.+We+set+the+style+to+display%3Anone+so+the+user+would+not+see+it.+Take+care%3A+Do+not+use+visible%3Dfalse+as+the+button+would+not+be+created+then.+Then+we+define+the+ModalPopupExtender+as+usual%3A+Define+the+name%2C+the+target+panel+and+some+CSS.+The+TargetControlID+is+the+invisible+button%2C+the+PopupControlID+is+the+panel+which+should+be+shown+as+modal+popup.+In+the+panel+you+could+setup+the+modal+popup.+You+could+setsome+CSS%2C+enter+labels%2C+textboxes%2C+buttons+etc.%0D%0AAfter+everything+is+set+up%2C+go+to+your+backup+code.+To+show+this+popup+just+call+.show+on+the+ModalPopupExtender.+So+in+the+example+it+would+be+mdlPopupFilterName.Show.+As+soon+as+the+user+clicks+on+a+button+the+modalpopup+is+automatically+closed+so+you+don%27t+need+to+close+it+manually+in+your+code.%0D%0A%0D%0AHere+are+some+example+files%3A%0D%0A%0D%0AASP.NET%0D%0A%26lt%3Basp%3AButton+ID%3D%22btnShowPopup%22+runat%3D%22server%22+Style%3D%22display%3A+none%22+%2F%26gt%3B%0D%0A%26lt%3BajaxToolkit%3AModalPopupExtender+ID%3D%22mdlPopupFilterName%22+runat%3D%22server%22+TargetControlID%3D%22btnShowPopup%22+PopupControlID%3D%22SelectFiltername%22+BackgroundCssClass%3D%22modalBackground%22+%2F%26gt%3B%0D%0A%26lt%3Basp%3APanel+ID%3D%22SelectFiltername%22+runat%3D%22server%22+CssClass%3D%22modalPopup%22%26gt%3B%0D%0APlease+enter+Filtername%3A%26lt%3Bbr+%2F%26gt%3B%0D%0A%26lt%3Basp%3ATextBox+ID%3D%22Filtername%22+runat%3D%22server%22+CssClass%3D%22inputTextbox%22+%2F%26gt%3B%26lt%3Bbr+%2F%26gt%3B%0D%0A%26lt%3Basp%3AButton+ID%3D%22SaveFiltername%22+runat%3D%22server%22+Text%3D%22Save+Filter%22+CssClass%3D%22buttonOverview%22+%2F%26gt%3B%0D%0A%26lt%3Basp%3AButton+ID%3D%22CancelSaveFiltername%22+runat%3D%22server%22+Text%3D%22Cancel%22+CssClass%3D%22buttonOverview%22+%2F%26gt%3B%0D%0A%26lt%3B%2Fasp%3APanel%26gt%3B%0D%0A%0D%0AYour+backend+code%3A%0D%0APrivate+Sub+SaveFilter_Click%28ByVal+sender+As+Object%2C+ByVal+e+As+System.EventArgs%29+Handles+SaveFilter.Click%0D%0A%27+Do+some+other+checks+first+if+you+like%0D%0A%27+...%0D%0AmdlPopupFilterName.Show%28%29%0D%0AEnd+Sub%0D%0A%0D%0ASome+CSS+Classes%3A%0D%0A%2F%2AModal+Popup%2A%2F%0D%0A.modalBackground+%7B%0D%0Abackground-color%3AGray%3B%0D%0Afilter%3Aalpha%28opacity%3D70%29%3B%0D%0Aopacity%3A0.7%3B%0D%0A%7D%0D%0A%0D%0A.modalPopup+%7B%0D%0Abackground-color%3A%23ffffdd%3B%0D%0Aborder-width%3A3px%3B%0D%0Aborder-style%3Asolid%3B%0D%0Aborder-color%3AGray%3B%0D%0Apadding%3A3px%3B%0D%0Atext-align%3Acenter%3B%0D%0Awidth%3A+210px%3B%0D%0A%7D%0D%0A%0D%0A.buttonOverview%0D%0A%7B%0D%0Apadding-left%3A2px%3B%0D%0Afont-size%3A100%25%3B%0D%0A%7D&amp;tags=Modal+Popup%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Easiest way of asp.net deployment</title>
		<link>http://www.dotnet-developer.de/2010/05/aspnet2005/easiest-way-of-asp-net-deployment/</link>
		<comments>http://www.dotnet-developer.de/2010/05/aspnet2005/easiest-way-of-asp-net-deployment/#comments</comments>
		<pubDate>Sun, 09 May 2010 18:20:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net 2005]]></category>
		<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://www.dotnet-developer.de/?p=108</guid>
		<description><![CDATA[When it comes to deployment of asp.net projects there are several ways, as described for example on MSDN. Working with ASP.net for several years I&#8217;ve found the easiest way of deployment for myself is using zip / rar to pack an archive of updated files. This works very well in both company and personal webserver [...]]]></description>
		<wfw:commentRss>http://www.dotnet-developer.de/2010/05/aspnet2005/easiest-way-of-asp-net-deployment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Dotnetdeveloper&amp;url=http%3A%2F%2Fwww.dotnet-developer.de%2F2010%2F05%2Faspnet2005%2Feasiest-way-of-asp-net-deployment%2F&amp;language=en_GB&amp;category=text&amp;title=Easiest+way+of+asp.net+deployment&amp;description=When+it+comes+to+deployment+of+asp.net+projects+there+are+several+ways%2C+as+described+for+example+on+MSDN.+Working+with+ASP.net+for+several+years+I%27ve+found+the+easiest+way+of+deployment+for+myself+is+using+zip+%2F+rar+to+pack+an+archive+of+updated+files.+This+works+very+well+in+both+company+and+personal+webserver+configuration%3A%0D%0A%0D%0A%09In+company+I%27m+not+allowed+to+deploy+directly+to+the+live+server+%28as+this+is+an+admin+job%29%0D%0A%09The+admin+needs+to+be+able+to+easily+deploy+the+changes+to+stage+server+and+afterwards+to+live+server.%0D%0A%09The+admin+needs+to+be+able+to+identify+the+changed+files+easily.%0D%0A%09At+home+I+upload+the+files+to+my+IIS+via+FTP+as+that%27s+easier+than+connecting+to+the+machine+via+RDP+and+starting+an+update+installation.%0D%0A%09Previously+at+home+with+shared+hosting+I+only+had+access+to+my+webspace+via+FTP+and+not+via+Remote+Desktop+of+course.%0D%0A%0D%0ABearing+these+requests+in+mind+I+created+a+simple+batchfile+which+does+this+job+for+me.%0D%0A%0D%0AThe+batchfile+is+available+for+WinRar+and+7-zip+but+could+be+modified+easily+for+every+packer+which+supports+command-line+packing.%0D%0A%0D%0AWhat+it+does%3A%0D%0A%0D%0A%09+It+checks+the+current+directory+and+all+subdirectories+for+modified+files.%0D%0A%09+It+takes+care+of+an+exclusion+list+so+e.g.+your+source+code+%28%2A.vb%2C+%2A.aspx.vb+etc.%29+will+not+be+added+to+the+packed+file.%0D%0A%09+It+adds+current+date+to+the+filename+of+the+packed+file%2C+e.g.+%27MyFiles20091231.rar%27%0D%0A%09+If+the+packed+file+already+exists+it+will+be+deleted+first.%0D%0A%0D%0AConfigure+before+first+use%3A%0D%0A%0D%0A%09+Set+Archivename%3A+Line+25+contains+a+variable+%27Archivename%27.+Set+this+to+a+name+you+like%2C+e.g.+%27MyApp%25yy%25%25mm%25%25dd%25.rar%27.+You+might+remove+the+placefolders+for+current+year+%28%25yy%25%29%2C+month+%28%25mm%25%29+and+day+%28%25dd%25%29+if+you+want+to+have+always+the+same+filename%2C+but+personally+I+prefer+to+have+some+kind+of+history%2C+especially+as+these+packed+files+are+normally+very+small.%0D%0A%09+Set+Path+to+your+packer%3A+Line+31+starts+with+the+filepath+of+the+packer%2C+e.g.+%27%22C%3A%5CProgram+Files%5CWinRar%5CWinrar.exe%22%27.+Of+course+you+need+to+change+it+if+your+packer+is+at+another+location.%0D%0A%09+You+might+take+a+look+at+%27Backup-ExcludeFiles.txt%27.+That%27s+an+exclusion+list%2C+so+all+files+listed+here+are+NOT+added+to+the+packed+file.+You+could+use+single+filenames+%28%27web.config%27%29%2C+wildcards+%28%27%2A.zip%27%29+or+names+of+subdirectories+%28%27TestResults%27%29.%0D%0A%09+Now+place+all+these+files+into+your+local+application+path%2C+e.g.+%27C%3A%5Cinetpub%5Cwwwroot%5CMyApp%27.%0D%0A%0D%0AThat%27s+all+for+the+inital+configuration%21%21%0D%0A%0D%0AConfiguration+for+every+day+use%3A%0D%0AYou%27ve+made+some+changes+and+want+to+deploy+them%3F+Just+edit+the+4th+line+of+Backup.cmd.+It+contains+a+variable+%27LastUpdate%27%2C+holding+the+date+and+time+of+the+last+deployment.+You+have+to+edit+this+on+your+own.+Why+is+it+not+computed+automatically%3F+Because+maybe+you+made+a+deployment+to+stage+and+then+add+a+bugfix.+The+new+packed+file+of+course+also+needs+the+files+already+deployed+to+stage%2C+because+otherwise+you+will+get+a+problem+while+deploying+to+live.+So+this+date+should+be+the+latest+modification+date+for+all+your+environments+%28local+test%2C+stage%2C+live%29.%0D%0ANow+just+start+the+batch+file.+You+see+a+new+file+is+created.+This+file+could+be+forwarded+to+your+admin%2C+uploaded+to+another+documentation+system%2C+or+extracted+locally+to+upload+then+via+FTP+to+your+%28shared%29+hosting%21%0D%0A%0D%0ADownload+Backup+containing+Backup.cmd+and+Backup-ExcludeFiles.txt&amp;tags=asp.net%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

