Webmatrix is a simple development environment developed by
microsoft people today we are going to learn simple database program using web
pages with razor syntax in webmatrix IDE.
Steps:
1. Launch webmatrix ide !
2. Choose open site and select empty site!
3. Give site name of your choice(ide will create some
default files)!
4. Inside default.cshtml write according to following
algorithm
4.1. Open database(initialize database connection ).
4.2. Write sql query of your choice store it in variable.
4.3 Print query response using loop or with own logic
5. Keep coding!
Sample Program:
0 comments:
Post a Comment