2012-04-16 4 views
0

ASPXの新しいです、私はコードを開発する際に問題があります。下記を参照してください。どうすれば削除ボタンの横にテキストボックスを設定できますか?どのようにJavaScriptを使用してテキストボックスを挿入することができます

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 & "") & ";};"" />" 
+0

あなたは、これは、サーバ、またはクライアント側にポストバックで発生したいですか? – mellamokb

+0

ポストバック時、ありがとうございました –

+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()/>" 
+0

上記の答えに別の質問があります。上記のテキストボックスid = "" txtExperimentalStressdays ""の可視性条件を設定する方法。 testdata = 'Yes' then txtExperimentalStressdays.visible = true else上記のコードが私にこのようなタスクをさせることを許可していない場合は、終了します。 –

+0

上記のコードに直面する2番目の質問は次のとおりです。txtExperimentalStressdaysデータの有効性を数値で確認する方法はありますか?助けてください –

関連する問題