broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

Last post 07-11-2009 8:07 AM by gerrylowry. 8 replies.

Sort Posts:

  • broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-08-2009, 8:28 PM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242
    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-08-2009, 11:37 PM
    • All-Star
      33,913 point All-Star
    • vcsjones
    • Member since 04-18-2006, 4:53 PM
    • Falls Church, VA
    • Posts 4,331
    • Moderator
      TrustedFriends-MVPs

    It appears that you copied and pasted the HTML from another page which contained relative URLs. The resulting link wouldn't work when you pasted it into a different page than which the page you copied. You are welcome to fix the links in your post by editing it.

    Cheers,
           Kevin Jones


  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-09-2009, 2:33 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    Hello Kevin ~~ that is interesting.  I've copied links for months from that page and never had this problem before.

    As an experiment, I am going to copy some into *this* reply to see what happens:

    From http://www.asp.net/learn/mvc/#MVC_Overview:

    #1 | Create a Movie Database Application in 15 Minutes with ASP.NET MVC         View in VB or C#

    #2 | ASP.NET MVC Overview                                                  View in VB or C#

    #3 | Understanding the ASP.NET MVC Execution Process      View in VB or C#

    #4 | Understanding Models, Views, and Controllers              View in VB or C#

    #12 | ASP.NET MVC Views Overview                                      View in VB or C#

    #13 | Creating Custom HTML Helpers                                    View in VB or C#

    #14 | Displaying a Table of Database Data                            View in VB or C#

    #15 | Using the TagBuilder Class to Build HTML Helpers        View in VB or C# 

    c# #12 is http://www.asp.net/learn/mvc/tutorial-04-cs.aspx

    c# #13 is http://www.asp.net/learn/mvc/tutorial-09-cs.aspx

    c# #14 is http://www.asp.net/learn/mvc/tutorial-11-cs.aspx

    c# #15 is http://www.asp.net/learn/mvc/tutorial-35-cs.aspx

    at http://www.asp.net/learn/mvc/#MVC_Overview, if I mouse over the above four links, I see them as shown immediately above.

    I'm going to post this and see what happens.

    Back in one minute .........

     

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-09-2009, 3:27 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    here (already referred to in this thread) copy is bad:

    http://forums.asp.net/p/1444774/3282351.aspx

    Here are similar posts where the copied links are okay:

    http://forums.asp.net/t/1435949.aspx

    #17 | Creating Model Classes with LINQ to SQL View in VB or C#

    #1 | Create a Movie Database Application in 15 Minutes with ASP.NET MVCView in VB or C#

    2009-06-19, 1:11 PM:

    http://forums.asp.net/p/1437691/3246030.aspx

    #18 | Performing Simple Validation View in VB or C#

    #19 | Validating with the IDataErrorInfo Interface  View in VB or C#

    #20 | Validating with a Service Layer  View in VB or C#

    #21 | Validation with the Data Annotation Validators View in VB or C#

    Here they are broken:  http://forums.asp.net/t/1440639.aspx  2009-06-27, 8:02 AM

    #18 | Performing Simple Validation View in VB or C#

    #19 | Validating with the IDataErrorInfo Interface  View in VB or C#

    #20 | Validating with a Service Layer  View in VB or C#

    #21 | Validation with the Data Annotation Validators View in VB or C#

     

    My theory:  it's the *NEW* text editor ......... !!!!!!!!!!

    Notice the "broken" links do not have the words like

        "Validating with a Service Layer"

    underlined; the working links do have these words underlined.

    I wrote about the underlining at http://forums.asp.net/t/1439365.aspx?PageIndex=1

    but did not notice that the link was broken there too:

    #21 | Validation with the Data Annotation ValidatorsView in VB or C#

    mbanavige in his reply felt the new editor was working properly but I now see that he too copied a link that is broken:

    #21 | Validation with the Data Annotation ValidatorsView in VB or C#

     

    BOTTOM   LINE:     regardless how the links are on the tutorial page,

                                    the *old* editor copied links that worked while

                                    the new editor copies links that do not work.

    The following is from a Windows Mail message I just sent to myself:

     

     
    #15 | Using the TagBuilder Class to Build HTML HelpersView in VB or C#
     
     
    the above links are correct!!!!!!
     
     
    here's the HTML from the Windows Mail message body:
     
    <SPAN><U><FONT color=3D#0066cc><STRONG>#15 | </STRONG>Using the =
    TagBuilder=20
    Class to Build HTML Helpers</FONT></U></SPAN><SPAN>View in <A=20
    href=3D"http://www.asp.net/learn/mvc/tutorial-35-vb.aspx">VB</A> or <A=20
    href=3D"http://www.asp.net/learn/mvc/tutorial-35-cs.aspx">C#</A></SPAN>
     
     
    CONCLUSION:
    Since Windows Mail copies a link that works, and since the *old* editor also copies links that work, and since it is highly desirable that an editor is "smart enough" to copy links that work, then the *new* editor has BUGGY behaviour that needs to be corrected in a timely fashion.
     
     
     
    Regards,
    Gerry (Lowry)

     

     

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-09-2009, 3:43 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    Even above, the *new* editor lost the link that I copied in from my Windows Mail message.

    I am going to copy it again here:

     

     
    #15 | Using the TagBuilder Class to Build HTML HelpersView in VB or C#
     
     
    I have not hit post yet ... I am going to copy the above two lines back into an new Windows Mail message.
     
    Here is what the *new* editor fed to Windows Mail:
     
    mhtml://{02A0DD34-1BFD-4BCB-8261-E1CC7CD0781E}mid//00000437/!x-usc:http://www.asp.net/learn/mvc/tutorial-35-cs.aspx
     
     
    Gerry
     
    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-09-2009, 3:46 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    again, in my preceding reply, the link that worked from my second Windows Mail message is broken:

    #15 | Using the TagBuilder Class to Build HTML HelpersView in VB or C#

     

    C# should be a link but it is not!

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-10-2009, 5:13 PM
    • All-Star
      98,044 point All-Star
    • mbanavige
    • Member since 11-06-2003, 1:29 PM
    • New England, USA
    • Posts 10,345
    • Moderator
      TrustedFriends-MVPs

    gerrylowry:
    CONCLUSION:
    Since Windows Mail copies a link that works, and since the *old* editor also copies links that work, and since it is highly desirable that an editor is "smart enough" to copy links that work, then the *new* editor has BUGGY behaviour that needs to be corrected in a timely fashion

     

    I have drawn a different conclusion.

    ::Since Windows Mail copies a link that works

    Comparing a javascript editor to a windows editor is one of those apples and oranges comparisons.  What can be done in a windows app, is rarely the same for javascript.  With javascript, there is only very limited clipboard access.  with a windows app, there is additional info available from the clipboard to aid in the copy/paste process.

    ::since the *old* editor also copies links that work

    The editor does not perform the copy.  The browser performs the copy.  The editor accesses what was copied and performs the paste.  This might seem like a somewhat pedantic statement, but it is a relevant distinction as to what is happening.  The paste can only occur based on what was copied by the browser. Additionally, if you wish to test the *old* 2.x version of the editor, you will find it still running at the Silverlight forums and the IIS forums.  I checked the editor at those sites and the paste behaviour that you are complaining of exists at both of those sites.  So it seems that the new editor behaves the same as the old editor in this regard.  

    ::since it is highly desirable that an editor is "smart enough" to copy links that work

    As mentioned, the editor does not do the "copy".  The editor only does the paste.  When you copy a relative link from the IE browser, that relative link is what gets copied to the clipboard.  Or more specifically, this is what lands on the clipboard:

    Version:1.0
    StartHTML:000000192
    EndHTML:000003738
    StartFragment:000003132
    EndFragment:000003623
    StartSelection:000003449
    EndSelection:000003623
    SourceURL:http://www.asp.net/learn/mvc/
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
    
    <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>ASP.NET MVC Tutorials : The Official Microsoft ASP.NET Site</TITLE>
    <SCRIPT language=javascript>
    function handleJavascriptError(msg, uri, linenumber)
    { return true; }
    window.onerror = handleJavascriptError;
    </SCRIPT>
    <LINK rel="shortcut icon" href="/App_Themes/Standard/i/favicon.ico"><LINK 
    rel=stylesheet type=text/css href="/PageGate/style/PageGate.css" media=screen>
    <SCRIPT type=text/javascript src="/a/textAds.js"></SCRIPT>
    
    <SCRIPT type=text/javascript src="/EmailProtector.js"></SCRIPT>
    
    <SCRIPT type=text/javascript src="/PageGate/js/PageGate.js"></SCRIPT>
    
    <SCRIPT type=text/javascript 
    src="/Silverlightplayer/js/Silverlight.js"></SCRIPT>
    <!-- USER MENU -->
    <SCRIPT type=text/javascript>
            
            function getAvatar(imgCtrl, imgSrc, enableAvatar) {
                if (enableAvatar == 'True') {
                    imgCtrl.src = imgSrc;
                }
            }        
        </SCRIPT>
    <LINK rel=stylesheet type=text/css 
    href="../../App_Themes/Standard/css-print.css" media=print><LINK rel=stylesheet 
    type=text/css href="../../App_Themes/Standard/Titan.css?d=031709" 
    media="interactive, braille, emboss, handheld, projection, screen, tty, tv"><LINK 
    title="ASP.NET <%# Container.Category.Title %>" rel=alternate 
    type=application/rss+xml href="rss.ashx">
    <STYLE type=text/css>
    	.ctl00_HeaderContent_siteHeader_Navigation_0 { background-color:white;visibility:hidden;display:none;position:absolute;left:0px;top:0px; }
    	.ctl00_HeaderContent_siteHeader_Navigation_1 { text-decoration:none; }
    	.ctl00_HeaderContent_siteHeader_Navigation_2 {  }
    
    </STYLE>
    
    <SCRIPT type=text/javascript charset=utf-8 
    src="http://www.bing.com/DynamicScript.js?ver=1.02"></SCRIPT>
    
    <SCRIPT type=text/javascript charset=utf-8 
    src="http://www.bing.com/JsonRequest.js?ver=1.02"></SCRIPT>
    
    <SCRIPT type=text/javascript charset=utf-8 
    src="http://www.bing.com/WLUIPanel.js?ver=1.01"></SCRIPT>
    
    <SCRIPT type=text/javascript charset=utf-8 
    src="http://www.bing.com/SearchBox/WLSearchBoxv11.js?ver=1.03"></SCRIPT>
    
    <SCRIPT type=text/javascript charset=utf-8 
    src="http://www.bing.com/SearchBox/searchboxresources.js?ver=1.02&market=en-us&charset=utf-8"></SCRIPT>
    </HEAD>
    
    <BODY 
    onload="PageGate('/PageGate/checkcookie.html','/PageGate/installprompt.html');">
    
    <FORM id=aspnetForm method=post 
    action=http://www.asp.net/learn/mvc/default.aspx#MVC_Overview>
    
    <DIV id=content_container class=content_container>
    
    <DIV class=columns_container>
    
    <DIV class=columns_left>
    
    <DIV class=columns_left_padding>
    
    <DIV class=bucket_container>
    
    <DIV class="bucket_content region_absminheight">
    
    <DIV class=landing_page_group>
    
    <DIV id=625 class="category_item  category_item_video">
    
    <P><!--StartFragment--><A class=no_border 
    onmouseover="Show(this,'Stephen Walther demonstrates how you can create a custom route constraint. We implement a simple custom constraint that prevents a route from being matched when a browser request is made from a remote computer.',160,-2,250)" 
    onmouseout=Hide() href="tutorial-25-cs.aspx"><SPAN><STRONG>#8 | </STRONG>Creating a Custom Route 
    Constraint</SPAN></A><SPAN>View in <A href="tutorial-25-vb.aspx">VB</A> or <A 
    href="tutorial-25-cs.aspx">C#</A></SPAN><!--EndFragment--></P>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </DIV>
    </FORM>
    </BODY>
    </HTML>


     

    from javascript, you cannot (to the best of my knowledge) access all of this clipboard information as you can with a windows app.  You can only see the fragment itself.  notice that in the fragment, there are only relative urls.  Without access to the clipboard's SourceURL attribute, you would not be able to reconstruct the full url.  So when you paste the fragment in this site's editor, you get relative urls as that is all that was accessible from the clipboard.

    But...

    Performing the exact same copy in the FireFox browser yields a slightly different result and this is what is found on the clipboard:

    Version:0.9
    StartHTML:00000151
    EndHTML:00000734
    StartFragment:00000185
    EndFragment:00000698
    SourceURL:http://www.asp.net/learn/mvc/#MVC_Overview
    <html><body>
    <!--StartFragment--><a class="no_border" href="http://www.asp.net/learn/mvc/tutorial-24-cs.aspx" onmouseover="Show(this,'In this tutorial, Stephen Walther demonstrates how you can control how browser requests match routes by creating route constraints with regular expressions.',160,-2,250)" onmouseout="Hide()"><span><strong>#7 | </strong>Creating a Route Constraint</span></a><span>View in <a href="http://www.asp.net/learn/mvc/tutorial-24-vb.aspx">VB</a> or <a href="http://www.asp.net/learn/mvc/tutorial-24-cs.aspx">C#</a></span><!--EndFragment-->
    </body>
    </html>


    With FireFox, the links placed on the clipboard are absolute links.  Again, javascript can only "see" the fragment, but this time, the fragment contains absolute urls even though the page contained relative urls.  Pasting those links into this site's editor yields absolute urls that work just fine. 

    The browser that you use to perform the copy operation is very relevant as to what can ultimately be pasted. And the paste results that i have seen for relative urls seem very consistent across the various javascript based editors such as freetextbox, tinymce (2.x and 3.x), the new ajax toolkit editor and even some commercial offerings...

    So the only conclusion that i can draw is that:

    a) you performed the copies that worked the way you wanted with a browser other than IE

    or

    b) the links that you copied that worked the way you wanted had at one time been absolute links and are now relative links

     

    Please keep in mind that feedback topics like this should not be duplicated in other forums like the MVC forum.  The duplicate post you made in the MVC forum section for this issue created a bit of confusion because it is off-topic for that forum.  That off-topic duplicate was removed so that there would be just a single discussion thread on this bit of feedback regarding the sites editor.

    Thanks

     

    Mike Banavige
    ~~~~~~~~~~~~
    Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-11-2009, 7:56 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    Hello Mike .... imo, (a) your analysis is incorrect and (b) you erred in removing the post from the MVC forum.  Let me explain.

    (a)  you wrote in part:

             a) you performed the copies that worked the way you wanted with a browser other than IE
       or
             b) the links that you copied that worked the way you wanted had at one time been absolute links and are now relative links

    • 99.9% of my 1300+ posts have been made with IE7, the majority with WinXP Pro SP3 followed by Vista Business SP1
    • I doubt the links at http://www.asp.net/learn/mvc/ have been changed from absolute links to relative links
    • the procedure that I have used very many times is the same; the results changed only with the *new* editor.  q.v.:
      1. 2009-06-08, 3:46 AM http://forums.asp.net/t/1432452.aspx
      2. 2009-03-26, 8:05 AM http://forums.asp.net/t/1402404.aspx
    • others appear to have had similar success: http://forums.asp.net/t/1376699.aspx 2009-01-28, 2:16 AM
        * I say appear because I do not know how this post was created
    • the same procedure that I have used very many times no longer works with the *new* editor
    • someone at NeuDesic should imo report this as a BUG to the authors of their TinyMCE *new* editor

    (b) Mike, I've posted often enough, probably more than many members to Feedback.

          The post that you removed from forums.asp.net MVC was put there on purpose and was clearly titled

                     "head's up: mvc tutorial links copied with the *new* editor may be ..."

          It was obviously (to me) not intended to be a feedback topic; it was a head's up.

          If you found it unclear, it would have be better to you to either clarify it yourself or ask for clarification.

          Also, I spent a lot of my limited precious time clearly documenting the steps to reproduce for Eilon and you've blown that away too.  You seem to blow things away far to quickly imo.

    B-(

     

    Gerry

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
  • Re: broken tutorial links ~~ http://forums.asp.net/p/1444774/3282351.aspx#3282351

    07-11-2009, 8:07 AM
    • Contributor
      6,403 point Contributor
    • gerrylowry
    • Member since 07-03-2008, 1:46 AM
    • alliston ontario canada
    • Posts 2,242

    here's another more recent example, probably from just before the switch to the *new* editor:

    http://forums.asp.net/t/1437691.aspx   2009-06-19, 1:11 PM

    Gerry Lowry, Principal
    Ability Business Computer Services ~~ Because it's your Business, our Experience Counts!
    68 John W. Taylor Avenue
    Alliston · Ontario · Canada · L9R 0E1 · gerry.lowry@abilitybusinesscomputerservices.com

    Websites:
    http://abilitybusinesscomputerservices.com
    http://gerrylowryprogrammer.com ~~ résumé & testimonials
    http://veganoccasions.com ~~ recipes by Susan
Page 1 of 1 (9 items)