Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Handling a select case on a web form

Reply
Thread Tools

Handling a select case on a web form

 
 
William Gower
Guest
Posts: n/a
 
      04-28-2004
I have a form where I display a textbox depending on a value in a field. In
the asp verision I did a Select Case and depending on whether the field
concerned was a 1, 2 or 3, I display different labels and textboxes. How do
I handle this in asp.net?


 
Reply With Quote
 
 
 
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      04-28-2004
You could do it pretty much the same way. Something like this:

Select Case MyVar
Case 1
TextBox1.Visible=True
TextBox2.Visible=False
Case 2
TextBox1.Visible=False
TextBox2.Visible=True
End Select

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"William Gower" <> wrote in message
news:...
> I have a form where I display a textbox depending on a value in a field.

In
> the asp verision I did a Select Case and depending on whether the field
> concerned was a 1, 2 or 3, I display different labels and textboxes. How

do
> I handle this in asp.net?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"//form[...]//input | //form[...]//select" or can I combine them? yawnmoth XML 2 08-18-2008 09:04 PM
Dim inside Select case executes in any case? aa ASP General 14 04-24-2007 06:24 AM
"Case 1 To 5" in Select case, giving Error!!. Why? Lakshmi Narayanan.R ASP General 10 03-04-2005 01:13 AM
how to case select with case-insensitive string ? Tee ASP .Net 3 06-23-2004 07:40 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57