문제

I simply removed the imgNewsList field from my Intranet.WebPart.NewsList.ascx and now it seems like my News List on the frontpage doesn't read my databound fields properly.

It just looks like this:

<%# Eval("MenuTitle")%> 
<%# Eval("ShortIntro") %>" etc.

I tried simply putting the deleted code back into the page, but it still doesn't work.

I am doing this in the Developer Center. Is it somehow formating the code in a wrong way or what is causing this?

Edit:
I tried setting my NewsList GridView to AutoGenerateColumns=True, and it shows all data without any problem. So there is a connection to the database. I actually thought that was the problem. It's like it doesn't understand the Eval command any longer, because when I want to define which fields to show myself by using Eval, it just shows the Eval tags as plain text in the News List on my frontpage.

도움이 되었습니까?

해결책

I found out Developer Center ruins the formatting, just like Mark Ursino said in his comment. It works when i just manually upload the file, instead of saving it through Developer Center.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top