Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with datagrid in javascript
Message
De
29/08/2005 07:53:58
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Problem with datagrid in javascript
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01044730
Message ID:
01044730
Vues:
60
I face a problem with the datagrid.As i click a row on a datagrid,a form has to popup with the details shown corresponding to the row.I use a function in Javascript to popup the form.But the system hangs as i click the grid.
The following code is used in the code-behind file:
e.Item.Attributes.Add("onclick", "javascript:openeditrecibospage(" & pt_no & "," & ent_no & ",'" & amid & "','" & amdesc & "','" & consul_date & "','" & time_allocated & "'," & docid & ",'" & paymentMode & "', " & companyId & ")")

The following is used in inline:
function openeditrecibospage(pno,mno,amid,amdesc,cdate,timeallocated,docid,paymentMode,companyId)
{
try {
var pt_no,med_no,am_codigo,am_desc,consul_date,time_alloted,doc_id,company,paymentmode;
pt_no = pno;
med_no = mno;
am_codigo = amid;
am_desc = amdesc;
consul_date = cdate;
time_alloted = timeallocated;
doc_id = docid
paymentmode=paymentMode
company=companyId
//alert("PAT NO:" + pt_no);
//alert("MED NO:" + med_no);
//alert("AMDESC:" + am_desc);
//alert(company);
//alert(paymentmode);
//alert(med_no);
//"RecibosPage2.aspx?pt_no=" + pt_no + "&docid=" + docid + "&date=" + date + "&time=" + time;
//var ls_URL = "editvalor.aspx?pt_no=" + pt_no + "&medno=" + med_no + "&amid=" + am_codigo + "&amdesc=" + am_desc + "&date=" + consul_date + "&time=" + time_alloted + "&docid=" + doc_id ;
var ls_URL = "editvalor.aspx?pt_no=" + pt_no + "&medno=" + med_no + "&amid=" + am_codigo + "&amdesc=" + am_desc + "&date=" + consul_date + "&time=" + time_alloted + "&docid=" + doc_id + "&company=" + company + "&paymentmode=" + paymentmode;
ls_Features = "left=250,Top=190,scrollbars=no,width=700,height=275"
var ls_ReturnValue = window.open(ls_URL, "", ls_Features);
return true;
}
catch (e) {
alert(MSG_ERROR + "\n" + e.description + "\nFunction: openeditrecibospage()");
return false;
}
}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform