Question

Sys.WebForms.PageRequestManagerParserErrorException when display a Formview or DetailsView with AJAX UpdatePanel

Asked by: SergeGregoire

Hi,

I am coding a simple page with AJAX DOTNET 3.5.
MasterPager contain the ScriptManager
My UpdatePanel is located in a Web User Control. The UpdatePanel contain a Gridview displaying a list of users and a DetailsView displaying the details profile of the selected user in the GridView. The funny thing, is that the error below does not happen for all the users in the list. I can't find any specific difference that can explain why some users are giving this error.

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'iew1_CommentsLabel">'.

I am not using any of the condition that could generate this error.

The last line rendered is the following:
                        <input name="ctl00$ContentPlaceHolder1$wucProfiles1$FormView1$CommentsTextBox" type="text" value=""

If I remove the comment from the FormView or DetailsView, the page is working fine.

Thanks for helping.

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Profiles.aspx.vb" Inherits="Profiles" %>
 
<%@ Register src="wucProfiles.ascx" tagname="wucProfiles" tagprefix="uc1" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
    <uc1:wucProfiles ID="wucProfiles1" runat="server" />
 
</asp:Content>
 
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wucProfiles.ascx.vb" Inherits="wucProfiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
 
    <table align="left">
        <tr valign="middle">
            <td align="left" valign="middle">
                <asp:TextBox ID="txtFilter" runat="server" AutoPostBack="True"></asp:TextBox>
                &nbsp;<asp:Button ID="btnFilter" runat="server" Text="Filter" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:GridView ID="gvDisplayNames" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="CustID" DataMember="DefaultView" DataSourceID="sqldsProfilesList" 
                    Font-Names="Verdana" Font-Size="Small" ForeColor="#333333" GridLines="None" 
                    style="text-align: left">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:BoundField DataField="EntryTypeCode" HeaderText="EntryTypeCode" 
                            ReadOnly="True" SortExpression="EntryTypeCode" Visible="False" />
                        <asp:ButtonField CommandName="Select" DataTextField="CustID" 
                            HeaderText="CustID" SortExpression="CustID" Text="Button" />
                        <asp:BoundField DataField="DisplayNameEn" HeaderText="Display Name En" 
                            SortExpression="DisplayNameEn" />
                        <asp:HyperLinkField DataNavigateUrlFields="CustID" 
                            DataNavigateUrlFormatString="~/ProfileDetail.aspx?CustID={0}" 
                            DataTextField="CustID" Target="_blank" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <br />
                <asp:SqlDataSource ID="sqldsProfilesList" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    ProviderName="<%$ ConnectionStrings:ITDBConnectionStringLocalHost.ProviderName %>" 
                    SelectCommand="spSearchProfiles" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="FilterHiddenField" DefaultValue="%" 
                            Name="SearchText" PropertyName="Value" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:HiddenField ID="FilterHiddenField" runat="server" Value="%" />
                <asp:SqlDataSource ID="sqldsCostCenterCode" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    SelectCommand="SELECT [CostCenterCode], [DescriptionEn], [DescriptionFr] FROM [tblCostCenter] ORDER BY [CostCenterCode]">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="sqldsWindowsDomains" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    SelectCommand="SELECT [WinDomainID], [DomainName] FROM [tblWindowsDomainsList]">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="sqldsFacility" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    SelectCommand="SELECT [Facility], [FacilityCode] FROM [tblFacilityList]">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="sqldsEntryTypeCodeList" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    SelectCommand="SELECT [EntryTypeCodeID], [EntryTypeCodeName] FROM [tblEntryTypeCodeList]">
                </asp:SqlDataSource>
            </td>
            <td align="left" valign="top">
                <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
                    <cc1:TabPanel ID="ProfileInfo" runat="server" HeaderText="Profile">
                    <ContentTemplate>
                            
 
                    </ContentTemplate>
                    </cc1:TabPanel>
                    <cc1:TabPanel ID="ConfigList" runat="server" HeaderText="Configurations">
                    </cc1:TabPanel>
                </cc1:TabContainer>
                <cc1:RoundedCornersExtender ID="TabContainer1_RoundedCornersExtender" 
                    runat="server" Enabled="True" TargetControlID="TabContainer1">
                </cc1:RoundedCornersExtender>
                <br />
                <br />
                <asp:SqlDataSource ID="sqldsProfile" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    SelectCommand="SELECT EntryTypeCode, CustID FROM dbo.tblProfiles" 
                    UpdateCommand="UPDATE dbo.tblProfiles SET FirstName = @FirstName, LastName = @LastName, EntryTypeCode = @EntryTypeCode, DisplayNameEn = @DisplayNameEn, DisplayNameFr = @DisplayNameFr, TitleEnglish = @TitleEnglish, TitleFrench = @TitleFrench, CostCenterCode = @CostCenterCode, PrimaryFacility = @PrimaryFacility, UserName = @UserName, ManagerID = @ManagerID, WindowsDomain = @WindowsDomain, Comments = @Comments WHERE (CustID = @CustID)">
                    <UpdateParameters>
                        <asp:ControlParameter ControlID="dvProfileDetail" Name="FirstName" 
                            PropertyName="SelectedValue" />
                        <asp:Parameter Name="LastName" />
                        <asp:Parameter Name="EntryTypeCode" />
                        <asp:Parameter Name="DisplayNameEn" />
                        <asp:Parameter Name="DisplayNameFr" />
                        <asp:Parameter Name="TitleEnglish" />
                        <asp:Parameter Name="TitleFrench" />
                        <asp:Parameter Name="CostCenterCode" />
                        <asp:Parameter Name="PrimaryFacility" />
                        <asp:Parameter Name="UserName" />
                        <asp:Parameter Name="ManagerID" />
                        <asp:Parameter Name="WindowsDomain" />
                        <asp:Parameter Name="Comments" />
                        <asp:Parameter Name="CustID" />
                    </UpdateParameters>
                </asp:SqlDataSource>
                <asp:DataList ID="ProfilesDataList" runat="server" DataSourceID="sqldsProfile" 
                    Visible="False">
                    <ItemTemplate>
                        <asp:Label ID="Label14" runat="server" Text='<%# Eval("CustID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:DataList>
                <asp:Button ID="btnRemoveProfile" runat="server" CommandName="RemoveProfile" 
                    Text="Remove" Visible="False" />
                <asp:Label ID="lblRemoveProfile" runat="server" ForeColor="Red" 
                    Text="Are you sure?" Visible="False"></asp:Label>
                <asp:Button ID="btnProceedRemoveProfile" runat="server" Text="Yes" 
                    Visible="False" />
                <asp:Button ID="btnCancelRemoveProfile" runat="server" Text="Cancel" 
                    Visible="False" />
                <asp:FormView ID="FormView1" runat="server" CellPadding="4" 
                    DataKeyNames="CustID" DataSourceID="sqldsProfileDetail" ForeColor="#333333">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditItemTemplate>
                        EntryTypeCode:
                        <asp:TextBox ID="EntryTypeCodeTextBox" runat="server" 
                            Text='<%# Bind("EntryTypeCode") %>' />
                        <br />
                        CustID:
                        <asp:Label ID="CustIDLabel1" runat="server" Text='<%# Eval("CustID") %>' />
                        <br />
                        FirstName:
                        <asp:TextBox ID="FirstNameTextBox" runat="server" 
                            Text='<%# Bind("FirstName") %>' />
                        <br />
                        LastName:
                        <asp:TextBox ID="LastNameTextBox" runat="server" 
                            Text='<%# Bind("LastName") %>' />
                        <br />
                        DisplayNameEn:
                        <asp:TextBox ID="DisplayNameEnTextBox" runat="server" 
                            Text='<%# Bind("DisplayNameEn") %>' />
                        <br />
                        DisplayNameFr:
                        <asp:TextBox ID="DisplayNameFrTextBox" runat="server" 
                            Text='<%# Bind("DisplayNameFr") %>' />
                        <br />
                        TitleEnglish:
                        <asp:TextBox ID="TitleEnglishTextBox" runat="server" 
                            Text='<%# Bind("TitleEnglish") %>' />
                        <br />
                        TitleFrench:
                        <asp:TextBox ID="TitleFrenchTextBox" runat="server" 
                            Text='<%# Bind("TitleFrench") %>' />
                        <br />
                        CostCenterCode:
                        <asp:TextBox ID="CostCenterCodeTextBox" runat="server" 
                            Text='<%# Bind("CostCenterCode") %>' />
                        <br />
                        PrimaryFacility:
                        <asp:TextBox ID="PrimaryFacilityTextBox" runat="server" 
                            Text='<%# Bind("PrimaryFacility") %>' />
                        <br />
                        UserName:
                        <asp:TextBox ID="UserNameTextBox" runat="server" 
                            Text='<%# Bind("UserName") %>' />
                        <br />
                        ManagerID:
                        <asp:TextBox ID="ManagerIDTextBox" runat="server" 
                            Text='<%# Bind("ManagerID") %>' />
                        <br />
                        WindowsDomain:
                        <asp:TextBox ID="WindowsDomainTextBox" runat="server" 
                            Text='<%# Bind("WindowsDomain") %>' />
                        <br />
                        Comments:
                        <asp:TextBox ID="CommentsTextBox" runat="server" 
                            Text='<%# Bind("Comments") %>' />
                        <br />
                        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                            CommandName="Update" Text="Update" />
                        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        EntryTypeCode:
                        <asp:TextBox ID="EntryTypeCodeTextBox" runat="server" 
                            Text='<%# Bind("EntryTypeCode") %>' />
                        <br />
                        CustID:
                        <asp:TextBox ID="CustIDTextBox" runat="server" Text='<%# Bind("CustID") %>' />
                        <br />
                        FirstName:
                        <asp:TextBox ID="FirstNameTextBox" runat="server" 
                            Text='<%# Bind("FirstName") %>' />
                        <br />
                        LastName:
                        <asp:TextBox ID="LastNameTextBox" runat="server" 
                            Text='<%# Bind("LastName") %>' />
                        <br />
                        DisplayNameEn:
                        <asp:TextBox ID="DisplayNameEnTextBox" runat="server" 
                            Text='<%# Bind("DisplayNameEn") %>' />
                        <br />
                        DisplayNameFr:
                        <asp:TextBox ID="DisplayNameFrTextBox" runat="server" 
                            Text='<%# Bind("DisplayNameFr") %>' />
                        <br />
                        TitleEnglish:
                        <asp:TextBox ID="TitleEnglishTextBox" runat="server" 
                            Text='<%# Bind("TitleEnglish") %>' />
                        <br />
                        TitleFrench:
                        <asp:TextBox ID="TitleFrenchTextBox" runat="server" 
                            Text='<%# Bind("TitleFrench") %>' />
                        <br />
                        CostCenterCode:
                        <asp:TextBox ID="CostCenterCodeTextBox" runat="server" 
                            Text='<%# Bind("CostCenterCode") %>' />
                        <br />
                        PrimaryFacility:
                        <asp:TextBox ID="PrimaryFacilityTextBox" runat="server" 
                            Text='<%# Bind("PrimaryFacility") %>' />
                        <br />
                        UserName:
                        <asp:TextBox ID="UserNameTextBox" runat="server" 
                            Text='<%# Bind("UserName") %>' />
                        <br />
                        ManagerID:
                        <asp:TextBox ID="ManagerIDTextBox" runat="server" 
                            Text='<%# Bind("ManagerID") %>' />
                        <br />
                        WindowsDomain:
                        <asp:TextBox ID="WindowsDomainTextBox" runat="server" 
                            Text='<%# Bind("WindowsDomain") %>' />
                        <br />
                        Comments:
                        <asp:TextBox ID="CommentsTextBox" runat="server" 
                            Text='<%# Bind("Comments") %>' />
                        <br />
                        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
                            CommandName="Insert" Text="Insert" />
                        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
                            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
                    </InsertItemTemplate>
                    <ItemTemplate>
                        EntryTypeCode:
                        <asp:Label ID="EntryTypeCodeLabel" runat="server" 
                            Text='<%# Bind("EntryTypeCode") %>' />
                        <br />
                        CustID:
                        <asp:Label ID="CustIDLabel" runat="server" Text='<%# Eval("CustID") %>' />
                        <br />
                        FirstName:
                        <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Bind("FirstName") %>' />
                        <br />
                        LastName:
                        <asp:Label ID="LastNameLabel" runat="server" Text='<%# Bind("LastName") %>' />
                        <br />
                        DisplayNameEn:
                        <asp:Label ID="DisplayNameEnLabel" runat="server" 
                            Text='<%# Bind("DisplayNameEn") %>' />
                        <br />
                        DisplayNameFr:
                        <asp:Label ID="DisplayNameFrLabel" runat="server" 
                            Text='<%# Bind("DisplayNameFr") %>' />
                        <br />
                        TitleEnglish:
                        <asp:Label ID="TitleEnglishLabel" runat="server" 
                            Text='<%# Bind("TitleEnglish") %>' />
                        <br />
                        TitleFrench:
                        <asp:Label ID="TitleFrenchLabel" runat="server" 
                            Text='<%# Bind("TitleFrench") %>' />
                        <br />
                        CostCenterCode:
                        <asp:Label ID="CostCenterCodeLabel" runat="server" 
                            Text='<%# Bind("CostCenterCode") %>' />
                        <br />
                        PrimaryFacility:
                        <asp:Label ID="PrimaryFacilityLabel" runat="server" 
                            Text='<%# Bind("PrimaryFacility") %>' />
                        <br />
                        UserName:
                        <asp:Label ID="UserNameLabel" runat="server" Text='<%# Bind("UserName") %>' />
                        <br />
                        ManagerID:
                        <asp:Label ID="ManagerIDLabel" runat="server" Text='<%# Bind("ManagerID") %>' />
                        <br />
                        WindowsDomain:
                        <asp:Label ID="WindowsDomainLabel" runat="server" 
                            Text='<%# Bind("WindowsDomain") %>' />
                        <br />
                        Comments:
                        <asp:Label ID="CommentsLabel" runat="server" Text='<%# Bind("Comments") %>' />
                        <br />
                        <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
                            CommandName="Edit" Text="Edit" />
                        &nbsp;<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" 
                            CommandName="Delete" Text="Delete" />
                        &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
                            CommandName="New" Text="New" />
                    </ItemTemplate>
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                </asp:FormView>
                <asp:SqlDataSource ID="sqldsProfileDetail" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>" 
                    DeleteCommand="DELETE FROM dbo.tblProfiles WHERE (CustID = @CustID)" 
                    InsertCommand="INSERT INTO [tblProfiles] ([EntryTypeCode], [CustID], [FirstName], [LastName], [DisplayNameEn], [DisplayNameFr], [TitleEnglish], [TitleFrench], [CostCenterCode], [PrimaryFacility], [UserName], [ManagerID], [WindowsDomain], [Comments]) VALUES (@EntryTypeCode, @CustID, @FirstName, @LastName, @DisplayNameEn, @DisplayNameFr, @TitleEnglish, @TitleFrench, @CostCenterCode, @PrimaryFacility, @UserName, @ManagerID, @WindowsDomain, @Comments)" 
                    SelectCommand="SELECT EntryTypeCode, CustID, FirstName, LastName, DisplayNameEn, DisplayNameFr, TitleEnglish, TitleFrench, CostCenterCode, PrimaryFacility, UserName, ManagerID, WindowsDomain, Comments FROM dbo.tblProfiles WHERE (CustID = @CustID)" 
                    UpdateCommand="spUpdateProfile" UpdateCommandType="StoredProcedure">
                    <DeleteParameters>
                        <asp:SessionParameter Name="CustID" SessionField="CustID" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="EntryTypeCode" Type="Byte" />
                        <asp:ControlParameter ControlID="gvDisplayNames" Name="CustID" 
                            PropertyName="SelectedValue" Type="String" />
                        <asp:Parameter Name="NewCustID" Type="String" />
                        <asp:Parameter Name="PrimaryFacility" />
                        <asp:Parameter Name="FirstName" Type="String" />
                        <asp:Parameter Name="LastName" Type="String" />
                        <asp:Parameter Name="DisplayNameEn" Type="String" />
                        <asp:Parameter Name="DisplayNameFr" Type="String" />
                        <asp:Parameter Name="CostCenterCode" Type="Int16" />
                        <asp:Parameter Name="TitleEnglish" Type="String" />
                        <asp:Parameter Name="TitleFrench" Type="String" />
                        <asp:Parameter Name="UserName" Type="String" />
                        <asp:Parameter Name="ManagerID" Type="Int16" />
                        <asp:Parameter Name="WindowsDomain" Type="String" />
                        <asp:Parameter Name="Comments" Type="String" />
                    </UpdateParameters>
                    <SelectParameters>
                        <asp:ControlParameter ControlID="gvDisplayNames" DefaultValue="" Name="CustID" 
                            PropertyName="SelectedValue" Type="String" />
                    </SelectParameters>
                    <InsertParameters>
                        <asp:Parameter Name="EntryTypeCode" Type="Byte" />
                        <asp:Parameter Name="CustID" Type="String" />
                        <asp:Parameter Name="FirstName" Type="String" />
                        <asp:Parameter Name="LastName" Type="String" />
                        <asp:Parameter Name="DisplayNameEn" Type="String" />
                        <asp:Parameter Name="DisplayNameFr" Type="String" />
                        <asp:Parameter Name="TitleEnglish" Type="String" />
                        <asp:Parameter Name="TitleFrench" Type="String" />
                        <asp:Parameter Name="CostCenterCode" Type="Int16" />
                        <asp:Parameter Name="PrimaryFacility" />
                        <asp:Parameter Name="UserName" Type="String" />
                        <asp:Parameter Name="ManagerID" Type="Int16" />
                        <asp:Parameter Name="WindowsDomain" Type="String" />
                        <asp:Parameter Name="Comments" Type="String" />
                    </InsertParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
 
