我试图获得一个“onchange”(不确定仍然是新的asp)事件,将选择值文本输入到文本框中。我似乎可以调用该函数。
这是我的代码:
?>
header('Content-Type: text/html; charset=UTF-8');
require 'simple_html_dom.php';
$html = file_get_html('http://ark.intel.com/products/88194/Intel-Core-i7-6500U-Processor-4M-Cache-up-to-3_10-GHz');
//There is the problem on the ® symbol.
foreach($html->find('div#infosectionintel®platformprotectiontechnology-scrollpane') as $protection) {
$item8['osguardxx'] = $protection->find('tr#OSGuardTechVersion td.rc', 0)->plaintext;
$item8['txtxxxxxx'] = $protection->find('tr#TXT td.rc', 0)->plaintext;
$item8['exedisbit'] = $protection->find('tr#ExecuteDisable td.rc', 0)->plaintext;
$protections[] = $item8;
}
print_r($protections);
?>
这是我的vb.net代码
<asp:DropDownList ID="ownerdpdnlst" runat="server" ontextChanged="execvalchanged" >
<asp:ListItem Value="(Choose One)">Choose one...</asp:ListItem>
<asp:ListItem Value="name1">name1</asp:ListItem>
<asp:ListItem Value="name2">name2</asp:ListItem>
<asp:ListItem Value="name3">name3</asp:ListItem>
<asp:ListItem Value="name4">name4</asp:ListItem>
<asp:ListItem Value="name5">name5</asp:ListItem>
</asp:DropDownList>
</asp:TableCell>
任何想法?
答案 0 :(得分:0)
在aspx中你定义了OnTextChanged但是在SelectedIndexChanged后面的代码中。在aspx中,而不是ontextChanged =“execvalchanged”使用OnSelectedIndexChanged =“execvalchanged” - nelekSep 12 at 6:32