Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why this code doesn't work ?

Status
Not open for further replies.

liuk

Programmer
Jan 16, 2006
54
IT
hi
i write this code :
VB.NET Code

Private Sub DG1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DG1.ItemDataBound

If (e.Item.ItemType = ListItemType.Item) Or (e.Item.ItemType = ListItemType.AlternatingItem) Then
CType(e.Item.FindControl("btnEdit"), ImageButton).Attributes.Add("onclick", "SaveObjID(this.id)")
CType(e.Item.FindControl("btnDelete"), ImageButton).Attributes.Add("onclick", "SaveObjID(this.id)")

End If
End Sub


JAVASCRITP CODE (within asp.net page)


function SaveObjID(OBJID)
{
document.getElementById('ObjectID').value = OBJID ;
}

function Scroll()
{
document.getElementById(document.getElementById('ObjectID').value).scrollIntoView();
}

where the Scroll function is invoked on the body.onload .

On postback , into the Scroll function the document.getElementById('ObjectID').value is correct but the whole instruction return NULL

The stange is that if i save explicitly (into the SaveObjID function) an object id, it works!


Any suggest?
thanks
 
Ok, this is the HTML of the page ...


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content=" name="vs_targetSchema">
<LINK href="/erpcasillo/EvolvitStyles.css" type="text/css" rel="stylesheet">
<script language="javascript">

function DisattivaRotellinaMouse ()
{
event.returnValue=null;
}

</script>
<script language="javascript">




function MostraTooltip()
{

var ddl = event.srcElement;




var Ypos = GetY(ddl);
var Xpos = GetX(ddl);

document.getElementById("tooltip").innerHTML = ddl.options[ddl.selectedIndex].text;


if(ddl.options[ddl.selectedIndex].text !="")
{


document.getElementById("tooltip").style.zIndex = 9999999;
document.getElementById("tooltip").style.display = "inline";

document.getElementById("tooltip").style.position = "absolute";
document.getElementById("tooltip").style.border = "ActiveBorder 1px solid" ;
document.getElementById("tooltip").style.borderColor = "Black";
document.getElementById("tooltip").style.padding = "2px";
document.getElementById("tooltip").style.fontSize = "9px";
document.getElementById("tooltip").style.fontFamily = "Verdana";
document.getElementById("tooltip").style.backgroundColor = "#FFFFE1";

document.getElementById("tooltip").style.top = Ypos - ddl.offsetHeight + ddl.offsetTop-1 ;// + ddl.offsetTop + ddl.offsetHeight;
document.getElementById("tooltip").style.left = Xpos +2;

}


}

function NascondiTooltip ( )
{
document.getElementById("tooltip").style.display = "none";

}

function GetX(Obj){

if (Obj.offsetParent==null){
return Obj.offsetLeft;
}
else
{
return Obj.offsetLeft + GetX(Obj.offsetParent);
}
}

function GetY(Obj){
if (Obj.offsetParent==null){
return Obj.offsetTop;
}
else
{
return Obj.offsetTop + GetY(Obj.offsetParent);
}
}


function SaveObjID(OBJID)
{

document.getElementById('ObjectId').value = OBJID ;
}

function Scroll(){
var ObjId = document.getElementById('ObjectId').value;
document.getElementById('UcEditGridCarico_DG1__ctl8_btnEdit').
scrollIntoView();
alert(ObjId);
}









</script>
</HEAD>
<body bottomMargin="0" leftMargin="0" topMargin="0" onload="Scroll();" MS_POSITIONING="GridLayout">
<div id="tooltip"></div>
<form name="Form1" method="post" action="webform1.aspx" id="Form1">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" value="dDwtMTk3NDUyMzA3Mjt0PHA8bDxmcm1Eb2NSZXR...UKJhPQb1EoA==" />

<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>

