Solved

Asp.net Identifier expected error.

Posted on 2014-02-22
2
717 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

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

21 Experts available now in Live!

Get 1:1 Help Now