Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
mary #1
Compiler Error Message: CS0123:
Hi Everyone...Can somebody help me figure out how to fix this error?
I'm out of ideas! Thanks!
CS0123: Method 'IC.Reports.Comp.webic_first.EmpLink_ItemCommand(o bject,
System.Web.UI.WebControls.CommandEventArgs)' does not match delegate
'void System.EventHandler(object, System.EventArgs)'
In my ASCX page, I have:
<asp:TemplateColumn HeaderText="theID">
<ItemTemplate>
<asp:linkbutton id="EmpLink" OnClick="EmpLink_ItemCommand"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "the_nbr")
%>' runat="server" Text='<%# DataBinder.Eval(Container.DataItem,
"the_nbr") %>' CommandName="select" />
</ItemTemplate>
</asp:TemplateColumn>
And the backend I have:
protected void EmpLink_ItemCommand(object sender,
System.Web.UI.WebControls.CommandEventArgs e)
{
string cmd = e.CommandName;
if (cmd == "select")
{
int m_empnbr= 0;
m_empnbr = Convert.ToInt32(e.CommandArgument);
GetInfo(m_empnbr);
}
}
mary Guest
-
Compiler Error Message: BC30451: Name 'tk' is notdeclared.
Hi Guys, I have a MAJOR problem, I am using Dreamweaver MX and I am passing the below parameters to a stored procedure which is meant to return me... -
Compiler Error Message: BC30451: Name 'dsProduct' is not declared.
Hi dsProduct must be a property, and you defined it as function. bye "mareal" <m@m.com> wrote in message... -
Compiler Error Message: BC30201: Expression expected.
Error on Line 36 Line 34: <TABLE id="Table3" cellSpacing="2" cellPadding="2" width="100%" border="0"> Line 35: <TR> Line 36: <TD... -
Compiler Error Message: CS1595 (is Q318274 the whole story?)
We have a Web Service written in VB.NET (1.0 SP2) on W2K IIS5... One of our customers is reporting symptoms that sound exactly like those... -
Compiler Error Message: The compiler failed with error code 128.
Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me... -
Alvin Bruney #2
Re: Compiler Error Message: CS0123:
it looks like you hand generated the itemcommand event. you need
system.eventargs instead of your commandeventargs parameter in your
itemcommand handler.
"mary" <marjan.s.monabbat@wellsfargo.com> wrote in message
news:19980dd5.0308131524.1142cf31@posting.google.c om...> Hi Everyone...Can somebody help me figure out how to fix this error?
> I'm out of ideas! Thanks!
>
> CS0123: Method 'IC.Reports.Comp.webic_first.EmpLink_ItemCommand(o bject,
> System.Web.UI.WebControls.CommandEventArgs)' does not match delegate
> 'void System.EventHandler(object, System.EventArgs)'
>
> In my ASCX page, I have:
>
>
> <asp:TemplateColumn HeaderText="theID">
> <ItemTemplate>
> <asp:linkbutton id="EmpLink" OnClick="EmpLink_ItemCommand"
> CommandArgument='<%# DataBinder.Eval(Container.DataItem, "the_nbr")
> %>' runat="server" Text='<%# DataBinder.Eval(Container.DataItem,
> "the_nbr") %>' CommandName="select" />
> </ItemTemplate>
> </asp:TemplateColumn>
>
>
> And the backend I have:
>
>
> protected void EmpLink_ItemCommand(object sender,
> System.Web.UI.WebControls.CommandEventArgs e)
> {
> string cmd = e.CommandName;
> if (cmd == "select")
> {
> int m_empnbr= 0;
> m_empnbr = Convert.ToInt32(e.CommandArgument);
> GetInfo(m_empnbr);
> }
> }
Alvin Bruney Guest



Reply With Quote

