I am Using ajax:TabContainer Tab Control in My Page
All are Working fine and this tab control is working fine, but one issue occurring now when I Press Save Button Click event in above my code and alert message display but this time all Tab Control hide and after when I message box close then show all control
I am using ScriptManager.RegisterClientScriptBlock method but this page is not showing tab control when message open
You use the RegisterClientScriptBlock method to register a client script block that is compatible with partial-page rendering
and that has no Microsoft Ajax Library dependencies. Client script blocks that are registered by using this method are sent to the page only when control represents a control that is inside an
UpdatePanel control that is being updated. To register a script block every time that an asynchronous postback occurs, use the
RegisterClientScriptBlock(Page, Type, String, String, Boolean) overload of this method.
If you want to register a script block that does not pertain to partial-page updates, and if you want to register the script block only one time during initial page rendering, use the
RegisterClientScriptBlock method of the
ClientScriptManager class. You can get a reference to the
ClientScriptManager object from the
ClientScript property of the page.
According to your description, i would suggest you try using the codes to register the function to page:
Member
1 Points
3 Posts
Ajax TabContainer Control hide when Message alert open
Feb 18, 2014 07:58 AM|AlpeshBPatel|LINK
Hello, All
I am Using ajax:TabContainer Tab Control in My Page
All are Working fine and this tab control is working fine, but one issue occurring now when I Press Save Button Click event in above my code and alert message display but this time all Tab Control hide and after when I message box close then show all control
I am using ScriptManager.RegisterClientScriptBlock method but this page is not showing tab control when message open
Please give me your feedback
Thanks
AP
All-Star
15648 Points
2151 Posts
Re: Ajax TabContainer Control hide when Message alert open
Feb 19, 2014 01:54 AM|Happy Chen - MSFT|LINK
hi,
You use the RegisterClientScriptBlock method to register a client script block that is compatible with partial-page rendering and that has no Microsoft Ajax Library dependencies. Client script blocks that are registered by using this method are sent to the page only when control represents a control that is inside an UpdatePanel control that is being updated. To register a script block every time that an asynchronous postback occurs, use the RegisterClientScriptBlock(Page, Type, String, String, Boolean) overload of this method.
If you want to register a script block that does not pertain to partial-page updates, and if you want to register the script block only one time during initial page rendering, use the RegisterClientScriptBlock method of the ClientScriptManager class. You can get a reference to the ClientScriptManager object from the ClientScript property of the page.
According to your description, i would suggest you try using the codes to register the function to page:
please refer to the link for details:
ScriptManager.RegisterClientScriptBlock Method
http://msdn.microsoft.com/en-us/library/bb350750(v=vs.110).aspx
Hope it helps you.
Member
1 Points
3 Posts
Re: Ajax TabContainer Control hide when Message alert open
Feb 19, 2014 11:46 PM|AlpeshBPatel|LINK