Sunday, May 17, 2015

Saving Data to a SQL Table

If need to store data to a SQL table, you could use a series of SQL commands that would allow you to run scripts on a table in SQL Server.  First create a connection and open it.  Once the connection is open you can execute text scripts against the table. Don't forget to close the SQL connection once you are done with it.


 To test, submit a new request in the Login Request page.


See the new entry in the Current Requests page.


 
 

Here is the code to display the insert results.

Saturday, May 9, 2015

How to Add and use Master Pages


To add a new Master Page to your Web Site. Right click on the site, then add new item, then select Web Forms Master Page.


Then modify your Master Page with all the standard controls that will be shown in all of your content pages. 

Once you are done with the setup of your Master Page, you can start creating content pages by right clicking on the Master Page then select add content page.
 
Now all of your pages share the same navigational controls.

Monday, April 27, 2015

How to Use CSS3 and HTML5 Features in a New Web Form


To add a new web form to your solution, right click on the website, click add, and then click on Web Form.  This will create a brand new empty form.






Then add a label to the page using CSS3 formatting to change the color and highlight of the title.



This is how the page title looks like with both the CSS3 and HTML5 features.