ボタンから関数を呼び出そうとしていますが、ボタンを押すと、その名前の関数が宣言されていないと表示されます。
これはボタンの私のコードです:
<asp:TextBox ID="DateOutTxt" runat="server" Width="80px"></asp:TextBox><asp:ImageButton
ID="ImageButton5" runat="server" BorderStyle="None" ImageUrl="~/icons/vwicn063.gif"
OnClientClick="PopupPicker(DateOutTxt, 250, 250);" Width="21px" /></td>
そして、ここに私が呼び出そうとしている関数があります:
<script language ="javascript" type ="text/javascript">
function PopupPicker(ctl, w, h) {
var PopupWindow = null;
settings = 'width=' + w + ',height=' + h + ',location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no';
PopupWindow = window.open(<%= getServerName.getserverName("/Quoteman/DatePicker.aspx?Ctl=") %>);
PopupWindow.focus();
}
</script>
現在、スクリプトタグはタグの一番下にありますが、タグの中とタグの下に入れてみました。問題が見つからないようです。
言語は ASP.Net と Javascript です。そこにはVB.Net関数への呼び出しもあります。