Hi all,
I am having a TreeView on a aspx page. its working fine. I have written following code on TreeView1_SelectedNodeChanged.
string strSql = "select a.MemberId,a.FirstName,a.LastName,a.Orgnization,a.City from mtblContacts as a INNER JOIN mtblGrpCon as b ON b.MemberId=a.MemberId and b.id=" + TreeView1.SelectedNode.Value + "";
DataTable dt = new DataTable();
dt = myCls.My_Datatable(strSql);
if (dt.Rows.Count > 0)
{
Dg.DataSource = dt;
Dg.DataBind();
}
first of all I want to add sql parameters to this code. How to do that.
Now its working fine on simple .aspx form but when i use masterpage attached to this page ans also having <asp:UpdatePanel id="UpdatePanel1" runat="server">(using ajax)
then when i click any node or subnode of this treeview, this seems to like there are automatically adding similar nodes to clicked nodes on every click. but in backend from which DB table i bounded this there is no updation regarding nodes adding, means there is no effet to Db table. but on the page on every click it shows like you are adding nodes or subnodes to clicked node.
what the issue i didn't get.
let me know pls..
thanx
never let you down..always be happy...