更新时间:2023-12-03 13:15:04
您可以为此使用SQlNotification技术...在ASP .NET以及C#.....的GUI部分中进行搜索,因此请在创建记录后对其进行搜索并将其应用到您的应用中
You can use the SQlNotification technique for this ...... and it works both in ASP .NET as well as the GUI part of C# ..... so search for it and apply it in your app
,然后创建一个新的方法,例如
无效的bind()
{
//这里编写sql连接代码并将您的记录绑定到datagridview
}
page_load(object o,eventargs e)
{
if(!Ispostback)
{
bind();
}
}
after creating your record then create a new method like
void bind()
{
//here write the sql connection code and bind your record to datagridview
}
page_load(object o,eventargs e)
{
if(!Ispostback)
{
bind();
}
}
这将在Web应用程序中起作用
This will work in web applications
GridView.DataBind();