Solved

Asp.net Identifier expected error.

Posted on 2014-02-22
2
735 Views
Last Modified: 2014-03-06
I am getting an unexpected error in my code. Here is the code.



        <asp:DropDownList ID="ddlReportType" runat="server" OnSelectedIndexChanged="BindGrid";"
                AutoPostBack="True">
        </asp:DropDownList><br /><br />


BindGrid is defined as
 Private Sub BindGrid()
0
Comment
Question by:Idarac
2 Comments
 
LVL 18

Accepted Solution

by:
Gary Davis earned 500 total points
ID: 39879573
The function may need to be declared as Public.
0
 
LVL 11

Expert Comment

by:SAMIR BHOGAYTA
ID: 39881686
hi...
Please write your code like this, if you don't need to pass any parameter with this function.

<asp:DropDownList ID="ddlReportType" runat="server" OnSelectedIndexChanged="BindGrid();"
                AutoPostBack="True">
        </asp:DropDownList><br /><br />

Please try it... and let me know for further help...
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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
VB.net Move a class from Solution Items to a project 2 33
asp.net mvc5 6 23
asp Google Map 2 32
VS 2015 is giving [No relevant source lines] 2 27
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…
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…
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…

829 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