473,320 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

onclick="toggleDisplay('<%# Eval("description")%>

Here is my codes in aspx page:
Expand|Select|Wrap|Line Numbers
  1. <td colspan="2" class="main_menu" runat="server" onclick='toggleDisplay(<%#Eval("description")%>);'><%#Eval("description")%></td>
Here is in "View source":

onclick="toggleDisplay(&lt;%#Eval(&quot;descriptio n&quot;)%>);">Administrator Functions</td>

When putting
Expand|Select|Wrap|Line Numbers
  1. <%#Eval('description')%>
in <td> tag, it understand & show the correct value, but when in
Expand|Select|Wrap|Line Numbers
  1. onclick='toggleDisplay(<%#Eval("description")%>);'>
it didn't understand.
Can any1 give me a solution for this case ? Thank alot !
Oct 25 '07 #1
4 4174
mzmishra
390 Expert 256MB
The syntax seems ok .
The problem may be somewhere else.
Oct 25 '07 #2
kunal pawar
297 100+
onclick='toggleDisplay("<%#Eval("description")%>") ;'><%#Eval("description")%></td>

try this one,it works
Oct 25 '07 #3
To kunal pawar:
Thank for ur help!
i had tried ur codes but it didn't work. Here is the result
Expand|Select|Wrap|Line Numbers
  1. onclick="toggleDisplay(&quot;&lt;%#Eval(&quot;description&quot;)%>&quot;);">
i had tried alots but it still no changed.
Oct 26 '07 #4
kunal pawar
297 100+
Hey u made mistake

onclick=single qute Code single qute
Nov 5 '07 #5

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.