rhishi20 Posted July 31, 2015 Share Posted July 31, 2015 I am trying to develop asp.net webservice, but it gives Error:Attribute specifier is not a complete statement use a line continuation to apply the attribute to following sttatement.> coloured wth RED is the place where i am getting error following is my code block --------------------------------- <WebMethod(Description:="Method for checking ENQ PreExist or not")> _ Public Function EnqPreExistOrNot() As Boolean Dim strsql6 As New StringBuilder Dim localdt6 As New DataTable With strsql6 .Append("select * from complaintmastercrm where ccncd='" & lblCcn.Text & "' and partycd='" & ViewState("partycode") & "'") End With localdt6 = CommonDb.ReturnDataTable(strsql6.ToString, "CRM") If localdt6.Rows.Count > 0 Then EnqPreExistOrNot = True Else EnqPreExistOrNot = False End If End Function Link to comment Share on other sites More sharing options...
rhishi20 Posted August 1, 2015 Author Share Posted August 1, 2015 I have solved the problem, just by removing space between <WebMethod(Description:="Method for checking ENQ PreExist or not")> _ and Public Function EnqPreExistOrNot() As Boolean 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