<TABLE id="corpo" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD class="titoloGrande" width="5" height="25"><IMG src="/erpcasillo/img/tile_back_border_left.gif" border="0"></TD>
<TD align="center" width="100%" background="/erpcasillo/img/tile_back.gif" height="25"><FONT class="titoloGrande"><span id="lblTitolo">Documento rettifica fiscale</span></FONT></TD>
<TD class="titoloGrande" width="5" height="25"><IMG src="/erpcasillo/img/tile_back_border_right.gif" border="0"></TD>
</TR>
<tr>
<td colSpan="3"></td>
</tr>
<TR>
<TD width="5">&nbsp;</TD>
<TD class="SfondoPannello" width="100%">
<table id="tabcontenitore" cellSpacing="0" cellPadding="0" width="100%" border="1">
<tr>
<td>
<TABLE id="tblDettagli1" cellSpacing="0" cellPadding="2" width="100%" align="center" border="0">
<TR style="HEIGHT: 22px" vAlign="middle">
<TD class="DettRigaScura" width="140"><span id="lblCausale" class="labelnb" style="width:100px;">Causale :</span></TD>
<TD class="DettRigaScura" vAlign="middle"><select name="ddlCausale" onchange="__doPostBack('ddlCausale',')" language="javascript" id="ddlCausale" tabindex="1" class="caselladitesto" onmousewheel="javascript:DisattivaRotellinaMouse();" style="width:300px;">
<option value="nonvalido">Seleziona:</option>
<option value="2">Carico giacenza iniziale</option>
<option selected="selected" value="1002">Produzione</option>
<option value="1000">Rettifica</option>
<option value="1001">Trasferimento</option>

</select></TD>
</TR>
<TR style="HEIGHT: 22px" vAlign="middle">
<TD class="DettRigaChiara" style="HEIGHT: 24px" width="140"><span id="Label3" class="labelnb" style="width:100px;">Data :</span></TD>
<TD class="DettRigaChiara" style="HEIGHT: 24px" vAlign="middle"><input name="txtDataMovimento" type="text" readonly="readonly" id="txtDataMovimento" class="caselladitesto" onkeypress="javascript:DisabilitaReturn(this);" style="width:80px;" />&nbsp;
<input type="image" name="btnGetDataMovimento" id="btnGetDataMovimento" src="/erpcasillo/img/icone/calendario.gif" alt="" border="0" style="height:20px;width:21px;" /></TD>
</TR>
<TR style="HEIGHT: 22px" vAlign="middle">
<TD class="DettRigaScura" style="HEIGHT: 24px" width="140"><span id="Label7" class="labelnb" style="width:100px;">Descrizione :</span></TD>
<TD class="DettRigaScura" style="HEIGHT: 24px" vAlign="middle"><input name="Textbox1" type="text" id="Textbox1" class="caselladitesto" onkeypress="javascript:DisabilitaReturn(this);" style="width:70%;" />&nbsp;</TD>
</TR>
</TABLE>
<div id="pnlModInsDati">

<TABLE id="tab_ins" width="100%" border="1">
<TR>
<TD>
<TABLE id="dati" cellSpacing="0" cellPadding="2" width="100%" border="0">
<TR>
<TD width="140" class="DettRigaChiara">
<span id="Label1" class="labelnb" style="width:100px;">Articolo :</span></TD>
<TD colSpan="3" class="DettRigaChiara">
<select name="ddlArticolo" id="ddlArticolo" class="combobox" style="width:250px;">
<option value="Seleziona...">Seleziona...</option>
<option value="Grano duro">Grano duro</option>
<option value="Semola di grano duro">Semola di grano duro</option>
<option value="Semola di grano duro biologico">Semola di grano duro biologico</option>

</select></TD>
</TR>
<TR>
<TD width="140" class="DettRigaScura">
<span id="Label2" class="labelnb" style="width:100px;">Magazzino :</span></TD>
<TD width="270" class="DettRigaScura">
<select name="ddlMagazzino" id="ddlMagazzino" class="combobox" style="width:250px;">
<option value="Seleziona...">Seleziona...</option>
<option value="MC1 MATERIE PRIME">MC1 MATERIE PRIME</option>
<option value="MC1 PRODOTTI FINITI">MC1 PRODOTTI FINITI</option>
<option value="MC1 SILOS">MC1 SILOS</option>