</ContentTemplate>
</asp:UpdatePanel>

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-06-11 at 12:02:13ID24484327
Topics

Asynchronous Javascript and XML (AJAX)

,

.NET Framework 3.x versions

Participating Experts
1
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Microsoft DotNet 2.0, Ajax (RTM). How to call a we…
    Hi. I am working in Dotnet 2.0. (Visual studio 2.0, C# ) with Ajax (RTM). How can I call a webservice, on the text_changedEvent of a textBox, (which is inside an Ajax Update Panel)
  2. ASP.NET MasterPage and AJAX Components
    I want do build a web application of ASP.NET using the MasterPage and also the AJAX components like ScriptManager and UpdatePanel. I tried many samples but I still can not figure out how to change the content in or UpdatePanel either ContentPlaceHolder. The web app desing i...
  3. ASP.Net: AJAX Modal Popup: to allow Edit/Update usi…
    Hello Experts, I want to display a Modal Popup Dialogbox in ASP.Net using AJAX ModalPopup with a FormView, wich allows the user to Edit/Update using FormView within the popup, when the user select one item of gridView. That is, the popup should come with a FormView, when the...
  4. postback events when using an ajax updatepanel within a f…
    Hi, I have a situation where I want to use an ajax updatepanel within a formview. I am using the update panel within an ajax modalpopup control to allow a user to make a sub form selection. When the user clicks a linkbutton within the updatepanel the modal form is hidden and ...
  5. gridview - delete - javascript - ajax
    I need an example with ajax to eliminate a row of gridview, this example must have a message of confirmation in Javascript, thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: kchaitanyyaPosted on 2009-06-24 at 01:17:06ID: 24699121

Could you please send the response text you got while doing this ?

You can get it using fiddler tool,

Inspectors -> TextView...copy past the response you got...it may give more details about the ERROR.

 

by: SergeGregoirePosted on 2009-06-25 at 05:15:49ID: 24710528

How can I monitor localhost session. It appear that fiddler only monitor remote session.

Here is the error detail from IE8.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; CMCEXP1; GTB6; InfoPath.1; FDM)
Timestamp: Thu, 25 Jun 2009 12:13:30 UTC


Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '1_CommentaireLabel">'.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/AJAXEnabledITDB/ScriptResource.axd?d=e7sSPUpipHr2-EOUOIgEv_DelyCX4cRYYo-8t9RTv1VSM3sMx8EaM7LGMQ5JOGOdxKk8WzhZ1U0NMvd6HVnQWs8P-z9GQtaJGUESqNyFZ141&t=ffffffff95cab6a0


Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '1_CommentaireLabel">'.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/AJAXEnabledITDB/ScriptResource.axd?d=e7sSPUpipHr2-EOUOIgEv_DelyCX4cRYYo-8t9RTv1VSM3sMx8EaM7LGMQ5JOGOdxKk8WzhZ1U0NMvd6HVnQWs8P-z9GQtaJGUESqNyFZ141&t=ffffffff95cab6a0


Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '1_CommentaireLabel">'.
Line: 4723
Char: 21
Code: 0
URI: http://localhost/AJAXEnabledITDB/ScriptResource.axd?d=e7sSPUpipHr2-EOUOIgEv_DelyCX4cRYYo-8t9RTv1VSM3sMx8EaM7LGMQ5JOGOdxKk8WzhZ1U0NMvd6HVnQWs8P-z9GQtaJGUESqNyFZ141&t=ffffffff95cab6a0

 

