如何在vb.net的运行时刷新Webform [英] how to refresh the webform in run time for vb.net

查看:177
本文介绍了如何在vb.net的运行时刷新Webform的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建一个GridView,添加了一些数据,
例如我的Gridview数据

学员姓名地址
102 ram chennai
103 Ramesh coimbatore
104 Santhosh thanjavur


我以相同的方式创建一个文本框并删除按钮,

我输入文本框102,然后单击删除"按钮,删除成功,但是

gridview在102中未删除,我想如何刷新页面,请发送任何教程或相关链接
谢谢,



i create one GridView Some data is Added,
for example, my Gridview data

StuId name Address
102 ram chennai
103 ramesh coimbatore
104 santhosh thanjavur


in the same form i create one textbox and delete button,

i type the textbox 102 then i click delete button delete successfully, But

gridview does not deleted in 102, i want how to refresh the page please send any tutorials or related links
Thanks,

推荐答案

亲爱的拉维,
试试这个,
Dear Ravi,
Try this one,
Response.Redirect(Request.RawUrl)


问候,
Bluesathish


Regards,
Bluesathish


在按下删除btn之后,您必须再次从数据库中调用数据
并将它们设置为网格视图
after press remove btn you must call data from database again
and set them to grid view


如果从数据源中删除了行,则重新绑定网格.
if row is deleted from datasource re-bind the grid.


这篇关于如何在vb.net的运行时刷新Webform的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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