The Artima Developer Community
Sponsored Link

.NET Buzz Forum
More playing with ASP.NET

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Duncan Mackenzie

Posts: 689
Nickname: duncanma
Registered: Aug, 2003

Duncan Mackenzie is the Visual Basic Content Strategist at msdn.microsoft.com
More playing with ASP.NET Posted: Jun 12, 2004 3:04 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Duncan Mackenzie.
Original Post: More playing with ASP.NET
Feed Title: Code/Tea/Etc...
Feed URL: /msdnerror.htm?aspxerrorpath=/duncanma/rss.aspx
Feed Description: Duncan is the Visual Basic Content Strategist at MSDN, the editor of the Visual Basic Developer Center (http://msdn.microsoft.com/vbasic), and the author of the "Coding 4 Fun" column on MSDN (http://msdn.microsoft.com/vbasic/using/columns/code4fun/default.aspx). While typically Visual Basic focused, his blogs sometimes wanders off of the technical path and into various musing of his troubled mind.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Duncan Mackenzie
Latest Posts From Code/Tea/Etc...

Advertisement

As with my earlier messing around with a poll, I took a concept from the www.asp.net site today and made my own "CheckDotNet.aspx" page. The one on www.asp.net only checks for the .NET Framework 1.0 or better, so I modified the logic to detect 1.1 and 1.0 as two distinct cases... recommending an upgrade for no framework or 1.0, and returning "Framework Found" if you have 1.1 already.

http://www.duncanmackenzie.net/tools/checkdotnet.aspx

Difficult? Nope... nothing too impressive...

Useful? I have no idea, but I thought it was worth putting up. The page has only one bit of code, the load event handler (and yes, I know I could have overriden OnLoad... but the code I started with was using Page_Load, so I just went with it)...

     Sub Page_Load(sender as Object, e as EventArgs)
        Dim clrVersion as Version = Request.Browser.ClrVersion
       
If clrVersion.Major > 0 Then
         If clrVersion.Minor > 0 Then
             aOkPanel11.Visible = True
         Else
             aOkPanel1.Visible = True
         End If
        Else
            downloadPanel.Visible = True
        End If
    End Sub

aOkPanel11 on my page contains the text to show if the user has the 1.1 version of the Framework... aOkPanel1 is shown if they have 1.0 only, and downloadPanel appears if they have no Framework at all.

Sadly, I have to admit that I haven't found a machine around the house or office without at least the .NET Framework 1.0 on it, so I haven't been able to completely test the page :)

 

Read: More playing with ASP.NET

Topic: Javascript Open Directory Image Viewer Previous Topic   Next Topic Topic: Version Independent ProgIDs in the .NET Framework and C#

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use