i recently started working on DNN, i configured DNN at my machine with starter kit and other things
require. I received a vb module from my client to work up on.
It's simple VB module, not dynamic module. I imported the module and i started working on it,
but i am more of c# coder, so i feel a bit uncomfortable working with this.
Could some body tell me how can i convert his module to c#, of is there any way that further coding i
do in c#, i mean all my user control further i want to make in c# on that module.
Please guide me on it, or provide me some resources.
There are several tools out there for converting VB to C# - http://www.bing.com/search?setmkt=en-GB&q=convert+VB+to+c%23
However, if you want to work in C# and if it is a simple module, then you might be better off:
install the DNN starter kit
run the "new C# module" wizard
using your VB module as a reference, recreate the functionality in the C# module
enjoy coding forwards
For tutorials about working with DNN, there are lots of tutorials out there - and I particularly recommend Michael Washington's materials which he generally provides in both C# and VB - http://www.adefwebserver.com/DotNetNukeHELP/
Related
I have a VB6 Forms application and want to convert to .Net Core WinForms. I know conversion tools are available that make that claim. However, I'm looking for recommendations or first hand experience in doing this.
Manual may be best, but if you're looking for an automated route, I would suggest
VB6 to VB.NET WinForms (.NET Framework)
VB.NET to C# (.NET Framework)
Upgrade to .NET Core
I do not have any experience with #1, VB6 to VB.NET.
For #2 check out this project https://github.com/icsharpcode/CodeConverter. It works very well.
For #3, Microsoft has a try-convert project to upgrade .NET Framework projects to .NET Core. It has worked flawlessly for me. https://github.com/dotnet/try-convert
I just converted a decent sized app from VB6 to C#. The biggest challenge for me was the third party controls. Most tools can't manage those as most old controls are either discontinued or the interfaces are so wildly different it made no sense to use a tool.
I ended up just recreating all the forms using modern controls first. I would then just paste the old VB6 code where is made sense and worked my way through converting the logic to C#. In some cases I literally printed files to paper and read through them and typed in the C# code.
I wanted to take advantage of the .net programming model so I rewrote a lot and improved the function and readability of the code.
I have used tools and while they do help, I didn't feel it really saved me a lot of time. My "brute force" method helped me understand the application much better and helped me sort through errors and bugs easier.
In my experience it's worth the effort doing it manually. There really is no shortcut if you want to do a proper job.
I have an application that is using an ASP.NET MVC project and controllers that is an envelope to an Angular-based SPA hosted inside of that project. Previous developers implemented SASS port of Bootstrap 3.3.0 and I need to get it up to 3.3.7. Most documentation on the Official Port of Bootstrap 2/3 is catering to ruby/npm implementations. How does one keep up on updates effectively in a Visual Studio world or should I simply update it externally using rake, ruby, npm, etc? Any guides or assistance is welcome. Thanks in advance.
After more research it looks like rake and the instructions found on the twbs readme may be sufficient from a command line standpoint but if anyone has further thoughts feel free to add.
https://github.com/twbs/bootstrap-sass#upstream-converter
Also have found a Nuget package that may provide better support than the handrolled version in place in the project now. https://www.nuget.org/packages/Twitter.Bootstrap.Sass/
Can anyone help to make custom module in visual studio for DNN Software.
Or any reference.
I am using VS-2013 and DotNetNuke 7 C#.
Since you're new - you should also consider creating Apps using 2sxc, instead of classic WebForms Modules. It's a much simpler, more advanced setup but can do basically everything a module can, just with automatic data handling/versioning, image processing, view management and more.
I thought I was smarter than this, but evidently I'm not. I'm a many-year veteran of software development. I used to work as an engineer at Google. I write TypeScript at work every day.
All I wanted to do was convert my existing AngularJS website into a website that uses TypeScript instead of what I currently have, which is plain JavaScript with the Google Closure Compiler. And I want to be able to use Visual Studio 2015 Community Edition to do the editing, type-checking, etc. Ideally, I'd like to use ASP.NET WebForms to generate the HTML files dynamiclaly so I can do a few clever things server-side, but I'm not wed to the idea.
I have tried many different tutorials, including:
generator-angular-typescript-gulp
TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015
Building AngularJS application with TypeScript and Visual Studio Code
Setting up TypeScript and AngularJs in Visual Studio 2013
Building Web applications with TypeScript and AngularJS in Visual Studio 2015
But none of these have gotten me what I needed, which was the following:
Out of the box, build an application without error. Some tutorials have failed because they couldn't handle the \ vs / issue of Windows. Others, complain that I don't have git installed (even though I do). Others have been written for what seem to be obsolete versions of NPM and/or Gulp packages and fail when followed verbatim.
Said application must be structured in a reasonably-realistic manner that will scale. Many walk-throughs seemed to be hacked-together examples that don't really show you best practices.
Said application must use TypeScript modules so that I can break my application into multiple, reusable components. Ideally, I'll be able to compile them together into a single output js file, but my attempts here have been disastrous.
Said application must be editable with Visual Studio, with the fewest number of "extra steps" required to work with the thing. An ideal situation would be to just have the darn thing built by Visual Studio, but I'm perfectly fine with typing in an npm or gulp command or three.
Said application should use relatively modern versions of the TypeScript and AngularJS 1.x (I'm not ready for AngularJS 2.0 yet).
So, here I am humbling myself, asking the cognoscenti how to do what I think should have been trivially easy to do.
Can you either point me to a good tutorial that actually works and provides the aspects I need, or else give me some decent step-by-step instructions?
You may assume moderate familiarity on my part with Visual Studio, AngularJS, NPM, NuGet, and TypeScript. You may also assume fledgling familiarity with Gulp, Grunt, and Yeoman. Finally, you may assume that I've used JSPM, but that I've used it with a cartoon-like question mark suspended over my head.
I've been trying, off and on again, for months to get this to work. I won't claim to be a genius, but I'm definitely not stupid. It seems to me that this ought to be easy, yet it's confounded me at every turn. Help me, Obi-Wan Kenobi. You're my only hope!
Jeff
P.S. This proliferation of package managers, created I'm sure with the best of intentions, reminds me of this classic cartoon.
Is it possible to only use a managed dynamic language such as javascript in a Silverlight application, with no server side compilation before deploying to the client? I'm looking for 0 server side compilation of any code here - would like the entire application to be 100% compiled/interpreted in the browser. I skimmed through the DLR specs but I didn't notice such an option.
Technically the answer is yes. Silverlight is a pure client side technology that runs a cut down, secure CLR in a plug in. The Silverlight API is accessible scripting languages including Javascript, F#, IronPython and IronRuby.
However, it is questionable whether you should progress because there doesn't seem to be any community or support around this. Furthermore, Silverlight is in support mode and you have to consider whether it is worthwhile investing your energy in such a dimly lit corner.
There are a few technology demonstrations by Jimmy Schementi here. Also check out the references in DLR Wikipedia entry. The old silverlight forums used to have an entire subforum dedicated to Javascript and Silverlight. This is now gone. Consider that as a warning if you decide to progress in this direction.
A few years back, there was an SDK that included a working IronPython and IronRuby with Silverlight, some demos and build scripts. Look for Chiron, which packages scripts and xaml into a single .xap (zip) file. This is in the DLR. There were some cool examples which demonstrated a python and ruby interpreter running in the client side in a Silverlight plugin.
Alternatively, you can develop most of your application in a typed language and then expose parts of it to javascript via a Javascript bridge. The MSDN has some short write up on how to do this.