c# - Pass values + upload file -
i using asp.net c# , telerik tools. question is, tring pass values
of (textbox, drop down list , file uploaded details) asp page using java script, nothing work , want file content , pass ?? can give me solution? please!
on page1:
<script type="text/javascript"> function getradwindow() { var owindow = null; if (window.radwindow) owindow = window.radwindow; else if (window.frameelement.radwindow) owindow = window.frameelement.radwindow; return owindow; } function populatecityname(arg) { var cityname = document.getelementbyid("cityname"); cityname.value = arg; } function returntoparent() { //create argument returned parent page var oarg = new object(); //get city's name oarg.cityname = document.getelementbyid("cityname").value; //get reference current radwindow var ownd = getradwindow(); //close radwindow , send argument parent page if (oarg.cityname) { ownd.close(oarg); } else { alert("please fill field"); } } </script>
page 2:
function onclientclose(ownd, args) { //get transferred arguments var arg = args.get_argument(); if (arg) { var cityname = arg.cityname; $get("order").innerhtml = "you chose fly <strong>" + cityname + "</strong>"; }
try using
var cityname = document.getelementbyid('<%= cityname.clientid %>');
instead of
var cityname = document.getelementbyid("cityname");
Comments
Post a Comment