Solved

BC30203: Identifier expected.

Posted on 2008-06-24
2
2,754 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reading excel file in .net 2 33
Google Maps with Webforms 1 29
ASP.NET Calendar Control 5 29
Need to find a web event on the IIS server 4 11
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

726 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