Solved

BC30203: Identifier expected.

Posted on 2008-06-24
2
2,661 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
Comment Utility
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
Comment Utility
resolved.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML table 7 54
Pick image, show data 4 33
ASP.net produce a pdf from a GridView 2 33
Async and await with MVC and Web Api 3 29
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now