hi guys,
     i have a small prob, i am getting this error when
i run my code

CS1502: The best overloaded method match for
'System.Convert.ToString(object)' has some invalid
arguments

This is my code
its a datagrid hyperlink template column and i am
trying to set the navigate url using the databindings

<asp:TemplateColumn SortExpression="ErrorCode"
HeaderText="Error Code">
<ItemTemplate>
<asp:HyperLink id=ErrorCode runat="server" Text='<%#
DataBinder.Eval(Container.DataItem,"ErrorCode") %>'
NavigateUrl='<%#
SetValues(DataBinder.Eval(Container.DataItem,"ErrorID"),DataBinder.Eval(Container.DataItem,"ErrorCode"))
%>'>
</asp:HyperLink>
</ItemTemplate>

public void SetValues(object objErrorID, object
objErrorCode)
{
      string x = objErrorID.ToString();
      string y = objErrorCode.ToString();
      //navigate url in this method
        myMethod(x, y);

}

can any one help me out plz its urgent

thanks in advance
annie


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=315388.5529720.6602079.3001176/D=groups/S=:HM/A=2372354/rand=491147048


Yahoo! Groups Links

Reply via email to