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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:23:36+00:00 2026-05-29T22:23:36+00:00

I have this homework in Visual Web Developer (ASP.NET – C#) and unfortunately I

  • 0

I have this homework in Visual Web Developer (ASP.NET – C#) and unfortunately I have not enough time to the deadline to study everything properly – I have to create GridView so it shows data in database. The problem I have is:

When I click on Edit button in a row I am supposed to go to “Edit mode of FormView” or to something that looks like that instead of “Edit mode of GridView” (so after clicking on Edit I am supposed to see only a form with 1 line for each column of gridview of the appropriate table record, not the same Gridview with just changed records of one line to TextBoxes…).

Consider Default.aspx like this please:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="id_people" DataSourceID="SqlDataSource1" 
            EmptyDataText="There are no data records to display.">
            <Columns>
                <asp:CommandField ShowEditButton="True" />
                <asp:BoundField DataField="id_people" HeaderText="id_people" ReadOnly="True" 
                    SortExpression="id_people" />
                <asp:BoundField DataField="first_name" HeaderText="first_name" 
                    SortExpression="first_name" />
                <asp:BoundField DataField="last_name" HeaderText="last_name" 
                    SortExpression="last_name" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:InsertRowsWithGridViewConnectionString1 %>" 
            SelectCommand="SELECT [id_people], [first_name], [last_name] FROM [Table1]" 
            UpdateCommand="UPDATE [Table1] SET [first_name] = @first_name, [last_name] = @last_name WHERE [id_people] = @id_people">
            <UpdateParameters>
                <asp:Parameter Name="first_name" Type="String" />
                <asp:Parameter Name="last_name" Type="String" />
                <asp:Parameter Name="id_people" Type="Int32" />
            </UpdateParameters>
        </asp:SqlDataSource>

    </div>
    </form>
</body>
</html>
  • 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-29T22:23:37+00:00Added an answer on May 29, 2026 at 10:23 pm
     <asp:Panel ID="pnlAddPropertyDetails" runat="server" CssClass="ui-dialog ui-widget ui-widget-content ui-corner-all"
            Width="400" EnableViewState="True">
            <div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
                <span class="ui-dialog-title">
                    Add Property Details</span>
                <a class="ui-dialog-titlebar-close ui-corner-all"></a>
            </div>
            <div class="ui-dialog-content ui-widget-content">
                //ur content of dialog here
            </div>
        </asp:Panel>
    

    do not forget to add css file of jquery to leverage their classes

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

Sidebar

Related Questions

I'm still not very good with data structures, but I have this homework assignment
I have this homework question: Assume a Database table has 0 records at time
(this is indirectly a part of a much larger homework assignment) I have something
I have this homework problem where I need to use regex to remove every
I have this homework: finding the code words for the symbols in any given
I have this homework. And I am beginner C# program, and now learn the
I know that I am missing something simple here. I have got this homework
This IS NOT homework, but it is a practice that the teacher gave us
FYI This is homework. I have to build a Java Chat server. I have
I have this homework that I gotta finish, but then something about it is

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.