Nikki

Nikki

  • 1.8k
  • 103
  • 1.4k

C# to Vb.Net Code conversion

Aug 30 2018 4:34 AM
I have code following :
 
string strSQL = "select top 10 * FROM tbNews order by newsid desc";
DataTable dt = new DataTable();
dt = objDataAccess.GetDataTable(strSQL);
gvUploadFiles.DataSource = dt;
gvUploadFiles.DataBind();
 
i need this code in vb.net. Kindly provide me solution.

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (3)