I am new Asp.net and working on project, where I have to ajaxify the basic asp.net
I have master page and content page. Master page has menu and buttons. The content page have various fieldsets as below.
- Update Record Fieldset
- Add Record Fieldset
- Query and Grid.
updatepanel id=UpdatePanelOuter runat=server UpdateMode=Conditional> Likewise for all the nested UpdatePanels. The Scriptmanager is in Masterpage with EnablePartialRendering=true
What I have in code behind is ScriptManager1.RegisterAsyncPostBackControl(AddUpdatePanel) In button click event function AddUpdatePanel.Update() .
When the content page is loaded, I have the queryform and DataGrid. There are couple grid command like view, update and delete.
When I click update command from the grid, I am making UpdateFieldset.visible=true
and QueryGridField.visible=false
.
On submit button, its stored the data , give the message and go back to original contentpage with querygridFieldset.visible =true
.
Question: What I am trying and have not been successfull is
- when I click on the buttons, my datetime , menus in the master page must not be refreshed.
- On click in the Update button, only that particular Fieldset should be sent to the server.
At the same time, I have updated by Web.config and there is no compilation error
Master Page: Menu, Current System Date time, Login Name, Buttons
Content Page: ContentPlaceHolder1 UpdateRecordFieldset AddRecordFieldset QueryandGridFieldset