</select></TD>
<TD width="100" class="DettRigaScura">
</TD>
<TD class="DettRigaScura">
</TD>
</TR>
<TR>
<TD width="140" class="DettRigaChiara">
<span id="Label5" class="labelnb" style="width:100px;">Quantità </span></TD>
<TD colSpan="3" class="DettRigaChiara">
<input name="txtQta" type="text" id="txtQta" class="caselladitesto" style="width:80px;" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span id="Label6" class="labelnb" style="width:50px;">UM :</span>
<select name="ddlUM" id="ddlUM" class="combobox" style="width:80px;">
<option value="Seleziona...">Seleziona...</option>
<option value="KG">KG</option>
<option value="QLE">QLE</option>
<option value="TM">TM</option>
<option value=""></option>

</select></TD>
</TR>
<TR>
<TD align="center" colSpan="4">
<input type="image" name="btnAddCarico" id="btnAddCarico" tabindex="7" src="../../../img/bottoni/carico.gif" alt="" border="0" />&nbsp;&nbsp;&nbsp;
<input type="image" name="btnAddScarico" id="btnAddScarico" tabindex="6" src="../../../img/bottoni/scarico.gif" alt="" border="0" />

<input type="image" name="Imagebutton1" id="Imagebutton1" tabindex="7" src="../../../img/bottoni/applica.gif" alt="" border="0" /></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

</div>
<TABLE id="tab1" cellSpacing="0" cellPadding="0" width="100%" border="1">
<TR>
<TD vAlign="top" CssClass="dettrigachiara"><div id="pnlMovimentoProduzione" class="dettrigachiara" style="width:100%;">

<TABLE id="tabDatiProduzione" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR class="SfondoBarra" height="19">
<TD width="5"><IMG src="/erpcasillo/img/tile_back2_border_left.gif" border="0"></TD>
<TD width="100%">&nbsp;<STRONG><EM><FONT face="Verdana" color="#ffffff" size="2">Dati scarico</FONT></EM></STRONG>
</TD>
<TD width="5"><IMG src="/erpcasillo/img/tile_back2_border_right.gif" border="0"></TD>
</TR>
<TR>
<TD width="5"></TD>
<TD class="DettRigaChiara" vAlign="top" align="center">
<DIV class="DettRigaChiara" id="divDatiScarico" style="BORDER-RIGHT: navy 1px solid; BORDER-TOP: navy 1px solid; OVERFLOW: auto; BORDER-LEFT: navy 1px solid; WIDTH: 100%; BORDER-BOTTOM: navy 1px solid; HEIGHT: 150px"
align="left">

<LINK href="/erpcasillo/EvolvitStyles.css" type="text/css" rel="stylesheet">
<script language=javascript>


