运行网页时出现问题 [英] Problem while running a webpage
本文介绍了运行网页时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生您好,
我在使用VB.net的ASP.NET中有一个Webform.在此页面中,我将使用项目模板的listview放入其中,并用dbdatasource对其进行了边界.但是当我尝试运行此页面时发生错误:
找不到在ObjectDataSource的"dsReports"的TypeName属性中指定的类型."
Hello sir,
I have a webform in ASP.NET using VB.net. In this page, I put the listview in which I used item template and bounded it with a dbdatasource. But when I tried to run this page an error occurs:
"The type specified in the TypeName property of ObjectDataSource ''dsReports'' could not be found."
Can you please help me out?
推荐答案
hi
hi
<ItemTemplate>
<tr style="color: #00FF00">
<td>
<asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" CommandName="Edit" ForeColor="#FFFFE6" />
</td>
<td>
<asp:Label ID="lblOrderId" runat="server" Text='<% #Eval("OrderId")%>'></asp:Label>
</td>
</tr>
</ItemTemplate>
将OrderId与您从数据库返回的列名相匹配
他们应该是相同的.这是一个例子.
Match OrderId with the column name you r returning from the Database
they should be same. Its an example.
这篇关于运行网页时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文