Jump to content
Sign in to follow this  
rhishi20

Attribute specifier is not a complete statement in asp.net webservice

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...