This is a migrated thread and some comments may be shown as answers.
RadGrid - Submit in Grid, Internet Explorer Shows Page Can Not Be Displayed
1 Answer 21 Views
This is a migrated thread and some comments may be shown as answers.
sasho
Top achievements
Rank 1
sasho asked on 09 Feb 2011, 09:27 PM

Hello

I seem to have a weird problem... Viewstate is enabled page-wide. All Default Asp.net settings are loaded.
I have a Rad-Grid , its Late bound Via Linq To SQL on NeedDataSouerce. I have a submit button in the CommandItemTemplate..

I have no other code, just prototyping this. When I press submit, the page reloads, Press submit again. I get the page can not be displayed internet explorer message. Seems like the 2 request to the Asp.net development server doesnt even hit. the URL seems fine, javascript looks good. I dont see why I get that.

Here is the Grid:

<P><telerik:RadGrid ID="LetterEditQueueGrid" runat="server" 
enableAjax="false" 
ShowStatusBar="True"<BR>        
AllowPaging="True" AutoGenerateColumns="False" Width="950px" 
EnableViewState="true"<BR>        
GridLines="None" OnNeedDataSource="LetterEditQueueGrid_NeedDataSource" 
<BR>        
onitemcommand="LetterEditQueueGrid_ItemCommand" 
<BR>        
ondetailtabledatabind="LetterEditQueueGrid_DetailTableDataBind" 
<BR>        
onitemdatabound="LetterEditQueueGrid_ItemDataBound"><BR>        
<MasterTableView  CommandItemDisplay="Top" Name="Main" DataKeyNames="Id" 
AllowFilteringByColumn="True"><BR>            
<Columns><BR>                
<telerik:GridTemplateColumn HeaderText="Run Date" AllowFiltering="true" 
<BR>                    
DataField="RunDate"><BR>                    
<ItemTemplate><BR>                        
<%#Convert.ToDateTime(Eval("RunDate")).ToShortDateString()%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Run Time ID" AllowFiltering="true" 
<BR>                    
DataField="RunTime_ID"><BR>                    
<ItemTemplate><BR>                        
<%#Eval("RunTime_ID")%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Quality Auditor" 
AllowFiltering="true"><BR>                    
<ItemTemplate><BR>                        
<%#Eval("Approver") 
%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Reason for Letter Edit" 
<BR>                    
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                        
<%#Eval("ReasonForLetterEdit")%><BR>                        
&nbsp;<BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Letter Edit Date" 
<BR>                    
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                        
<%#Convert.ToDateTime(Eval("RunDate")).ToShortDateString() 
%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Letter ID" 
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                        
<%#Eval("LetterID") 
%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Subscriber ID" 
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                        
<%#Eval("SubscriberId") 
%><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Review Original Document" 
<BR>                    
AllowFiltering="False" 
><BR>                    
<ItemTemplate><BR>               
<%--     <asp:LinkButton ID="ViewOriginal" 
CommandArgument='<%# Eval("editid") %>' runat="server" 
<BR>                            
Text='Review Original Document' CommandName="ViewOriginalLetter">View 
original | </asp:LinkButton>--%>   
<BR>                            
<a href="#" 
onclick="javascript:ViewPDFImageOriginal('<%#Eval("EditId")%>')">Review 
Original 
Document</a><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Review Edit Document" 
<BR>                    
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                      
<%--      <asp:LinkButton ID="ViewEdit" 
CommandArgument='<%# Eval("id") %>' runat="server" 
<BR>                            
Text='Review Edit Document' CommandName="ViewEditLetter">View Edit | 
</asp:LinkButton>--%><BR>                        
<a href="#" 
onclick="javascript:ViewPDFImageEdit('<%#Eval("ID")%>')">Review Edit 
Document</a><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Suppress" UniqueName="mtSuppress" 
<BR>                    
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                        
<asp:CheckBox ID="cbSuppress" runat="server" 
></asp:CheckBox><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn></P>
<P>                
<telerik:GridTemplateColumn HeaderText="Approve" UniqueName="rApprove" 
<BR>                    
AllowFiltering="False"><BR>                    
<ItemTemplate><BR>                         
<asp:CheckBox ID="cbApprove" runat="server" 
></asp:CheckBox><BR>                    
</ItemTemplate><BR>                
</telerik:GridTemplateColumn><BR>            
</Columns>            
<BR>            
<BR>            
<CommandItemTemplate><BR>                
<table 
width="100%"><BR>                    
<tr><BR>                        
<td style="width: 
400px;"><BR>                            
&nbsp;<BR>                        
</td><BR>                        
<td 
align="right"><BR>                            
<asp:Button ID="btnSubmit" CausesValidation="true" runat="server" 
Text="Submit" CommandName="Save" 
/><BR>                          
</td><BR>                    
</tr><BR>                
</table><BR>            
</CommandItemTemplate></P>
<P>        
</MasterTableView><BR>    
</telerik:RadGrid><BR>    </P>

1 Answer, 1 is accepted

Sort by
0
sasho
Top achievements
Rank 1
answered on 09 Feb 2011, 10:59 PM
The problem was that I had a @OutputCache Duration="60" in the page at the top. Removing that fixed it.
Tags
Grid
Asked by
sasho
Top achievements
Rank 1
Answers by
sasho
Top achievements
Rank 1
Share this question
or