</script>
<table class="dgdefault" cellspacing="0" cellpadding="0" rules="all" border="1" id="UcEditGridScarico_DG1" style="width:100%;border-collapse:collapse;">
<tr class="DGDeftHStyle">
<td>Articolo</td><td>Magazzino</td><td>Quantità </td><td>UM</td><td>Valore</td><td style="width:25px;">&nbsp;</td><td style="width:25px;">&nbsp;</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl2_lblArticolo">FARINACCIO DI GRANO DURO</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl2_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl2:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl2_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl2_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl2:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl2_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl2:btnEdit" id="UcEditGridScarico_DG1__ctl2_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl2:btnDelete" id="UcEditGridScarico_DG1__ctl2_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl3_lblArticolo">GRANOTTO DI GRANO DURO</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl3_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl3:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl3_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl3_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl3:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl3_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl3:btnEdit" id="UcEditGridScarico_DG1__ctl3_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl3:btnDelete" id="UcEditGridScarico_DG1__ctl3_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl4_lblArticolo">TRITELLO DI GRANO TENERO</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl4_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl4:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl4_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl4_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl4:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl4_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl4:btnEdit" id="UcEditGridScarico_DG1__ctl4_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl4:btnDelete" id="UcEditGridScarico_DG1__ctl4_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl5_lblArticolo">TRITELLO DI GRANO DURO IN SACCHI DA 50 KG</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl5_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl5:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl5_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl5_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl5:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl5_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl5:btnEdit" id="UcEditGridScarico_DG1__ctl5_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl5:btnDelete" id="UcEditGridScarico_DG1__ctl5_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl6_lblArticolo">GRANOTTO DI GRANO DURO IN SACCHI DA 50 KG</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl6_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl6:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl6_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl6_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl6:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl6_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl6:btnEdit" id="UcEditGridScarico_DG1__ctl6_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl6:btnDelete" id="UcEditGridScarico_DG1__ctl6_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl7_lblArticolo">FARINACCIO DI GRANO DURO IN SACCHI DA 30 KG</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl7_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl7:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl7_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl7_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl7:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl7_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl7:btnEdit" id="UcEditGridScarico_DG1__ctl7_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl7:btnDelete" id="UcEditGridScarico_DG1__ctl7_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl8_lblArticolo">FARINACCIO DI GRANO DURO BIOLOGICO</span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl8_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl8:txtQuantita" type="text" value="15" id="UcEditGridScarico_DG1__ctl8_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl8_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl8:txtValore" type="text" value="0" id="UcEditGridScarico_DG1__ctl8_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl8:btnEdit" id="UcEditGridScarico_DG1__ctl8_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl8:btnDelete" id="UcEditGridScarico_DG1__ctl8_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridScarico_DG1__ctl9_lblArticolo"></span>
</td><td>
<span id="UcEditGridScarico_DG1__ctl9_lblMagazzino"></span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl9:txtQuantita" type="text" id="UcEditGridScarico_DG1__ctl9_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridScarico_DG1__ctl9_lblUM"></span>
</td><td align="Right">
<input name="UcEditGridScarico:DG1:_ctl9:txtValore" type="text" id="UcEditGridScarico_DG1__ctl9_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl9:btnEdit" id="UcEditGridScarico_DG1__ctl9_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridScarico:DG1:_ctl9:btnDelete" id="UcEditGridScarico_DG1__ctl9_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr>
</table>
</DIV>
</TD>
<TD width="5"></TD>
</TR>
<TR>
<TD colSpan="3">&nbsp;</TD>
</TR>
<TR class="SfondoBarra" height="19">
<TD width="5"><IMG src="/erpcasillo/img/tile_back2_border_left.gif" border="0"></TD>
<TD width="100%">&nbsp;<STRONG><EM><FONT face="Verdana" color="#ffffff" size="2">Dati carico</FONT></EM></STRONG>
</TD>
<TD width="5"><IMG src="/erpcasillo/img/tile_back2_border_right.gif" border="0"></TD>
</TR>
<TR>
<TD width="5"></TD>
<TD class="DettRigaChiara" align="center">
<DIV class="DettRigaChiara" id="divDatiCarico" style="BORDER-RIGHT: navy 1px solid; BORDER-TOP: navy 1px solid; OVERFLOW: auto; BORDER-LEFT: navy 1px solid; WIDTH: 100%; BORDER-BOTTOM: navy 1px solid; HEIGHT: 150px"
align="left">

<LINK href="/erpcasillo/EvolvitStyles.css" type="text/css" rel="stylesheet">
<script language=javascript>


