在 Visual Studio 中创建主/详细信息网页

来源:互联网 发布:淘宝店铺推广公司 编辑:程序博客网 时间:2024/06/01 09:11

http://msdn.microsoft.com/zh-cn/library/stc0szde.aspx

在Visual Studio中创建主/详细信息网页

<!-- 网页间传递参数的方法: -->
            <asp:HyperLinkField DataNavigateUrlFields="ProductID"
                DataNavigateUrlFormatString="2.aspx?ProductID={0}" HeaderText="详细信息"
                Text="链接" />

<!-- 本页中控件间传递参数的方法 -->
        SelectCommand="SELECT [ProductID], [ProductName], [CategoryID] FROM [Products] WHERE ([CategoryID] = @CategoryID)">



 

原创粉丝点击