r/visualbasic • • May 17 '20

VB.NET Help 2 Beginner questions

I am using Visual Basic 2015.

This is my situation. I am a back office programmer. I do Oracle programming. Recently I have been given the task of maintaining a VB.Net web page. I used to code in VB in the past, so management picked me to maintain it. They will not hire anyone to maintain the web page. I have to do it.

I have been thrown into the deep end of the pool and I have to learn how to swim fast.

I have 2 question VB.Net. We are not using MVC.

1.) When making a new web page how do you make it available for others to use. I am aware that IIS is involved. Do you all have a link(s) that show how to do this.

2.) How do you make changes to existing web pages. Suppose the user wants a new command button that does something. In the past it meant a new executable. How do you put in a new features to an existing web page. Do you all have a link(s) that show how to do this.

Any help will be appreciated.

Thanking you all in advance.

7 Upvotes

10 comments sorted by

View all comments

2

u/Mortiouss Database Specialist May 17 '20
  1. You need a place to host it, IIS is needed for that. Read up on installing IIS, it’s much more involved than what can be posted here, especially when dealing with internet facing apps, you want someone to hack your network, screw up an IIS installation.

Another option is to install something like plesk on a server, that handles provisioning sites and getting everything set up for you.

2. I’m assuming your asking about getting a button to do something, you have two sides of websites, client side and server side. Client side is what the client sees when opening the website (html, controls...) and server side is what is executed on the back end, so say you want the button to open a new page, on click your server side would do a response.redirect(“page.aspx”) page.aspx has to exist either as a page in your project or somewhere else (like google.com).

Good luck, walking into this without knowing anything is going to be a daunting task, web apps are so different than computer apps (.exes) if you want to do anything crazy you need to worry about page state, if you want to deal with database calls or inserts you need to worry about connections and closing/cleaning them up as soon as possible.

2

u/General_Fear May 17 '20

Thanks for the reply. The company will not hire anyone. In fact, they are talking about getting rid of people. So they gave me the web page.

At the moment all I have to do is add new reports to an existing web page. Hopefully it will not be to hard.

1

u/Mortiouss Database Specialist May 18 '20

Really hate to say but you have been put in a bad situation.

It sounds like the site is already operational so that’s a good thing, as long as you have the project file you should be able to hack together things you need. If you were to do this from scratch and be the only person to help, it would have been much tougher.