Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在没有gridview的情况下基于dropdownlist检索每个记录_C#_Asp.net_Sql Server - Fatal编程技术网

C# 如何在没有gridview的情况下基于dropdownlist检索每个记录

C# 如何在没有gridview的情况下基于dropdownlist检索每个记录,c#,asp.net,sql-server,C#,Asp.net,Sql Server,在没有gridview的情况下,如何在ASP.NET C#中基于dropdownlist检索所有记录 if (!IsPostBack) { btnArquivo.OnClientClick = "document.getElementById('" + fuAnexo.ClientID + "').click(); return false;"; txtAnexo.Attributes.Add("onclick", "document.getElementById('" + fu

在没有gridview的情况下,如何在ASP.NET C#中基于dropdownlist检索所有记录

if (!IsPostBack)
{
    btnArquivo.OnClientClick = "document.getElementById('" + fuAnexo.ClientID + "').click(); return false;";
    txtAnexo.Attributes.Add("onclick", "document.getElementById('" + fuAnexo.ClientID + "').click(); return false;");
    fuAnexo.Attributes.Add("onchange", "document.getElementById('" + txtAnexo.ClientID + "').value = this.value;");
}
}

protected void ddlAula_OnSelectedIndexChanged(object sender, EventArgs e)
{
    gvQuestoes.DataSource = Questao.CarregarPorAula(Int32.Parse(ddlAula.SelectedValue));
    gvQuestoes.DataBind();
}

欢迎来到stackoverflow。请阅读。您是否面临任何问题?您的标题中没有
Gridview
,但您在代码中使用了Gridview。您的意思是根据下拉选择的值显示Gridview值?