To be able to get the value in the PostBack from the ASP.Net TextBox control that assigned by an external javascript function, you have to store the same value also in a HiddenField Control.
Then in the PostBack Event you can get the value of the HiddenField Control But not the TextBox Control, because the TextBox Control value will be reseted.
Here is an Example:
We passed the controls ClientIDs as querystring to the popup window, then from the popup window we have the following javascript to assign the values to the controls in the opener aspx page :
window.opener.document.getElementById('<%=Request["lat_ctr_id"]%>').value = marker.getPoint().lat();
window.opener.document.getElementById('<%=Request["ctr_hdn_lat_id"]%>').value = marker.getPoint().lat();
Now from my cs file, i have a search button with click event (this will do postback)
protected void btn_search_Click(object sender, EventArgs e)
{
Response.Redirect("search_results.aspx?lat=" + hdn_lat.Value);
}
Current Position is : Sr. Information System Analyst
Leading a Team of Developers for developing ecommerce websites and systems integration using several integration methods such as XML.
Manage ISP infrastructure, web servers, database servers, application servers, email servers and networks. Design the architecture of complex web applications; build web applications in JAVA, asp, asp.Net; manage web sites including networking and database; experienced in MS Sql Server and Oracle;
stay current with emerging trends and technological advances in the industry.
MCTS,MCAD VB.NET, ASP.NET and XML Services,BTEC National Diploma in Computer Studies.