Author: csgpinto | Posted on: 6/24/2009 7:49:48 AM | Views : 314

Hi,


I have a problem on building an hyperlink for other page that gets info from database that should pass in parameters on a query.string. It appears a syntax error converting from a character string to uniqueidentifier.

Here's my code for the hyperlink:

<asp:HyperLink ID="nomeAutor" runat="server" NavigateUrl= "~/conteudosAutor.aspx?autor=UserID"><%# Eval("Nome")%></asp:HyperLink>


"Nome" is the field that appears on the page and on the NavigateUrl I put the link to the page I want that where there's a query.string "autor" to convert on a string.
I'm using the following SQL query to get the info from the database.



<asp:SqlDataSource ID="GET_DETAILS_CONTEUDO" runat="server" ConnectionString="<%$ ConnectionStrings:lms_bibliotecaConnectionString1 %>"
   ...

Go to the complete details ...