In this tutorial we will see how to create a simple web page. It is really a beginner level tutorial so you may find it slow or boring, but it is great for the crowd who are just getting into it and want to peek into things and there basic working.
Let us start by launching Visual Basic, I'm using the 2015 enterprise version and you can use any version and the community one as well. We select New Project or use the short cut of it Ctrl+Shift+N. And then we select Visual C# from the left tab and expanding it, we will select Web option. It will show you a option on the right of ASP.NET Web Application. Name it what you want and proceed.
Selecting this and proceeding, we will have the following dialog box.
Here we will select an Empty ASP.NET file with the option Web Forms checked. Click OK. Now we will have an WebApplication or whatever you named it, on your right in solution explorer. Now you need to right click on it, select Add and then New Item. You will now have the following dialog box in which you will search for Web Form and Add it.
Name it default, as this will be the default page you will be loading now so it is easy to recognize by the naming convention that you made this page the default. Now you will have a following view.
You can see that the Design, Split and Source option on the bottom. Select Design from the bottom in order to let drag n drop tools come in action for us to make things easy. You will now have a design view with Toolbox on your left. Open up the Toolbox and search for a Textbox. Then drag n drop on your design page where you want it.
You can now add any text straight from the design view into the Textbox you just dragged and dropped. Add My first web form page to it and debug it in order to see if it shows you the output on your browser or not. This will look something like this.
Success! Now this might not be the prettiest view for a Web Form but in this tutorial you have just learned the most basics of creating a web form. Now you need to test your knowledge by creating a registration page by just dragging n dropping objects from Toolbox. Its pretty simple! If there are any quires, you are welcome to comment and I will respond. Happy Learning!
Comments
Post a Comment