| |

VerySource

 Forgot password?
 Register
Search
View: 633|Reply: 3

GridView and DetailsView synchronization issues

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-25 19:00:02
| Show all posts |Read mode
Happy new year ~
Is the synchronization of GridView and DetailsView in the page.
In detail:
There are 4 elements in the same page:
A GridView (showing approximate content)
A DetailsView (edit content, controlled by the primary key id)
They are each bound to a SqlDataSource,
The contents of the GridView are modified using DetailsView. However, it cannot be displayed in time. I have set the EnableCaching = "false" property of the SqlDataSource without caching, and they have not been synchronized.
 
Is there any good solution?
(For example, such operations as "managing messages" are generally only used by one person. There is no concurrency or high performance requirements. I just want to see the updated content immediately, which is more user-friendly.)

Code: http://kkee.cn/other/WebSite18.rar
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-8-15 11:30:01
| Show all posts
like. . .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-15 11:45:01
| Show all posts
After data change
Try this.Page.DataBinding()
Call binding explicitly...
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-15 13:15:01
| Show all posts
It is recommended not to use SqlDataSource, which will affect your thinking and is not conducive to progress
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list