Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a dynamically created HTMLInputText HTMLControl.

I have some javascript I want to call

<script language="javascript">
<!--
function gohere(){
	if (document.getElementById('Text1').value == 'L')
	{document.getElementById('Select1').style.display = 'none'}									
	else
	{document.getElementById('Select1').style.display = ''}
}
//-->
</script>

The code for creating the HTMLInputText control is this

tbcCell = New TableCell
Dim txtMarkBox As New HtmlInputText
txtMarkBox.ID = "HTMLMark" & i.ToString
txtMarkBox.EnableViewState = True
txtMarkBox.MaxLength = 1
tbcCell.Controls.Add(txtMarkBox)
tbrRow.Cells.Add(tbcCell)

 

How do I tell the HTMLInputText control to call the javascrtipt on the onblur event?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...