I am working on creating a custom CMS for my website and this is the first time I have had to worry about checking user inputs and make sure everything will work fine before doing creating file/folder or adding data to the SQL DB (in the past it was just me so if something whent wrong I would just manually do it). I was hoping someone could look over my code and give me any tips on what I can do to check that everything will go smothly before actualy making the changes. Thanks in advance for any help you provide.
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class GameSections_add : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
//Declare and fill varibles
string GameTitle = tbGameTitle.Text;
string Folder ...
Go to the complete details ...