Sunday, March 18, 2012

Set the iframe src from javascript in asp.net

how to set the iframe src from javascript in asp.net




var iframesrc = "../ChildPages/Search.aspx?sDate='" + sDate + "'&&eDate='" + eDate + "'";
document.getElementById("iframesearch").setAttribute("src", iframesrc);  // set the attribute for control


<iframe id="iframesearch" src=""></iframe>



No comments:

Post a Comment

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software