Re-writing website in .Net 5 with Blazor

%3CLINGO-SUB%20id%3D%22lingo-sub-3013463%22%20slang%3D%22en-US%22%3ERe-writing%20website%20in%20.Net%205%20with%20Blazor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3013463%22%20slang%3D%22en-US%22%3E%3CP%3EI%20wrote%20my%20website%26nbsp%3B%3CA%20title%3D%22Fitpacking.com%22%20href%3D%22https%3A%2F%2Ffitpacking.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ffitpacking.com%3C%2FA%3E%26nbsp%3Bin%20.NET%20Webforms.%26nbsp%3B%20In%20order%20to%20stop%20using%20old%20technology%20and%20keep%20up%20with%20all%20the%20advantages%20of%20newer%20technologies%2C%20I%20am%20considering%20re-writing%20the%20entire%20thing%20in%20.NET%205.0%20(or%20Core%203.1%20anyway)%20perhaps%20leveraging%20Blazor%20since%20I'm%20terrible%20with%20Javascript%20and%20its%20repeated%20silent%20failures.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBefore%20I%20embark%20upon%20this%20considerable%20project%2C%20I%20wanted%20to%20see%20if%20the%20developers%20here%20think%20it's%20worthwhile.%26nbsp%3B%20(If%20you're%20reading%20this%20forum%2C%20I%20would%20guess%20you'd%20say%20it%20is%20worthwhile)%26nbsp%3B%20The%20biggest%20problem%20I%20have%20is%20that%20developing%20with%20.NET%20has%20been%20%22only%20me%22%20since%202005%20when%20I%20last%20worked%20alongside%20another%20developer.%26nbsp%3B%20I'm%20sure%20I've%20missed%20a%20lot%20along%20the%20way%2C%20developed%20some%20really%20bad%20habits%20and%20have%20used%20horrible%2C%20inefficient%20hacks%20when%20I'm%20stuck.%26nbsp%3B%20So%20I'm%20not%20at%20all%20confident%20that%20I%20will%20produce%20something%20superior%20to%20what%20I've%20got%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20haven't%20given%20you%20much%20specific%20to%20comment%20upon%2C%20but%20here%20are%20some%20of%20my%20concerns%20%2F%20website%20updates%20I%20need%20to%20accomplish.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EUser%20accounts.%26nbsp%3B%20I'd%20like%20to%20add%20authentication%20to%20my%20website.%26nbsp%3B%20I%20have%20successfully%20done%20so%20on%20another%20smaller%20site%20that%20I%20developed%20to%20learn%20.NET%20Core%203.1.%26nbsp%3B%20But%20since%20the%20test%20website%20was%20written%20entirely%20in%20MVC%2C%20adding%20the%20authentication%20module%20was%20pretty%20easy.%26nbsp%3B%20I%20don't%20know%20how%20to%20add%20Middleware%20to%20a%20WebForms%20project%20or%20if%20it's%20even%20possible%3C%2FLI%3E%3CLI%3EDatabase%20migrations.%26nbsp%3B%20I%20have%20a%20database%20I%20use%20on%20the%20Fitpacking%20website.%26nbsp%3B%20If%20I%20start%20over%20in%20One.NET%2C%20I%20am%20not%20sure%20how%20to%20mix%20an%20existing%20database%20with%20the%20code%20first%20migration%20approach.%26nbsp%3B%20I%20suppose%20I%20could%20do%20the%20entire%20project%20as%20code%20first%20and%20transfer%20the%20live%20data%20rows%20from%20existing%20tables%20later%3C%2FLI%3E%3CLI%3EStatic%20URLs%20vs%20Restful%20URLs.%26nbsp%3B%20I%20have%20an%20upcoming%20trip%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Ffitpacking.com%2F2022%2FGrandCanyonNorthBass.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGrand%20Canyon%3C%2FA%3E.%26nbsp%3B%20I%20like%20the%20fact%20that%20there's%20a%20static%20URL%20to%20go%20to%20and%20that%20I%20don't%20have%20to%20denote%20it%20as%26nbsp%3Bfitpacking.com%2FTrips%2F123%20or%20whatever.%26nbsp%3B%20I'm%20sure%20there's%20some%20way%20around%20this%20but%20then%20am%20I%20still%20leveraging%20MVC%3F%3C%2FLI%3E%3CLI%3ECRUD%20operations.%26nbsp%3B%20While%20there%20are%20a%20few%20forms%20on%20the%20website%20(where%20people%20sign%20up)%20there%20isn't%20a%20lot%20of%20repeated%20need%20for%20CRUD%20operations.%26nbsp%3B%20Sure%2C%20people%20will%20want%20to%20edit%20their%20profile%20occasionally%2C%20but%20it%20seems%20like%20a%20small%20part%20of%20what%20the%20site%20does%3C%2FLI%3E%3CLI%3EDatabase%20operations.%26nbsp%3B%20The%20code%20I%20use%20to%20query%20and%20update%20the%20database%20is%20a%20dreadful%20kludge%2C%20full%20of%20connections%2C%20contexts%2C%20data%20adaptors%2C%20data%20tables%2C%20result%20sets%20all%20tied%20to%20various%20grids%2C%20drop%20downs%20and%20other%20controls.%26nbsp%3B%20There%20is%20one%20screen%20I%20use%20fails%20about%20half%20the%20time%20because%20too%20many%20connections%20are%20open%20(even%20though%20I%20have%20code%20to%20close%20them%20--%20I%20think).%26nbsp%3B%20Anyway%2C%20will%20Blazor%20controls%20or%20One.NET%20data%20operations%20help%20clean%20some%20of%20this%20up%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20really%20sure%20what%20I'm%20even%20asking.%26nbsp%3B%20I%20guess%20I%20just%20want%20to%20know%20if%20it's%20worth%20embarking%20upon%20this%20project%20at%20all.%26nbsp%3B%20I%20could%20live%20with%20the%20WebForms%20site%20indefinitely%20if%20I%20had%20to%20although%20I%20fear%20it%20will%20be%20unsupported%20at%20some%20point%2C%20not%20to%20mention%20how%20web%20crawlers%20will%20ding%20it%20for%20being%20slow%2C%20old%20technology.%26nbsp%3B%20And%20if%20my%20ISP%20stops%20supporting%20it%2C%20I%20can't%20create%20a%20cross%20platform%20version.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20musings%3F%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ESteve%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3013463%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EASP.Net%20Core%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBlazor%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emvc%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3013480%22%20slang%3D%22en-US%22%3ERe%3A%20Re-writing%20website%20in%20.Net%205%20with%20Blazor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3013480%22%20slang%3D%22en-US%22%3E%3CP%3ETest.%20Not%20sure%20how%20to%20get%20this%20to%20notify%20me%20about%20responses.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20why%20is%20there%20only%2025%20discussions%3F%26nbsp%3B%20Where%20did%20Microsoft%20hide%20the%20%22real%22%20(possibly%20archived)%20forums%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I wrote my website https://fitpacking.com in .NET Webforms.  In order to stop using old technology and keep up with all the advantages of newer technologies, I am considering re-writing the entire thing in .NET 5.0 (or Core 3.1 anyway) perhaps leveraging Blazor since I'm terrible with Javascript and its repeated silent failures.

 

