Tigger postback on textbox

Joined
Nov 1, 2007
Messages
1
Reaction score
0
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top