This is a migrated thread and some comments may be shown as answers.

NoRecordsTemplate causes Sys.WebForms.PageRequestManagerParserErrorException error

1 Answer 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chafik
Top achievements
Rank 1
Chafik asked on 02 Jul 2012, 12:29 PM
Hello, I have RadGrid uses NoRecordsTemplate, but this template contains server tags as the following:
<NoRecordsTemplate>
   <center>                          
   <iframe src='<%= GetTrainingVideo("RiskManagement.Options") %>' class="EmbededVimeo"
             width="400" height="300" frameborder="0">
   </iframe>
   </center>
</NoRecordsTemplate>

if there is no data at page load the template works fine, but when delete the last record the grid rebind itself and generate the following JS error:

Error: 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 'hidden" />
    </div>
|0|updatePanel|ctl0'.

This issue just appear when host the application under secure protocol (HTTPS),

I've tried to create the content of NoRecordsTemplate server side at the following event handlers: OnItemCreated and OnPreRender, but the issue still exist.

Do you have resolution for this issue?

1 Answer, 1 is accepted

Sort by
0
Chafik
Top achievements
Rank 1
answered on 03 Jul 2012, 08:03 AM
We've resolve this issue, we were changing the html response on Page Render to rewrite http -> https when secure connection.
Tags
Grid
Asked by
Chafik
Top achievements
Rank 1
Answers by
Chafik
Top achievements
Rank 1
Share this question
or