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

[Solved] Grid Insert / Edit Postback returns ASCII Junk Page

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 06 Jan 2010, 05:31 PM
Let's see if I can make this clear. I have a very plain grid with an EditTemplate Form. When I click on Add Record or Edit event, it clears the page and returns ascii junk. This only happens on a few grids. Some grids work fine with the same structure, some don't. I thought it might be caused by the textbox binding being misspelled, but that was double checked. I've commented everything else out on the page to narrow down and illiminate any other possibilities. I'm using the latest version of Telerik of Q3 2009. Any one have any ideas or clues of where to begin troubleshooting? Here is my code:

<rad:RadGrid ID="gridRole" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" Skin="Black"><MasterTableView  
    CommandItemDisplay="Top" EnableNoRecordsTemplate="true"  
            ShowHeadersWhenNoRecords="true" EditMode="PopUp"><CommandItemSettings  
    AddNewRecordText="Add Role" RefreshText="Refresh"  /><NoRecordsTemplate><label  
    style="font-size:medium;">No roles available</label></NoRecordsTemplate><Columns> 
           <rad:GridEditCommandColumn ButtonType="LinkButton" CancelText="Cancel"  
                EditText="Edit" UpdateText="Update" /> 
           <rad:GridBoundColumn DataField="Name" HeaderText="Name" /> 
           <rad:GridButtonColumn ButtonType="LinkButton" Text="Delete"  
                CommandName="DeleteRole" CommandArgument="RoleName" /> 
        </Columns> 
        <EditFormSettings EditFormType="Template" InsertCaption="New Role"
            <PopUpSettings Modal="false" ZIndex="2500"/> 
            <FormTemplate> 
                <fieldset class="forms" style="width:540px;"
                    <div class="required"><label>Name</label><asp:TextBox  
                            ID="txtRoleName" runat="server" Text='<%#Bind("RoleName") %>' /></div
                    <div class="optional"><label>Description</label><asp:TextBox  
                            ID="txtRoleDesc" runat="server" Text='<%#Bind("Description") %>'  
                            TextMode="MultiLine" Rows="10"/></div> 
                    <asp:Button ID="btnRoleUpdate" runat="server"  
                        Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>'  
                         
                        CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformRoleInsert", "Update")%>' />&nbsp;<asp:Button  
                        ID="btnRoleCancel" runat="server" Text="Cancel"  
                        CausesValidation="False" CommandName="Cancel"/></fieldset></FormTemplate></EditFormSettings></MasterTableView><ClientSettings><ClientEvents  
    OnRowDblClick="RowDblClick" /></ClientSettings></rad:RadGrid> 

1 Answer, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 1
answered on 06 Jan 2010, 09:42 PM
I fixed it... It was the bound textboxes that were causing trouble. At least I know where the problem lies. I'll double check their bound object properties again.. but if that's not the case.. anyone have any idea where i should be looking next?
Tags
Grid
Asked by
Aaron
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 1
Share this question
or