Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
control_order_board_web [2019/01/30 09:22]
127.0.0.1 external edit
control_order_board_web [2019/02/07 11:46]
kcifreo [What you need to do to get this working]
Line 13: Line 13:
 ===== 1. Purpose ===== ===== 1. Purpose =====
  
 +The purpose of the Order Board was to be used as a compressed model file for clients to have a place where they can keep their placed orders. It was made to use simple code that any developer can take and tweak to the client's liking. It is not limited to orders however. It can be used as a Grid View for any data, and is especially set up to connect to a SQL database
  
 +{{:cyriousorderboardpic.png?nolink&}}
  
- The purpose of the Order Board was to be used as a compressed model file for clients to have a place where they can keep their placed ordersIt was made to use simple code that any developer can take and tweak to the client's likingIt is not limited to orders however. It can be used as a Grid View for any data, and is especially set up to connect to a SQL database+Here, the head names are Order, Company Name, and Contact NameThese heading are all directly related to columns in your database. The code receives the columns from the database, turns them into the names that you choose, and puts them onto the grid.
  
- 
- 
-{{::cyriousorderboardpic.png?nolink&|}} 
- 
- 
- 
-Here, the head names are Order, Company Name, and Contact Name. These heading are all directly related to columns in your database. The code receives the columns from the database, turns them into the names that you choose, and puts them onto the grid.  
   * Order: Shows all data in the "OrderNumber" column of the database.   * Order: Shows all data in the "OrderNumber" column of the database.
-  * Company Name: Shows all data in the "CompanyName" column of the database. +  * Company Name: Shows all data in the "CompanyName" column of the database.
   * Contact Name: Shows all data in the "Contact" column of the database   * Contact Name: Shows all data in the "Contact" column of the database
  
 +There are also a number of things you can do from here, including:
  
- +  * Sorting 
-There are also a number of things you can do from here, including: +      * You can sort any heading by clicking the name of the heading; click it once to ascend, and twice to descend.
-  * **Sorting** +
-    * You can sort any heading by clicking the name of the heading; click it once to ascend, and twice to descend.+
   * Paging   * Paging
-    * There are a variety of ways you can page, like clicking the arrow button for which way that you want to page, clicking the button of the page, and entering which page you want to go to. +      * There are a variety of ways you can page, like clicking the arrow button for which way that you want to page, clicking the button of the page, and entering which page you want to go to.
  
  
Line 50: Line 43:
  
 ==== What you need to do to get this working ==== ==== What you need to do to get this working ====
 +
   * Attached is the file with all of the code for the Order Board. However, to get it working for you, you're gonna need to do a couple things including:   * Attached is the file with all of the code for the Order Board. However, to get it working for you, you're gonna need to do a couple things including:
  
- +  - Download the file. 
- +  Right click the file and click "extract all"
-### Download the file. +  Enter the file, and click CyriousInternalDatasource.sln. That will load the website in Visual Studios 2012. 
- +  Attach your database to the project by going into the Web.config and find the line that contains **connectionString=""**. Enter your database information in between the parentheses.{{:connectionstringpic.png?nolink&}} 
- +  Go into ValuesController.cs. Within the switch case, you'll find the cases with names like "OrderStation","CompanyName", "Contact", etc. Replace these with your data categories from your database. 
- +  Then you'll have a fully functioning grid with your data!
-### Right click the file and click "extract all"+
- +
- +
- +
-### Enter the file, and click CyriousInternalDatasource.sln. That will load the website in Visual Studios 2012. +
- +
- +
- +
-### Attach your database to the project by going into the Web.config and find the line that contains **connectionString=""**. Enter your database information in between the parentheses.{{::connectionstringpic.png?nolink&|}} +
- +
- +
- +
-### Go into ValuesController.cs. Within the switch case, you'll find the cases with names like "OrderStation","CompanyName", "Contact", etc. Replace these with your data categories from your database. +
- +
- +
- +
-### Then you'll have a fully functioning grid with your data! +