I have very similar senario in my application. I want to find best practice in this senario.
Mostly I have a master GridView In my page. this master Gridview may perform these actions :
Add new record
- Adding new record
- Deleting a record
- Searching data that binded in GridView
- Displaying detail Information about selected record in GridView.
So for adding new record I'm using a dialog or other similar jQuery plugins
For Deleting records I'm making full postback to refresh data after confirm dialog and sometimes I'm putting target GridView in an ASP.NET UpdatePanel to prevent full postback.
Also for searching data I had to making full postback I think I have no way to doing this action without postback (Consider complex gridview)
And for displaying more detail information about current record without postback I have 2 ways :
- I'm using to loading an ASP.NET usercontrol asynchronous, but regard to this thread I'm not able to doing ServerSide actions with postback because of some unsolvable reasons.
- another way that often launched my work is this : for example I want to display a listbox and a treeview about a record in jQuery Dialog. I putted them in an updatepanel and I'm writing binding codes in a server side button and hiding this button,then I'm triggering click event of Binding button in OnOpen event of jQuery Dialog.
due My softwares are running in local and ethernet I don't care SEO.
As I'm a novice programmer please share your expriences with me, note me where I'm wrong(maybe everywhere !) and where I can using better ways. thanks.