#1
|
||||
|
||||
Visual Basic help
what's up everyone, im taking this ASP.net class and have a project due tonight, well im done with the project, however there's an additional step for 1 more point(bonus step). Basically i need to validate the user's input for txtAge.Text which has to be numeric, that part is BV and i kinda forgot about it, it's been 2 years since I took that class, anyway here's what I have:
Ps. I know I need to use the IsNumeric function, but i just don't know how to set up the code. Partial Class _Default Inherits System.Web.UI.Page Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnClick.Click If txtAge.Text < 21 Then lblResults.Text = txtName.Text & ", you are a youngster!" End If If txtAge.Text >= 21 And txtAge.Text < 40 Then lblResults.Text = txtName.Text & ", you are an adult." End If If txtAge.Text >= 40 Then lblResults.Text = txtName.Text & ", you are over the hill!" End If End Sub End Class --------- New Post Merged on 2/3/2009 at 11:32:53 -------- Nevermind!!!!!!!!! i made it work.......wohooooooooo!!!!:yahoo: Last edited by fanaticny; 03-02-2009 at 12:32 PM. Reason: Automerged Doublepost |
The Following User Says Thank You to fanaticny For This Useful Post: | ||
D/\SH (03-02-2009)
|
#2
|
Re: Visual Basic help
Hi great you got it to work i am closing this thread
grtz weesje moderator@Wckediden |
Tags |
basic, visual |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Microsoft Visual Basic 6 Professional Edition | DJ SKiTTLeZ | Recycle Bin | 4 | 07-08-2006 06:53 PM |
Visual Basic Ver. 9.0 | Venton | Recycle Bin | 0 | 02-10-2006 02:18 PM |
Microsoft Visual Basic 6.0 Enterprise Edition {DOWNLOAD} | killerxmurda | Recycle Bin | 5 | 12-14-2005 08:13 PM |