Home > Net >  Now compile DLL, can't write c # code into the page? Uncaught ReferenceError: function is not d
Now compile DLL, can't write c # code into the page? Uncaught ReferenceError: function is not d

Time:04-12

 & lt; % @ Page Language="c #" AutoEventWireup="true" CodeBehind="log. Aspx. Cs" Inherits="JINDIsoft. Log" % & gt; 
& lt; ! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt;
& lt; HTML XMLNS="http://www.w3.org/1999/xhtml" & gt;
& lt; The head runat="server" & gt;

& lt; Script language="c #" runat="server" & gt;
Void loglog (object sender, EventArgs e)
{
String Path=@ "D: \ log \ log. TXT".
if (! System. IO. File. The Exists (Path))
{
System. IO. FileStream f=System. IO. File. Create (Path);
F. lose ();
F.D ispose ();
}
System. IO. StreamWriter f2=new System. IO. StreamWriter (Path, true,
System. Text. Encoding. GetEncoding (" gb2312 "));
F2. WriteLine (Request) [r]. "st" the ToString ());
F2. The Close ();
F2. The Dispose ();
}
& lt;/script>





Onclick="loglog" at the back of a problem with the control code there

Uncaught ReferenceError: loglog is not defined
Undefined??
Don't read the above code?
I write in an aspx, DLL could not write,
Public plus also not line, and the static or not
  •  Tags:  
  • C#
  • Related