Hi, i used a treeview for Group creation form of accounting work This treeview structure as showns below,in this form i created primary groups are Asset,Liablity,Expences,income ..... also i created under the secondary group Fixed asset under the Primary asset,but one problem is that,double click the secondary then show creating the duplicate data again and again........... how can we avoid this,please help me.....(double click is the problem) i used one click in fixed asset it shows the corrosponding data on textboxes it works properly....please help me -- treeview--- Groups -- + Assets (primary) ? fixed asset (secondary) ? fixed asset ? fixed asset + Liabilities (primary) + Expenses (primary) + Incomes (primary) + Bank (primary) + Purchase (primary) + Sundry Debtors (primary) + Sundry Creditors (primary)
roshid
Posts
-
treeview problems -
spacebar problem for insertionobjCity.pvar_City_Name = this.txtCityName.Text.Trim().ToUpper(); objCity.pvar_City_Code = this.txtCityCode.Text.Trim().ToUpper(); i used this code, i cannot get again insert duplicate data
-
spacebar problem for insertionhai, i am using two textboxes for entering countrycode,country name, entering some datas,i checked the existancy in database,In button click existancy checking is ok but one problem is we use the spacebar first then inserting the duplicate data(using c#,asp.net) for Ex: suppose we insert the data india,ind12 using textboxes after that we connot this insertion here spacebar using infront of the insertion india, ind12 again inserting the duplicate data? how can we avoide this? help me
-
path of imagebutton in javascript [modified]Hai, i used an file upload and image button in my aspx page, i give two image paths for save and update(\images\save.gif and \images\update.gif) , i want the checkin in javascript path of image button is \images\save.gif then one alert otherwise another? how please help me?(asp.net,c#),first i used the button for save and update,at that time in javasript i used the code is if(document.getelementbyid("ct100..._btnave").value=0) { if(document.getelementbyid("ct100..._fileimage").value.length==0) { alert("icon field cant be empty") } } at that time,working is correct after that i changed button to image button? text property is not in image button,but i ysed two image url for save and update?how to writ this code image button instead of button?
modified on Thursday, March 5, 2009 10:50 PM
-
javascriptHai , I am using checkboxes in a header templates and some checkboxes in item templates,if chkHeader is checked then all the chkitem are checked.code behind is used for this, these check boxes and one btndelete button is used for deletion,i want two javascript alert for this delete button,delete button is outside of the grid , if any check box is not selected then i want to dispaly th e java scrip alert "please choose an item" otherwise i f any one checkbox is checked and click the delete button then i want to display "are u want to delete this item",please help me(asp.net, c#,ajax,javascript)
-
two difference javascript alert using check boxes and delete buttonHai sir, I am using checkboxes in a header templates and some checkboxes in item templates,if chkHeader is checked then all the chkitem are checked.code behind is used for this, these check boxes and one btndelete button is used for deletion,i want two javascript alert for this delete button,delete button is outside of the grid , if any check box is selected then i want to dispaly th e java scrip alert "please choose an item" otherwise i f any one checkbox is checked and click the delete button then i want to display "are u want to delete this item" ,I cannot get the proper clientId for checkboxes,please help me(asp.net, c#,ajax,javascript)
-
delete row from the datagrid using checkboxplease give the code and methods
-
delete row from the datagrid using checkboxhai all, i want to delete the rows using checkbox and delete button in a datagrid,if i checked one row at that row will delete? asp.net and C#,please help me
-
display image to datalistI used this code for datalist page load-frmCheck.aspx clsSqlHelp objHelp = new clsSqlHelp(); clsBllChek objBllCheck = new clsBllChek(); string imggrabFlag = "PF"; protected void Page_Load(object sender, EventArgs e) { objBllCheck.comboFill(cmbProduct); //objBllCheck.DataListFill(dlProduct); DatalistFill(); } protected void btnSearch_Click(object sender, EventArgs e) { } public void DatalistFill() { objHelp.openConnection(); DataSet objDs = new DataSet(); SqlDataAdapter objDa; string strSql; //strSql = "select imgId,imgData,imgTitle from checktabl"; strSql = "select prd_id,name,logo,logo_Length from Edms_Product_Mstr"; objDa = new SqlDataAdapter(strSql, objHelp.dbCon); objDa.Fill(objDs); objDs.Tables[0].Columns.Add("imgFile"); foreach (DataRow dt in objDs.Tables[0].Rows) { dt["imgFile"] = ("imgGrab.aspx?id=" + dt["prd_id"] + "&flag=" + imggrabFlag); int idc = Convert.ToInt32(dt["prd_id"]); } dlProduct.DataSource = objDs; dlProduct.DataBind(); objHelp.dbCon.Close(); } public string FormatURL(object strArgument) { int id = Convert.ToInt32(strArgument.ToString()); //return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString())); return ("imgGrab.aspx?id=" + Convert.ToInt32(strArgument.ToString()) + "&flag=" + imggrabFlag); } 2 also i used an another page imgGrab and write the code below protected void Page_Load(object sender, EventArgs e) { objHelp.openConnection(); int id = Convert.ToInt32(Request.QueryString["id"]); DataSet ds = new DataSet(); SqlDataAdapter da; byte[] arrContent; DataRow dr; string strSql=""; if (Request.QueryString["flag"].ToString() == "PF") { strSql = "Select * from edms_product_mstr Where prd_id='" + Request.QueryString["id"] + "'"; da = new SqlDataAdapter(strSql, objHelp.dbCon); da.Fill(ds); dr = ds.Tables[0].Rows[0]; arrContent = (byte[])ds.Tables[0].Rows[0][9]; string conType = ds.Tables[0].Rows[0][13].ToString(); Response.ContentType = conType; Response.OutputStream.Write(arrContent, 0, int.Parse(ds.Tables[0].Rows[0][11].ToString())); Response.End(); }
-
display image to datalisti am a beginner of asp.net2.0 and c#,i am storing an image(binary data)in a sql server 2005 db table,i want to display image to datalist please help me