by: kchaitanyyaPosted on 2009-06-25 at 10:52:29ID: 24714097

Fiddler should be able to monitor local host also....looking at  your error nothing can be identified...

 

by: kchaitanyyaPosted on 2009-06-25 at 10:58:42ID: 24714169

Or you can do one thing , add EndRequest handler to your page manager, and in the end request handler put a debugger and check your args

on load call load() function, then it will add endrequest handler , where in that funciton put a debugger and find out what args contain...There should be some thing args._response.Getdataresponse() like that...which will you you the response you got from the update panel server side execution. so share that code..and there will be some thing called status code in that args, send that one also...

window.load = load;
function EndRequestHandler(sender, args) {
   if (args.get_error() != undefined)      
       alert("There was an error" + args.get_error().message);
}
function load() {
   Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}

 

by: SergeGregoirePosted on 2009-06-26 at 20:20:11ID: 24726214

When I capture data with Fiddler and open a local web page, nothing is captured. When accessing Internet pages data appear in Fiddler. Is there a setting to capture localhost web pages.

Where exactly I put the code. Could you be more specific. I am writing code in VB.NET.

In my aspx.vb page, I have a Onload event function. Should I put the code there, or I should put the code in a JScript in the ASPX page?

Thanks

 

by: kchaitanyyaPosted on 2009-06-27 at 06:09:15ID: 24727543

