Creating web form in Asp.net
How to create web form in asp.net !
Creating web form is very easy. First i will create asp.net application. Them add web form in the solution explorer. Than click the design button to see the output of the source code. Then from table insert table and add desired number of rows and columns. Then add labels in the rows. After that add text-boxes to get data. Add a button write code to show all the retrieved data on label. Now i will show how to do this. I hope a brief explanation made it easy to understand !
First create a web application. Then after that add a web form in the solution explorer. For that click the application name click Add--> Add new item --> Web form.
Click the design button in the below bar. Click the Tables button-->add tables. Then add desired rows and columns. But if you are following me than i have added 5 rows and 2 columns. Here i have edited the label that is imported from the tool box.
Here is the form.
Enjoy :)
Creating web form is very easy. First i will create asp.net application. Them add web form in the solution explorer. Than click the design button to see the output of the source code. Then from table insert table and add desired number of rows and columns. Then add labels in the rows. After that add text-boxes to get data. Add a button write code to show all the retrieved data on label. Now i will show how to do this. I hope a brief explanation made it easy to understand !
First create a web application. Then after that add a web form in the solution explorer. For that click the application name click Add--> Add new item --> Web form.
Here is the form.
Here is the source code that will be generated when you will add tables and other things in it. while running the form on the browser. If you want to put light color name or password in text-boxes than add place holder in the code as you can see the place holder in the code as added below in the picture. Find it it in the name section.
After that you have noticed that i have also added a button in the form. Double click the button them. A class will open where the click event of the button will be created. You can see i have taken 4 variables and took value from the text-boxes. And all those values are displayed on the label below the text-boxes.
After that run the form. This is my form and see i have putted values that are displayed here.
The form is completed you can make the form more detailed and can make more forms like this.Enjoy :)
Comments
Post a Comment