Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7907813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:38:52+00:00 2026-06-03T11:38:52+00:00

when i enter the page I can get all data without any problem My

  • 0

when i enter the page I can get all data without any problem My sql works correctly but When i enter the page it gives an error (first dropdown list value 0):

“Callbacks are not supported on TemplateField because some controls
cannot update properly in a callback. Turn callbacks off on
‘GridView1’.”

Page Load c#3:   

if (!IsPostBack)
{
    DBConnection db=new DBConnection();
    ArrayList listdrp = new ArrayList();
    ArrayList listurl = new ArrayList();
    listdrp.Insert(0, "SharedItems");

    listdrp.Insert(1, "SyndicationItems");
    listdrp.Insert(2, "All Items");

    DropDownList1.DataSource = listdrp;

    DropDownList1.DataBind();

    GridView1.DataSource = db.getGroupRSS( groupName, DropDownList1.SelectedIndex);
    GridView1.DataBind();

}

//sql side
public DataSet getGroupRSS( string name, int drpIndex)
{
    string sql="";

    if (drpIndex == 0)
    {
        //SQL string to count the amount of rows within the OSDE_Users table
        sql = "SELECT [RSS_Title], [RSS_ID], R.Syndication, R.Category FROM RSS AS R INNER JOIN Group_URL AS F ON F.URL= R.URL Where F.Group_Name='"+name+"' ORDER BY RSS_Date desc";
        // string sql = "SELECT [RSS_Title], [RSS_ID], R.Syndication, R.Category FROM RSS AS R INNER JOIN CombinedFeeds AS C ON  C.URL = R.URL  WHERE C.Name='" + name + " ' ORDER BY RSS_Date desc";
    }
    else if (drpIndex == 1)
    {
        sql = "SELECT [RSS_Title], R.RSS_ID, R.Syndication, R.Category FROM RSS AS R INNER JOIN Group_Shared_Items AS F ON F.RSS_ID= R.RSS_ID Where F.Group_Name='" + name + "' ORDER BY RSS_Date desc";
    }
        SqlDataAdapter adapt = new SqlDataAdapter(sql, Connect());
        DataSet ds = new DataSet();
        adapt.Fill(ds);

    // result of query filled into datasource
    adapt.Dispose();

    closeConnection();

    return ds;
}

client side

}

            <li>  <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">Logout</asp:LinkButton>  </li>
        </ul>
        <table>

        <tr>

        <td>
            <asp:DropDownList ID="DropDownList1" runat="server" 
                onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                AutoPostBack="True" Height="16px" Width="88px">
            </asp:DropDownList>

        </td>
         </tr>
        </table>


    </div>
    <div id="center-column">
        <div class="top-bar">
            <h1 align="center">My Groups&#39; Items</h1>

            </div><br />
            <br />
<div>

    <br />
    <br />
    <table width="100%">
    <tr>
    <td align='center'>

     <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="8" 
            AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand" 
            onrowcreated="GridView1_RowCreated" EnableSortingAndPagingCallbacks="True" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            onpageindexchanging="GridView1_PageIndexChanging">

            <AlternatingRowStyle BackColor="White" />

            <Columns>
            <asp:ButtonField CommandName="AddComment" ButtonType="Image" HeaderText="Comment" 
                        ImageUrl="~/images/commentt.png" Text="Comment"  
                        ItemStyle-HorizontalAlign="Center" >

            <asp:ButtonField CommandName="Share"  ButtonType="Image" HeaderText="Share with Friends"  
                        ImageUrl="~/images/openshare.png" ItemStyle-HorizontalAlign="Center" 
                        Text="Share" >
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:ButtonField>


                     <asp:ButtonField  CommandName="ShareGroups"  ButtonType="Image" HeaderText="Share with Groups"  
                        ImageUrl="~/images/Group.png" ItemStyle-HorizontalAlign="Center" 
                        Text="Share" > 
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:ButtonField>

                     <asp:ButtonField ButtonType="Image" HeaderText="Favorites" 
                    ImageUrl="~/images/StarEmpty.png" CommandName="Favorite" 
                    Text="Add to Favorites" ItemStyle-HorizontalAlign="Center">
                <FooterStyle Height="20px" />
                <HeaderStyle Width="3px" />
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:ButtonField>

                  <asp:ButtonField  ButtonType="Image"  CommandName="Mail" HeaderText="Send Mail" 
                        ImageUrl="~/images/email-icon.png.jpg" Text="Send Mail" 
                        ItemStyle-HorizontalAlign="Center" InsertVisible="False" >

                            <ItemStyle HorizontalAlign="Center"></ItemStyle>

                    </asp:ButtonField>


                      <asp:TemplateField HeaderText="RSS Title">
           <ItemTemplate>
               <asp:LinkButton ID="LinkButton2" runat="server" CommandName="View" Font-Size="Small" Font-Underline="False"><%#Eval("RSS_Title") %></asp:LinkButton>
           </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
           </asp:TemplateField>

                <asp:BoundField DataField="Syndication" HeaderText="Syndication" 
               SortExpression="Syndication" />


                <asp:BoundField DataField="Category" HeaderText="Category" 
               SortExpression="Category" />


            </Columns>




            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <SortedAscendingCellStyle BackColor="#FDF5AC" />
            <SortedAscendingHeaderStyle BackColor="#4D0000" />
            <SortedDescendingCellStyle BackColor="#FCF6C0" />
            <SortedDescendingHeaderStyle BackColor="#820000" />




    </asp:GridView>


    </td>
    </tr>
    </table>


    <br />
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:39:00+00:00Added an answer on June 3, 2026 at 11:39 am

    Do you need paging? if not set EnableSortingAndPagingCallbacks = false. You may need to post your html markup too if this doesn’t help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to redirect users to an error page if they enter any URL
I can get the PHP mailform to work correctly. The problem is I would
I have been searching all over but I can't find any answer to this.
i have a html page in which i enter data which then submits and
Say if I am on page 1 , I enter my form data and
Pressing enter inside a textbox refreshes the whole page in Google Chrome. please help
i have created a login page when i enter username and password(if both are
in this page http://api.jquery.com/category/effects/ when you put 'up'(keyboard) and 'down',then put 'enter',it will go
I have an asp.net web page (C# 2008) where the user would enter an
Below are my Page and Spec. I am able to enter the value for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.