html tag içerisinde eval problemi

18 views
Skip to first unread message

janktp

unread,
Jan 21, 2013, 7:16:10 AM1/21/13
to altdotne...@googlegroups.com
Arkadaşlar merhaba,

sorunumu şu şekilde anlatayım :

repeater içerisinde veritabanından çekmiş olduğum belirli datalarım var ve her bir data için silme düzenleme ve durumunu değiştirme gibi iconlarım var.. Bu iconlar html image tagı ile oluşturulmuş ve runat ifadesi ile server taraflı çalıştırıyorum. yani asp.net control ü değil... iconların onclick attributlari aşağıdaki gibi düzenliyorum ve javascript fonksiyonu çağırıyorum.

<img id="edit" onclick='$.changeStatus('content',<%# Eval("contentId") %>,this)' />

ancak bu yazım ile projeyi çalıştırdığımda <%# Eval("contentId") %> ifadesi aynı olduğu gibi geliyor. yani asıl çekmek istediğim id değeri gelmiyor. Bunun için ne yapmam gerekir. Yardımlarınız için tekrar teşekkür ederim.


Sidar Ok

unread,
Jan 21, 2013, 7:49:52 AM1/21/13
to altdotne...@googlegroups.com


2013/1/21 janktp <akte...@gmail.com>



--
You received this message because you are subscribed to the Google Groups "altdotnetturkiye" group.
To view this discussion on the web visit https://groups.google.com/d/msg/altdotnetturkiye/-/bf9VH1gfvzgJ.
To post to this group, send email to altdotne...@googlegroups.com.
To unsubscribe from this group, send email to altdotnetturki...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/altdotnetturkiye?hl=en.



--
Sidar Ok

http://www.sidarok.com
http://www.twitter.com/sidarok
http://be.linkedin.com/in/sidarok

http://www.coachius.com - Connect, Inspire. Transform!

janktp

unread,
Jan 21, 2013, 8:00:14 AM1/21/13
to altdotne...@googlegroups.com
sanırım buradaki çözüm tek bir kayıt için... Benim dediğim gibi repeater içinde halletmem gerekiyor bunu ?

Sidar Ok

unread,
Jan 21, 2013, 8:10:31 AM1/21/13
to altdotne...@googlegroups.com
degil, orada da gridview vs. var. 


On Mon, Jan 21, 2013 at 2:00 PM, janktp <akte...@gmail.com> wrote:
sanırım buradaki çözüm tek bir kayıt için... Benim dediğim gibi repeater içinde halletmem gerekiyor bunu ?

--
You received this message because you are subscribed to the Google Groups "altdotnetturkiye" group.
To view this discussion on the web visit https://groups.google.com/d/msg/altdotnetturkiye/-/_RWwjOg51hsJ.

To post to this group, send email to altdotne...@googlegroups.com.
To unsubscribe from this group, send email to altdotnetturki...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/altdotnetturkiye?hl=en.

Süleyman PETEK

unread,
Jan 21, 2013, 11:50:40 AM1/21/13
to altdotne...@googlegroups.com
Repeater kullanmayali baya olmus :)
DataBinder.Eval vardi, framework kac ile calisiyorsun ?

Sidar Ok

unread,
Jan 21, 2013, 12:42:58 PM1/21/13
to altdotne...@googlegroups.com
Ya da baglantili olarak neden MVC kullanmiyorsun? 

Eval kullanabilecegin en kotu yontem. 
Reply all
Reply to author
Forward
0 new messages