无法将数据保存到asp.net中的数据库

编程入门 行业动态 更新时间:2024-10-26 16:35:12
本文介绍了无法将数据保存到asp中的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我习惯于在winforms(vb)中工作 我们有类似的东西吗? Me.taPic.Fill(Me.DsPic.tblPicTest) 然后保存

Hi, I am used to working in winforms (vb) Do we have something like Me.taPic.Fill(Me.DsPic.tblPicTest) and then to save

Dim drPic As DataRow drPic = DsPic.tblPicTest.NewRow drPic.Item("Picture") = vrPicHolder DsPic.tblPicTest.Rows.Add(drPic) taPic.Update(DsPic.tblPicTest)

我添加了数据集和tableadapter,但是我找不到代码的去向,就像我们在form_load中自动进入winfors Me.taPic.Fill(Me.DsPic.tblPicTest) 请帮助

I added dataset and tableadapter but I could not find where the code went, like we get in winfors at form_load automatically Me.taPic.Fill(Me.DsPic.tblPicTest) Please help

推荐答案

在asp.NET中,您有Page-Load和Click事件(您还有很多其他事件,但这些事件似乎对您有用).单击是在按钮上单击(显而易见:)). Page_Load :页面启动时和页面回发时.您可以只有page_Load,但是需要一个按钮来触发回发事件. 看一下以下内容: [ ^ ] 或 指南 [ ^ ] In asp.NET you have Page-Load and Click events (you have much more, but it seems that those events will be useful for you). Click is on button click (obvious:) ). Page_Load: when page started and when page is posted back. You can have just page_Load but you need a button to trigger a post back event. Take a look at the following: [^] or Cheet Sheet[^]

更多推荐

无法将数据保存到asp.net中的数据库

本文发布于:2023-10-23 23:09:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1522273.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据库   数据   asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!