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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:06:06+00:00 2026-06-04T06:06:06+00:00

Afternoon All, I am using a visual studio 2010. I have a web page

  • 0

Afternoon All,

I am using a visual studio 2010. I have a web page which is used to record minutes of meetings. The page has a section that the user can use to add ‘Actions’ to the site. I can get a user to successfully add an action to the page.

The issue that i have is i also have a grid view on the webpage and would like this to refresh once the user has added the new ‘Action’ to the page. So that the user can see that its been submitted.

Im new ish to the .net environment and VB and im not sure 100% how to complete this task.

I have the following code from my .aspx page….

    Submitted Actions:
    <hr />
        <!-- DataSource for submitted Actions -->

        <asp:SqlDataSource ID="OutstandingActionsDS" runat="server" 
            ConnectionString="<%$ ConnectionStrings:SMCConnectionString %>" 
            SelectCommand="Populate_grdOutstandingActions" 
            SelectCommandType="StoredProcedure"></asp:SqlDataSource>

        <!-- Gridview that holds submitted Actions -->

        <asp:GridView ID="GridView1" runat="server" DataSourceID="OutstandingActionsDS">
        </asp:GridView>
    <br />
    <br />
        New Actions to Record:
    <hr />

            <!-- Add new Action -->
            <asp:Panel ID="pnlHeaderAction" runat="server" CssClass="pnl" Width="740px">

                <div style="float:left;">
                    &nbsp;Record New Actions
                </div>
                <div style="float:right;">
                    <asp:Label ID="lblShowHideAction" runat="server" ></asp:Label>
                </div>
                <div style="clear:both"></div>
            </asp:Panel>
            <asp:Panel ID="pnlInfoAction" runat="server" CssClass="pnlBody">
               <table> 
    <tr>
           <td  style="width:498px; height: 15px;"><h5>Actions:</h5></td>
          <td style="width:130px; height: 15px;"><h5>Owner:</h5></td>
          <td style="height: 15px;"><h5>&nbsp;Target Date:</h5></td>
    </tr>
    </table>
    <table style="width: 99%">
       <tr>
          <td style="width: 495px">
             <asp:TextBox ID="txtAction" runat="server" TextMode="MultiLine" 
                                Width="493px" Height="50px" style="font-family:Verdana"></asp:TextBox>
           </td>
           <td style="width: 132px" valign="top">
              <asp:TextBox ID="txtOwner" runat="server"  Height="50px" 
                                width="128px" style="font-family:Verdana"></asp:TextBox>
           </td>
            <td valign="top">
              <asp:TextBox ID="txtTargetDate" runat="server" width="89px" style="font-family:Verdana"></asp:TextBox>
            </td>
          </tr>
         </table>
        <br />
             <div style="text-align: right;">
                         <asp:Button ID="btnAddAction" runat="server" Text="Add New Action" CssClass="button" />
              </div>
            </asp:Panel>

Here is my code for the VB page…

      Protected Sub btnAddAction_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddAction.Click

    Dim oActionClass As New ActionClass

    With oActionClass
        .Action = txtAction.Text
        .Owner = txtOwner.Text
        .TargetDate = New SmartDate(Convert.ToDateTime(txtTargetDate.Text))

          oActionClass.ActionID = ActionClassDAL.AddActionClass(oActionClass)
        ClearActions()
    End With

    End Sub

    Private Sub ClearActions()
       txtAction.Text = ""
       txtOwner.Text = ""
       txtTargetDate.Text = ""

    End Sub

This seems like a simple request but i cant seem to find anything that shows me how to refresh the grid based on the user adding the action to the system.

Many thanks in advance for any help offered.

Regards

Betty

  • 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-04T06:06:08+00:00Added an answer on June 4, 2026 at 6:06 am

    you just have to put a databind to the GridView1. I think is something like this:
    me.GridView1.databind();
    On the bottom of your method btnAddAction_Click.

    I hope I have been helpful.

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

Sidebar

Related Questions

Good afternoon all, I'm using a java.lang.StringBuilder to store some characters. I have no
Good afternoon all, I have a class which looks like this: public class Grapheme
Good afternoon to all, I have this scenario: I am using SQL Server 'BulkInsert'
Good afternoon all. I have a page that displays data in a gridview based
Afternoon all, Using the code below I'm trying to load what is render by
Good Afternoon All, I have two tables in my SQL Server 2005 DB, Main
Good afternoon all, I have a Java applet that I wish to embed on
I have been trying all afternoon to get the jQuery Sifr Plugin ( http://jquery.thewikies.com/sifr/
Afternoon, I am trying have an HTML file containing a frameset which contains two
Good afternoon, I have a web query in Excel 2002 going against a web

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.