I did it this way....but trying to figure out if I can do this easier.....
Is there an easier or shorter way to grab a textbox value and WRITE back to another textbox?
I am reading it now but would liketo write back results to another textbox on the aspx page
I made the textbox and button in .aspx page
I added the RegisterStartupScript line to the Page_Load
Made the window.JsController wrap with my function...
.ASPX page
<asp:TextBox ID="txtAddressCall" Width="800px" Height="60px" MaxLength="300" runat="server" TextMode="MultiLine" Wrap="true" Enabled="false" Visible="false"></asp:TextBox><br />
<asp:Button ID="btnGISPush" runat="server" OnClientClick="window.JsController.btnGISPush_Click()" Text="GIS Push" CausesValidation="true" /><br />
ASPX.CS Page
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "JsVariables", "var txtboxClientId='" + txtAddressCall.ClientID + "';", true);
SNIP
JS Page
window.JsController = {
btnGISPush_Click: function () {
var name = document.getElementById(txtboxClientId).value;
alert(name);
}
};