Will it be possible to do SQL injection when I add parameters like below? I am unsure because I never specify a DbType of the parameter (because I need MySQL types)
SqlDataSource.SelectCommand = "SELECT id, name, thumbnail FROM dishes WHERE foodCategoryID=?";
Parameter parameter = new Parameter();
parameter.DefaultValue = "1"; //This value will come from the query string when made correctly
SqlDataSource.SelectParameters.Add(parameter);
CatalogListView.DataBind();
This post has been edited by CasiOo: 27 July 2012 - 09:13 AM

New Topic/Question
Reply



MultiQuote







|