Click here to Skip to main content
16,017,259 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I take a first textbox of Birtday and use a calenderextender control
and second textbox is a todaydate textbox and it is visible false

i compare birthdate is not less than today
i take a compare validator control AND COMPARE birthdate to txttodaydate textbox
if i do todaydate texbox is visible false valu is not comapre
but i do visible true its comapre succeessfully.



I want to todaydate textxox is visible false

How to do plz help me
Posted

1 solution

Write this on server side code:
C#
todayDate.Attributes.Add("display","none");


See if it works now! (Don't put any visible property, by default it should be visible=true and let it be)
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 27-Jan-11 0:16am    
Visibility-shmisibility... my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900