Link to home
Start Free TrialLog in
Avatar of Levi Martin
Levi MartinFlag for United States of America

asked on

Browser CS1002 ' expected error.

Searching for a solution to solve the error, thanks Experts!!!

Compiler Error Message: CS1002: ; expected

Source Error:

 

Line 3:  <script runat="server">
Line 4:  
Line 5:      Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Line 6:  
Line 7:      End Sub
 
Avatar of AsishRaj
AsishRaj
Flag of Fiji image

There is probably a line of code somewhere  that is missing a semicolon and the compiler thinks this is a continued line and expects a semicolon. Or you are missing an bracket somewhere in a method and it thinks this is part of the previous method rather than a method declaration.

Avatar of Levi Martin

ASKER

Well, it's system generated from Visual Web Developer 2008 and I'm a SQL DBA so this is all fairly new to me. The whole code segment looks like:
<script runat="server">
 
    Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
 
    Protected Sub txtExecutive_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
 
    Protected Sub SqlDataSource5_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs)
 
    End Sub
 
    Protected Sub SqlDataSource_EVP_LeadingThroughVisionAndValues_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs)
 
    End Sub
 
    Protected Sub FormView2_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewPageEventArgs)
 
    End Sub
 
    Protected Sub FormView_NextJobLevels_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.FormViewPageEventArgs)
 
    End Sub
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of AsishRaj
AsishRaj
Flag of Fiji image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you post the code for the whole page so i can say what language are you using and then i can give you the correct response in relation to that.
This is a small error which can be solved in matter of minutes only if we know what language you are using.

Reason for stating this is you selected C# zone but you are posting VB codes