如何在不使用数据库的情况下在asp.net中执行dml操作? [英] how to perform dml operation in asp.net without using data base?

查看:89
本文介绍了如何在不使用数据库的情况下在asp.net中执行dml操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用数据库的情况下在asp.net中执行dml操作?



你能给我发正确的代码吗?

解决方案

你的意思是,你有一个数据库但你不想将它用于DML操作,即不应该在数据库中存储任何查询(例如:存储过程)?



如果是,您可以在ASP.Net应用程序中使用参数化查询。请按照以下链接推导出解决方案。



[ ^ ]

Asp.net使用参数化查询防止SQL注入攻击 [ ^ ]



希望,它有所帮助。对不起&如果我误解,请忽略:)


您好,



您可以查看此链接

 http://www.codeproject.com/Articles/23452/The-ASP-NET-Repeater-Control 

http://www.asp.net/web-forms /概要/数据访问/显示数据-与最数据列表和 - 中继器/显示数据-与最数据列表和 - 转发器,控制-CS


how to perform dml operation in asp.net without using data base?

can you send me proper code ?

解决方案

Do you mean, you have a database but you don't want to use it for DML operations i.e, no queries(ex: Stored Procedures) should be stored at database?

If yes, you can use parameterised queries within your ASP.Net application. Please follow these links to derive the solution.

Using Parameterized queries to prevent SQL Injection Attacks in SQL Server[^]
Asp.net Preventing SQL Injection Attacks using Parameterized Queries [^]

Hope, it helps. Sorry & Ignore if I misunderstood :)


Hi ,

you can check this links

http://www.codeproject.com/Articles/23452/The-ASP-NET-Repeater-Control

http://www.asp.net/web-forms/overview/data-access/displaying-data-with-the-datalist-and-repeater/displaying-data-with-the-datalist-and-repeater-controls-cs


这篇关于如何在不使用数据库的情况下在asp.net中执行dml操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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