Professional Web Applications Themes

how to resolve delegate error message - ASP.NET Building Controls

how do I resolve delegate error message ?? ====== erorr message ====== Compiler Error Message: BC30408: Method 'Public Sub dothis_click(sender As Object, E As System.EventArgs)' does not have the same signature as delegate 'Delegate Sub ImageClickEventHandler(sender As Object, e As System.Web.UI.ImageClickEventArgs)'. Source Error: Line 15: <body> Line 16: <form runat="server"> Line 17: <art:Button id="Button1" onclick="dothis_click" Line 18: runat="server" Line 19: BackColor="white" Source File: ...\artFormButton.aspx Line: 17 ====== code ====== <% Page Language="VB" %> <% Register TagPrefix="art" Namespace="System.Art.Controls" Assembly="ArtControls" %> <% import Namespace="System.Web.UI.WebControls" %> <script runat="server"> sub dothis_click(ByVal sender As Object, ByVal E As EventArgs) message.text = "hello from button" end ...

  1. #1

    Default how to resolve delegate error message


    how do I resolve delegate error message ??


    ====== erorr message ======

    Compiler Error Message: BC30408: Method 'Public Sub dothis_click(sender As
    Object, E As System.EventArgs)' does not have the same signature as delegate
    'Delegate Sub ImageClickEventHandler(sender As Object, e As
    System.Web.UI.ImageClickEventArgs)'.

    Source Error:

    Line 15: <body>
    Line 16: <form runat="server">
    Line 17: <art:Button id="Button1" onclick="dothis_click"
    Line 18: runat="server"
    Line 19: BackColor="white"


    Source File: ...\artFormButton.aspx Line: 17


    ====== code ======


    <% Page Language="VB" %>
    <% Register TagPrefix="art" Namespace="System.Art.Controls"
    Assembly="ArtControls" %>
    <% import Namespace="System.Web.UI.WebControls" %>
    <script runat="server">

    sub dothis_click(ByVal sender As Object, ByVal E As EventArgs)
    message.text = "hello from button"
    end sub

    </script>
    <html>
    <head>
    </head>
    <body>
    <form runat="server">
    <art:Button id="Button1" onclick="dothis_click"
    runat="server"
    BackColor="white"
    AlternateText="hello"
    Text="hello"
    Theme="Blue.theme"
    Format="PNG"
    BorderColor="white"
    Height="25px"
    Width="135px"
    ImageAlign="Baseline">
    </art:Button>
    </form>
    <asp:label id="message" runat="server" />
    </body>
    </html>








    TJS Guest

  2. #2

    Default Re: how to resolve delegate error message

    The answer is right there in the error:
    > Compiler Error Message: BC30408: Method 'Public Sub
    > dothis_click(sender As Object, E As System.EventArgs)' does not have
    > the same signature as delegate 'Delegate Sub
    > ImageClickEventHandler(sender As Object, e As
    > System.Web.UI.ImageClickEventArgs)'.
    Change dothis_click to accept ImageClickEventArgs instead of EventArgs.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]




    Brock Allen Guest

Similar Threads

  1. Replies: 2
    Last Post: May 1st, 01:19 PM
  2. error: unable to resolve '/images/datepicker.png' for transcoding
    By taiq in forum Macromedia Flex General Discussion
    Replies: 4
    Last Post: June 23rd, 09:33 PM
  3. Error: unable to resolve '/images/title.png' fortranscoding
    By monkeyden.com in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 23rd, 06:03 AM
  4. [FLEX 2.0 SDK] error compile: Unable to resolve a class for factoryClass
    By Luca[M] in forum Macromedia Flex General Discussion
    Replies: 3
    Last Post: August 26th, 04:34 PM
  5. connot resolve<mx:script> to a component name error
    By ridvanarik in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: March 13th, 11:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139