请在下拉列表中解决错误(please solve error in dropdown list)

   IT问题网   2021-01-19 00:00:00

问 题

请解决错误

我有2dropdownlist 。在第一个我从 dropdownlist 的编辑项输入值,在第二个中,从oracle表中选择值,具体取决于从第一个<$ c $中选择的值c> dropdownlist







 lt;   asp:dropdownlist     id   ="  dropdownlist2"    runat   ="  server"    autopostback   ="  true"   可见  ="  true" gt;  
lt; asp:listitem gt; crt
lt; asp:listitem gt; lcd
lt; asp:listitem gt; led

lt; asp:dropdownlist id =" monitor" runat =" server" datasourceid =" moni" 可见 =" false" gt;

lt; ; asp:sqldatasource id =" moni" runat =" server"

connectionstring =" lt;% $ connectionstrings:constr%gt;"

providername =" lt;% $ connectionstrings:constr.providername%gt; "







selectcommand =" select" srno" from "master" where (" item" = :item)" gt;
lt; selectparameters gt;
lt; asp:controlparameter controlid =" dropdownlist2" 名称 =" item"

propertyname =" selectedvalue" 类型 =" 字符串" / gt;
lt; / selectparameters gt;






显示的错误是在第二个下拉列表中,它给出结果为"system.data.datarowview"

解决方案

connectionstrings:constr%gt;"

providername =" lt;%

connectionstrings:constr.providername%gt;"







selectcommand =" select" srno" from "master" where ("item" = :item)" gt;
lt; selectparameters gt;
lt; asp:controlparameter controlid =" dropdownlist2" 名称 =" item"

propertyname =" selectedvalue" 输入 =" 字符串" / gt;
lt; / selectparameters gt;





显示的错误位于第二个下拉列表中,结果为"系统" .data.datarowview"

选定的索引更改事件在哪里? dropdownlist2 id在哪里?您的代码id是"monitor"。

标签:在下列表解决错误过错毛病谬误



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

更改属性上的ReadOnly属性不起作用(Change ReadOnly attribute on property doesn&#39;t work)

problem i''ve tried to change a readonly attr ...

我如何分割我的表格(how do i split my form)

problem ok i want to split my form in half so on the left ...

将templatefield动态添加到gridview(adding templatefield dynamically to gridview)

problem give the tutorial to add template field, controls ...

在c#的帮助下导出pdf文件(Export pdf File with the help of c#)

problem how to convert more then one pdf file ...

计算中间日期并在gridview中显示它(calculate inbetween date and show it in gridview)

problem hello friends, by using date time pi ...

为它的学生项目(Project for an it student)

problem hi, i m an bsc it student ,as many of you will kn ...

单击更改图标通知(Change Icon Notify on Click)

problem is possible changer notifyicon1 on click the prog ...

如果用户已经登录,则在同一浏览器中重定向到主页asp .net c#(Redirect to Home page if user already logged in, in same browser asp .net c#)

problem i want to make application that if user in logged ...

需要帮助来使用MySqlTransaction(Need help in using MySqlTransaction)

problem hi all i would like to use mysqltransaction in my ...

如何使用VBscript导航Windows注册表树(How to navigate Windows registry tree with VBscript)

problem does anyone know how to go about navigating the w ...

silverlight内存泄漏(silverlight memory leak)

problem hi, i was creating a dependencyproperty changed w ...

如何在json中获取单个元素(How to get single element in json)

problem in wcf service i am getting json response in that ...

双击文件打开程序,如何在c#中实现(double click on file opens program, how to implement in c#)

problem usually when a program in installed, you can clic ...

如何在我添加的现有数据表中添加新列,但它是bofore行的结尾(how add new column in existing datatable i added but its is come end of the bofore rows)

problem my datatable contans two columns id value ----- ...

如何在c#.net中的现有页面中打开新网址(How to open new url in existing page in c#.net)

problem hi to all, this is mdsiddiqali.i added new page n ...

DeleteObject方法不会删除任何内容 - 请帮忙。(DeleteObject method doesn&#39;t delete anything - please help.)

problem hello. i am trying to create method that will del ...

项目模板类型在C#中使用?(PROJECT TEMPLATE TYPE TO USE IN C#)

problem edit; okay i am creating a dock for programs to r ...

如何在我添加的现有数据表中添加新列,但它是bofore行的结尾(how add new column in existing datatable i added but its is come end of the bofore rows)

problem my datatable contans two columns ; id value ---- ...

在c#和asp.net中使用LinkedIn API?(Working with LinkedIn APIs in c# and asp.net )

problem hey i was trying to design an asp.net based webs ...

设计模式的案例研究(Case Studies for Design Pattern)

problem hi everyone, though i found "design patterns exp ...