<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4265296560095722205</atom:id><lastBuildDate>Wed, 04 Jan 2012 10:15:31 +0000</lastBuildDate><category>javascript</category><category>debugging</category><category>visual studio editor</category><category>.net 1.1</category><category>incremental search</category><category>word wrap</category><category>IDE</category><category>button click</category><category>outlining</category><category>visual studio tips tricks</category><category>firefox</category><category>error line number</category><category>tips tricks</category><category>sp_dbcmptlevel</category><category>.net IDE</category><category>javascript debugging</category><category>onscroll</category><category>clipboard history</category><category>tips</category><category>metabase</category><category>internet options</category><category>clipboard ring</category><category>.net</category><category>diagrams</category><category>insert statement generator</category><category>sql server 2005</category><category>codeproject</category><category>database</category><category>tasklist</category><category>.net framework</category><category>error file</category><category>database diagrams</category><category>line numbers</category><category>iis</category><category>button click in javascript</category><category>just in time debugger</category><category>bookmarks</category><category>sql server</category><category>visual studio</category><category>aspnet_regiis</category><category>licence agreement</category><category>visual studio 2005</category><category>div</category><category>html</category><category>scroll check</category><category>microsoft</category><category>asp.net</category><category>.net 2.0</category><category>clipboard</category><category>LIFO</category><title>Microsoft .Net - tips, problems &amp; solutions</title><description>This blog is for the various problems faced with .Net Framework (C#.Net, ASP.Net | Windows Forms). Information about .Net framework classes, visual studio | microsoft.</description><link>http://thedotnetguy.blogspot.com/</link><managingEditor>noreply@blogger.com (vijju)</managingEditor><generator>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Microsoftnet-TipsProblemsSolutions" /><feedburner:info uri="microsoftnet-tipsproblemssolutions" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Technology/Software How-To</media:category><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Technology/Tech News</media:category><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Education/Language Courses</media:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle>This blog is for the various problems faced with .Net Framework (C#.Net, ASP.Net | Windows Forms). Information about .Net framework classes, visual studio | microsoft.</itunes:subtitle><itunes:category text="Technology"><itunes:category text="Software How-To" /></itunes:category><itunes:category text="Technology"><itunes:category text="Tech News" /></itunes:category><itunes:category text="Education"><itunes:category text="Language Courses" /></itunes:category><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-2165020684264983752</guid><pubDate>Mon, 28 Apr 2008 13:47:00 +0000</pubDate><atom:updated>2008-04-28T19:17:34.332+05:30</atom:updated><title>Set window location to right bottom of the screen</title><description>&lt;p&gt;Set window position/location.    &lt;br /&gt;By default framework will draw the new window at center of the screen/parent window. &lt;/p&gt;  &lt;p&gt;If you want to draw it at your desired location, set the location property of window &lt;/p&gt;  &lt;p&gt;before showing (in load event or before load event).    &lt;br /&gt;If you want to show it to right bottom of screen use below code. &lt;/p&gt;  &lt;div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 63.34%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; height: 86px; background-color: #f4f4f4"&gt;   &lt;pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &amp;#39;Courier New&amp;#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"&gt;&lt;p&gt;&lt;span style="color: #0000ff"&gt;this&lt;/span&gt;.Location = &lt;span style="color: #0000ff"&gt;new&lt;/span&gt; Point(Screen.PrimaryScreen.WorkingArea.Width - &lt;span style="color: #0000ff"&gt;this&lt;/span&gt;.Width, &lt;/p&gt;&lt;p&gt;Screen.PrimaryScreen.WorkingArea.Height - &lt;span style="color: #0000ff"&gt;this&lt;/span&gt;.Height);&lt;br /&gt;&lt;/p&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-2165020684264983752?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/7d9z99hWB24/set-window-location-to-right-bottom-of.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2008/04/set-window-location-to-right-bottom-of.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-4097282907554721188</guid><pubDate>Wed, 16 Jan 2008 08:57:00 +0000</pubDate><atom:updated>2008-01-16T14:32:54.665+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">tips tricks</category><category domain="http://www.blogger.com/atom/ns#">line numbers</category><category domain="http://www.blogger.com/atom/ns#">visual studio tips tricks</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">word wrap</category><category domain="http://www.blogger.com/atom/ns#">outlining</category><category domain="http://www.blogger.com/atom/ns#">visual studio 2005</category><category domain="http://www.blogger.com/atom/ns#">visual studio editor</category><title>Visual Studio .Net Editor Top - Part 2</title><description>&lt;p&gt;&lt;em&gt;&lt;strong&gt;6. Outlining:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Outlining within the code editor, this is a built-in function of the code editor. It allows you to expand and collapse code regions for things like procedures, classes, etc. So if I want to get just kind of a summary view of all of my code in a particular file I could right click in the code editor and say collapse everything to definitions and what that will do is it will collapse all of your code into just the signature line of it so that you can get more of a summary view of everything that you have in a particular code file. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;7. Word Wrap:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Word wrap is kind of cool if you’ve got code that goes too long where you have to scroll off the screen to see the end of your code line. And you can get access to word wrap by pressing control R, control R and what that will do is it will wrap your text around so that you don’t have to do any more horizontal scrolling. Now the only issue with word wrap is that it can make your code look a little bit messy sometimes depending on how you have your code set up, and so word wrap actually works hand in hand with line numbers. So with respect to line numbers you can go ahead and you go to tools options and you can select a checkbox that allows you to see the line numbers of your code as well. This works really well with word warp so that you see where one line ends and the next line begins. Another way to add line numbers to your code is you bring up the macro explorer tool window and there is a macro that’s build in, comes as part of Visual Studio.NET that allows you to turn on and off line numbers very very easily. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;8. Line Numbers:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Last but not least you can now do block selection of text within the code editor. So normally if I want to select several lines of text it’s doing it on a line by line basis, but with block selection I could hold alt, the alt key, while I’m dragging my cursor within the code window and it’ll select it as a rectangle rather than selecting it line by line. &lt;/p&gt;&lt;p&gt;What’s another cool way to do selection within the code editor? If I could provide one more little thing that I like to do inside the IDE, it’s very cool, developers, you know, we love to maximize our coding real estate. Visual Studio.NET now supports multi-monitors, so you can have Visual Studio running on one monitor, you can have your application running on another monitor and you can scroll seamlessly between those two. We also have a full screen mode, so I can press shift, alt, enter and it’ll expand Visual Studio into this full screen mode, it gives you more real estate to write your code. &lt;/p&gt;&lt;p&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/visual%20studio%20tips%20&amp;amp;%20tricks" rel="tag"&gt;visual studio tips &amp;amp; tricks&lt;/a&gt;,&lt;a href="http://technorati.com/tags/visual%20studio%20editor" rel="tag"&gt;visual studio editor&lt;/a&gt;,&lt;a href="http://technorati.com/tags/visual%20studio%202005" rel="tag"&gt;visual studio 2005&lt;/a&gt;,&lt;a href="http://technorati.com/tags/.net" rel="tag"&gt;.net&lt;/a&gt;,&lt;a href="http://technorati.com/tags/tips%20&amp;amp;%20tricks" rel="tag"&gt;tips &amp;amp; tricks&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-4097282907554721188?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/fU2nmLYlTcI/visual-studio-net-editor-top-part-2.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2008/01/visual-studio-net-editor-top-part-2.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-1818812041408936295</guid><pubDate>Wed, 12 Dec 2007 11:55:00 +0000</pubDate><atom:updated>2008-01-16T14:31:51.742+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">tips tricks</category><category domain="http://www.blogger.com/atom/ns#">tasklist</category><category domain="http://www.blogger.com/atom/ns#">clipboard ring</category><category domain="http://www.blogger.com/atom/ns#">visual studio tips tricks</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">visual studio 2005</category><category domain="http://www.blogger.com/atom/ns#">incremental search</category><category domain="http://www.blogger.com/atom/ns#">bookmarks</category><category domain="http://www.blogger.com/atom/ns#">visual studio editor</category><title>Visual Studio .Net Editor Tips - Part 1</title><description>&lt;pre class="csharpcode"&gt;&lt;strong&gt;1. Custom task list tokens:&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;So the task list is great because it provides you with information about build errors, annotations that you leave for yourself in your code, and by default there are some default tokens that you can leave for code annotations. There’s a to do token, so if you need to finish up a procedure or if you have a bug in your code, these are built in as part of Visual Studio.NET. But what you can actually do is create your own custom tokens for bugs, for notes that you want to leave to other developers on your team and so on, and you can leave these custom task list tokens, you can create them, by going to the tools menu, dropping down and selecting options, and then it’s within the tools options dialog box that you can create your own task list tokens.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;pre class="csharpcode"&gt;&lt;strong&gt;2. Backward and forward navigation:&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;So in Internet Explorer you know we can go backward and forward from page to page, very easy to navigate that way, and we actually have a similar concept within the code editor in Visual Studio.NET so that if you want to navigate backward in your code our code editor actually keeps track of that and there’s a shortcut key that you can press to do this. If you want to navigate backward in your code you can go ahead and press control and then the hyphen key and that will navigate backward to the various places that you’ve been in your code.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;pre class="csharpcode"&gt;&lt;strong&gt;3. Incremental Search:&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;This is kind of cool. Normally when you go ahead and press control F and you want to search for a particular string in your code you have to type in the entire string and then you can just search throughout your code to go ahead and find that. Incremental search is a little bit different, you press control and then the letter I and what that allows you to do is as you’re typing in the code editor will move around finding out each instance of the text that you’ve already typed. So that’s a slightly different pretty cool way to do searching.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;pre class="csharpcode"&gt;&lt;strong&gt;4. Bookmarks:&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;Bookmarks is another way to leave little breadcrumbs in your code if you will. Bookmarks, you can set them very easily, anywhere that you want, let’s say if you’ve got code that you might be jumping back and forward to from time to time, you can leave a bookmark in your code by pressing control K control K and then you can navigate forward and backward within your bookmarks by pressing control K control N, that will move you to the next bookmark, or control K control P, and that will move you to the previous bookmark.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Very closely related to bookmarks are task list shortcuts. Essentially it’s the same concept, except in addition to seeing a little glyph in the margin of your code you actually also see an entry in your task list. So I can right click anywhere in my code and I select add task list shortcut, it’ll leave a little glyph in the margin of my code and it’ll create an entry in my task list.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;pre class="csharpcode"&gt;&lt;strong&gt;5. Clipboard ring:&lt;/strong&gt;&lt;br /&gt;&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;Clipboard ring, we may know this from using Office, any time you hit control C or you copy some text it adds it to the clipboard ring. And the clipboard ring stores I think up to 20 different code snippets or html markup, things like that. What’s cool in Visual Studio is that we store everything that you have in the clipboard up on the toolbox. Okay, there’s a tab called clipboard ring and you can see all those 20 code snippets that you may have control C’d or copied into the clipboard ring. Now if you want to get access to those and copy any of those into your code you can press control shift and then the letter V and that will go ahead and scroll through everything that you have in your clipboard so that you can find the right snippet and easily drop it into your code.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Source: MSDN blogs.&lt;br /&gt;&lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:68c1defb-1ff0-4e8f-88f3-45b78f7547d3" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/visual%20studio%20tips%20&amp;amp;%20tricks" rel="tag"&gt;visual studio tips &amp;amp; tricks&lt;/a&gt;,&lt;a href="http://technorati.com/tags/visual%20studio%20editor" rel="tag"&gt;visual studio editor&lt;/a&gt;,&lt;a href="http://technorati.com/tags/visual%20studio%202005" rel="tag"&gt;visual studio 2005&lt;/a&gt;,&lt;a href="http://technorati.com/tags/.net" rel="tag"&gt;.net&lt;/a&gt;,&lt;a href="http://technorati.com/tags/tips%20&amp;amp;%20tricks" rel="tag"&gt;tips &amp;amp; tricks&lt;/a&gt;,&lt;a href="http://technorati.com/tags/clipboard%20ring" rel="tag"&gt;clipboard ring&lt;/a&gt;,&lt;a href="http://technorati.com/tags/bookmarks" rel="tag"&gt;bookmarks&lt;/a&gt;,&lt;a href="http://technorati.com/tags/tasklist" rel="tag"&gt;tasklist&lt;/a&gt;,&lt;a href="http://technorati.com/tags/incremental%20search" rel="tag"&gt;incremental search&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-1818812041408936295?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/2lWv3OEUDMA/visual-studio-net-editor-top-10-tips.html</link><author>noreply@blogger.com (vijju)</author><thr:total>1</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/12/visual-studio-net-editor-top-10-tips.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-359792508769872161</guid><pubDate>Mon, 10 Dec 2007 12:07:00 +0000</pubDate><atom:updated>2007-12-12T17:31:13.681+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">firefox</category><category domain="http://www.blogger.com/atom/ns#">button click in javascript</category><category domain="http://www.blogger.com/atom/ns#">asp.net</category><category domain="http://www.blogger.com/atom/ns#">button click</category><title>Javascript button click event - Firefox</title><description>In some instances we may need to perform a button click event through JavaScript.    &lt;p&gt;This would be look like this:&lt;/p&gt;  &lt;div class="csharpcode-wrapper"&gt;   &lt;div   style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;     &lt;pre   style="border-style: none; margin: 0em; padding: 0px; overflow: visible; width: 100%; color: black; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&amp;lt;script language=&lt;span style="color: rgb(0, 96, 128);"&gt;"javascript"&lt;/span&gt;&amp;gt;&lt;br /&gt;   &lt;span style="color: rgb(0, 0, 255);"&gt;function&lt;/span&gt; doSomeThing();&lt;br /&gt;   {&lt;br /&gt;       &lt;span style="color: rgb(0, 128, 0);"&gt;//do something&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(0, 0, 255);"&gt;var&lt;/span&gt; btn = document.getElementByID(&lt;span style="color: rgb(0, 96, 128);"&gt;'btnHidden'&lt;/span&gt;);&lt;br /&gt;       btn.click();&lt;br /&gt;   }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt; &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="csharpcode-wrapper"&gt;This will works fine in IE, but wont work in Firefox.&lt;/div&gt;To get it work in Firefox add UseSubmitBehavior="false" property to button.&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode-wrapper"&gt;This will make the button postback with the ASP.NET postback model.&lt;/div&gt;ex:-&lt;br /&gt;&lt;div   style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&lt;br /&gt; &lt;pre   style="border-style: none; margin: 0em; padding: 0px; overflow: visible; width: 100%; color: black; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;div&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;style&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="display:none;"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   &lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;asp:Button&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="btnHidden"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;runat&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="server"&lt;/span&gt;&lt;br /&gt;               &lt;span style="color: rgb(255, 0, 0);"&gt;OnClick&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="btnHidden_Click"&lt;/span&gt;&lt;br /&gt;               &lt;span style="color: rgb(255, 0, 0);"&gt;UseSubmitBehavior&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="false"&lt;/span&gt;&lt;br /&gt;               &lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;strong&gt;&lt;em&gt;How it works: &lt;/em&gt;&lt;/strong&gt;Compare html generated by .Net framework with UseSubmitBehavior and without this.&lt;br /&gt;&lt;p&gt;With UseSubmitBehaviour="false" it will render onclick event for button &amp;amp; without this it wont render onclick event.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-359792508769872161?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/Tigl6bM5r7A/javascript-button-click-event-firefox.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/12/javascript-button-click-event-firefox.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-4643409277622542977</guid><pubDate>Mon, 10 Dec 2007 09:23:00 +0000</pubDate><atom:updated>2007-12-12T16:58:30.719+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">licence agreement</category><category domain="http://www.blogger.com/atom/ns#">scroll check</category><category domain="http://www.blogger.com/atom/ns#">onscroll</category><category domain="http://www.blogger.com/atom/ns#">div</category><category domain="http://www.blogger.com/atom/ns#">html</category><title>Scroll Event for DIV Tag - Licence Agreement Reading Confirmation</title><description>&lt;p&gt;Technorati-   &lt;/p&gt;&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:a6ca7ddb-4273-48a9-ad80-f9153ac285da" style="margin: 0px; padding: 0px; display: inline; float: none;"&gt;Labels: &lt;a href="http://www.vijjus-collection.blogspot.com/search/label/onscroll" rel="tag"&gt;onscroll&lt;/a&gt;, &lt;a href="http://www.vijjus-collection.blogspot.com/search/label/div" rel="tag"&gt;div&lt;/a&gt;, &lt;a href="http://www.vijjus-collection.blogspot.com/search/label/licence%20agreement" rel="tag"&gt;licence agreement&lt;/a&gt;, &lt;a href="http://www.vijjus-collection.blogspot.com/search/label/scroll%20check" rel="tag"&gt;scroll check&lt;/a&gt;&lt;/div&gt; &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Hi Friends,&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Recently we got a requirement from client that the user must read the &lt;em&gt;"Licence Agreement", &lt;/em&gt;that doesn't mean to check the I Agree checkbox. The user must read the licence agreement. As we can't assure that the user will read the agreement. So the only way to know is to checking the scroll position of Licence Agreement box. If the scroll is reached to end of the box means that user has read the agreement.&lt;/p&gt;    &lt;p&gt;Here is the sample program:&lt;/p&gt;    &lt;div   style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;     &lt;pre   style="border-style: none; margin: 0em; padding: 0px; overflow: visible; width: 100%; color: black; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;div&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;id&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="frAgreement"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;style&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="height: 170px; overflow: scroll;width:100% "&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;onscroll&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="checkScrollPosition();"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;   Terms of Use&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;br&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;div&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;input&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;type&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="button"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;value&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="Submit"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;onclick&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="return isReadCompletely();"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt; &lt;/div&gt;Here I have placed the Licence Agreement text in another html file and placed it in a &lt;em&gt;iframe&lt;/em&gt;, you can directly place the Licence Agreement Text in the division.&lt;br /&gt; &lt;div   style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&lt;br /&gt;   &lt;pre   style="border-style: none; margin: 0em; padding: 0px; overflow: visible; width: 100%; color: black; line-height: 12pt; background-color: rgb(244, 244, 244);font-family:consolas,'Courier New',courier,monospace;font-size:8pt;"&gt;&amp;lt;script language=&lt;span style="color: rgb(0, 96, 128);"&gt;"javascript"&lt;/span&gt;&amp;gt;&lt;br /&gt;  &lt;br /&gt;   &lt;span style="color: rgb(0, 0, 255);"&gt;var&lt;/span&gt; blnPinScrollbar = &lt;span style="color: rgb(0, 0, 255);"&gt;false&lt;/span&gt;;&lt;br /&gt;  &lt;br /&gt;   &lt;span style="color: rgb(0, 0, 255);"&gt;function&lt;/span&gt; checkScrollPosition()&lt;br /&gt;   {&lt;br /&gt;       &lt;span style="color: rgb(0, 0, 255);"&gt;var&lt;/span&gt; divFrame = document.getElementById(&lt;span style="color: rgb(0, 96, 128);"&gt;'frAgreement'&lt;/span&gt;);&lt;br /&gt;       &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt;(divFrame.scrollHeight - divFrame.scrollTop + 17 == divFrame.offsetHeight)&lt;br /&gt;       {           &lt;br /&gt;           blnPinScrollbar = &lt;span style="color: rgb(0, 0, 255);"&gt;true&lt;/span&gt;;&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;   &lt;span style="color: rgb(0, 0, 255);"&gt;function&lt;/span&gt; isReadCompletely()&lt;br /&gt;   {&lt;br /&gt;       &lt;span style="color: rgb(0, 0, 255);"&gt;if&lt;/span&gt;(blnPinScrollbar)&lt;br /&gt;       {&lt;br /&gt;           alert(&lt;span style="color: rgb(0, 96, 128);"&gt;"Page is submited"&lt;/span&gt;);&lt;br /&gt;           &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;true&lt;/span&gt;;&lt;br /&gt;       }&lt;br /&gt;       &lt;span style="color: rgb(0, 0, 255);"&gt;else&lt;/span&gt;&lt;br /&gt;       {&lt;br /&gt;           alert(&lt;span style="color: rgb(0, 96, 128);"&gt;"Please read the agreement and click on submit."&lt;/span&gt;);&lt;br /&gt;           &lt;span style="color: rgb(0, 0, 255);"&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;false&lt;/span&gt;;&lt;br /&gt;       }&lt;br /&gt;   }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/pre&gt;&lt;br /&gt; &lt;/div&gt;I have declared a global variable blnPinScrollbar which is set as false &amp;amp; whenever scroll event fires it will check whether the division is scrolled to the end (17 is the scrollbar up arrow height, this value may vary from user to user. Please try with different values if it didn't works for you.).&lt;br /&gt;&lt;br /&gt;You can find sample page with the above example at - &lt;a title="http://vijjub4u.googlepages.com/main.html" href="http://vijjub4u.googlepages.com/main.html"&gt;http://vijjub4u.googlepages.com/main.html&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Feel free to mail me at &lt;a href="mailto:vijjub4u@gmail.com"&gt;vijjub4u@gmail.com&lt;/a&gt; if you have any problems/issues with this solution.&lt;/p&gt;  &lt;p&gt;This sample can also be used for checking whether a &lt;em&gt;division / text box / scrollable&lt;/em&gt; control is scrolled are not.&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-4643409277622542977?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/xmv_bSTnvXM/scroll-event-for-div-tag-licence.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/12/scroll-event-for-div-tag-licence.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-2386511465644930888</guid><pubDate>Thu, 25 Oct 2007 15:51:00 +0000</pubDate><atom:updated>2007-12-12T17:32:01.929+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">internet options</category><category domain="http://www.blogger.com/atom/ns#">just in time debugger</category><category domain="http://www.blogger.com/atom/ns#">debugging</category><category domain="http://www.blogger.com/atom/ns#">javascript debugging</category><title>Debug JavaScript</title><description>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:484bfe09-c56d-4f81-a174-606d0014556c" style="margin: 0px; padding: 0px; display: inline;"&gt;Technorati Tags:    &lt;a href="http://technorati.com/tags/javascript%20debugging/" rel="tag"&gt;javascript debugging&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/javascript/" rel="tag"&gt;javascript&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/debugging/" rel="tag"&gt;debugging&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/visual%20studio%20.net/" rel="tag"&gt;visual studio .net&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/just%20in%20time%20debugger/" rel="tag"&gt;just in time debugger&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/internet%20options/" rel="tag"&gt;internet options&lt;/a&gt;   &lt;/div&gt;  &lt;p&gt;Most of the time developers uses alert('message'); to debug the JavaScript. But its not that much efficient because whenever you want to change the property of an object you have to change the code &amp;amp; re-run the application. &lt;/p&gt;  &lt;p&gt;One keyword available in JavaScript which will enable us to debug the JavaScript as we do in our .Net (will have intellisense), by this we can see all the properties &amp;amp; function available in the object.&lt;/p&gt;  &lt;p&gt;Steps to &lt;em&gt;Debug JavaScript&lt;/em&gt;:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Identify the debugging point &amp;amp; place &lt;em&gt;'debugger;'&lt;/em&gt; keyword in the &lt;em&gt;JavaScript &lt;/em&gt;code. &lt;/li&gt;    &lt;li&gt;Open IE (&lt;em&gt;Internet Explorer&lt;/em&gt;) - Go to Tools --&amp;gt;Internet Options --&amp;gt;Advanced Tab&lt;/li&gt;    &lt;li&gt;Deselect the below mentioned two check boxes.&lt;/li&gt;    &lt;ul&gt;     &lt;li&gt;&lt;em&gt;Disable script debugging (Internet Explorer)&lt;/em&gt;&lt;/li&gt;      &lt;li&gt;&lt;em&gt;Disable script debugging (Other)&lt;/em&gt;&lt;a href="http://lh5.google.com/vijjub4u/RyC7ebhTn8I/AAAAAAAACmk/S9T2GaEjRB8/Debug%20Javascript%20-%20IE%20Settings%5B5%5D.jpg"&gt;&lt;img id="id" style="border: 0px none ;" alt="Debug Javascript - IE Settings" src="http://lh3.google.com/vijjub4u/RyC7f7hTn9I/AAAAAAAACms/LprP5jdk9ZA/Debug%20Javascript%20-%20IE%20Settings_thumb%5B3%5D.jpg" border="0" height="523" width="417" /&gt;&lt;/a&gt;&lt;/li&gt;   &lt;/ul&gt;    &lt;li&gt;Run the application (for which you want to &lt;em&gt;debug&lt;/em&gt;). If you are developing &lt;em&gt;.Net application Visual Studio .Net IDE &lt;/em&gt;will automatically jumps to &lt;em&gt;debugger position&lt;/em&gt;. Start using the &lt;em&gt;intellisense &lt;/em&gt;&amp;amp; resolve you issues.&lt;a href="http://lh3.google.com/vijjub4u/RyC7g7hTn-I/AAAAAAAACm0/fIOk76YomX8/Debug%20Javascript%5B6%5D.png"&gt;&lt;img id="id" style="border: 0px none ; margin: 5px 5px 5px 80px;" alt="Debug Javascript" src="http://lh4.google.com/vijjub4u/RyC7iLhTn_I/AAAAAAAACm8/0pYd6MSpCq4/Debug%20Javascript_thumb%5B4%5D.png" border="0" height="321" width="351" /&gt;&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;If you are not using &lt;em&gt;Visual Studio IDE&lt;/em&gt;, one window will prompt to select debugger engine with all available &lt;em&gt;JavaScript debugger engines &lt;/em&gt;in you system. Some times even &lt;em&gt;Visual Studio IDE &lt;/em&gt;will also prompt for the &lt;em&gt;debugger&lt;/em&gt;.&lt;a href="http://lh4.google.com/vijjub4u/RyC7jLhToAI/AAAAAAAACnE/rjfX1LJ6_wQ/Debug%20Javascript%20-%20Select%20Debug%20Engine%5B5%5D.jpg"&gt;&lt;img style="border: 0px none ; margin: 5px 5px 5px 75px;" alt="Debug Javascript - Select Debug Engine" src="http://lh4.google.com/vijjub4u/RyC7kLhToBI/AAAAAAAACnM/zaw3eH63XG4/Debug%20Javascript%20-%20Select%20Debug%20Engine_thumb%5B3%5D.jpg" border="0" height="441" width="402" /&gt;&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;Select any of the &lt;em&gt;Debugger engine &lt;/em&gt;and start debugging the JavaScript.&lt;/li&gt; &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-2386511465644930888?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/d57pCdbRYGc/debug-javascript.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/debug-javascript.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-4761119195840171481</guid><pubDate>Thu, 25 Oct 2007 11:15:00 +0000</pubDate><atom:updated>2007-12-12T17:38:52.972+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">tips tricks</category><category domain="http://www.blogger.com/atom/ns#">IDE</category><category domain="http://www.blogger.com/atom/ns#">.net IDE</category><category domain="http://www.blogger.com/atom/ns#">visual studio tips tricks</category><category domain="http://www.blogger.com/atom/ns#">error line number</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">error file</category><category domain="http://www.blogger.com/atom/ns#">visual studio 2005</category><category domain="http://www.blogger.com/atom/ns#">microsoft</category><category domain="http://www.blogger.com/atom/ns#">visual studio editor</category><title>Solution for Visual Studio .Net - Error file name &amp; line numbers are not getting displayed.</title><description>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c7e0f8c9-c457-4e7f-9394-bc6a41a7bfff" style="margin: 0px; padding: 0px; display: inline;"&gt;Technorati Tags:    &lt;a href="http://technorati.com/tags/visual%20studio%20.net/" rel="tag"&gt;visual studio .net&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/.net/" rel="tag"&gt;.net&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/visual%20studio%20.net%20IDE/" rel="tag"&gt;visual studio .net IDE&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/IDE/" rel="tag"&gt;IDE&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/error%20file/" rel="tag"&gt;error file&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/error%20line%20number/" rel="tag"&gt;error line number&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/tips%20&amp;amp;%20tips%20&amp;amp;%20tricks/" rel="tag"&gt;tips &amp;amp; tips &amp;amp; tricks&lt;/a&gt;   ,    &lt;a href="http://technorati.com/tags/micro%20soft/" rel="tag"&gt;micro soft&lt;/a&gt;   &lt;/div&gt;  &lt;p&gt;I think most of the developers are came across this situation where they can see the file names &amp;amp; line numbers of the errors after building/compiling the code. This is very annoying thing in &lt;em&gt;Visual Studio IDE&lt;/em&gt;. I don't know why the &lt;em&gt;Microsoft&lt;/em&gt; guys unable to resolve this issue.&lt;/p&gt;  &lt;p&gt;I too came across this issues &amp;amp; after googled I found this solution.&lt;/p&gt;  &lt;p&gt;The issue is if you have the parenthesis ( '(' or ')' ) in the file path, it won't show you the file name &amp;amp; line number.&lt;/p&gt;  &lt;p&gt;To solve this you have to rename that folder name.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-4761119195840171481?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/hWfojZzmamI/solution-for-visual-studio-net-error.html</link><author>noreply@blogger.com (vijju)</author><thr:total>3</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/solution-for-visual-studio-net-error.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-8427508908728808877</guid><pubDate>Tue, 09 Oct 2007 13:55:00 +0000</pubDate><atom:updated>2007-10-10T13:00:31.009+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">.net 1.1</category><category domain="http://www.blogger.com/atom/ns#">aspnet_regiis</category><category domain="http://www.blogger.com/atom/ns#">tips</category><category domain="http://www.blogger.com/atom/ns#">.net 2.0</category><category domain="http://www.blogger.com/atom/ns#">metabase</category><category domain="http://www.blogger.com/atom/ns#">.net framework</category><category domain="http://www.blogger.com/atom/ns#">microsoft</category><category domain="http://www.blogger.com/atom/ns#">iis</category><title>Failed to access IIS metabase Error - Solution 2</title><description>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:68c927b7-28cd-42fb-8bb0-35aa442aac4f" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags:  		&lt;a href="http://technorati.com/tags/.net%20framework/" rel="tag"&gt;.net framework&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/metabase/" rel="tag"&gt;metabase&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/iis/" rel="tag"&gt;iis&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/visual%20studio/" rel="tag"&gt;visual studio&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/problems/" rel="tag"&gt;problems&lt;/a&gt; 		&lt;/div&gt;  &lt;p&gt;This type of problem will occur if you have installed iis after installing framework.&lt;/p&gt;  &lt;p&gt;Solution is uninstall &amp;amp; install the framework (2.0).&lt;/p&gt;  &lt;p&gt;thanks,&lt;/p&gt;  &lt;p&gt;vijju&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-8427508908728808877?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/A7H9XMGF-I0/failed-to-access-iis-metabase-error_09.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/failed-to-access-iis-metabase-error_09.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-3124397304914988268</guid><pubDate>Tue, 09 Oct 2007 13:47:00 +0000</pubDate><atom:updated>2007-12-12T17:39:20.146+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Disable right click on web page</title><description>&lt;p&gt;Hi Friends,&lt;/p&gt;  &lt;p&gt;Here is the small JavaScript function to disable right click.&lt;/p&gt;  &lt;p&gt;//register right click event (mouse click)&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;document.onmousedown = disableclick;    &lt;br /&gt;//function&lt;/p&gt;    &lt;p&gt;function disableclick(e)    &lt;br /&gt;{&lt;/p&gt;    &lt;p&gt;     if(event.button==2)    &lt;br /&gt;    {     &lt;br /&gt;       alert("Right Click Disabled");     &lt;br /&gt;       return false;      &lt;br /&gt;    }     &lt;br /&gt;}&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;thanks,&lt;/p&gt;  &lt;p&gt;vijju&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-3124397304914988268?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/P-klrch9BKM/disable-right-click-on-web-page.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/disable-right-click-on-web-page.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-8563321795558754358</guid><pubDate>Tue, 09 Oct 2007 13:35:00 +0000</pubDate><atom:updated>2007-10-10T13:00:31.011+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">.net 1.1</category><category domain="http://www.blogger.com/atom/ns#">aspnet_regiis</category><category domain="http://www.blogger.com/atom/ns#">tips</category><category domain="http://www.blogger.com/atom/ns#">.net 2.0</category><category domain="http://www.blogger.com/atom/ns#">metabase</category><category domain="http://www.blogger.com/atom/ns#">.net framework</category><category domain="http://www.blogger.com/atom/ns#">microsoft</category><category domain="http://www.blogger.com/atom/ns#">iis</category><title>Failed to access IIS metabase Error - Solution 1</title><description>&lt;div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:49c7f358-c70a-4fb5-ad8e-90c542e2948c" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;Technorati Tags:  		&lt;a href="http://technorati.com/tags/aspnet_regiis/" rel="tag"&gt;aspnet_regiis&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/asp.net/" rel="tag"&gt;asp.net&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/.net%20framework/" rel="tag"&gt;.net framework&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/.net%202.0/" rel="tag"&gt;.net 2.0&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/visual%20studio/" rel="tag"&gt;visual studio&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/microsoft/" rel="tag"&gt;microsoft&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/iis/" rel="tag"&gt;iis&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/metabase/" rel="tag"&gt;metabase&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/problems/" rel="tag"&gt;problems&lt;/a&gt; 		,  		&lt;a href="http://technorati.com/tags/tips/" rel="tag"&gt;tips&lt;/a&gt; 		&lt;/div&gt;  &lt;p&gt;This type of problem will occur only if you have both 1.1 &amp;amp; 2.0 Framework installed on your system. (along with the associated Visual Studio 2003 and 2005 products because you can't help but write software in both environments).&lt;/p&gt;  &lt;p&gt;Upon running your website (via &lt;em&gt;&lt;i&gt;http://localhost/xxx&lt;/i&gt;&lt;/em&gt; or something like that), you may encounter the error page that reports:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Failed to access IIS metabase&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;If so, you may have installed IIS after installing the .NET framework.&amp;#xA0; If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;aspnet_regiis -i&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;If, however, you're like me and had &lt;em&gt;IIS &lt;/em&gt;already installed, and you installed &lt;em&gt;VS 2003 &lt;/em&gt;and then &lt;em&gt;VS 2005&lt;/em&gt;, and then set up a 1.1 &lt;em&gt;virtual directory / website&lt;/em&gt;, simply check that the appropriate &lt;em&gt;ASP.NET &lt;/em&gt;version is associated with it (Select VDIR --&amp;gt; Properties --&amp;gt; &lt;em&gt;ASP.NET &lt;/em&gt;tab).&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&amp;quot;aspnet_regiis -i&amp;quot;&lt;/em&gt;&amp;#xA0; - However, the directory it is located in was not included a system path previously, so just note that you may have to run this from the &amp;quot;WINDOWS\Microsoft.NET\Framework\vX.X.XXXXX&amp;quot; directory (with the X's being your version number) .&lt;/p&gt;  &lt;p&gt;thanks,&lt;/p&gt;  &lt;p&gt;vijju&lt;/p&gt; &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-8563321795558754358?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/7FNUZi60THY/failed-to-access-iis-metabase-error.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/failed-to-access-iis-metabase-error.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-4131790205068289332</guid><pubDate>Tue, 09 Oct 2007 10:56:00 +0000</pubDate><atom:updated>2007-10-09T16:28:59.420+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">visual studio</category><category domain="http://www.blogger.com/atom/ns#">clipboard</category><category domain="http://www.blogger.com/atom/ns#">clipboard ring</category><category domain="http://www.blogger.com/atom/ns#">tips</category><category domain="http://www.blogger.com/atom/ns#">clipboard history</category><category domain="http://www.blogger.com/atom/ns#">LIFO</category><title>Visual Studio Clipboad Ring - Tip</title><description>Unlike most other applications, VS.NET has something called &lt;em&gt;a clipboard ring&lt;/em&gt;.&lt;br /&gt;During development, the average developer finds it very annoying that you can only save &lt;em&gt;1&lt;/em&gt; item into the clipboard (copy-and-pasting).&lt;br /&gt;Well with VS.NET, the &lt;em&gt;clipboard ring&lt;/em&gt; allows you to save up to 20 items into the clipboard. To reference this items, its important to know that they are saved in a LIFO method (Last-In First-Out if your not into stacks).&lt;br /&gt;Usage:&lt;br /&gt;1. Copy a selection using Ctrl-C (Copy). You can repeat this copying upto 19 more times.&lt;br /&gt;2. Pressing Ctrl-V will paste the last item you copied. Nothing new yet right?&lt;br /&gt;3. Pressing Ctrl-Shift-V will also paste the last item in the clipboard.&lt;br /&gt;Now say you want to retrieve the 2nd, or 3rd last item you inserted into the clipboard, simply keep pressing Ctrl-Shift-V to cycle through the items in the clipboard.&lt;br /&gt;So this saves you from running back and forth between documents to get the next selection of text you want to paste over to some other page of code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-4131790205068289332?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/W6IRuHloRAE/visual-studio-clipboad-ring-tip.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/10/visual-studio-clipboad-ring-tip.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-2184574284053924661</guid><pubDate>Wed, 12 Sep 2007 06:49:00 +0000</pubDate><atom:updated>2007-11-06T13:12:00.534+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">database diagrams</category><category domain="http://www.blogger.com/atom/ns#">sql server 2005</category><category domain="http://www.blogger.com/atom/ns#">sp_dbcmptlevel</category><category domain="http://www.blogger.com/atom/ns#">diagrams</category><category domain="http://www.blogger.com/atom/ns#">database</category><title>Database Diagrams Error - SQL Server 2005</title><description>&lt;div align="left"&gt;&lt;blockquote&gt;&lt;div align="left"&gt;Hi Friends, &lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;Most of our friends will receive the below error message when they are trying to create a database diagram. This will happne when the database &lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects.&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;This is covered in section 4.8 in the Readme file that comes with the product .To install database diagram support in SQL Server Management Studio, databases must be in SQL Server 2005 database compatibility level. Database compatibility level can be reset after diagram support is installed. To create database diagrams, change the database compatibility level to 2005, install database diagram support, and then return the database to the desired database compatibility level. For more information, search for "sp_dbcmptlevel" in SQL Server Books Online.So, run the following statement and try the diagram again.&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;EXEC sp_dbcmptlevel database_name, 90&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="left"&gt;I happened to have the SQL 2005 server DVD in my player, and I found aReadme in G:\SQL Server x86\Servers\ReadmeSQL2005.htm. There seem to beone in every top-level setup directory.&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;br /&gt;Otherwise run this command.....&lt;br /&gt;&lt;br /&gt;&lt;div align="left"&gt;ALTER AUTHORIZATION ON DATABASE::&amp;lt;databsae&amp;gt; TO &amp;lt;username&amp;gt;&lt;br /&gt;&lt;br /&gt;More info at:&lt;br /&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;910228&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-2184574284053924661?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/ARRz_0zSh7M/database-diagrams-error-sql-server-2005.html</link><author>noreply@blogger.com (vijju)</author><thr:total>1</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/09/database-diagrams-error-sql-server-2005.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4265296560095722205.post-561101048093609388</guid><pubDate>Wed, 05 Sep 2007 10:44:00 +0000</pubDate><atom:updated>2007-10-05T11:15:35.499+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">insert statement generator</category><category domain="http://www.blogger.com/atom/ns#">sql server</category><category domain="http://www.blogger.com/atom/ns#">codeproject</category><title>Generating INSERT statements in SQL Server</title><description>Generating INSERT statements in SQL Server&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/database/InsertGeneratorPack.asp"&gt;http://www.codeproject.com/database/InsertGeneratorPack.asp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4265296560095722205-561101048093609388?l=thedotnetguy.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://feedproxy.google.com/~r/Microsoftnet-TipsProblemsSolutions/~3/a-_0hBLBIbg/generating-insert-statements-in-sql.html</link><author>noreply@blogger.com (vijju)</author><thr:total>0</thr:total><feedburner:origLink>http://thedotnetguy.blogspot.com/2007/09/generating-insert-statements-in-sql.html</feedburner:origLink></item><language>en-us</language><media:rating>nonadult</media:rating></channel></rss>

