我遵循了一个教程,在一个以objectdatasource为数据源的GridView中启用排序。
这看起来很简单,但是当我运行代码时,
public List<tbl_Batch> SelectAllList(string sSortType, int iBeginRowIndex, int iMaximumRows)
{
using (TestEntities dbContext = new TestEntities())
{
var query = from q in dbContext.tbl_Batch
我需要知道如何从下拉列表中显示数据。例如:
DropDownList
选择图像
小汽车
船
垂钓
用户首先看到的是select图像下拉列表。用户将看到从select图像下拉列表中显示的一些随机图片。
如果用户按下列表中的汽车图片,则新图片将显示等等。
每一张图片都将显示在html表格中,类似于我所绘制的图片(如下所示)。假设每个列表都有三张图片,那么这三张图片都将显示在表中(如下图所示)。
这是我到目前为止编写的代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;