I have a very simple page that I'm showing in an Iframe. I get a value from the parent that I need to use as a parameter to populate a gridview control on my page. I put the value from the parent in a textbox with this javascript code:
var ProjectID = parent.document.forms[0].all.new_projid.DataValue;
document.getElementById('<%=SLProjectID.ClientID%>').value = ProjectID;
AutoPostBack on the textbox is set to true however, the only way I can get the postback to occur and thereby populate my gridview is to click on the textbox and hit enter.
How can I get this to happen without user intervention?
Thanks in advance.
var ProjectID = parent.document.forms[0].all.new_projid.DataValue;
document.getElementById('<%=SLProjectID.ClientID%>').value = ProjectID;
AutoPostBack on the textbox is set to true however, the only way I can get the postback to occur and thereby populate my gridview is to click on the textbox and hit enter.
How can I get this to happen without user intervention?
Thanks in advance.