|
-
Apr 8th, 2004, 03:16 PM
#1
Thread Starter
Fanatic Member
datalist
Hi,
The following code works fine in asp.net using vb.net but it gives the following error when the project is in c#. Do you know why?
Thanks
<SelectedItemTemplate>
»
<asp:HyperLink id=HyperLink2 runat="server" CssClass="DepartmentSelected" text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' NavigateUrl='<%# "../default.aspx?DepartmentID=" & DataBinder.Eval(Container.DataItem,"DepartmentID") &"&DepartmentIndex=" & Container.ItemIndex %>'>
</asp:HyperLink>
</SelectedItemTemplate>
Error: Operator '&' cannot be applied to operands of type 'string' and 'object'
-
Apr 8th, 2004, 03:22 PM
#2
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|