怎么在当前页面获取Iframe传过来的参数值
<asp:HiddenField ID="MailContentText" runat="server"/>
<iframe src="js/Editor/editor.html?id=MailContentText" frameborder="0" class="greenBorder"
scrolling="no" width="100%" height="320" id="Iframe1"></iframe>
[解决办法]
刚好昨天晚上做过这个东东~
贴段代码,仅供参考~
- C# code
protected void ButtonUpload_Click(object sender, EventArgs e)//上传按钮的Click事件{ if(上传成功) { this.ClientScript.RegisterStartupScript(typeof(string),"file", "window.parent.document.getElementById('HiddenField的ID').value='"+文件路径+"';",true); }}