تبلیغات :
ماهان سرور
آکوستیک ، فوم شانه تخم مرغی ، پنل صداگیر ، یونولیت
دستگاه جوجه کشی حرفه ای
فروش آنلاین لباس کودک
خرید فالوور ایرانی
خرید فالوور اینستاگرام
خرید ممبر تلگرام

[ + افزودن آگهی متنی جدید ]




نمايش نتايج 1 به 2 از 2

نام تاپيک: کنترل repeater در ویژوال وب دولوپر2005

  1. #1
    در آغاز فعالیت
    تاريخ عضويت
    Oct 2007
    پست ها
    16

    پيش فرض کنترل repeater در ویژوال وب دولوپر2005

    با سلام ! میخواستم راجع به طرز استفاده و موارد استفاده کنترل repeater در ویژوال وب دولوپر2005 بیشتر بدونم همچنین طرز چیدمان و قرار دادن عناصر و کنترل ها در صفحات وب به صورت حرفه ای ممنون میشم اگه کسی مقاله ای در این رابطه داره برام بزاره

  2. #2
    داره خودمونی میشه mrhamidifar's Avatar
    تاريخ عضويت
    Feb 2006
    پست ها
    30

    پيش فرض

    One of important goals of any application development process is making data presentation richer. ASP.NET 2.0 provides many server controls which render data in different rich formats and styles. For example, DataGrid control is suitable in many scenarios where you wish to display data in a grid like representation for easy understanding. Similarly, if the situation demands for rendering list like data, you can consider using of DataLists and Repeater server controls.

    Repeater control is a container control which is template based with no basic rendering of its own. This way, you define layout for the Repeater control by creating different templates based on your needs. You can create different kinds of lists using Repeater control including Table, Comma-separated list and XML formatted list.
    Repeater Control Templates
    Repeater controls provides different kinds of templates which helps in determining the layout of control's content. Templates generate markup which determine final layout of content.

    Repeater control is an iterative control in the sense it loops each record in the DataSource and renders the specified template (ItemTemplate) for each record in the DataSource collection. In addition, before and after processing the data items, the Repeater emits some markup for the header and the footer of the resulting structure

    Repeater control supports five templates which are as follows:

    ItemTemplate

    AlternatingItemTemplate

    HeaderTemplate

    FooterTemplate

    SeparatorTemplate

    ItemTemplate: ItemTemplate defines how the each item is rendered from data source collection.

    AlternatingItemTemplate: AlternatingItemTemplates define the markup for each Item but for AlternatingItems in DataSource collection like different background color and styles.

    HeaderTemplate: HeaderTemplate will emit markup for Header element for DataSource collection

    FooterTemplate: FooterTemplate will emit markup for footer element for DataSource collection

    SeparatorTemplate: SeparatorTemplate will determine separator element which separates each Item in Item collection. Usually, SeparateTemplate will be <br> html element or <hr> html element.

    Add any Data Source control to the page such as sqlDataSource or AccessDataSource. Configure Data Source control such that you specify connection information and perform query.

    کد:
    برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
    Following example shows how to use Repeater control to display data in a HTML table.
    کد:
    برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
    The Databinder.Eval method uses reflection to parse and evaluate a data-binding expression against an object at run time; in this case the object is our Repeater. So this line of code:
    کد:
    برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

Thread Information

Users Browsing this Thread

هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)

User Tag List

قوانين ايجاد تاپيک در انجمن

  • شما نمی توانید تاپیک ایحاد کنید
  • شما نمی توانید پاسخی ارسال کنید
  • شما نمی توانید فایل پیوست کنید
  • شما نمی توانید پاسخ خود را ویرایش کنید
  •