如何在VB.NET中使用ASP.NET中的gridview

问题描述:

我希望有一天能成为一名软件开发人员,但现在我是新工作。我不知道如何使用asp.net中的数据网格视图,尽管网上提供了所有可用的信息,以及MSDN网站上的许多示例以及代码项目。



请回复



我可以通过选择,编辑和删除操作创建数据网格视图。

I我没有使用网格视图。

所以,你告诉我,如何创建此操作以及如何绑定数据网格视图。我希望你能理解我的问题。



请回复。

I hope to one day be a software developer, but right now I am new in my job. I don't understand how to use the data grid view in asp.net, despite all of the information that's available on the web, and the many examples on the MSDN site and here on code project.

Please reply

I can create a data grid view with select, edit and delete operation.
I am not working with grid view.
So, you tell me, how to crate this operation and how to bind data grid view. i hope you can understand my question.

Please reply.

我听起来像你一样正在尝试在ASP.Net网页上使用DataGridView对象。我不相信这是可能的。我相信在网络上你将不得不使用GridView对象。网络和PC项目的工作方式非常不同,两者之间的网格对象也非常不同。



这是一篇CP文章 [ ^ ]看起来像是一个很好的演练。



我知道在寻找文章和在线帮助时会感到沮丧,但不要放弃。没有人会拥有您正在寻找的确切代码,因为每个人都使用不同的技术组合。通常它会导致必须研究几种不同的技术并找到自己的方式将它们组合在一起。因此,您可能需要研究GridView对象,然后研究与特定数据库的绑定,然后研究编辑和更新。打破你的研究可能会有所帮助。



希望这会有所帮助。祝你好运。
I kind of sounds like you are trying to use a DataGridView object on an ASP.Net webpage. I don't believe that is possible. I believe that on the web you will have to use the GridView object instead. The web and a PC project work very very differently and the grid objects between the two are very different as well.

Here is a CP article[^] that looks like a good walk-through.

I know it gets frustrating looking for articles and help online, but don't give up on that. No one is going to have the exact bit of code that you are looking for because everyone uses different combinations of technologies. Usually it results in having to research several different technologies and finding your own way to put them together. So you'll probably have to research the GridView object, then research binding to your specific database, and then research editing and updating. Breaking down your research may be helpful.

Hope this helps. Good luck.


写道:​​

我是软件开发人员。





对不起,这似乎不太可能。





I am sorry, that doesn't seem likely.

写道:​​

我对这份工作更新鲜。





你正在付费编写ASP.NET代码,但你不知道如何使用基本控件?哇。





You're being paid to write ASP.NET code, but you don't know how to use basic controls ? Wow.

写道:​​

所以,你必须回复我。

so, you must be reply me.





我意识到你说这个b / c英语不是你的第一语言,但确实很粗鲁。没有人必须帮助你,我们免费帮助你。





I realise that you said this b/c English is not your first language, but it does come off as rude. No-one MUST help you, we help you for free.

写道:​​

我很困惑如何在asp.net中使用数据网格视图

i confused the how to use data grid view in asp.net





令你困惑的是什么?数据绑定控件非常易于使用,如果向页面添加一个并将其绑定到有效数据源,它通常会自动生成基本视图。如果你在ASP.NET工作,你应该有几年的实际经验,并拥有一些你可以参考的书。还有网络。你有什么尝试,你有什么经验使你有资格从事有偿工作编写代码,以及你有什么具体问题,基于你想成为一名真正的开发者(不是那些不知道并要求我们去做的人)他们的工作),你尝试编写你需要的代码(再次要求我们为你编写代码)和你尝试做基础研究(而不是懒得搜索网页而不是要求我们做你的工作对你而言。



标签系统是有原因的。如果您使用的是ASP.NET,则应该标记帖子。您还应该使用您正在使用的语言来标记它。当然这是自我解释的吗?



What is confusing you ? Data bound controls are very easy to use, if you add one to a page and bind it to a valid data source, it will generally auto generate a basic view. If you're working in ASP.NET, you should both have a few years real experience to start with, and own some books you can refer to. There's also the web. What have you tried, what experience do you have that qualifies you to take a paid job writing code, and what specific question do you have, based on your attempts to be an actual developer ( not someone who has no idea and asks us to do their job ), your attempts to write the code you need ( again as opposed to asking us to write it for you ) and your attempts to do basic research ( instead of being too lazy to search the web and instead asking us to do your job for you ).

The tag system is there for a reason. If you're using ASP.NET, you should tag the post as such. You should also tag it with what language you're using. Surely that's self explanatory ?