Solved

BC30203: Identifier expected.

Posted on 2008-06-24
2
2,732 Views
Last Modified: 2012-06-22
Hi.

I'm pretty new with .net and I need to export some data to a browser and i'm getting compiler error when I run the browser viewer. from the code at the bottom can any see what I've messed up. Thanks in advance.
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30203: Identifier expected.
Line 19:                   
Line 20:                   <asp:Repeater id="Repeater1" runat="server">
Line 21:       <ItemTemplate>       <%# Container.DataItem.("rel_qty")%>
Line 22:             
Line 23:       </ItemTemplate>
Source File: c:\inetpub\wwwroot\subSP\SpeciaProjectForm.aspx    Line: 21

Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim temp = txtprojectnum.Text

    End Sub

    Sub btngetproject_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btngetproject.Click
        'Put user code to initialize the page here

        Dim ConCC As SqlConnection
        Dim cmdSelect As SqlCommand
        'Dim StrConCC As String
        Dim Strselect As String
        Dim projnumber As String
        Dim sortOrder

        Dim supplierdata As SqlDataReader

        projnumber = txtprojectnum.Text
        'sortOrder = SortOrderDrp.SelectedValue


        'StrConCC = ConfigurationSettings.AppSettings("ccConString")
        ConCC = New SqlConnection("server=(thunder);database=Avalanche_890382671;Trusted_Connection=yes")

        ConCC.Open()
        'begin purchasing query
        Strselect = "sp_speciprj"
        cmdSelect = New SqlCommand(Strselect, ConCC)
        cmdSelect.CommandType = CommandType.StoredProcedure
        cmdSelect.Parameters.Add("@pid", projnumber)
        'cmdSelect.Parameters.Add("@Location_id", sortOrder)
        cmdSelect.CommandTimeout = 0
        supplierdata = cmdSelect.ExecuteReader()

        Repeater1.DataSource = supplierdata
        Repeater1.DataBind()
        supplierdata.Close()


        ConCC.Close()
    End Sub
 
0
Comment
Question by:tips54
2 Comments
 
LVL 15

Expert Comment

by:NazoUK
ID: 21856114
There shouldn't be a period after DataItem in your binding expression: <%# Container.DataItem("rel_qty")%>
0
 

Accepted Solution

by:
tips54 earned 0 total points
ID: 22106725
resolved.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question