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 | |
|
|
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.
