Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in page load event i have this statement
C#
{
 Master.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "treeview('" + strAc + "','" + strAccountMaster + "','" + tvMain.Nodes[0] + "','" + comid + "');", true);

}
public void Fill_ACC(string ACC_PARENT, string ACN_PARANTVALUE,TreeNode Node, string comp_id)
 {

}

the code behind method Fill_ACC() calling from .aspx page using Ajax dll
JavaScript
function treeview(strAc,strAccountMaster,strNodes,comid)
{

alert(MIS_frmaccountmapping.Fill_ACC(strAc,strAccountMaster,strNodes,comid);

}


then gives me javascript error treeview definition not defind on .aspx page
Posted
Updated 4-May-12 19:31pm
v2

1 solution

Try: MSDN: ClientScriptManager.RegisterClientScriptBlock Method[^]

The RegisterClientScriptBlock method adds a script block to the top of the rendered page. May be the loading script might be the reason. Without looking at code and troubleshooting, it would be difficult to think of other reason.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900