Rick Doll

Rick Doll

  • NA
  • 47
  • 0

Asp.Net and the single file model, update panel

Apr 22 2012 9:54 PM
Wasn't sure if this should be in the asp.net or the ajax specific forum...

I have used the control kit without any problems on the 2 file model.

I am currently having to work with someone that started a project in the single file model. I am wanting to use some of the same functionality that I have used in the 2 file model but it is doing a full postback.

<asp:UpdatePanel ID="upGridIssues" runat="server">
           
<Triggers>
           
</Triggers>
           
<ContentTemplate>
               
<asp:DropDownList ID="ddlGameIssueTypes" runat="server"
                   
OnSelectedIndexChanged="ddlGameIssueTypes_SelectedIndexChanged"
                   
AutoPostBack="True">
                   
<asp:ListItem Selected="True">Select Issue Type</asp:ListItem>
                   
<asp:ListItem>Account Issue</asp:ListItem>
                   
<asp:ListItem>Functionality</asp:ListItem>
                   
<asp:ListItem>Game Glitch</asp:ListItem>
                   
<asp:ListItem>Page Error</asp:ListItem>
                   
<asp:ListItem>Suggestion</asp:ListItem>
               
</asp:DropDownList>
               
<asp:GridView ID="gvIssues" runat="server" HeaderStyle-CssClass="HeaderStyle" RowStyle-CssClass="RowStyle"
                   
AlternatingRowStyle-CssClass="AltRowStyle" EditRowStyle-CssClass="EditRowStyle"
                   
PagerStyle-CssClass="PagerStyle" AllowPaging="True" AllowSorting="False" AutoGenerateColumns="false"
                   
CssClass="GridViewStyle" GridLines="Horizontal" PageSize="20">
                   
<Columns>
                       
<asp:CommandField ShowSelectButton="true" SelectText="Edit" />
                       
<asp:BoundField DataField="Message" HeaderText="Message" SortExpression="Message">
                           
<ItemStyle Width="650px" />
                       
</asp:BoundField>
                       
<asp:BoundField DataField="User" HeaderText="User" SortExpression="User">
                           
<ItemStyle Width="200px" />
                       
</asp:BoundField>
                       
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date">
                           
<ItemStyle Width="150px" />
                       
</asp:BoundField>
                       
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status">
                           
<ItemStyle Width="75px" />
                       
</asp:BoundField>
                   
</Columns>
               
</asp:GridView>
           
</ContentTemplate>
       
</asp:UpdatePanel>

No matter what i can not get the single file model to do this asynchronously, it always reloads the page fully. 

Is it possible to do it in the single file model or am I doing something wrong?


Answers (2)