var row=x.parentNode.parentNode
row.parentNode.removeChild(row)
PopRow(this)
sohighthesky
Posts
-
deleteRow() weird behavior, deletes two rows. -
How can i remove pipe character in string using regex/^\|/ is enough.
-
Request.Querystring "undefined"just: <pre> onclick="Download(document.getElementById('txtFile').value)" </pre>
-
GRIDVIEWyou can write your sql like this: select FullName=FisrtName+LastName from your_tableName if your are using Access Database ,then it should be change: select FisrtName+LastName from your_tableName
-
button onclick method written in javascriptYou can also do like this: YoubtnID.Attributes.Add("onclick","return btnGetDetails()"); Then put the code in Page_Load Event
-
total of columnsYou can just use this sql: select sales1,sales2,sales3,sales4,sales1+sales2+sales3+sales4 as total from customer
-
The same RandomSystem.Text.StringBuilder sql = new System.Text.StringBuilder(); for (int i = 1; i <= 3; i++) { DataTable dt = dao.GetQuestionByType(i).Tables[0]; if (dt != null && dt.Rows.Count > 0) { for (int j = 0; j < 5; j++) { Random rd = new Random(j); sql.AppendFormat("insert into TQ_ExamDetail values({0},{1});",temp,(int)dt.Rows[rd.Next(1,dt.Rows.Count)]["TQ_QuestionID"]); } } } Why is random has the same result? Thank you in advance!
-
Run cmd when clicking on the link.....That impossible ,if you do that in the browser,it may cause many security risks!
-
How to get the keyCode in FireFox?I use event.keyCode to get the keyboard input ,but it cann't work in FireFix, What can i do now? Thank you for your attention!
-
LinkButton cann't work [modified]I don't know why all the LinkButton in my C#.net website cann't work, It means that if i clicked the button just like i have nothing to do with it. Can someone help me?waiting online the browser has not any problem. Now i know what cause this problem,but i don't know how to solve. my website reference a outside javascript file,the file content is:
// JScript 文件
var imgObj;
function showImage(imgsrc)
{
if(imgObj!=null) {
document.body.removeChild(imgObj);
}
imgObj=document.createElement("div");//消息层
imgObj.setAttribute("id","imgDiv");
imgObj.setAttribute("align","center");
imgObj.style.border="0";
imgObj.style.position="absolute";
var X=event.x;
if(X<=screen.width*41/100)
X=X+100;
else if(X>=screen.width*59/100)
X=X-200-350;
else
X=screen.width*59/100;
imgObj.style.left=X;
imgObj.style.top="30%";
imgObj.style.marginTop=-75+document.documentElement.scrollTop+"px";
imgObj.style.zIndex="1000";
imgObj.innerHTML="<img src='"+imgsrc+"' onerror='return true' height=400 width=350 />";
document.body.appendChild(imgObj);
}
function hideImage()
{
document.body.removeChild(imgObj);
imgObj=null;
}this script is to show the bigger image onmouseover,but i don't know why it can cause this problem.
modified on Saturday, March 14, 2009 10:05 PM
-
Can not submit to the server. [modified]I don't know why all the LinkButton in my C#.net website cann't work, It means that if i clicked the button just like i have nothing to do with it. Can someone help me?waiting online the browser has not any problem.
modified on Saturday, March 14, 2009 12:09 PM
-
Microsoft.VisualBasic missing namespaceProject-Add Reference- in the .Net Option Find Micorsoft.VisualBasic and Add it to the Reference you will find you can using the namespace now;
-
Save and Delete DataI'm not sure if you can use Ajax and onunload enent
-
How to get the .exe file run after coying from a location to another locationYour can use your code to start it: System.Diagnostics.Process.Start(anotherlocation+filename);
-
problem with datagridI do not really understand what your mean, I suggest if you can like this: td.TrueValueChanged += new EventHandler(td_TrueValueChanged);
-
Invoking external application?My english is poor,so if i misunderstood your question please do not make fun of me. System.Diagnostics.Process.Start(String filePath); the parameter filePath you can read form the regedit;