Re: What am i doing wrong in calling this script? Urgent please. Thank You.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ryan Ternier (rternier_at_icompasstech.com.spamproof)
Date: 06/22/04


Date: Tue, 22 Jun 2004 15:28:27 -0700

Have you tried adding : handles Finish.Click to the end of your function
definition?

<asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

btnFinish_Click is as follows:

   Sub btnFinish_Click( s As Object, e As EventArgs ) handles Finish.click
       InsertFormValues.DoInit()
       sendEmail()
   End Sub

"Miguel Dias Moura" <web001@27NOSPAMlamps.com> wrote in message
news:uyF9STKWEHA.1164@tk2msftngp13.phx.gbl...
Hi,

I just uploaded a web site and i am getting an error.

I have a script which sends form values to an email using AspNetEmail.
The script was working when i was calling the script like this:
<asp:Button ID="Finish" runat="server" OnClick="sendEmail">

However, in this new web site version, when the button is pressed, to
scripts are supose to run.
So i replaced the button code with this:
<asp:Button ID="Finish" runat="server" OnClick="btnFinish_Click"

btnFinish_Click is as follows:
   Sub btnFinish_Click( s As Object, e As EventArgs )
       InsertFormValues.DoInit()
       sendEmail()
   End Sub

I get the following error:

     "BC30455: Argument not specified for parameter 'e' of 'Private Sub
sendEmail(sender As Object, e As System.EventArgs)'."

in this line:

      Line 136: sendEmail()

So i am calling the script in the wrong way.
I also tryied to call it just with "sendEmail".

The script starts with:
    Private Sub sendEmail(sender as Object, e as System.EventArgs)
    ...

I really need to have this done tonight. Can you help me?

Thank You,
Miguel

P.S: Working with ASP.NET / VB



Relevant Pages

  • Re: Detecting is hyperthreading is enabled with WMI?
    ... It is too bad that WMI does not give this info. ... have to be done to the script. ... Public Sub DisplayProcessorInfo ... dim ProcessorSet, Processor ...
    (microsoft.public.windowsxp.wmi)
  • Cant make this page work
    ... I can't make this script work properly. ... The script at the bottom of the html page ... Does someone have a perl ... sub output_trace_headers { ...
    (comp.lang.javascript)
  • Re: Maybe I should try a different approach
    ... entire time my script is running, then have it close when my script is done and maybe have some dots keep adding to the text message until the script is fully completed? ... ' The "Three Ugly Hack" Script, ... Sub oATO_vbTimerEvent' timer event handler... ... Public Property Let Left ...
    (microsoft.public.scripting.vbscript)
  • Re: Win32_Product doesnt list all installed Applications
    ... 'Must have ADSI and WMI installed on PC running script. ... CONST ForReading = 1 ... Sub Connect ... strHTML = "Smoke'm if you Got'em" ...
    (microsoft.public.windows.server.scripting)
  • Win32_Product doesnt list all installed Applications
    ... 'Must have ADSI and WMI installed on PC running script. ... CONST ForReading = 1 ... Sub Connect ... strHTML = "Smoke'm if you Got'em" ...
    (microsoft.public.windows.server.scripting)