If you want to do this client-side (that is, with no postback),
you can take this approach:

1) Put your textbox in place with style="visibility:hidden;" (or
display:none if you prefer).

2) On the server side, add the following attribute to your DDL (assuming
VB.NET):

myDDL.Attributes.Add("onchange", "document.getElementById('" & _
 myTextBox.ClientID & "').style.visibility='visible';")

(or style.display='inline' if you used display on the textbox above).

Cheers,

Peter

-----Original Message-----
From: [email protected] On Behalf Of Mark E

!) Put your textbox in a panel and set the visibility to false when the
page loads.
 
2) Have you ddl postback when the user makes a selection.  If their
selection equals "Other", show the panel that holds your textbox.
 
Mark

sas0riza <[EMAIL PROTECTED]> wrote:
Hi,

Does anyone know how?

Like I have a DDL and the last item is "Other." If the user 
selects "Other," I want a textbox to appear beside it so that the user 
can enter something in the textbox. The textbox will only show up 
if "Other" is selected.

Thanks!





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to