Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 12, 2012 02:45 PM by sujithkumar
Member
11 Points
47 Posts
Jun 12, 2012 02:24 PM|LINK
<asp:HyperLink ID="HyperLink1" Text='<%#Eval("Name")%><%#Eval("Customer")%> ' runat="server" NavigateUrl='<%#Eval("URL")%>'/>
i wanted to add Name and Customer as a text to hyperlink. what am i doing wrong ?
thanks
Contributor
3026 Points
564 Posts
Jun 12, 2012 02:45 PM|LINK
hi,
use DataBinder.Eval(Container.Data Item,"ur column name")
refer this..
http://stackoverflow.com/questions/5646039/passing-arguments-in-onserverclick
http://bytes.com/topic/asp-net/answers/521365-preprocessor-directives-must-appear-first-non-whitespace-character-line
http://forums.asp.net/t/1171439.aspx/1
Hope this will help you....
Rushdy
Member
11 Points
47 Posts
Preprocessor directives must appear as the first non-whitespace character on a line
Jun 12, 2012 02:24 PM|LINK
<asp:HyperLink ID="HyperLink1" Text='<%#Eval("Name")%><%#Eval("Customer")%> ' runat="server" NavigateUrl='<%#Eval("URL")%>'/>
i wanted to add Name and Customer as a text to hyperlink. what am i doing wrong ?
thanks
sujithkumar
Contributor
3026 Points
564 Posts
Re: Preprocessor directives must appear as the first non-whitespace character on a line
Jun 12, 2012 02:45 PM|LINK
hi,
use DataBinder.Eval(Container.Data Item,"ur column name")
refer this..
http://stackoverflow.com/questions/5646039/passing-arguments-in-onserverclick
http://bytes.com/topic/asp-net/answers/521365-preprocessor-directives-must-appear-first-non-whitespace-character-line
http://forums.asp.net/t/1171439.aspx/1
Hope this will help you....