rhishi20 Posted February 17, 2015 Share Posted February 17, 2015 I am working with vb.net and want to upload file. i am using stringbuilder for building sql query. but not able to properly concatenate following sql statement in vb.net. path = ConfigurationManager.AppSettings.Get("resDeptCommentPath") .Append("actionDescFileName='" & fuActDescFile.FileName & "',actionfilepath='" & path & " " & '" & ViewState("DepartmentName") &"' & "ActionDescription" "',") & represented with green color is the error spot and it gives expresssion expected error. I guess, i am not concatenating things properly. help will be appreciated. note:don't consider .append for second line i have written this code in single line while coding. Link to comment Share on other sites More sharing options...
Ingolme Posted February 17, 2015 Share Posted February 17, 2015 I don't think a single quote is a string delimiter in VB.NET. I believe a single quote begins a comment. 1 Link to comment Share on other sites More sharing options...
rhishi20 Posted February 24, 2015 Author Share Posted February 24, 2015 Thanks ! this solves the problem Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now