Showing posts with label feature. Show all posts
Showing posts with label feature. Show all posts

Wednesday, March 28, 2012

System.WebForms.PageRequestManagerParserErrorException The message revieved from the serve

I am trying to use update panel's feature to asyncronously postback and update the data in one of my grid. I am using Master Page and ASPX and a User Control that actually contains the button, Update Panels and a Grid.

When I click btnRefresh I get the following error:

System.WebForms.PageRequestManagerParserErrorException The message revieved from the server could not be parsed...

My ascx looks like this:

<asp:ScriptManagerID="ScriptManager1"runat="server">
</asp:ScriptManager>

<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional">
<ContentTemplate>
<asp:ImageButtonID="btnRefresh"runat="server"ImageUrl="~/refresh.gif"OnClick="ImageButton1_Click"/>
</ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanelID="UpdatePanel2"runat="server">
<Triggers>
<asp:AsyncPostBackTriggerControlID="btnRefresh"/>
</Triggers>
<ContentTemplate>
<igtbl:UltraWebGridID="UltraWebGrid1"runat="server"Height="200px"Width="468px"style="left: 1px; top: 226px">
</igtbl:UltraWebGrid>
</ContentTemplate>
</asp:UpdatePanel>

Could someone please suggest on this? Is the problem with User Controls??

Guys,

I added the script manager in my Master Page and then added scriptManagerProxy at my user controls which resolved the problem.

Cheers,

Ashish

Wednesday, March 21, 2012

TabContainer disable problem

I have a tabcontainer. And I want to implement a feature: when the first time I load the page, it's diabled, but after I elect a checkbox, it will be enabled.

So I have code in the my page file like below:

<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" enabled="false">

And in my javascript file, I get the tabcontainer, and set its disable property to false. Yes, I can see in the page, the control is enabled (not gray out), but I cannot operate on any control inside it. For instance, the tab contains a textbox, but whatever what I do, the textbox cannot get focus. Any opinion on that?

Disabling the tab container will also disable all controls inside of it (this is the correct behavior). I'm guessing you want to disable clicking of the tabs until after the checkbox has been clicked. I suggest exposing a new public property to disable the clicking of the tabs.


Yup, if disable the tab it should also disable all controls contained by the tab. But I think after enabling the container, all controls in the tab should be editable, like Winform does.

bluemistonline:

Disabling the tab container will also disable all controls inside of it (this is the correct behavior). I'm guessing you want to disable clicking of the tabs until after the checkbox has been clicked. I suggest exposing a new public property to disable the clicking of the tabs.

What do i have to do, to expose a new property for the tab? I need the functionality to disable a tab (greyed out) and to add tooltips for a tab.

Can somebody show me an example?


Can somebody help me with this issue, please. Release date is comming closer and closerBig Smile