I am new to ASP.NET and I have run into a problem with a page I have created. I have posted the code below. For some reason, I am getting the following error and I don't know enough about ASP yet to even know how to fix it. If someone can take a look at
this and let me know what I'm doing wrong and how to fix it, that would be great. Thanks!
Error:
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: BC30455: Argument not specified for parameter 'e' of 'Public Sub submit(sender As Object, e As System.EventArgs)'.
Source Error:
Line 132: Line 133: #End ExternalSource Line 134: Me.Submit = __ctrl Line 135: __ctrl.ApplyStyleSheetSkin(Me) Line 136:
Source File: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\94e6acce\35d76b3d\App_Web_contact.aspx.cdcab7d2.kwqo6drb.0.vb
Line: 134
-------
This is the code I have for the page:
<%@ Page Title="Contact" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
CodeBehind="Contact.aspx.vb" Inherits="WebApplication1.About" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script runat="server">
Sub submit(ByVal sender As Object, ByVal e As EventArgs)
name.Text = "Good Morning " & txt1.Text & "!"
End Sub
Sub clear(ByVal sender As Object, ByVal e As EventArgs)
txt1.Text = String.Empty
name.Text = String.Empty
End Sub
</script>
<body>
<h2>
Contact
</h2>
<form id="Form1" runat="server">
Your name: <asp:TextBox id="txt1" runat="server" />
<asp:Button ID="Submit" OnClick="submit" Text="Submit" runat="server" />
<asp:Button ID="Clear" OnClick="clear" Text="Clear" runat="server" />
<p><asp:Label id="name" runat="server" Text="Name" /></p>
</form>
</body>
</asp:Content>
psha85
Member
7 Points
37 Posts
please help
Apr 19, 2010 08:09 PM|LINK
Hi-
I am new to ASP.NET and I have run into a problem with a page I have created. I have posted the code below. For some reason, I am getting the following error and I don't know enough about ASP yet to even know how to fix it. If someone can take a look at this and let me know what I'm doing wrong and how to fix it, that would be great. Thanks!
Error:
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: BC30455: Argument not specified for parameter 'e' of 'Public Sub submit(sender As Object, e As System.EventArgs)'.
Source Error:
Source File: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\94e6acce\35d76b3d\App_Web_contact.aspx.cdcab7d2.kwqo6drb.0.vb Line: 134
-------
This is the code I have for the page:
<%@ Page Title="Contact" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Contact.aspx.vb" Inherits="WebApplication1.About" %> <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"> </asp:Content> <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"> <script runat="server"> Sub submit(ByVal sender As Object, ByVal e As EventArgs) name.Text = "Good Morning " & txt1.Text & "!" End Sub Sub clear(ByVal sender As Object, ByVal e As EventArgs) txt1.Text = String.Empty name.Text = String.Empty End Sub </script> <body> <h2> Contact </h2> <form id="Form1" runat="server"> Your name: <asp:TextBox id="txt1" runat="server" /> <asp:Button ID="Submit" OnClick="submit" Text="Submit" runat="server" /> <asp:Button ID="Clear" OnClick="clear" Text="Clear" runat="server" /> <p><asp:Label id="name" runat="server" Text="Name" /></p> </form> </body> </asp:Content>-------
*Pooja*