Before I embark upon this considerable project, I wanted to see if the developers here think it's worthwhile.  (If you're reading this forum, I would guess you'd say it is worthwhile)  The biggest problem I have is that developing with .NET has been "only me" since 2005 when I last worked alongside another developer.  I'm sure I've missed a lot along the way, developed some really bad habits and have used horrible, inefficient hacks when I'm stuck.  So I'm not at all confident that I will produce something superior to what I've got now.

 

I haven't given you much specific to comment upon, but here are some of my concerns / website updates I need to accomplish.

 

  1. User accounts.  I'd like to add authentication to my website.  I have successfully done so on another smaller site that I developed to learn .NET Core 3.1.  But since the test website was written entirely in MVC, adding the authentication module was pretty easy.  I don't know how to add Middleware to a WebForms project or if it's even possible
  2. Database migrations.  I have a database I use on the Fitpacking website.  If I start over in One.NET, I am not sure how to mix an existing database with the code first migration approach.  I suppose I could do the entire project as code first and transfer the live data rows from existing tables later
  3. Static URLs vs Restful URLs.  I have an upcoming trip to the Grand Canyon.  I like the fact that there's a static URL to go to and that I don't have to denote it as fitpacking.com/Trips/123 or whatever.  I'm sure there's some way around this but then am I still leveraging MVC?
  4. CRUD operations.  While there are a few forms on the website (where people sign up) there isn't a lot of repeated need for CRUD operations.  Sure, people will want to edit their profile occasionally, but it seems like a small part of what the site does
  5. Database operations.  The code I use to query and update the database is a dreadful kludge, full of connections, contexts, data adaptors, data tables, result sets all tied to various grids, drop downs and other controls.  There is one screen I use fails about half the time because too many connections are open (even though I have code to close them -- I think).  Anyway, will Blazor controls or One.NET data operations help clean some of this up?

 

I'm not really sure what I'm even asking.  I guess I just want to know if it's worth embarking upon this project at all.  I could live with the WebForms site indefinitely if I had to although I fear it will be unsupported at some point, not to mention how web crawlers will ding it for being slow, old technology.  And if my ISP stops supporting it, I can't create a cross platform version.

 

Any musings?

Thanks,

Steve

 

 

2 Replies

Test. Not sure how to get this to notify me about responses.

 

Also, why is there only 25 discussions?  Where did Microsoft hide the "real" (possibly archived) forums?