473,767 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onclick="toggle Display('<%# Eval("descripti on")%>

5 New Member
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="toggle Display(&lt;%#E val(&quot;descr iption&quot;)%> );">Administrat or 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 4214
mzmishra
390 Recognized Expert Contributor
The syntax seems ok .
The problem may be somewhere else.
Oct 25 '07 #2
kunal pawar
297 Contributor
onclick='toggle Display("<%#Eva l("description" )%>");'><%#Eval ("description") %></td>

try this one,it works
Oct 25 '07 #3
thaytu888888
5 New Member
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 Contributor
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.