</script>
<table class="dgdefault" cellspacing="0" cellpadding="0" rules="all" border="1" id="UcEditGridCarico_DG1" style="width:100%;border-collapse:collapse;">
<tr class="DGDeftHStyle">
<td>Articolo</td><td>Magazzino</td><td>Quantità </td><td>UM</td><td>Valore</td><td style="width:25px;">&nbsp;</td><td style="width:25px;">&nbsp;</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl2_lblArticolo">FARINACCIO DI GRANO DURO</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl2_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl2:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl2_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl2_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl2:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl2_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl2:btnEdit" id="UcEditGridCarico_DG1__ctl2_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl2:btnDelete" id="UcEditGridCarico_DG1__ctl2_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl3_lblArticolo">GRANOTTO DI GRANO DURO</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl3_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl3:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl3_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl3_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl3:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl3_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl3:btnEdit" id="UcEditGridCarico_DG1__ctl3_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl3:btnDelete" id="UcEditGridCarico_DG1__ctl3_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl4_lblArticolo">TRITELLO DI GRANO TENERO</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl4_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl4:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl4_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl4_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl4:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl4_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl4:btnEdit" id="UcEditGridCarico_DG1__ctl4_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl4:btnDelete" id="UcEditGridCarico_DG1__ctl4_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl5_lblArticolo">TRITELLO DI GRANO DURO IN SACCHI DA 50 KG</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl5_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl5:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl5_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl5_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl5:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl5_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl5:btnEdit" id="UcEditGridCarico_DG1__ctl5_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl5:btnDelete" id="UcEditGridCarico_DG1__ctl5_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl6_lblArticolo">GRANOTTO DI GRANO DURO IN SACCHI DA 50 KG</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl6_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl6:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl6_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl6_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl6:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl6_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl6:btnEdit" id="UcEditGridCarico_DG1__ctl6_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl6:btnDelete" id="UcEditGridCarico_DG1__ctl6_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl7_lblArticolo">FARINACCIO DI GRANO DURO IN SACCHI DA 30 KG</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl7_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl7:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl7_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl7_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl7:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl7_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl7:btnEdit" id="UcEditGridCarico_DG1__ctl7_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl7:btnDelete" id="UcEditGridCarico_DG1__ctl7_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2ItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl8_lblArticolo">FARINACCIO DI GRANO DURO BIOLOGICO</span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl8_lblMagazzino">MC1 SOTTOPRODOTTI</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl8:txtQuantita" type="text" value="15" id="UcEditGridCarico_DG1__ctl8_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl8_lblUM">TM</span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl8:txtValore" type="text" value="0" id="UcEditGridCarico_DG1__ctl8_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl8:btnEdit" id="UcEditGridCarico_DG1__ctl8_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl8:btnDelete" id="UcEditGridCarico_DG1__ctl8_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr><tr class="DG2AlternatingItemStyle" style="font-size:7pt;">
<td>
<span id="UcEditGridCarico_DG1__ctl9_lblArticolo"></span>
</td><td>
<span id="UcEditGridCarico_DG1__ctl9_lblMagazzino"></span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl9:txtQuantita" type="text" id="UcEditGridCarico_DG1__ctl9_txtQuantita" class="dgdefault" style="width:80px;" />
</td><td align="Center">
<span id="UcEditGridCarico_DG1__ctl9_lblUM"></span>
</td><td align="Right">
<input name="UcEditGridCarico:DG1:_ctl9:txtValore" type="text" id="UcEditGridCarico_DG1__ctl9_txtValore" class="dgdefault" style="width:100px;" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl9:btnEdit" id="UcEditGridCarico_DG1__ctl9_btnEdit" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/modifica.gif" alt="" border="0" />
</td><td>
<input type="image" name="UcEditGridCarico:DG1:_ctl9:btnDelete" id="UcEditGridCarico_DG1__ctl9_btnDelete" onclick="SaveObjID(this.id)" src="/erpcasillo/img/icone/elimina2.gif" alt="" border="0" />
</td>
</tr>
</table>
</DIV>
</TD>
<TD width="5"></TD>
</TR>
</TABLE>

</div></TD>
</TR>
</TABLE>
</td>
</tr>
<tr>
<td vAlign="middle" height="50" align="center"><input type="image" name="btnSalva" id="btnSalva" tabindex="6" src="/erpcasillo/img/bottoni/salva.gif" alt="" border="0" /><input type="image" name="btnAnnulla" id="btnAnnulla" tabindex="7" src="/erpcasillo/img/bottoni/annulla.gif" alt="" border="0" /></td>
</tr>
</table>
</TD>
<TD width="5"></TD>
</TR>
</TABLE>
<input name="ObjectId" id="ObjectId" type="hidden" />
</form>
</body>
</HTML>
 
right firstly I've done a search in your code and cannot find where you have &quot;ObjectId&quot; defined anywhere, so it seems I don't have all the code?



&quot;In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top