我通過代碼隱藏調用javascript。給對象預期的錯誤。我如何通過ShowDialog()函數傳遞一些值?在代碼隱藏中調用javascript
這裏是我在代碼隱藏
ClientScript.RegisterStartupScript(GetType(), "Call my function", "ShowDialog("Value_here");", true);
,並在我的javascript代碼
<script type="text/javascript">
var IRProjectID = 0;
function ShowDialog(UnitID) {
radconfirm("Are you sure you want to approve this Help Desk item?", confirmBackChecked);
IRProjectID = UnitID;
}
function confirmBackChecked(arg) {
if (arg == true) {
__doPostBack(IRProjectID, 'Approve');
}
}
</script>
嗨iBlue同樣的錯誤.. – kirk 2013-02-21 09:20:46
u能告訴我其中rü得到錯誤exactly.Is它運行時錯誤或編譯錯誤。 – iJade 2013-02-21 09:26:07
這是一個runtie錯誤 – kirk 2013-02-21 09:28:42