Javascript警报消息问题 [英] Javascript alert message problem
问题描述
您好。
我正在使用VS.NET 2003,VB,.NET开发和测试Web应用程序
Framework 1.1.4322, WIN XP Pro,SP2上的ASP.NET 1.1.4322和IIS5.1
计算机。我正在使用网络表单。
使用这行代码很有用。它会显示一个小消息框,其中包含
的警告消息。
Me.btnGetArchivedTrips.Attributes.Add(" onMouseOver"," alert) (''鼠标悬停'')")
但是如何让它显示警报信息而不用鼠标滑过,
只是尝试将它放入if语句中?
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate那么
alert(''mouse over'')" )
结束如果
谢谢,
Tony
" Tony Girgenti" < tony(nospam)@ lakesideos.com在留言中写道
news:uk ************** @ TK2MSFTNGP06.phx.gbl ...
使用这行代码非常有用。它显示一个小消息框
,其中包含警报消息。
Me.btnGetArchivedTrips.Attributes.Add(" onMouseOver"," alert) (''鼠标
over'')")
但是如何让它在不用鼠标的情况下显示警告信息
结束,只是试着将它放入if语句?
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate那么
alert(' '鼠标悬停'')")
结束如果
呃......你试过吗
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate)那么
Me.btnGetArchivedTrips.Attributes.Add(" onMouseOver"," alert(''mouse
over'')")
结束如果
Hello Mark。
我我想我没有正确解释我的问题。在if语句中,我只想要警报部分。换句话说,如果startdate / enddate比较
为真,我想要弹出一条指示问题的小消息。喜欢
日期不正确。
感谢您的回复。
Tony
" Mark Rae" < ma ** @ markNOSPAMrae.com写信息
新闻:e6 ************** @ TK2MSFTNGP05.phx.gbl ...
< blockquote class =post_quotes>
" Tony Girgenti" < tony(nospam)@ lakesideos.com在留言中写道
news:uk ************** @ TK2MSFTNGP06.phx.gbl ...
>使用这行代码效果很好。它会显示一个带有警告信息的消息框。
Me.btnGetArchivedTrips.Attributes.Add(" onMouseOve r",alert(''mouse
结束'')")
但是如何让它显示警报信息而不用鼠标过来,只是试着将它放入if语句中?
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate)那么
警告(''鼠标悬停'')")
结束如果
呃......你试过吗
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate那么
Me.btnGetArchivedTrips.Attributes.Add(" ; onMouseOver"," alert(''鼠标
over'')")
结束如果
如果我对vb足够了解:
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate那么
Page.ClientScript.RegisterClientScriptBlock(me.Get Type()," alert"," alert(''鼠标
over'');",true)
结束如果
- 布鲁斯(sqlwork.com)
" Tony Girgenti" < tony(nospam)@ lakesideos.com写信息
news:uk ************** @ TK2MSFTNGP06.phx.gbl ...
您好。
我正在使用VS.NET 2003,VB,.NET开发和测试Web应用程序
WIN XP专业版SP2上的框架1.1.4322,ASP.NET 1.1.4322和IIS5.1
计算机。我正在使用网络表单。
使用这行代码很有用。它显示一个小消息框
,其中包含警报消息。
Me.btnGetArchivedTrips.Attributes.Add(" onMouseOver"," alert) (''鼠标
over'')")
但是如何让它在不用鼠标的情况下显示警告信息
结束,只是试着将它放入if语句?
如果Calendar1.SelectedDate Me.Calendar2.SelectedDate那么
alert(' '鼠标悬停'')")
结束如果
谢谢,
Tony
Hello.
I''m developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I''m using a web form.
Using this line of code works great. It displays a little message box with
the alert message in it.
Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert(''mouse over'')")
But how do i get it to display the alert message without doing a mouse over,
just trying to put it into an if statement ?
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
alert(''mouse over'')")
End If
Thanks,
Tony
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uk**************@TK2MSFTNGP06.phx.gbl...
Using this line of code works great. It displays a little message box
with the alert message in it.
Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert(''mouse
over'')")
But how do i get it to display the alert message without doing a mouse
over, just trying to put it into an if statement ?
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
alert(''mouse over'')")
End IfEr...have you tried
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert(''mouse
over'')")
End If
Hello Mark.
I guess i didn''t explain my problem correctly. Within the if statement, i
just want the alert part. In other words if the startdate/enddate compare
is true, i want a little message to pop up that indicates the problem. Like
"Dates are incorrect".
Thanks for your reply.
Tony
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:e6**************@TK2MSFTNGP05.phx.gbl..."Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uk**************@TK2MSFTNGP06.phx.gbl...
>Using this line of code works great. It displays a little message box
with the alert message in it.
Me.btnGetArchivedTrips.Attributes.Add("onMouseOve r", "alert(''mouse
over'')")
But how do i get it to display the alert message without doing a mouse
over, just trying to put it into an if statement ?
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
alert(''mouse over'')")
End If
Er...have you tried
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert(''mouse
over'')")
End If
if i know vb well enough:
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
Page.ClientScript.RegisterClientScriptBlock(me.Get Type(),"alert","alert(''mouse
over'');",true)
End If
-- bruce (sqlwork.com)
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uk**************@TK2MSFTNGP06.phx.gbl...Hello.
I''m developing and testing a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2
computer. I''m using a web form.
Using this line of code works great. It displays a little message box
with the alert message in it.
Me.btnGetArchivedTrips.Attributes.Add("onMouseOver ", "alert(''mouse
over'')")
But how do i get it to display the alert message without doing a mouse
over, just trying to put it into an if statement ?
If Calendar1.SelectedDate Me.Calendar2.SelectedDate) Then
alert(''mouse over'')")
End If
Thanks,
Tony
这篇关于Javascript警报消息问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!