"Pablo Guevara" <PGM...@Hotmail.QUITARESTO.com> escribió en el mensaje news:%23rVDY7V...@TK2MSFTNGP11.phx.gbl...
"Sashka" <sasshk...@NOVAESTOhotmail.com> wrote in message news:uBhsGJWV...@TK2MSFTNGP12.phx.gbl...
private
void MyDataGrid2_UpdateCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e){
string
MyCadena="";CheckBox cb;
ListBox LBox;
System.Web.UI.HtmlControls.HtmlInputText txtm;
txtm = ( System.Web.UI.HtmlControls.HtmlInputText) e.Item.FindControl("TxtMail");
LBox = (ListBox)e.Item.FindControl("Lista_Comercial");
cb = (CheckBox)e.Item.FindControl("ChkFax2");
if (txtm.Value!=""){
MyCadena += "Mail_Envio = '" + txtm.Value + "', ";
}
else{
MyCadena += "Mail_Envio = '', ";
}
}
Slds.
Pablo
+++
"Guillermo González A." <gugonzar(-arroba-)epm.net.co> escribió en el mensaje news:OhzfhNWV...@TK2MSFTNGP09.phx.gbl...
|
"Pablo Guevara" <PGM...@Hotmail.QUITARESTO.com> escribió en el mensaje news:uC62sVWV...@TK2MSFTNGP11.phx.gbl...
"Pablo Guevara" <PGM...@Hotmail.QUITARESTO.com> escribió en el mensaje news:uC62sVWV...@TK2MSFTNGP11.phx.gbl...
y me dice que ese control no existe.
a continuacion el codigo de llamada y el javascript
<asp:datagrid id="MyDataGrid2"
runat="server" Width="100%" Font-Size="X-Small" DataKeyField="IdConocimiento"
AutoGenerateColumns="False" CellPadding="4" BackColor="White" BorderWidth="1px"
BorderStyle="None" BorderColor="#CC9966" Height="228px"
OnItemDataBound="ItemDataBound" AllowPaging="True" PageSize="20"
PagerStyle-Position="Bottom">
<SelectedItemStyle
Font-Bold="True" ForeColor="#663399"
BackColor="#FFCC66"></SelectedItemStyle>
<ItemStyle
Font-Size="XX-Small" ForeColor="#330099"
BackColor="White"></ItemStyle>
<HeaderStyle
Font-Bold="True" ForeColor="#FFFFCC"
BackColor="#990000"></HeaderStyle>
<FooterStyle
ForeColor="#330099"
BackColor="#FFFFCC"></FooterStyle>
<Columns>
<asp:TemplateColumn
HeaderText="Mail de
Envio">
<ItemTemplate>
<asp:Label
Runat="server" Text='<%#DataBinder.Eval(Container.DataItem,
"Mail_Envio")%>'
/>
</ItemTemplate>
<EditItemTemplate>
<input
type=text ID="TxtMail" value='<%#DataBinder.Eval(Container.DataItem,
"Mail_Envio")%>'/>
<input type="text" id="Mycliente" size="3"> <input
type="button" onclick="javascript:window.open('Consulta.aspx', 'newWindow',
'scrollbars=No,status=no,toolbar=no,width=400,height=480');" />
</EditItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn
ButtonType="PushButton" UpdateText="Actualizar" CancelText="Cancelar"
EditText="Editar"
/>
</Columns>
<PagerStyle
HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"
Mode="NumericPages"></PagerStyle>
</asp:datagrid>
esta es la funcion en javascript de la ventana de ayuda :
function retornar()
{
window.opener.document.getElementById('Mycliente').value=
this.ListBox1.SelectedItem.Value;window.opener.document.getElementById('TxtMail').value=
this.ListBox1.SelectedItem.Value;}
Gracias
Pablo
+++
string
script = @"<script>function retornar()
{
window.opener.document.getElementById('" + Request.QueryString["ID1"].ToString() + @"').value='" +
this.TextBox2.Text + @"';window.opener.document.getElementById('" + Request.QueryString["ID2"].ToString() + @"').value='" +
this.TextBox3.Text + @"';window.opener.document.getElementById('" + Request.QueryString["ID3"].ToString() + @"').value='" +
this.ListBox1.SelectedItem.Value + @"';window.opener.document.getElementById('" + Request.QueryString["ID4"].ToString() + @"').value='" +
this.TextBox4.Text + @"';window.opener.document.getElementById('" + Request.QueryString["ID4"].ToString() + @"').text='" +
this.TextBox5.Text + @"';window.close();}</script>";
this.RegisterClientScriptBlock("retornar", script);}
"Sashka" <sasshk...@NOVAESTOhotmail.com> escribió en el mensaje news:%23faE2Kk...@TK2MSFTNGP09.phx.gbl...
"Sashka" <sasshk...@NOVAESTOhotmail.com> wrote in message news:uJIjdVGW...@TK2MSFTNGP09.phx.gbl...