I have a control page on which I am setting certain parameters which I want to control. The page is in aspx
and when i click submit i want that data on the textbox
of an .htm
page. As in html I dont have C# file so how do I do this?
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<iframe src="http://10.112.90.131/index.htm" border="0" frameborder="0" height="600" width="800"></iframe>
</asp:Content>
I think you should use aspx page instead of html although you can transfer value through aspx to html through query string and parse query string through JQuery / JavaScript.
Suppose Below is the Query String from aspx page to open Html page.
http://stackoverflow.com/ShowData.htm?firstname=jhon
Now JQuery / JavaScript code on remote html would be:-
$(function () {
//Setting textbox value to jhon as per querystring
$("#SomeTextBoxID").val(getParameterByName("firstname"));
}
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.