【发布时间】:2011-10-19 11:17:21
【问题描述】:
如何通过我的 URL 传递数据?
我需要传递,一个电子邮件,client_id 等。
Client.aspx?Email='teste@gmail.com'
现在我有一个 Javascript 函数,但我认为通过 Code-Behind 会更好
$('.btIncluirAtendimento').live('click', function () {
idCliente = $(this).attr('id').replace('cad_', '');
popup = openPopup('../Cliente/AtendimentoNew.aspx?Cliente_Id=' + idCliente, 'IncluirAtendimento', 'toolbar=no,directories=no,status=no,menubar=no, scrollbars=yes,resizable=no', '720', '600', 'true');
});
function openPopup(theURL, winName, features, myWidth, myHeight, isCenter) {
if (window.screen) if (isCenter) if (isCenter == "true") {
var myLeft = (screen.width - myWidth) / 2;
var myTop = (screen.height - myHeight) / 2;
features += (features != '') ? ',' : '';
features += ',left=' + myLeft + ',top=' + myTop;
}
popup = window.open(theURL, winName, features + ((features != '') ? ',' : '') + 'width=' + myWidth + ',height=' + myHeight);
return popup;
}
谁能帮帮我?
【问题讨论】:
标签: c# javascript asp.net post query-string