Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# scripting not working
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MySQL
Application:
Web
Divers
Thread ID:
01426452
Message ID:
01426456
Vues:
41
It looks like your script has: Submit_onclick()

but your tag link refers to: Submit1_onclick()




>I am trying to using script=C# in my html page.. but it doesnot work.. what I missed?
>
>Server Error in '/' Application.
>--------------------------------------------------------------------------------
>
>Compilation Error
>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: CS1003: Syntax error, '(' expected
>
>
>
>
>
>< % @ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="NetAdmin.WebForm2" %>
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
><html xmlns="http://www.w3.org/1999/xhtml" >
><head runat="server">
><script language="C#" type="text/C#" runat="server">
>    private void Submit_onclick(Object s, EventArgs e) {
>	using mynamespace;
>	MyClass1 myclass1 = New MyClass1();
>
>
>}
>
></script>
>    <title>Untitled Page</title>
>
></head>
><body>
>    <form id="form1" runat="server">
>    <input id="Submit1" type="submit" value="submit" onclick="return Submit1_onclick()" /><div>
>    
>    </div>
>    </form>
></body>
>< /html>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform