J
Jeff
I am new to VB.net 2005 in visual web developer, and even newer to
Javascript.
I need a java alert box that contains text that eventually will come from an
sql table.
The alert box should activate when the user clicks on text or a button (or
something similar).
The test code below will do most of what I need (I didn't include the code
to retrive from the table for simplicity).
Since I don't know much java, I'm attempting to do as much of this as easily
as possible in an aspx.vb codebehind file rather than attempting to figure
out how to directly embed the java on the page.
The only problem is that I don't want the Button to post back, and asp
button postbacks can't seem to be disabled.
What is the easy alternative? An HTML button apparently requires me to use
code with which I'm not yet familiar to alter the alter text. Is there some
other way to do what I want?
Dim a As String = "testing popup"
Dim code As New StringBuilder
code.Append("alert('")
code.Append(a)
code.Append("')")
BtnInfo.OnClientClick = (code.ToString)
Thanks in advance
Jeff
Javascript.
I need a java alert box that contains text that eventually will come from an
sql table.
The alert box should activate when the user clicks on text or a button (or
something similar).
The test code below will do most of what I need (I didn't include the code
to retrive from the table for simplicity).
Since I don't know much java, I'm attempting to do as much of this as easily
as possible in an aspx.vb codebehind file rather than attempting to figure
out how to directly embed the java on the page.
The only problem is that I don't want the Button to post back, and asp
button postbacks can't seem to be disabled.
What is the easy alternative? An HTML button apparently requires me to use
code with which I'm not yet familiar to alter the alter text. Is there some
other way to do what I want?
Dim a As String = "testing popup"
Dim code As New StringBuilder
code.Append("alert('")
code.Append(a)
code.Append("')")
BtnInfo.OnClientClick = (code.ToString)
Thanks in advance
Jeff