与插入/更新记录相关的问题 [英] Problem related to insert/update record

查看:75
本文介绍了与插入/更新记录相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新应该同时反映

hi every1

i我被困在1个地方......我想要我做的任何更新都应该在表中同时反映(我使用表来显示所有记录)然后,如果我删除1个记录frm这个表,它同时在表中反映... ...它不工作我正在使用以下codeplz帮助我......等待你的回复....


代码是

Updation Should Reflect at same time
hi every1
i am stuck at 1 place...i want whatever updation i do it should be reflected at the same time in table(i am using table to display all records)then if i delete 1 record frm this table it shd be reflected at the same time in table....bt its not working i am using following codeplz help me....m waiting fr ur response....


code is

展开 | 选择 | Wrap | 行号

推荐答案

更新后你必须要胎儿h再次从表格中显示数据并将其显示在表格中。

After Updation you must have to fetch data again from the table and show it in table.

更新应同时反映

hi every1

i被困在1个地方......我想要我做的任何更新应该在表中同时反映(我用表显示所有记录)然后如果我删除1记录frm这张桌子在桌子上同时反映出来....但是它不起作用我正在使用以下codeplz帮助我....等待你的反应....



代码是
Updation Should Reflect at same time
hi every1
i am stuck at 1 place...i want whatever updation i do it should be reflected at the same time in table(i am using table to display all records)then if i delete 1 record frm this table it shd be reflected at the same time in table....bt its not working i am using following codeplz help me....m waiting fr ur response....


code is
展开 | 选择 | Wrap | 行号



更新后,您必须再次从表中获取数据并将其显示在表中。
After Updation you must have to fetch data again from the table and show it in table.



你好mohit thanx很多fr回复

但是我没有这样做因为它vl在系统上创造了开销...这个表的创建在页面加载事件期间被调用..... bt acc to me coz of page生命周期它的更新....

sp olz如果你有任何想法帮助我...等待

hello mohit thanx a lot fr reply
but i hv nt done so because it vl create overhead on system...this table creation is called during pageload event.....bt acc to me coz of page life cycle its nt updating....
sp olz if u hv any idea help me...m waiting


你好Navneet

你可能会在

中编写你的代码if(!Page.IsPostBack)

{

//你的代码

}

所以根据页面的生命周期,这段代码不会再运行,直到回发不等于再次假。所以更新你的数据库之后你必须重新绑定你的表。

我认为这是唯一的方法......

Hi Navneet
You might hv written your code in
if(!Page.IsPostBack)
{
//your code
}
So according to page''s life cycle this code will not run again untill postback is not equal to false again. So after updating ur database u have to rebind ur table.
I think thats the only way...


hello mohit thanx很多fr回复

但是我没有这样做因为它在系统上创建开销...这个表创建在pageload事件期间调用..... bt acc to me coz of page生命周期它的更新....

sp olz如果你有任何想法帮助我......等待
hello mohit thanx a lot fr reply
but i hv nt done so because it vl create overhead on system...this table creation is called during pageload event.....bt acc to me coz of page life cycle its nt updating....
sp olz if u hv any idea help me...m waiting


这篇关于与插入/更新记录相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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