setvalues is returning void to navigateurl property.  return the url as return value of setvalues function.



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 SponsorADVERTISEMENT




---------------------------------

Yahoo! Groups Links


   To visit your group on the web, go to:
http://groups.yahoo.com/group/CSharpNET/
 
   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


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

[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada

Web Bug from http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=1098985271993839
Web Bug from http://us.adserver.yahoo.com/l?M=281955.5530326.6602771.3001176/D=groups/S=:HM/A=2343726/rand=953379172


Yahoo! Groups Links

Reply via email to