Click here to Skip to main content
15,909,498 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTreeView State Between Postback Pin
perlmunger12-Oct-06 18:33
perlmunger12-Oct-06 18:33 
AnswerRe: TreeView State Between Postback Pin
minhpc_bk13-Oct-06 0:40
minhpc_bk13-Oct-06 0:40 
GeneralRe: TreeView State Between Postback Pin
perlmunger13-Oct-06 4:05
perlmunger13-Oct-06 4:05 
GeneralRe: TreeView State Between Postback Pin
minhpc_bk15-Oct-06 16:20
minhpc_bk15-Oct-06 16:20 
GeneralRe: TreeView State Between Postback Pin
perlmunger16-Oct-06 4:28
perlmunger16-Oct-06 4:28 
GeneralRe: TreeView State Between Postback Pin
minhpc_bk17-Oct-06 0:20
minhpc_bk17-Oct-06 0:20 
GeneralRe: TreeView State Between Postback Pin
perlmunger17-Oct-06 3:41
perlmunger17-Oct-06 3:41 
Questionc#: Problem linking control to OnClick event Pin
Goalie3512-Oct-06 9:46
Goalie3512-Oct-06 9:46 
I'm running c# in the v1.1 framework and I'm trying to use an onClick event in an imagebutton (I named it "btnLogin") control on my Index.aspx page. The problem however is I keep getting the following error:
--------------------------------------------------------------------
Compilation Error: Method 'Index.btnLogin_Click(object, System.EventArgs)' does not match delegate 'void System.Web.UI.ImageClickEventHandler(object, System.Web.UI.ImageClickEventArgs)'
-------------------------------------------------------------------

I originally created this control in the 2.0 framework and had no problem with it. Now, however I needed to downgrade to version 1.1 and I've been experiencing this problem.

Here's my imagebutton control on my aspx page:
------------------------------------------------------------------
<asp:ImageButton ID="btnLogin" runat="server" ImageUrl="images/button_login.jpg" OnClick="btnLogin_Click" />
--------------------------------------------------------------------

...and here's my method in my code:
--------------------------------------------------------------------
public void btnLogin_Click(object s, System.EventArgs e)
{

}
--------------------------------------------------------------------

If it helps, here's how I created my btnLogin control in my code:
-------------------------------------------------------------------
protected System.Web.UI.WebControls.ImageButton btnLogin;
--------------------------------------------------------------------

...and last but not least, here's my aspx page header:
--------------------------------------------------------------------
<%@ Page Language="c#" AutoEventWireup="false" Inherits="Index" CodeBehind="Index.aspx.cs" %>
------------------------------------------------------------------

Any ideas as to what I'm doing wrong?

Thanks.

-Goalie35


AnswerRe: c#: Problem linking control to OnClick event Pin
Private_Void12-Oct-06 11:14
Private_Void12-Oct-06 11:14 
Questionhow do i add datagrid controler and funcionality to a web composite control Pin
Lior S12-Oct-06 8:46
Lior S12-Oct-06 8:46 
AnswerRe: how do i add datagrid controler and funcionality to a web composite control Pin
minhpc_bk13-Oct-06 0:47
minhpc_bk13-Oct-06 0:47 
QuestionRetrieving Uploaded Files Pin
Ennis Ray Lynch, Jr.12-Oct-06 8:44
Ennis Ray Lynch, Jr.12-Oct-06 8:44 
AnswerCorrection Pin
Ennis Ray Lynch, Jr.12-Oct-06 8:54
Ennis Ray Lynch, Jr.12-Oct-06 8:54 
QuestionCan we use AJAX in .NET 1.x ? [modified] Pin
Sreenath Madyastha12-Oct-06 7:30
Sreenath Madyastha12-Oct-06 7:30 
AnswerRe: Can we use AJAX in .NET 1.x ? Pin
Christian Graus12-Oct-06 7:42
protectorChristian Graus12-Oct-06 7:42 
AnswerRe: Can we use AJAX in .NET 1.x ? Pin
Christian Graus12-Oct-06 7:45
protectorChristian Graus12-Oct-06 7:45 
Questionrecord locking in vb.net Pin
amaneet12-Oct-06 5:36
amaneet12-Oct-06 5:36 
AnswerRe: record locking in vb.net Pin
minhpc_bk12-Oct-06 15:03
minhpc_bk12-Oct-06 15:03 
Questionviewstate Pin
amaneet12-Oct-06 5:33
amaneet12-Oct-06 5:33 
AnswerRe: viewstate Pin
Mike Ellison12-Oct-06 6:31
Mike Ellison12-Oct-06 6:31 
Questiontiers Pin
amaneet12-Oct-06 5:31
amaneet12-Oct-06 5:31 
AnswerRe: tiers Pin
Mike Ellison12-Oct-06 6:35
Mike Ellison12-Oct-06 6:35 
Questionproblem with asp.net2.0/sqlserver200 Pin
S.Bhushan12-Oct-06 5:14
S.Bhushan12-Oct-06 5:14 
AnswerRe: problem with asp.net2.0/sqlserver200 Pin
Mike Ellison12-Oct-06 6:37
Mike Ellison12-Oct-06 6:37 
QuestionCreate multilingual web pages very easily Pin
tnsenthil12-Oct-06 5:10
tnsenthil12-Oct-06 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.