如何使用Javascript插入文本框

时间:2012-04-16 16:58:20

标签: javascript asp.net textbox

ASPX的新功能,我在开发代码时遇到了问题。请看下面。如何在删除按钮旁边设置文本框?

testTypeNode.Text = testTypeNode.Text & "" & _
                    " <img src=""../images/delete_16x.ico""" & _
                    " style=""text-align:bottom; cursor:pointer;"" alt=""Delete TestType""" & _
                    " title=""Delete TestType"" onclick=""javascript:if(confirm('`enter code here`Are you sure you want to delete? Any running tests will be aborted!'))" & _
                    " {" & ClientScript.GetPostBackEventReference(btnDeleteTestType, "" & sequenceNode.Value.ToString & _
                    WordSeparationChar & testTypeNode.Value.ToString & "") & ";};"" />"

1 个答案:

答案 0 :(得分:0)

答案是:

testTypeNode.Text = testTypeNode.Text & "" & _
                                                            " <img src=""../images/delete_16x.ico""" & _
                                                            " style=""text-align:bottom; cursor:pointer;"" alt=""Delete TestType""" & _
                                                            " title=""Delete TestType"" onclick=""javascript:if(confirm('Are you sure you want to delete? Any running tests will be aborted!'))" & _
                                                            " {" & ClientScript.GetPostBackEventReference(btnDeleteTestType, "" & sequenceNode.Value.ToString & _
                                                            WordSeparationChar & testTypeNode.Value.ToString & "") & ";};"" />" & _
                                                            " <input type = ""text"" id = ""txtExperimentalStressdays"" name =""ExperimentalStressdays"" size = ""5"" title=""Please enter the Experimental Stressdays"" onclick="javascript:IsNumeric()/>"