zoukankan      html  css  js  c++  java
  • asp:DetailsView

    Microsoft User control asp:DetailsView Co-operation with asp:SqlDataSource

    1. asp:dataSource have many way to filter database

     First solution is :    

                  <...

                     FilterExpression=" textname = '{0}' ">
                    <FilterParameters>
                        <asp:ControlParameter ControlId="textname " PropertyName="SelectedValue"/>
                    </FilterParameters> when the anto dropdownlist refresh which selectedvalue will be working on.

      Second solution is :

                <.....

                     OnSelecting="dataResources_Selecting">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txt" Name="text" PropertyName="Text"
                            DefaultValue="%" />
                        <asp:QueryStringParameter Name="txt1" QueryStringField="txt1" />
                    </SelectParameters>

                  protected void dataResources_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
                 {      ......     }

    third solution strainghtaway

                     

    2. asp:DetailsView with asp:sqldatasource have

    DetailsView1.DefaultMode = DetailsViewMode.Insert; / Update

    SqlDataSource1.InsertParameters

    SqlDataSource1.Insert()

  • 相关阅读:
    20200917-1 每周例行报告
    20200917-2 词频统计
    20200910-1每周例行报告
    20200910-2 博客作业
    20200910-3 命令行和控制台编程
    第05组 团队Git现场编程实战
    第05组 团队项目-需求分析报告
    团队项目-选题报告
    第二次结对编程作业
    第一次结对编程作业
  • 原文地址:https://www.cnblogs.com/sandy_liao/p/1750211.html
Copyright © 2011-2022 走看看