仅在VB.Net/.ASP中的“数据输入"页面 [英] Data Entry page only in VB.Net /.ASP

查看:75
本文介绍了仅在VB.Net/.ASP中的“数据输入"页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Basic和向Access数据库编写SQL调用方面具有良好的技能和背景.我使用Visual Studio 2010,并且尽可能地坚持使用VB,除非如果我需要使用其他语言,可以找到一些代码片段来入门,那么我会使用它.

我的雇主要求我创建一个网页,其功能如下.

访问该页面后,用户将看到一个数据输入表单.这将使用文本框,复选框以及(但可能不是)预填充的下拉框.访客将填写表格中的项目并提交.我将进行数据验证,以确保填写了某些表单项.此数据将保存到其他应用程序将用来处理用户输入内容的数据库中.

我认为从我读过的所有文章中都可以看到.ASP的潜力,但是我读到的有关Studio 2010版本的所有内容似乎都表明只有gridview可用,然后才可以查看数据.我不希望用户看到任何数据.而且,大多数似乎是针对C#的.

我已经访问了脚手架以使用一个过程,但这似乎也更多是关于显示数据,然后让用户对其进行编辑.

理想情况下,一旦该项目启动,将创建其他表格,这些表格将包含一些动态数据,具体取决于用户访问网站输入数据的原因.

我的替代方法是创建一个FrontPage表单,让用户提交该表单,然后阅读Frontpage发送的电子邮件并解析数据.

有人可以指出我正确的方向吗?

I have good skills and background with Visual Basic and writing SQL calls to an Access Database. I use Visual Studio 2010 and prefer to stick to VB as much as I can, unless I can find some code snippet to get me started if I need to use a different language.

I have been asked by my employer to create a web page that would function as follows.

Upon visiting the page, the user would see a data entry form. This will use text boxes, check boxes and perhaps, but not likely a pre-populated dropdown box. The visitor would fill in items on the form and submit. I would do a data validatation to be sure that certain form items were filled in. This data would be saved to a database that other applications would work with to process what the user entered.

I think from everything I''ve read that .ASP has the potential for this, but everything I read about the Studio 2010 version seems to indicate that only the gridview is available and then, only to view data. I do not want the user to see any data. Also, most of this seems to be oriented for C#.

I''ve visited Scaffolding for a process to use, but that too seems to be more about displaying data and then letting the user make edits to it.

Ideally, once this project has been up, other forms will created that would have some dynamic data depending on why the person is visiting the website to enter data.

My alternative is to create a FrontPage form, let the user submit that and then read the email sent by Frontpage and parse the data.

Can someone point me in the right direction?

Many thanks in advance!

推荐答案

如果您想学习有关创建数据输入页面的信息,请看这里.

MSDN Web开发人员示例 [
I would look here to start with if you want to learn about creating data entry pages

MSDN Web Developer Samples[^]


您所说的在很多堆栈上都是可行的.您应该可以在这附近找到许多示例.

ASP.NET当然是一条捷径.与简单的MVC站点相比,FrontPage表单解析将更难编写.

如果您正在查看ASP.NET MVC,并且想知道它是否需要大量工作,那么它可能会很多,尤其是对于仅一个仅创建数据的视图而言. MVC是用于项目的框架,并且具有比数据输入更多的目的/意图.就像乘坐自卸车将孩子送去托儿所一样.

当然,如果您非常了解MVC,那么在使用脚手架时这也是10分钟的任务.如果不这样做,则学习曲线会很陡.

也许您可以找到适当的路由
使用Linq来SQL [ ^ ]?这些技能也将非常适合您在VB WinForms开发中的工作.

最后...我不知道您是如何找到建议您只能在ASP.NET上进行只读网格视图的信息.您认为他们如何建立此网站?

干杯.
What you''re talking about is very doable on many stacks. You should be able to find many samples around this.

ASP.NET is certainly a quick route. FrontPage form parsing will be harder to write than a simple scaffolded MVC site.

If you''re looking at ASP.NET MVC and wondering if it seems like a lot of work, it might lots, especially for just one, create-only view of the data. MVC is a framework for projects and has a lot more purpose/intent than just data entry. It''s like taking a dump truck to drop the kids off for daycare in your case.

Of course if you know MVC really well, this is also a 10 minute task when you use scaffolding. If you don''t, you have a steep learning curve.

Perhaps you can find an appropriate route using Linq to SQL[^]? These skills would also be very complimentary to your work in VB WinForms development.

Finally...I have no idea how you''re only finding info that suggests you can only make read-only grid views on ASP.NET. How do you think they built this site?

Cheers.


因此,我整天大部分时间都在阅读上面的链接文章,并观看和与Microsoft在MSDN Web Developer Samples上发布的视频一起工作.最后,该项目导致将数据输入到Gridview中,并由此在服务器端进行管理.一切都很好,但是我正在看一个带有复选框,文本框等的页面.我以前放置在表单上的控件,运行SQL并将其保存到数据库中.如我所说,关于直接收集数据并将其保存到数据库中的直接途径还有其他想法吗?

提前谢谢了. (即使是特定的书或网站推荐也应该是helpfu.我已经在Google上搜索了数据输入网页"及其类似内容,就像疯了一样.)
So, I''ve spent most of the day reading the linked articles above and watching and working along with the video posted by Microsoft on MSDN Web Developer Samples. In the end, the project leads to data being entered in a Gridview and managed on the server side by that. This is all well and good, but I''m looking at a page with check boxes, text boxes etc. Controls that I used to put on a form, run a SQL and save them to a database. Any further ideas toward a direct route of gathering data as I said and then saving it in a database?

Many thanks in advance. (Even a specific book or website recommendation would be helpfu. I''ve googled "Data entry web page" and variations of it like crazy.)


这篇关于仅在VB.Net/.ASP中的“数据输入"页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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