Re-creating a Visual Basic Program in ASP.NET - asp.net

I have created a program in Visual Studio 2013 using Visual Basic. This program allows the user to enter in certain criteria via controls then they click on a button and the program searches an excel document with several spreadsheets and returns the appropriate information to the user. The program runs perfectly as it was intended (thought a little slower than I would like). I have now been charged with making this program a web application.
I have done enough research and have settled on using ASP.NET and visual basic (If there are other suggestions I would welcome them). I have re-created the GUI in ASP.NET as best as I could and I'm now left with the extensive coding part. My first question is by turning this program into a web app can I still use Excel? How would that work on the server side instead of everything being on the client side. Is there a completely different route I should be thinking about to accomplish what I need.
My original program revolved around opening an Excel File, searching the various spreadsheets and returning data that fit the user's chosen criteria, how should I go about this with a web app written in ASP.NET and Visual Basic.
Thank you for any assistance anyone can provide.

Related

Using Google.Apis.Analytics.v3

I am trying to use Google.Apis.Analytics.v3 for the 1st time, programmatically. We are building dashboard pages to show statistics, within their organisation-until now I have been reporting on information from internal databases.
Now we want to retrieve data from our Google analytics account.
My main tool for development is visual studio and C#. Some of the webpages have been created just using text editors, by a colleague, but I'm happier doing it in visual studio. We are sharing this development with organisations who do not use visual studio. So when I finish work on my webpages, we make 2 small changes to my files and we can be used without needing visual studio.
I have experience also in JavaScript and some jscript. I did find the Google API nuget package for studio and have installed it (not had time to look at it yet).
Some options Google have on their help site involves languages such as Java that we don't have any experience of in the format they appeared to be using it.
Given the above, can someone advise or recommend the best approach I should take for retrieving Google analytics data into our webpages (I do not want users to have to login-it should just seamlessly retrieve the data and display it).
Thanks
You could make an MVC project, where you can take the data and display it in a View. Here you can see some example with GoogleApi and MVC project in C#.

How do I create an .exe (or similar) for a VS15 VB.net website?

I was asked by my client to build a basic website in Visual Studios 2015 that allows them to view mapping relationships between data. The entire thing is fully functional and tested. It is connected to a local MS Access database since it only needs to be a basic intro product.
The issue I am having is that the client requested the application as a .exe file so they can take it throughout the company and raise more funding for the project. I can't seem to find any options to build the program as an .exe or anything similar to that. VS15 seems to only want me to use Azure, which we do not have the funding to purchase. The solution to this does not need to be pretty, but it does need to be functional and portable. I developed the program on a PC, but the client has a Mac and wants to use that for the demos.
What do I need to do in order to give the client what they want without having to purchase something else or as for a server to run the website on? Is there any way I can allow the client to use the application without needing to run the entire program?
Please feel free to ask for any additional detail, as needed.
Thanks for your help!
-WS
The comments are correct - that's not exactly how this works. When you're hitting "play" in Visual Studio, it's using IIS Express by default: https://msdn.microsoft.com/en-us/library/58wxa9w5(v=vs.120).aspx
Your best bet will be to use that: https://learn.microsoft.com/en-us/iis/extensions/introduction-to-iis-express/iis-express-overview
However that is only for the "web server" part - you'll still need to deploy your application like you would another asp.net project - it will not be an executable though, it'll be served up as compiled html / js files and vb, etc
Once you have IIS express setup and running, you'll be able to hit that website like you do when debugging (http://localhost:SOMEPORT)

Migrate .rdlc reports from one application to another

This might be a really easy question for the guru's in stackover flow but i am not sure how to approach it.
Migrating from Desktop Application to Web Applicaiton
Used C# for Desktop Application
Used Asp.net for Web Application
first i created the desktop application but due to the time constraint on installing it on several machines, i came up with the proposal to create a web app
Issue
there are several reports that i dont want to recreate, they are just too complicated and i had already created these reports for the Desktop application i want to basically copy that report and paste it into the web application and link that in in the reportviewer and just change the datasource which would save me the trouble of recreating. i tried creating one of the report manual but the layout got messed up on the browser.
Plz help, thanks in advance
WinForms.ReportViewer can preview your rdlc using DisplayMode.PrintLayout but this is not possible with WebForms.ReportViewer where you basically always work with DisplayMode.Normal.
If exporting your web rdlc to PDF solves the layout problem, try display your report directly in this format.

