I am passing information from variable click_teste
to TextBox
with id
other TextBox
is parameter to a query of Gridview
.
.
PostBack
:
<asp:TextBox ID="outros" runat="server"
AutoPostBack="true" clientIdMode="static"
OnTextChanged="outros_TextChanged">
dados
</asp:TextBox>
Data passing method:
document.getElementById('outros').value = click_teste;
(function (marker, data) {
google.maps.event.addListener(marker, "click", function (e) {
var click_teste = data.title;
document.getElementById('outros').value = click_teste;
//alert(click_teste);
infoWindow.setContent(data.description);
infoWindow.open(map, marker);
alert(click_teste);
});
})
<asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" DataKeyNames="id_programacao_correcao" DataSourceID="SqlDataSource8">
<Columns>
<asp:BoundField DataField="id_programacao_correcao" HeaderText="id_programacao_correcao" ReadOnly="True" InsertVisible="False" SortExpression="id_programacao_correcao"></asp:BoundField>
<asp:BoundField DataField="id_projeto" HeaderText="id_projeto" SortExpression="id_projeto"></asp:BoundField>
<asp:BoundField DataField="turma" HeaderText="turma" SortExpression="turma"></asp:BoundField>
<asp:CheckBoxField DataField="deligamento" HeaderText="deligamento" SortExpression="deligamento"></asp:CheckBoxField>
<asp:CheckBoxField DataField="linha_viva" HeaderText="linha_viva" SortExpression="linha_viva"></asp:CheckBoxField>
<asp:BoundField DataField="supervisor" HeaderText="supervisor" SortExpression="supervisor"></asp:BoundField>
<asp:BoundField DataField="eps" HeaderText="eps" SortExpression="eps"></asp:BoundField>
<asp:BoundField DataField="si" HeaderText="si" SortExpression="si"></asp:BoundField>
<asp:BoundField DataField="data_execucao" HeaderText="data_execucao" SortExpression="data_execucao"></asp:BoundField>
<asp:BoundField DataField="ref" HeaderText="ref" SortExpression="ref"></asp:BoundField>
<asp:CheckBoxField DataField="conclusao_correcao" HeaderText="conclusao_correcao" SortExpression="conclusao_correcao"></asp:CheckBoxField>
</Columns>
</asp:GridView>
<asp:SqlDataSource runat="server" ID="SqlDataSource8" ConnectionString='<%$ ConnectionStrings:COEX_RPBConnectionString %>' SelectCommand="SELECT [id_programacao_correcao], [id_projeto], [turma], [deligamento], [linha_viva], [supervisor], [eps], [si], [data_execucao], [ref], [conclusao_correcao] FROM [tbl_programacoes_correcao] WHERE ([ref] = @ref)">
<SelectParameters>
<asp:ControlParameter ControlID="outros" PropertyName="Text" Name="ref" Type="String" DefaultValue="A200675"></asp:ControlParameter>
</SelectParameters>
</asp:SqlDataSource>
<asp:TextBox ID="outros" runat="server" AutoPostBack="true" clientIdMode="static" OnTextChanged="outros_TextChanged"> dados</asp:TextBox>