DropDownList的不宣。它可能无法访问由于其保护级别

编程入门 行业动态 更新时间:2024-10-25 13:26:48
本文介绍了DropDownList的不宣。它可能无法访问由于其保护级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你可以从注释掉code看到的,我试图让该模型通过下拉菜单 + selCurrentManuf.Text 受到影响。

我得到这个错误

  

selCurrentManuf'未声明。它可能无法访问由于其保护水平。

这又如何解决呢?

我可以向下访问降在这样的页面的另一部分。

昏暗sc1_currentmanuf的String = CTYPE(e.Item.FindControl(selCurrentManuf),DropDownList的)。文本

不过在功能我想使用selCurrentManuf没有获得电子

解决方案

昏暗sc1_currentmanuf的String = CTYPE(dlContacts.Items(0).FindControl(selCurrentManuf),DropDownList的)。文本    昏暗更改为MyQuery作为字符串=SELECT * FROM c5_model,其中c5_manufid =+ sc1_currentmanuf

As you can see from the commented out code, I'm trying to get the model dropdown be affected by + selCurrentManuf.Text.

I get this error

'selCurrentManuf' is not declared. It may be inaccessible due to its protection level.

How can this be solved?

I can access the drop down in another part of the page like this..

Dim sc1_currentmanuf As String = CType(e.Item.FindControl("selCurrentManuf"), DropDownList).Text

However in the function i am trying to use selCurrentManuf does not have access to e

解决方案

Dim sc1_currentmanuf As String = CType(dlContacts.Items(0).FindControl("selCurrentManuf"), DropDownList).Text Dim myQuery As String = "SELECT * FROM c5_model where c5_manufid = " + sc1_currentmanuf

更多推荐

DropDownList的不宣。它可能无法访问由于其保护级别

本文发布于:2023-11-26 20:02:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634990.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:于其   无法访问   级别   不宣   DropDownList

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!