Would some one help me to find out what am doing wrong? I added
& currentUser=<%txtCurrentUser.Text%> and I had the error below
Code:
<ItemTemplate>
<a href="OrderShoeRepairByCompany.aspx?VendorID=<%# ((Vendor)Container.DataItem).VendorID.ToString()%>& currentUser=<%txtCurrentUser.Text%>">Go to Servicesa>
ItemTemplate>
Error:
Compiler Error Message: CS1002: ; expected
Line 946: #line default
Line 947: #line hidden
Line 948: @__w.Write("\">Go to Services\r\n \r\n \r\n " +
Line 949: " ");
Line 950: }
Loading

Sam HobbsRank #107 · 20.5K reputationPosted Jan 19, 2010, 11:32 AM EST
Raul Juarez41 reputationPosted Jan 19, 2010, 3:13 PM EST
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1026: ) expected
Line 105: --%>
Line 106:
Line 107: Go to Services
Line 108:
Line 109:
Source File: c:\Projectos\ShoeRepairNY\Default.aspx Line: 107
Raul Juarez41 reputationPosted Jan 19, 2010, 4:13 PM EST
<ItemTemplate>
<a href="OrderShoeRepairByCompany.aspx?VendorID=<%# ((Vendor)Container.DataItem).VendorID.ToString()%>¤tUser=<%# txtCurrentUser.Text%>">Go to Servicesa>ItemTemplate>
Sam HobbsRank #107 · 20.5K reputationPosted Jan 21, 2010, 10:26 AM EST
Raul Juarez41 reputationPosted Jan 21, 2010, 12:13 PM EST
It is easy to see the error and answer YUPI semicolons is the problem. but in this case I was asking what I was doing wrong in passing the variables as quesrystring and no specifically about semicolons. Your answer didn't help me sorry.
Sam HobbsRank #107 · 20.5K reputationPosted Jan 22, 2010, 8:54 AM EST
Please ask the question you need help with instead of just wasting other people's time.
Raul Juarez41 reputationPosted Jan 22, 2010, 11:02 AM EST
<a href="OrderShoeRepairByCompany.aspx?VendorID=<%# ((Vendor)Container.DataItem).VendorID.ToString()%>¤tUser=<%# txtCurrentUser.Text%>">Go to Servicesa>ItemTemplate>