Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: subhankar pandey
  Where is subhankar pandey?
 Kolkata/Delhi
 India
 subhankar pandey
 To: dragon 5
  Where is dragon 5?
 Johor
 Malaysia
 dragon 5
 Tags
Subject: RE: how to call javascript alert aspx wit vb
Thread ID: 310770 Message ID: 310814 # Views: 30 # Ratings: 0
Version: Not Applicable Category: .NET
Date: Saturday, June 25, 2011 10:27:08 AM         
   


> Dear all,
>
> May I know how to call the javascript alert message when we forgot to insert a value into a textbox.
> I was using aspx and vb.
>
> Thanks.
>
> Best reagards,
> dragon 5

Hi
Myself I hv done thru Ajax Control Toolbar
having extender "ValidatorCallOutExtender" inorder to validate textbox

Edited Later: or you can use quite easy process having native built-in jave function i.e. in cmd button for text validation
Public Sub YrCommandButton (Byval sender as object,byval e as System.EventArgs)
if this.yrtextBox.text.length=0
 Dim worthwhile As String = "Pls specify the valu")
            ClientScript.RegisterStartupScript(Me.GetType(), _
            "myalert", "alert('" + worthwhile + "');", True)
            Return
end if
End Sub

more u can get http://msdn.microsoft.com/en-us/library/aa479390.aspx
thanks
Subhankar
If you judge people, you have no time to love them.-Mother Teresa

ENTIRE THREAD

how to call javascript alert aspx wit vb Posted by dragon 5 @ 6/24/2011 8:58:07 AM
RE: how to call javascript alert aspx wit vb Posted by subhankar pandey @ 6/25/2011 10:27:08 AM
RE: how to call javascript alert aspx wit vb Posted by Samir H. @ 6/25/2011 6:38:28 PM