All the code should be in javascrip,  call the function load() in your page load ...You are saying that you have some OnLoad event exist...so put the content of function load() in your on load function and copy EndReqeustHandler in your java script..

HOpe i am clear..

 

by: SergeGregoirePosted on 2009-06-30 at 07:19:34ID: 24745558

It does not execute the EndRequestHandler.

It actually break to this line in the attache code snippet.

 finally {
                if (_this._xmlHttpRequest != null) {
                    _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                    _this._xmlHttpRequest = null;
                }
            }

I am really don't know what is wrong with the '1_CommentaireLabel". It is a varchar(255).

Thanks for helping.

Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() {
    /// <summary locid="M:J#Sys.Net.XMLHttpExecutor.#ctor" />
    if (arguments.length !== 0) throw Error.parameterCount();
    Sys.Net.XMLHttpExecutor.initializeBase(this);
    var _this = this;
    this._xmlHttpRequest = null;
    this._webRequest = null;
    this._responseAvailable = false;
    this._timedOut = false;
    this._timer = null;
    this._aborted = false;
    this._started = false;
    this._onReadyStateChange = (function () {
        
        if (_this._xmlHttpRequest.readyState === 4 ) {
            try {
                if (typeof(_this._xmlHttpRequest.status) === "undefined") {
                    return;
                }
            }
            catch(ex) {
                return;
            }
            
            _this._clearTimer();
            _this._responseAvailable = true;
            try {
                _this._webRequest.completed(Sys.EventArgs.Empty);
            }
            finally {
                if (_this._xmlHttpRequest != null) {
                    _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
                    _this._xmlHttpRequest = null;
                }
            }
        }
    });
    this._clearTimer = (function() {
        if (_this._timer != null) {
            window.clearTimeout(_this._timer);
            _this._timer = null;
        }
    });
    this._onTimeout = (function() {
        if (!_this._responseAvailable) {
            _this._clearTimer();
            _this._timedOut = true;
            _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;
            _this._xmlHttpRequest.abort();
            _this._webRequest.completed(Sys.EventArgs.Empty);
            _this._xmlHttpRequest = null;
        }
    });
}

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:

Select allOpen in new window

 

by: SergeGregoirePosted on 2009-06-30 at 07:32:17ID: 24745681

The following code is my aspx page. I added the script you gave me.

<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Profiles.aspx.vb" Inherits="Profiles" %>
<%@ Register src="wucProfiles.ascx" tagname="wucProfiles" tagprefix="uc1" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
    <script type="text/javascript">
        window.load = load;
 
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined)
                alert("There was an error" + args.get_error().message);
        }
        function load() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        }
        function pageLoad() {
      }
    
    </script>
    
    <uc1:wucProfiles ID="wucProfiles1" runat="server" />
 
</asp:Content>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:

Select allOpen in new window

 

by: SergeGregoirePosted on 2009-07-17 at 07:13:15ID: 24878833

I fixed the problem. There was a Null value in the field Comments. I changed all the Null value by en empty string and the problem is gone.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...