Solved

Asp.net Identifier expected error.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 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