Skip to content

Instantly share code, notes, and snippets.

@mhaghighat20
Created August 25, 2015 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhaghighat20/6438341869b5a9cf4e75 to your computer and use it in GitHub Desktop.
Save mhaghighat20/6438341869b5a9cf4e75 to your computer and use it in GitHub Desktop.
show_data design
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="show_data.aspx.cs" Inherits="Account_Admin_show_data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div dir="rtl">
<h1>نمایش داده های ثبت نام
</h1>
<asp:TextBox ID="tavallod_filter" runat="server"></asp:TextBox>
<asp:Button ID="Submit" runat="server" Text="Button" OnClick="Submit_Click" />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Code_Melli">
<Columns>
<asp:BoundField DataField="Nam" HeaderText="نام" SortExpression="Nam"></asp:BoundField>
<asp:BoundField DataField="Name_Khanevadegi" HeaderText="نام خانوادگی" SortExpression="Name_Khanevadegi"></asp:BoundField>
<asp:BoundField DataField="Code_Melli" HeaderText="کد ملی" ReadOnly="True" SortExpression="Code_Melli"></asp:BoundField>
<asp:BoundField DataField="tavallod" HeaderText="سال تولد" SortExpression="tavallod"></asp:BoundField>
<asp:BoundField DataField="reshte" HeaderText="رشته" SortExpression="reshte"></asp:BoundField>
<asp:BoundField DataField="zaman" HeaderText="زمان ثبت نام" SortExpression="zaman"></asp:BoundField>
<asp:BoundField DataField="Description" HeaderText="ملاحظات" SortExpression="Description"></asp:BoundField>
<asp:BoundField DataField="City" HeaderText="شهر" ReadOnly="True" SortExpression="City" />
</Columns>
</asp:GridView>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString='<%$ ConnectionStrings:First_Website_DBConnectionString %>' SelectCommand="SELECT * FROM [Sabt_Nam]"></asp:SqlDataSource>
</div>
</asp:Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment