Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET error: Error 1 'isEqual' is not declared. It may be inaccessible due to its protection level
    primarykey
    data
    text
    <p>Hope there's .NET developers here that could enlighten me up.</p> <p>I actually already made up some pages in .NET environment, and i'm using VB.NET as my back-end.</p> <p>Phewww....!</p> <p>I have 2 files of A.ascx and B.ascx and each of them have the A.ascx.vb and B.ascx.vb files altogether.</p> <p>But here's the interesting part. I use 'isEqual' variable inside one of the method I typed in. And if I use it inside one of the vb file then, I could not use it into another vb file. Thus, Once I used that 'isEqual' inside of these 2 vb (files), I will got the error appeared as from one of the vb file;</p> <p>'isEqual' is not declared. It may be inaccessible due to its protection level.</p> <p>Is there any alternative way out for this?</p> <p>My code is actually this one;</p> <pre><code>Protected Sub bindTable() 'add somemore for searching with dropdown list Dim sSql As String = "SELECT *, C.companyname FROM quotationmst Q" Dim sColumn As String = Nothing Dim sSearchField As String = Nothing Dim sOptional As String = Nothing If txtQuotationSearchField.Text.Length &gt; 0 Then sColumn = drpQuotationSearchField.SelectedItem.Value sSearchField = " WHERE " &amp; sColumn &amp; " LIKE '%" &amp; txtQuotationSearchField.Text &amp; "%' " sSql &amp;= sSearchField If isEqual(sColumn, "companyname") = 0 Or isEqual(sColumn, "customername") = 0 Then sSearchField = " INNER JOIN customermst C on Q.customerid = C.customerid WHERE C." &amp; sColumn &amp; " LIKE '%" &amp; txtQuotationSearchField.Text &amp; "%'" sSql &amp;= sSearchField End If Else sSearchField = " INNER JOIN customermst C ON Q.customerid = C.customerid" sSql &amp;= sSearchField End If Dim oCommon As New Common sSql &amp;= " ORDER BY quotationcode" Dim dT As DataTable = oCommon.getDataSet(sSql) dgRecord.DataSource = dT dgRecord.DataBind() lblTotal.Text = dT.Rows.Count End Sub </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload