使用usercontrol插入gridview数据 [英] gridview data inserting with usercontrol

查看:83
本文介绍了使用usercontrol插入gridview数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai,我有一个包含3个列的数据库,例如id名称lastname ..
在这里,我正在创建一个带有3个文本框的用户控件...一个按钮控件[此控件不属于用户控件,它是单个控件] ...
在这里,我使用findcontrol方法将值插入数据库....在这里,我的要求是我不想使用查找控制方法,而我想使用get set属性来插入值..
谁能帮我

hai i have a database with 3 coloumns like id name lastname..
here i am creating a user control with 3 textboxes... there is one button control[this control not belongs to user control it is individual control]...
here iam inserting the values to the database using findcontrol method.... here my requirement is i dont want to use find control method i want to insert the values using get set properties..
can any one help me

推荐答案



在文本框控件页面上创建属性,然后使用事件泡泡获取这些属性.
Hi,

Create Properties on your textbox control page & then use event bubble to get these properties.


我认为您应该阅读以下内容:
实体框架和ASP.NET –入门第4部分 [与ASP.NET GridView中的实体框架的多对多关系以简化的方式 [
I think you should read this:
The Entity Framework and ASP.NET – Getting Started Part 4[^].
Many to Many relation with Entity Framework in ASP.NET GridView in a simplified way[^].

     --Amit


这篇关于使用usercontrol插入gridview数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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