URLからデータを渡すにはどうすればよいですか?URLでデータを渡す方法
私は誰が助けることができるこの頃は、私はJavaScript関数を持っていますが、私はコードビハインド$('.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;
}
を経由して、より良いことだと思う
Client.aspx?Email='[email protected]'
など、、CLIENT_IDメールを渡す必要があり
私?
あなたは文字列全体を符号化するべきではありませんが、パラメータの値のみ、すなわち '" http://www.w3schools.com ?mykey = "+ Server.URLEncode(" datavalue ");' –
@Jan Aagaard - これはちょうどansの例です...メソッドを表示するための主要なポイント...メソッドの使用はあなたの必要に応じて異なります –