Want to open MS word,Excel,PowerPoint from ASP.NET Page

I want to make an website which gives training of Office Automation (MS Word,Excel,PowerPoint) for that, suppose i have an webpage which displays an question regarding MS Word, let question is "Type word 'stackoverflow' in word document and make it bold?" Webpage will have an button called "Start Practice Test" when user click on this it will open MS Office Word on his PC and he will do accordingly what is in Question once he done with it user will again come to page and click on "End Test" when he click on end test whatever he did in that documennt is to be monitor and marks given accordingly.
I can do same thing in Windows application using OLE scripting but i want to do same with web based system, i searched a lot and i came to know that OLE will not work with web based system.
So is there any open source tool/API/Plugin which will do same think.?
This is much more different than the way you thought about it. You have two options:
Simulation of MS Word via a rich client framework
Using some Active-X control
Both 1 & 2 are not robust and take a lot of effort.
A better solution is a standalone application (exe) which talks to web services as needed (exchanging data at background).

asp.net website vs web application [duplicate]

This question already has answers here:
ASP.NET Web Site or ASP.NET Web Application?
(25 answers)
Closed 9 years ago.
I've read a lot of discussions about web site vs web applications in asp.net
The way we work in my team (10 programmers), we use the project type "web site", and for our dev environment, we just copy the source code (aspx + .cs) to the server. This way, all the programmers can be doing changes at the same time.. and the server does the build dynamically. .....(for the prod environment, they build the application)
Now, I'm starting a new project, and I decided to use web application (the main reason was the web config transform option).. I soon realized that (as far as I know) it forces you to do a build/publish of the web app to the server with every change... which is not a big problem if I'm the only one working on this project...
But, now I'm wondering, what's going to happen if more programmers needs to work on this new project at the same time?
Any advise or similar situation?
EDIT
we're using Visual Source Safe... but only for keeping track of the older versions (not for builds)... I'm familiar with Subversion... but.. unfortunately, I don't take the decision on what we should use.. and I don't think they're willing to change
Thanks everyone for your answers...
Anytime I hear the, this isn't a big problem as long as. . . . immediately tells me, that I should assume that it will be a problem. In short, go with what you know. If you are familiar with using the ASP.NET website, then I would use that. Your development practices are already focused around handling that.
This is the same model that I used when doing classic ASP when I first started programming at a company. This model works, although I would strongly suggest getting source control too. That being said, here is what I would do long term:
Source control
Develop locally
Get a continous build process going (cruise control is a free one).
Have one person push everyone's changes to the development server, once everyone agrees that all the changes are compatible with each other. (normally this is done by making sure the build server can compile everything).
If you choose to use web application and add more programmers on the project, I recommend using source control. Git and Subversion are very popular. In Git, for example, you can see who commits what.
Of course, I would use source control from the get-go, whether you're on your own or collaborating with a group.
As #edmastermind29 said source control is really the #1 thing to keep that straight if you are having more then 1 developer.
It really depends on your development process. Most shops do some type of continuous integration and have unit tests running and have some sort of automated build process.
I have found that using a web application project is really the best for all the "best practice" types of things.
Check out this link for some guidance.
It really depends on how your team works, and how your environment is configured. Regardless though, you need to have some sort of source control system in place to ensure that your not overwriting each other's changes. If you don't already have a source control system in place, stop now and get one immediately.
Depending on which source control system you choose, you will at least have the basic checkin/checkout features that serve as a library for your code base; meaning if I have a file checked out you can't touch it until I've checked it back in.
If you choose a more feature-rich source control system, you should be able to take advantage of features like branching and shelving, which will allow your team to work on the same files simultaneously, and merge the changes when the files are checked in.
While your question is about web sites vs. web applications, the answer is source control. With a good source control system in place, your question becomes more or less irrelevant, aside from needing to coordinate builds with a web application.

Resources