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 6735391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:00:14+00:00 2026-05-26T11:00:14+00:00

My scenario is, I have created a page and made some changes by applying

  • 0

My scenario is,

I have created a page and made some changes by applying templates and gridview in Updatepanel.Now i have a footer template to add and insert the data to database.But it doesnt appear when the there is no data in datatable.

I need to show those footertemplate during page load event.and when i add it has to refresh the page to show the Datas. Please help on this

Page load event:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load, UpdatePanel1.Load

        If Not IsPostBack Then

            BindData()

        End If

    End Sub


Private Sub BindData()

        Dim strQuery As String = "select MembershipName,FamilyMember,MemberName,Dateofbirth from IOMFamilyDetails "

        Dim cmd As New SqlCommand(strQuery)

        GridView1.DataSource = GetData(cmd)

        GridView1.DataBind()

    End Sub
  • 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-05-26T11:00:15+00:00Added an answer on May 26, 2026 at 11:00 am

    There are several options.

    1. Try to add an empty data row as described in this article
      http://dotnetspidor.blogspot.com/2008/07/how-to-display-gridview-header-and.html

    2. Create a custom gridview control by overriding the CreateChildControls method of the GridView control as described here http://mattberseth.com/blog/2007/07/how_to_show_header_and_footer.html

    Sorry both of them in C#.

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

Sidebar

Related Questions

Scenario I have created a page where the client can build their own page,
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
Scenario: I have a document I created using LaTeX (my resume in this case),
Here is the scenario: I have 1 master page and web-forms in that master
Afternoon all. I have the following scenario: I have a search page where by
I have a scenario in which users who are created in the liferay will
Using VB6, I have created an Outlook plugin, that has a property page. The
I have a tough scenario I'm trying to debug... On a web forms page,
Scenario 1 (That Works) This is a POC i created. I have a script
I have an aspx master/content page scenario. The parent page has an IFrame which

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.