<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4114598931624509864</id><updated>2026-03-03T13:58:02.457+05:30</updated><category term="Asp.Net"/><category term="Web development"/><category term="Asp.net 3.5"/><category term="C#"/><category term="Web Design and Development"/><category term="Asp.net 4.0"/><category term="Web page"/><category term="Ajax"/><category term="Java Script"/><category term="JavaScript"/><category term="HTML"/><category term="Programming"/><category term="Web User Control"/><category term="MSSQL 2008"/><category term="WebRequest"/><category term=".net"/><category term="AjaxToolKit"/><category term="Grid View"/><category term="SQL"/><category term="Web Browser"/><category term="Ado.net"/><category term="GridView"/><category term="MSSQL"/><category term="Search Engine Optimization"/><category term="Stock Market"/><category term="URL Rewriting"/><category term="User Management"/><category term="Yahoo Finance"/><category term="ASP"/><category term="Authentication"/><category term="CSS"/><category term="Callback"/><category term="Client-server"/><category term="Excel Operations"/><category term="ICallback"/><category term="IIS"/><category term="Image Handling"/><category term="JSON"/><category term="MVC"/><category term="Membership Provider"/><category term="SqlMembershipProviders"/><category term="URL redirection"/><category term="Validations"/><category term="ActiveDirectory"/><category term="Address bar"/><category term="AsyncCallback"/><category term="Autosuggest"/><category term="BeginInvoke"/><category term="Blackberry"/><category term="Bootstrap"/><category term="Calendar Extender"/><category term="Callback (computer science)"/><category term="Charts"/><category term="Cut  copy  and paste"/><category term="DataTable"/><category term="Database"/><category term="Export"/><category term="Generic Handlers"/><category term="Gmail"/><category term="Google API"/><category term="Hyperlink"/><category term="Hypertext Transfer Protocol"/><category term="Master Pages"/><category term="PageMethod"/><category term="Replace All"/><category term="Script Manager"/><category term="Send Email In Asp.net"/><category term="Session State"/><category term="Smart Phone Applications"/><category term="String Function in JavaScript"/><category term="Style"/><category term="Text box"/><category term="ToolkitScriptManager"/><category term="Update Panel"/><category term="XMLHttpRequest"/><category term="asp.net4.5"/><category term="ecommerce"/><category term="iFrame"/><category term="table"/><title type='text'>When it Comes to Asp.Net</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>68</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-4729765923188370632</id><published>2014-07-16T16:58:00.000+05:30</published><updated>2014-07-16T17:01:01.117+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="asp.net4.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="ecommerce"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><title type='text'>Bootstrap 3 responsive not working on mobile</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I was working on one eCommerce system and it was bootstrapped ... But somehow It was not working as responsive in mobile browsers but it was showing responsive nature in normal browser...&lt;br /&gt;
&lt;br /&gt;
I was missing following line in header section&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;initial-scale=1, maximum-scale=1&quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;And now it started working &lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/4729765923188370632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/4729765923188370632' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4729765923188370632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4729765923188370632'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2014/07/bootstrap-3-responsive-not-working-on.html' title='Bootstrap 3 responsive not working on mobile'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-7631082262410356943</id><published>2014-04-04T16:43:00.000+05:30</published><updated>2014-04-04T16:44:34.494+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="WebRequest"/><title type='text'>301 redirect using web.config</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To do 301 permanent redirect add following line of codes in web.config.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;lt;system .webserver&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;lt;rewrite&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rules&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rule name=&quot;Redirect domain.com to www&quot; patternsyntax=&quot;Wildcard&quot; stopprocessing=&quot;true&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;match url=&quot;*&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditions&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add input=&quot;{HTTP_HOST}&quot; pattern=&quot;yourdomain.com&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/add&amp;gt;&amp;lt;/conditions&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type=&quot;Redirect&quot; url=&quot;http://www.yourdomain.com/{R:0}&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&amp;lt;/match&amp;gt;&amp;lt;/rule&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rules&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rewrite&amp;gt;&lt;br /&gt;
&amp;lt;/system .webserver&amp;gt; &lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/7631082262410356943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/7631082262410356943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7631082262410356943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7631082262410356943'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2014/04/301-redirect-using-webconfig.html' title='301 redirect using web.config'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-374524950611520528</id><published>2014-01-18T18:25:00.000+05:30</published><updated>2014-01-18T18:25:53.283+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><category scheme="http://www.blogger.com/atom/ns#" term="MVC"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>How do I enable HTTP PUT and DELETE for ASP.NET MVC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;GO to&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Handler Mappings&lt;/strong&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&amp;nbsp;in your&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;IIS Manager&lt;/strong&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;Find&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;ExtensionlessUrlHandler-Integrated-4.0&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;double click it.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;Click&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Request Restrictions...&lt;/strong&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&amp;nbsp;button and on Verbs tab, add both&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;DELETE&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin: 0px; padding: 1px 5px; vertical-align: baseline;&quot;&gt;PUT&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszR6R1jCniWvWaRNDTQZiIm6O6FoBYbUho8tlhyphenhyphenKTUK80CzSkOvVgBc2cV4TUlXDDui7Nrwbg_eXFTu2XDkEpQ59lYb1RPbTMDIoEJAQzcgnYo9CMpu27mR-73p8aAAyFAOA8dX3kO55s/s1600/AddVerb.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszR6R1jCniWvWaRNDTQZiIm6O6FoBYbUho8tlhyphenhyphenKTUK80CzSkOvVgBc2cV4TUlXDDui7Nrwbg_eXFTu2XDkEpQ59lYb1RPbTMDIoEJAQzcgnYo9CMpu27mR-73p8aAAyFAOA8dX3kO55s/s1600/AddVerb.png&quot; height=&quot;386&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;Remove WebDav from &quot;Modules&quot; and from &quot;Handler Mappings&quot;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Liberation Sans, DejaVu Sans, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Modules:&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebDAVModule, %windir%\System32\inetsrv\webdav.dll, Native, Inherited&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Handler Mappings:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebDAV, *, Enabled, Unspecified, WebDAVModule, Inherited&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Then Restart IIS&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
It results in a Web.Config change of:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;modules&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;remove name=&quot;WebDAVModule&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/modules&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;handlers&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;remove name=&quot;WebDAV&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/handlers&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/374524950611520528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/374524950611520528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/374524950611520528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/374524950611520528'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2014/01/how-do-i-enable-http-put-and-delete-for.html' title='How do I enable HTTP PUT and DELETE for ASP.NET MVC'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiszR6R1jCniWvWaRNDTQZiIm6O6FoBYbUho8tlhyphenhyphenKTUK80CzSkOvVgBc2cV4TUlXDDui7Nrwbg_eXFTu2XDkEpQ59lYb1RPbTMDIoEJAQzcgnYo9CMpu27mR-73p8aAAyFAOA8dX3kO55s/s72-c/AddVerb.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-4295407976770026845</id><published>2013-11-03T21:18:00.002+05:30</published><updated>2013-11-03T21:18:21.911+05:30</updated><title type='text'>What is Affiliate Marketing - How to make Money Online</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Every day more and more people are looking for different ways to earn extra money, or to earn a living, both in the online and offline worlds people are starting realize that having a &quot;job&quot; and working 40 hours a week for 40 years is not the ideal way to live. And it is true working like an animal make no sense anymore when there are many opportunities available to make money online.There are many ways to go for Extra money, but in case of online work You can Work from Home and Make Money online through Internet Jobs or By doing &lt;a href=&quot;http://www.growthrank.com/2013/09/13/3-tips-for-affiliate-marketers-for-20013/&quot;&gt;Affiliate Marketing&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;u&gt;&lt;i&gt;&lt;a href=&quot;http://www.growthrank.com/2013/09/13/3-tips-for-affiliate-marketers-for-20013/&quot;&gt;Affiliate marketing&lt;/a&gt; is a type of performance-based marketing in which a business rewards one or more affiliates for each visitor or customer brought by the affiliate&#39;s own marketing efforts.&lt;/i&gt;&lt;/u&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
As we have some blog or web site with good number of Visitors we can make decent amount of money using Affiliate Marketing.Your affiliate can be anything from a website or e-newsletter or blog or squidoo lense or facebook page anything which can be shared with people online, it could also be a shopping portal, to name a few. Many online websites and shopping portals uses Affiliate program, where they allow any one to do advertising online using Affiliated link, and the company pays the affiliate a 5%-20% commission on sales.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp;&lt;a href=&quot;http://www.enidus.com/images/affiliatemarekting.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;http://www.enidus.com/images/affiliatemarekting.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;a href=&quot;http://www.growthrank.com/2013/09/11/why-viral-marketing-is-effective-in-2013/&quot;&gt;Viral Marketing&lt;/a&gt;: &lt;/b&gt;is a Marketing phenomenon that facilitates and encourages people to pass along a marketing message. Viral Marketing basically uses replication of some product or brand with use of&amp;nbsp; either Images, Videos, text ads and continuously making people aware about the product or brand.&lt;br /&gt;
One of the Effective way to reach many people is &lt;a href=&quot;http://www.growthrank.com/2013/09/11/why-viral-marketing-is-effective-in-2013/&quot;&gt;Viral Marketing&lt;/a&gt;. Funny Videos, Funny images, relative content or publishing interesting article are ways for Viral Marketing, making more and more people aware about the Brand.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.crowdcrux.com/wp-content/uploads/2013/10/the-wheels-of-viral-marketing.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;http://www.crowdcrux.com/wp-content/uploads/2013/10/the-wheels-of-viral-marketing.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/4295407976770026845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/4295407976770026845' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4295407976770026845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4295407976770026845'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/11/what-is-affiliate-marketing-how-to-make.html' title='What is Affiliate Marketing - How to make Money Online'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-2669904819347260522</id><published>2013-10-20T15:38:00.001+05:30</published><updated>2013-10-20T15:38:09.437+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ado.net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>getting basic data types using reflection than nullable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While using class properties to use for data base connectivity, i.e. LINQ TO SQL, I was facing issue for nullable types.

