Visual Studio 2010中的Datarepeater问题 [英] Datarepeater problem in Visual Studio 2010

查看:71
本文介绍了Visual Studio 2010中的Datarepeater问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


(转发到此新闻组 - 最初发布在Powerpack新闻组但48小时后没有回复)

(reposted to this newsgroup - originally posted in Powerpack newsgroup but no reply after 48 hours)

我升级了VB.Net解决方案从Visual Studio 2008到2010,连接到SQL 2000. 我有一个主人/孩子表格,显示一个人和他们所有的许可证#。 我使用datarepeater控件来显示每人的许可证#。 
是"添加许可证"。单击按钮时,在datarepeater中显示一个空白行,以允许输入新的许可证#。 

I upgraded a VB.Net solution from Visual Studio 2008 to 2010, connected to SQL 2000.  I have a master/child form which displays a person and all their license #'s.  I use a datarepeater control to display the license #'s per person.  There is an "Add License" button which when clicked, displays a blank row in the datarepeater to allow entry of a new license #. 

人员按ID顺序显示。  ID是一个标识字段。

People are displayed in ID order.  ID is an identity field.

这在VS2008版本中运行正常。 升级后,我注意到当"添加许可证"时单击按钮,显示第一个人的第一个许可证#(按ID顺序),而不是空白行。 如果显示第一个人,则显示
,然后会出现一个空白行。 但是对于之后的每个人,第一个人的第一个许可#出现在空白行中。

This works just fine in the VS2008 version.  After I upgraded, I noticed that when the "Add License" button is clicked, the first license # of the very first person (in ID order) displays instead of a blank row.  If the very first person is displayed, then a blank row appears.  But for every person after that, the first license # of the very first person appears in the blank row.

datarepeater控件只有一个文本框。 没有其他类型的控件。

The datarepeater control has one textbox only.  No other types of controls.

我不知道此时该怎么做。 就像我说的,这个问题在VS 2008中不会发生。 就在我升级之后。 我在网上研究升级问题,但没有找到任何东西。

I'm not sure what to do at this point.  Like I said, this problem does not happen in VS 2008.  It's just since I upgraded.  I researched upgrade problems online and am not finding anything.

FWIW,我正在使用VS2010 Ultimate。

FWIW, I'm using VS2010 Ultimate.

感谢您提供任何帮助或建议。

Thanks for any help or advice.

推荐答案

您好@kris_hood

Hi @kris_hood

很抱歉听到此问题。您能否确认您使用的解决方案类型?既然你提到DataRepeater,我猜它是ASP.NET。

Sorry to hear about this issue. Can you confirm what type of solution you are working with? Since you mention DataRepeater, I am guessing it's ASP.NET.

如果您的解决方案在ASP.NET中,这不是获得建议的最佳位置,因为这个论坛是为了Visual Studio中的WPF和Silverlight Designer。 ASP.NET拥有自己的论坛集,价格为
http://forums.asp.net/   - 你在那里会得到更好的帮助。

If your solution is in ASP.NET, this is not the best place to get advice as this forum is for the WPF and Silverlight Designer in Visual Studio. ASP.NET has it's own set of forums over at http://forums.asp.net/ - you'll get better help over there.

标记

 


这篇关于Visual Studio 2010中的Datarepeater问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