?
Solved

BC30203: Identifier expected.

Posted on 2008-06-24
2
Medium Priority
?
2,874 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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