I was using Reflection to fetch property type names, but for NULLABLE properties it use to send me property type name as NULLABLE`1.

I was suppose to use following switch case (Determine Nullable properties via reflection)
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;public static string getJSType(PropertyInfo propertyinfo)
        {

//GetCoreType function returns Property type.
switch (GetCoreType(propertyinfo.PropertyType).Name.ToUpper())
                {
                    case &quot;INT16&quot;:
                        return &quot;number&quot;;
                    case &quot;UINT16&quot;:
                        return &quot;number&quot;;
                    case &quot;SHORT&quot;:
                        return &quot;number&quot;;
                    case &quot;USHORT&quot;:
                        return &quot;number&quot;;
                    case &quot;INT32&quot;:
                        return &quot;number&quot;;
                    case &quot;UINT32&quot;:
                        return &quot;number&quot;;
                    case &quot;INT&quot;:
                        return &quot;number&quot;;
                    case &quot;UINT&quot;:
                        return &quot;number&quot;;
                    case &quot;INT64&quot;:
                        return &quot;longnumber&quot;;
                    case &quot;UINT64&quot;:
                        return &quot;longnumber&quot;;
                    case &quot;LONG&quot;:
                        return &quot;longnumber&quot;;
                    case &quot;ULONG&quot;:
                        return &quot;longnumber&quot;;
                    case &quot;DECIMAL&quot;:
                        return &quot;decimal&quot;;
                    case &quot;DOUBLE&quot;:
                        return &quot;float&quot;;
                    case &quot;BIGINT&quot;:
                        return &quot;longnumber&quot;;
                    case &quot;STRING&quot;:
                        return &quot;text&quot;;
                    case &quot;DATETIME&quot;:
                        return &quot;datepicker&quot;;
                    case &quot;BOOLEAN&quot;:
                        return &quot;flag&quot;;
                }
            //}
            return &quot;text&quot;;
        }
&lt;/pre&gt;
To determine type of NULLABLE properties via reflection, I used following function GetCoreType

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&amp;nbsp;private Type GetCoreType(Type type)
        {
            if (type.IsGenericType &amp;amp;&amp;amp;
                type.GetGenericTypeDefinition() == typeof(Nullable&amp;lt;&amp;gt;))
                return Nullable.GetUnderlyingType(type);
            else
                return type;
        }
&lt;/pre&gt;
Find Type of Nullable Properties via Reflection.
Determine type of Nullable properties view Relection.
While using reflection get core property type of nullable properties.
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/2669904819347260522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/2669904819347260522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2669904819347260522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2669904819347260522'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/10/getting-basic-data-types-using.html' title='getting basic data types using reflection than nullable'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-1888773324066589438</id><published>2013-09-21T22:12:00.001+05:30</published><updated>2013-09-21T22:13:59.376+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>Remove Double Quotes From String</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To Strip double Quotes from string use following code&lt;br /&gt;
&lt;br /&gt;
Lets say s is out string
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;string newstr = string.Empty
s = s.Replace(&quot;&quot;&quot;&quot;, &quot;&quot;);
&lt;/pre&gt;
OR
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;string newstr = string.Empty
s = s.Replace(&quot;\&quot;&quot;, &quot;&quot;);
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/1888773324066589438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/1888773324066589438' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1888773324066589438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1888773324066589438'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/09/remove-double-quotes-from-string.html' title='Remove Double Quotes From String'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-1171178897609312851</id><published>2013-05-22T15:15:00.000+05:30</published><updated>2013-05-22T15:16:22.547+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Validations"/><title type='text'>Hide Unncessary space when Validator messages are not firing....</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While working on validator controls, we need to give some text message to display. When we give a text message many times space is getting created to show validator message....&lt;br /&gt;
&lt;br /&gt;
When validators are not firing that time this space doesn&#39;t look good....&lt;br /&gt;
&lt;br /&gt;
To hide this unnecessary space when validator message is not firing set&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
Display property to Dynamic &lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
i.e. Display=&quot;dynamic&quot; &lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/1171178897609312851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/1171178897609312851' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1171178897609312851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1171178897609312851'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/05/hide-unncessary-space-when-validator.html' title='Hide Unncessary space when Validator messages are not firing....'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-4221712021110951404</id><published>2013-04-06T20:26:00.000+05:30</published><updated>2013-04-06T20:26:59.198+05:30</updated><title type='text'>Its All About Afilioplace.com place to buy and sell web designs(landing pages)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.afilioplace.com/&quot;&gt;Afilioplace &lt;/a&gt;is the best place to boost Affiliate marketing campaigns.&amp;nbsp; It the place where Affiliates can buy and sell all the resources required for Successful Affiliate Marketing. This is the best &lt;a href=&quot;http://www.afilioplace.com/&quot;&gt;Affiliate Marketplace&lt;/a&gt; This site provides quality tools for those who want to be successful in affiliate marketing no matter who they are, they can be simple affiliate marketers, writers, web designers or some programmer.. No matter who you are &lt;a href=&quot;http://www.afilioplace.com/&quot;&gt;Afilioplace&lt;/a&gt; is the one site which will enhance your marketing campaings...&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7lVGRBfsFVvEmHaNOPURbf-7rr2yaPDuneWcao41HgE-LPwjSX86s8r1LHWpaMZP0b-EabUsvAUSexuqV_g3ha25Me-LrwoD4anRrMv6EhoMxKLiKiY7Bf4HL_oLdP-QGZg4s4ZvmtOTA/s320/afilioplace.png&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;
This site has many things to offer, we can MAKE MONEY WITH AFILIOPLACE...&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Designer can &lt;a href=&quot;http://www.afilioplace.com/&quot;&gt;sell landing pages&lt;/a&gt; for Affiliate purpose&lt;/li&gt;
&lt;li&gt;Writers can sell pages, ebooks&lt;/li&gt;
&lt;li&gt;Programmers can sell softwares&lt;/li&gt;
&lt;li&gt;Marketers can sell their ideas....&lt;/li&gt;
&lt;/ol&gt;
Whatever sale this site makes we earn 70% of it which is actually a Really good marketing strategy, we can use this platform to make decent amount of money as well as we can sell our ideas and our own work... &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/4221712021110951404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/4221712021110951404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4221712021110951404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4221712021110951404'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/04/its-all-about-afilioplacecom-place-to.html' title='Its All About Afilioplace.com place to buy and sell web designs(landing pages)'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7lVGRBfsFVvEmHaNOPURbf-7rr2yaPDuneWcao41HgE-LPwjSX86s8r1LHWpaMZP0b-EabUsvAUSexuqV_g3ha25Me-LrwoD4anRrMv6EhoMxKLiKiY7Bf4HL_oLdP-QGZg4s4ZvmtOTA/s72-c/afilioplace.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-3033257715666008677</id><published>2013-02-13T13:06:00.000+05:30</published><updated>2013-02-13T13:29:35.118+05:30</updated><title type='text'>specified cast is not valid. asp.net checkbox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While working on Grid view with Checkboxes and binding dynamic data, I came across an Erroe saying &quot;Specified Cast is Not Valid&quot;, it was related to following code 
&lt;pre class=&quot;brush&quot;&gt;
  &lt;EditItemTemplate&gt;
                    &lt;asp:CheckBox ID=&quot;CheckBox2&quot; runat=&quot;server&quot; Checked=&#39;&lt;%# Bind(&quot;Received&quot;) %&gt;&#39; /&gt;
                &lt;/EditItemTemplate&gt;
&lt;/pre&gt;

&lt;br /&gt;&lt;/div&gt;

Then after doing search for specified cast is not valid. asp.net checkbox, I made following changes in the same code it worked. 

&lt;pre class=&quot;brush&quot;&gt;
 &lt;ItemTemplate&gt;
                    &lt;asp:CheckBox ID=&quot;CheckBox1&quot; runat=&quot;server&quot; Checked=&#39;&lt;%# Eval(&quot;Received&quot;).ToString().Equals(&quot;1&quot;) %&gt;&#39; 
                        Enabled=&quot;false&quot; /&gt;
                &lt;/ItemTemplate&gt;
&lt;/pre&gt;


I am not going into More details for specified cast is not valid for asp.net checkbox in this article.</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/3033257715666008677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/3033257715666008677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/3033257715666008677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/3033257715666008677'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/02/specified-cast-is-not-valid-aspnet.html' title='specified cast is not valid. asp.net checkbox'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-7539413403581270174</id><published>2013-02-04T13:00:00.002+05:30</published><updated>2013-02-04T13:04:45.589+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Membership Provider"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SqlMembershipProviders"/><title type='text'>The &#39;System.Web.Security.SqlMembershipProvider&#39; requires a database schema compatible with schema version &#39;1&#39;. Solved...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While working with Asp.NET and Membership, using MS SQL 2008 R2 I came across following error.
My web application was working perfect on my local machine but when I hosted it on remote server I got following error.
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;The &#39;System.Web.Security.SqlMembershipProvider&#39; requires a database schema compatible with schema version &#39;1&#39;.  However, the current database schema is not compatible with this version.  You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.&lt;/i&gt;&lt;/blockquote&gt;
After R&amp;amp;D I had came across three possible solutions &quot;&lt;u&gt;WHICH I THINK ARE RIGHT, AS THEY WORKED FOR ME IN DIFFERENT SCENARIOS&lt;/u&gt;.&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Check &quot;&lt;b&gt;aspnet_SchemaVersions&lt;/b&gt;&quot; table in database and make sure CompatibleSchemaVersion is set to &quot;1&quot; for all the Features (e.g. common, membership, role manager etc) available in table. Also make sure IsCurrentVersion column values are set to &#39;True&quot; for all Features.&lt;/li&gt;
&lt;li&gt;In Web.Config, and &lt;b&gt;aspnet_Applications&lt;/b&gt; table check if application Name is matching or not. Application name in web.config&#39;s Membership&amp;gt;Providers, Profile&amp;gt;Providers, RoleManager&amp;gt;Providers are matching with application name in database.&lt;/li&gt;
&lt;li&gt;In Membership&amp;gt;Provider I had &quot;&lt;b&gt;AspNetSqlMembershipProvider&lt;/b&gt;&quot; type as &lt;i&gt;&lt;u&gt;&lt;b&gt;type=&quot;System.Web.Security.SqlMembershipProvider&quot;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; which I modified (after referring to some articles online) to &lt;i&gt;&lt;u&gt;&lt;b&gt;type=&quot;System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;&lt;/b&gt;&lt;/u&gt;&lt;/i&gt; &lt;/li&gt;
&lt;/ol&gt;
Application worked for me when I checked all these things and made changes in my application.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;/ol&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/7539413403581270174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/7539413403581270174' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7539413403581270174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7539413403581270174'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/02/the-systemwebsecuritysqlmembershipprovi.html' title='The &#39;System.Web.Security.SqlMembershipProvider&#39; requires a database schema compatible with schema version &#39;1&#39;. Solved...'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-768749588275109705</id><published>2013-01-18T12:18:00.000+05:30</published><updated>2013-01-18T12:18:27.507+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL 2008"/><title type='text'>Cannot connect to local SQL Server Express 2008 R2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
Some times while using SQL server R2 on local machines we get a connection error something looking like&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;div style=&quot;border: 0px none; clear: both; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;TITLE: Connect to Server&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; clear: both; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Cannot connect to (local).&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; clear: both; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;ADDITIONAL INFORMATION:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px none; clear: both; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px 0px 1em; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px; word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #0c343d;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
To deal with it, there are two things we need to check&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: black; display: inline !important; float: none; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;Try this as your server:&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;code style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 1px 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;.\SQLEXPRESS&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;code style=&quot;border: 0px none; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 1px 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;This error occurs if &lt;/code&gt;&lt;code style=&quot;border: 0px none; color: black; font-family: Consolas,Menlo,Monaco,&#39;Lucida Console&#39;,&#39;Liberation Mono&#39;,&#39;DejaVu Sans Mono&#39;,&#39;Bitstream Vera Sans Mono&#39;,&#39;Courier New&#39;,monospace,serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 1px 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;SQLEXPRESS instance is not started. To verify the service is started or not run &lt;b&gt;services.msc&lt;/b&gt; and look for&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt; &lt;/span&gt;&quot;&lt;b&gt;SQL Server (SQLEXPRESS)&lt;/b&gt;&quot; service, status should be &quot;Started&quot;, if it is not, try to start it manually.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: #eeeeee;&quot;&gt;&lt;span style=&quot;color: black; display: inline ! important; float: none; font-family: Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwfmnfM3C0GmUow6vqYIsg6rUzQltix__Sgc4sO4GPfmgBiXuIQqo_mad9ZjizVTPj9qJGWBh2pvIdEbGVQmDEfjlQpX8Xr4uIY8zFOCBbFkDAhMg6eTZvPyw1o0-ccZWEB4QIyOFnmRtH/s1600/SqlServerConnection.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;67&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwfmnfM3C0GmUow6vqYIsg6rUzQltix__Sgc4sO4GPfmgBiXuIQqo_mad9ZjizVTPj9qJGWBh2pvIdEbGVQmDEfjlQpX8Xr4uIY8zFOCBbFkDAhMg6eTZvPyw1o0-ccZWEB4QIyOFnmRtH/s400/SqlServerConnection.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/768749588275109705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/768749588275109705' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/768749588275109705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/768749588275109705'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/01/cannot-connect-to-local-sql-server.html' title='Cannot connect to local SQL Server Express 2008 R2'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwfmnfM3C0GmUow6vqYIsg6rUzQltix__Sgc4sO4GPfmgBiXuIQqo_mad9ZjizVTPj9qJGWBh2pvIdEbGVQmDEfjlQpX8Xr4uIY8zFOCBbFkDAhMg6eTZvPyw1o0-ccZWEB4QIyOFnmRtH/s72-c/SqlServerConnection.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-8486139503096399955</id><published>2013-01-09T12:53:00.002+05:30</published><updated>2013-01-09T12:53:46.708+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #eeeeee; color: black; display: inline !important; float: none; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
While using transaction in Asp.net/C# I got above error.&lt;br /&gt;
&lt;br /&gt;
To solve this error I simply added Transaction object in SqlCommand like below
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;SqlTransaction Transaction;
conn.Open();
Transaction = conn.BeginTransaction(); 
SqlCommand cmd = new SqlCommand(sql, conn, Transaction);

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/8486139503096399955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/8486139503096399955' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8486139503096399955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8486139503096399955'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2013/01/executenonquery-requires-command-to.html' title='ExecuteNonQuery requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-2089298325945243925</id><published>2012-11-11T15:53:00.000+05:30</published><updated>2012-11-11T15:53:27.504+05:30</updated><title type='text'>Fetch Distinct Values From Datatable In c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To Fetch distinct values from already fetched DataTable in Ado.net we can use following method.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;DataTable temp = DT.DefaultView.ToTable(true, &quot;ContractId&quot;);
//Note here I wanted to fetch Distinct ContractIds from DT
&lt;/pre&gt;
&lt;/div&gt;
Use Above code to select Distinct values from the Datatable, or Use Above code to fetch distinct values from Ado.Net Datatable or datatable in c#.
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/2089298325945243925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/2089298325945243925' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2089298325945243925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2089298325945243925'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/11/fetch-distinct-values-from-datatable-in.html' title='Fetch Distinct Values From Datatable In c#'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-6863842333506116587</id><published>2012-10-29T17:59:00.002+05:30</published><updated>2012-10-29T18:02:32.497+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AjaxToolKit"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Master Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="Update Panel"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While working on Asp.Net application with Master Pages, Child pages and web user controls getting following error is very common. Which is related to Events related to Web user controls, e.g. Button click event...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using &lt;pages enableeventvalidation=&quot;true&quot;&gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&quot;true&quot; %&amp;gt; in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
&lt;/pages&gt;&lt;/pre&gt;
&lt;br /&gt;
In such cases as error says we simply have to disable EventValidation in @Page directive and error disappears.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@ Page EnableEventValidation=&quot;false&quot; %&amp;gt;&lt;/pre&gt;
OR enable it for whole application by modifying it in web.config file&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;%@pages enableeventvalidation=&quot;false&quot;&amp;gt;
&amp;lt;%@/pages&amp;gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/6863842333506116587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/6863842333506116587' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6863842333506116587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6863842333506116587'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/10/microsoft-jscript-runtime-error.html' title='Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-709837945101614559</id><published>2012-08-09T11:40:00.000+05:30</published><updated>2012-10-29T17:56:24.316+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 3.5"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="Grid View"/><category scheme="http://www.blogger.com/atom/ns#" term="GridView"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Auto Generate Serial Number in GridView</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To auto generate serial number in Gridview, which we can use only for display purpose and has nothing to do with database and data related operations.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Add Following Column in Grid View at first position &lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;asp:templatefield headertext=&quot;Serial No&quot;&gt;
   &lt;itemtemplate&gt;    
       &amp;lt;%# ((GridViewRow)Container).RowIndex + 1%&amp;gt;
   &lt;/itemtemplate&gt;
&lt;/asp:templatefield&gt;&amp;nbsp;&lt;/pre&gt;
&lt;br /&gt;
Above code will simply autogenerate serial number in Gridview
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/709837945101614559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/709837945101614559' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/709837945101614559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/709837945101614559'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/auto-generate-serial-number-in-gridview.html' title='Auto Generate Serial Number in GridView'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-4175147632217605272</id><published>2012-08-01T12:42:00.001+05:30</published><updated>2012-08-01T12:42:59.389+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Style"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design and Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Textbox with background image using CSS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can use CSS To make stylish textboxes like rounded corner textbox or textbox with some image inside. 

Rounded corner text box is like following image.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilQTbWW6BXg2iLlf9-uO82WKuA6gZk1YFlA7L8f6AcyLqgjj063mrv4NOYMuNcPdGVwbL8_m5IMlUez4cl20Rk7LnLUkwOfE1NBJ-W4yqREIbPmSHmk2f1FL2d2HSZQ2WcxP9RBqKxVqsT/s1600/textbox-with-rounded-corner.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilQTbWW6BXg2iLlf9-uO82WKuA6gZk1YFlA7L8f6AcyLqgjj063mrv4NOYMuNcPdGVwbL8_m5IMlUez4cl20Rk7LnLUkwOfE1NBJ-W4yqREIbPmSHmk2f1FL2d2HSZQ2WcxP9RBqKxVqsT/s1600/textbox-with-rounded-corner.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
To make rounded corner textbox we use following logic.   
We will put textbox in some wrapper layer i.e. div tag and apply style to wrapper layer.

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;div class=&quot;tt-wrapper&quot;&gt;
&lt;input class=&quot;tt&quot; id=&quot;UserName&quot; type=&quot;text&quot; /&gt;
            &lt;/div&gt;
&lt;/pre&gt;
Now style applied to wrapper div tag is as follows  
&lt;br /&gt;
&lt;pre class=&quot;style&quot; name=&quot;code&quot;&gt;.tt-wrapper
 {
 background-image:url(&#39;images/user_box.png&#39;);
 margin:0;
 width:255px;
 height:35px; 
  }
&lt;/pre&gt;
In above style user_box.png is a background image (check following image.)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw13su8qaUB6kjHl-iKy-8s1CSEpR_ykMR9WT9TzF3k3h_IPNGYvwbV7cYuHD91TF-Fca5HkGza20ufQi43sOkIuExkiar3sZonInnJ0b99IpEiksl7pet4uUIgXos-JaFD1rFhtj8_SIV/s1600/user_box.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw13su8qaUB6kjHl-iKy-8s1CSEpR_ykMR9WT9TzF3k3h_IPNGYvwbV7cYuHD91TF-Fca5HkGza20ufQi43sOkIuExkiar3sZonInnJ0b99IpEiksl7pet4uUIgXos-JaFD1rFhtj8_SIV/s1600/user_box.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&amp;nbsp;Then we apply style to fit the textbox with in wrapper div class.  
&lt;br /&gt;
&lt;pre class=&quot;style&quot; name=&quot;code&quot;&gt;.tt{
 width:240px;
 height:25px;
 margin:5px 0 0 8px;
 border:none;
 background:none;
 }
&lt;/pre&gt;
And we are done with Textbox with rounded corner.   To display some image inside textbox we simply need to add background image in the class applied to textbox &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/4175147632217605272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/4175147632217605272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4175147632217605272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4175147632217605272'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/textbox-with-background-image-using-css.html' title='Textbox with background image using CSS'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilQTbWW6BXg2iLlf9-uO82WKuA6gZk1YFlA7L8f6AcyLqgjj063mrv4NOYMuNcPdGVwbL8_m5IMlUez4cl20Rk7LnLUkwOfE1NBJ-W4yqREIbPmSHmk2f1FL2d2HSZQ2WcxP9RBqKxVqsT/s72-c/textbox-with-rounded-corner.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-8438875633500284734</id><published>2012-08-01T12:39:00.002+05:30</published><updated>2012-08-01T12:40:14.013+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry"/><category scheme="http://www.blogger.com/atom/ns#" term="Smart Phone Applications"/><title type='text'>Install CSI files BlackBerry</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I am using PhoneGap.com for BlackBerry development, after developing web app I came across a situation where I had to register my code signing key using&amp;nbsp; SignatureTool.jar, I used following line of code in Command prompt to register my key and password pair.

C:\BBWP\bin&amp;gt;SignatureTool.jar client-RBB-YOURCSICODE.csi

c:\BBWP\bin&amp;gt;SignatureTool.jar client-RCR-&amp;nbsp;&amp;nbsp;YOURCSICODE.csi

c:\BBWP\bin&amp;gt;SignatureTool.jar client-RRT-&amp;nbsp;&amp;nbsp;YOURCSICODE.csi

If you don&#39;t have a private key installed you need to create one. And use the pin number which you used during the registration process.

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/8438875633500284734/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/8438875633500284734' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8438875633500284734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8438875633500284734'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/install-csi-files-blackberry.html' title='Install CSI files BlackBerry'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-2315248560518107234</id><published>2012-08-01T12:38:00.002+05:30</published><updated>2012-08-01T12:39:17.208+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>Javascript Find Arguments Passed to a Function</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
While working on Javascript optimization we can always use some functions having variable number of arguments.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;

&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
E.g. if we come across a situation where we have to use one function to toggle visibility of the objects, but depending on clients input number of objects which needs to hide/show varies. In this case we can write a function as below where number of parameters can any variable.&lt;/div&gt;

&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;//Assumption 0th parameter is boolean 

 function toggle() {
        var args = toggle.arguments
        for (v = 1; v &amp;lt; args.length; v++) {
            obj = window.document.getElementById(args[v]);
            if (args[0]) obj.style.display = &quot;&quot;;
            else obj.style.display = &quot;none&quot;;
        }
    }
&lt;/pre&gt;
&lt;/div&gt;
We can use this type of functions to minimize size of javascript before optimizing it.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/2315248560518107234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/2315248560518107234' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2315248560518107234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/2315248560518107234'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/javascript-find-arguments-passed-to.html' title='Javascript Find Arguments Passed to a Function'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-6681769419621367372</id><published>2012-08-01T12:37:00.000+05:30</published><updated>2012-08-01T12:37:41.090+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="User Management"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Logout User In Asp.net Membership</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While developing usermanagement based web application using Membership provider, many times we come across some trivial issues or queries as follows

&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;formsauthentication.signout not working&lt;/li&gt;
&lt;li&gt;Using&amp;nbsp;formsauthentication.signout&lt;/li&gt;
&lt;li&gt;logout user programmatically&lt;/li&gt;
&lt;li&gt;Check user date&amp;nbsp;subscription&amp;nbsp;and log out if user is not valid.&lt;/li&gt;
&lt;li&gt;programmatically logout in asp net&lt;/li&gt;
&lt;li&gt;Logout user in asp.net Membership&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Solution for all above queries is as follows&lt;/div&gt;
&lt;div&gt;

&lt;/div&gt;

&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;FormsAuthentication.SignOut();
  Session.Abandon();

 // clear authentication cookie
 HttpCookie frmcookie = new HttpCookie(FormsAuthentication.FormsCookieName, &quot;&quot;);
 frmcookie.Expires = DateTime.Now.AddYears(-1);
 Response.Cookies.Add(frmcookie);

 // clear session cookie if we use any
 HttpCookie sessioncookie = new HttpCookie(&quot;ASP.NET_SessionId&quot;, &quot;&quot;);
 sessioncookie.Expires = DateTime.Now.AddYears(-1);
 Response.Cookies.Add(sessioncookie);

 FormsAuthentication.RedirectToLoginPage(&quot;v=SubscriptionExpired&quot;);
&lt;/pre&gt;
&lt;/div&gt;

Above code signout the user, remove all the Cookies set.
Forms Authentication.RedirectToLoginPage uses settings in web.config file. We can pass Querystring to the function so that we can show proper Messages.

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/6681769419621367372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/6681769419621367372' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6681769419621367372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6681769419621367372'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/logout-user-in-aspnet-membership.html' title='Logout User In Asp.net Membership'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-8657495993527661878</id><published>2012-08-01T12:36:00.000+05:30</published><updated>2012-08-01T12:36:03.565+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Display rupee symbol website</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To display Rupee Symbol to website use following code.

&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_IzSeOZv8aikR-rr1k25alnGNmrjjkjBQoHNZjuoc1BheukSlNg8-_wcWpkUOMK60lNt5OuHJgcH5z0mNVdLRiJevlBR3xAkJ9UKPloDLx-RajQVlaq0XPfzBr4v5fR9uI53PPoeWf97f/s1600/rupee+symbol.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_IzSeOZv8aikR-rr1k25alnGNmrjjkjBQoHNZjuoc1BheukSlNg8-_wcWpkUOMK60lNt5OuHJgcH5z0mNVdLRiJevlBR3xAkJ9UKPloDLx-RajQVlaq0XPfzBr4v5fR9uI53PPoeWf97f/s1600/rupee+symbol.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Ruppee Symbol&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Add a stylesheet link in the head section of your webpage:&lt;/li&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;link href=&quot;http://cdn.webrupee.com/font&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt;&lt;/link&gt;&lt;/pre&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Add the following code enclosing your &quot;Rs.&quot;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;span class=&quot;WebRupee&quot;&gt;Rs.&lt;/span&gt; 1000
&lt;/pre&gt;
&lt;/li&gt;
OR
Just include the following javascript and it will update all the &quot;Rs&quot; / &quot;Rs.&quot; for you
&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;script src=&quot;http://cdn.webrupee.com/js&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;/pre&gt;
This is how we can display indian rupee symbol in website/blog.

If Unicode is supported then we can use rupee symbol positioned at U+20B9.

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/8657495993527661878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/8657495993527661878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8657495993527661878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/8657495993527661878'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/08/display-rupee-symbol-website.html' title='Display rupee symbol website'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_IzSeOZv8aikR-rr1k25alnGNmrjjkjBQoHNZjuoc1BheukSlNg8-_wcWpkUOMK60lNt5OuHJgcH5z0mNVdLRiJevlBR3xAkJ9UKPloDLx-RajQVlaq0XPfzBr4v5fR9uI53PPoeWf97f/s72-c/rupee+symbol.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-1963689951092994416</id><published>2012-07-31T17:00:00.003+05:30</published><updated>2012-07-31T17:00:56.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="iFrame"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Script"/><category scheme="http://www.blogger.com/atom/ns#" term="Validations"/><title type='text'>Check if the page is in iframe</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There is a common requirement while developing iframe based web application i.e. redirect if the page is not in iframe or redirect main page to login page or any default page if the page is not opened with in iframe.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In such case; if some one tries to open page using URL; we need to check if the page is in iframe or not, if it is not in iframe we have to perform desired action.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
We can use following javascript to perform this checking and if the page is not in iframe redirect it to default page.

&lt;/div&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
if(top==self) 
{
//Write your code, to redirect
//this.location=&#39;../default.aspx&#39;;
}
&lt;/script&gt;
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/1963689951092994416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/1963689951092994416' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1963689951092994416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/1963689951092994416'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/07/check-if-page-is-in-iframe.html' title='Check if the page is in iframe'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-4514810126739660742</id><published>2012-07-31T16:58:00.000+05:30</published><updated>2012-07-31T16:58:17.383+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Authentication"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Form Authentication Is Not Working</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Form Authentication Is Not Working in IE 8.

I am working on one web based project where I started with user management and struggled to make Form Authentication work... :( without testing it on other browsers.

I had following settings in web.config...

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;authentication mode=&quot;Forms&quot;&gt;
      &lt;forms cookieless=&quot;UseCookies&quot; loginurl=&quot;~/Account/Login.aspx&quot; timeout=&quot;2880&quot;&gt;
    &lt;/forms&gt;&lt;/authentication&gt;

&lt;/pre&gt;
After struggling for the day on &quot;Form Authentication Is Not Working&quot; and to Make it work...

I tested it in Firefox and Google Crome and it did work very well :(, without any error.

What I realized is, there is some Issue with IE 8 and Cookies we are using for Form authentication, so I made following change in Web.Config Setting.

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;&lt;authentication mode=&quot;Forms&quot;&gt;
      &lt;forms cookieless=&quot;AutoDetect&quot; loginurl=&quot;~/Account/Login.aspx&quot; timeout=&quot;2880&quot;&gt;
    &lt;/forms&gt;&lt;/authentication&gt;

&lt;/pre&gt;
Which in turn changed URL for IE 8 by adding some encoded information as a part of URL (going cookie-less), and in other browsers it allowed cookies and URL was without any Encoding added i.e. it was using Cookies. 

I hope this piece of Information will be Useful.

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/4514810126739660742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/4514810126739660742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4514810126739660742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/4514810126739660742'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/07/form-authentication-is-not-working.html' title='Form Authentication Is Not Working'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-6544906552841752871</id><published>2012-07-31T16:51:00.000+05:30</published><updated>2012-07-31T16:51:46.647+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Generic Handlers"/><category scheme="http://www.blogger.com/atom/ns#" term="Session State"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Getting session state in httphandlers - ashx files</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To do session state handling in Generic handlers or ashx files, there are two possibilities

&lt;b&gt;Readonly session state&lt;/b&gt;: we need to implement IReadOnlySessionsState interface, usefollowing demo code.

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;using System;
using System;
using System.Web;
using System.Web.SessionState;

public class Handler : IHttpHandler, IReadOnlySessionState
{

    public void ProcessRequest(HttpContext context)
    {
    if (HttpContext.Current.Session[&quot;SessionsName&quot;] != null)
     {
      context.Response.Write(HttpContext.Current.Session[&quot;SessionsName&quot;]);
     }
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}
&lt;/pre&gt;
&lt;b&gt;Read and Write Access to state&lt;/b&gt;: we need to implement IRequiresSessionState interface, usefollowing demo code.

&lt;br /&gt;
&lt;pre class=&quot;c#&quot; name=&quot;code&quot;&gt;using System;
using System.Web;
using System.Web.SessionState;

public class Handler : IHttpHandler, IRequiresSessionState
{

 public void ProcessRequest(HttpContext context)
  {
   if (HttpContext.Current.Session[&quot;SessionsName&quot;] != null)
    {
      HttpContext.Current.Session[&quot;SessionsName&quot;] = &quot;Demo Session&quot;;
     }
   }
    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}
&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/6544906552841752871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/6544906552841752871' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6544906552841752871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/6544906552841752871'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/07/getting-session-state-in-httphandlers.html' title='Getting session state in httphandlers - ashx files'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-7319319905985951418</id><published>2012-01-03T19:56:00.002+05:30</published><updated>2012-01-03T19:58:30.116+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net 4.0"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design and Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Drop All Functions in SQL SERVER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To DROP All function in SQL SERVER Database use following lines of codes, use it in Query window for particular database. &lt;br /&gt;
&lt;br /&gt;
This code will save lots of time as DROPing All functions in SQL Server database is not a manual process, if we use this&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;DECLARE @name VARCHAR(128)
DECLARE @SQL VARCHAR(254)
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;WHERE [type] IN (N&#39;FN&#39;, N&#39;IF&#39;, N&#39;TF&#39;, N&#39;FS&#39;, N&#39;FT&#39;)&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;AND category = 0 ORDER BY [name])&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;WHILE @name IS NOT NULL
BEGIN
    SELECT @SQL = &#39;DROP FUNCTION [dbo].[&#39; + RTRIM(@name) +&#39;]&#39;
    EXEC (@SQL)
    PRINT &#39;Dropped Function: &#39; + @name
    SELECT @name = (SELECT TOP 1 [name] FROM sysobjects 
WHERE [type] IN (N&#39;FN&#39;, N&#39;IF&#39;, N&#39;TF&#39;, N&#39;FS&#39;, N&#39;FT&#39;) AND 
category = 0 AND [name] &amp;gt; @name ORDER BY [name])
END
GO
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/7319319905985951418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/7319319905985951418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7319319905985951418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/7319319905985951418'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/01/drop-all-functions-in-sql-server.html' title='Drop All Functions in SQL SERVER'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4114598931624509864.post-5421183815475233338</id><published>2012-01-03T18:05:00.000+05:30</published><updated>2012-01-03T18:05:22.327+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Design and Development"/><category scheme="http://www.blogger.com/atom/ns#" term="Web development"/><title type='text'>Drop All Views in SQL SERVER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This is a very common scenario while updating or replacing database in SQL SERVER, we might need to delete all the views in SQL SERVER database. But to delete one view at a times is a time consuming process if database is huge with lots of Views. &lt;br /&gt;
&lt;br /&gt;
To Drop all views in SQL SERVER database use following &lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: sql;&quot;&gt;DECLARE @name VARCHAR(128)
DECLARE @SQL VARCHAR(254)
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects 
WHERE [type] = &#39;V&#39; AND category = 0 ORDER BY [name])
WHILE @name IS NOT NULL
BEGIN
    SELECT @SQL = &#39;DROP VIEW [dbo].[&#39; + RTRIM(@name) +&#39;]&#39;
    EXEC (@SQL)
    PRINT &#39;Dropped View: &#39; + @name
    SELECT @name = (SELECT TOP 1 [name] FROM sysobjects 
WHERE [type] = &#39;V&#39; AND category = 0 AND [name] &amp;gt; @name 
ORDER BY [name])
END
GO
&lt;/pre&gt;&lt;br/&gt;&lt;br /&gt;
&lt;br/&gt;&lt;br /&gt;
&lt;br/&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspdotnetmatters.blogspot.com/feeds/5421183815475233338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4114598931624509864/5421183815475233338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/5421183815475233338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4114598931624509864/posts/default/5421183815475233338'/><link rel='alternate' type='text/html' href='http://aspdotnetmatters.blogspot.com/2012/01/drop-all-views-in-sql-server.html' title='Drop All Views in SQL SERVER'/><author><name>writer</name><uri>http://www.blogger.com/profile/14731610240152023396</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>