Avatar of Devildib
Devildib

asked on 

hide show div element in asp.net

Hi Experts,

I have a div element and a button in asp.net content page.
On button click I want to collapse(hide) and expand(show) the div.
The text should change automatically on the button.
Also, there are 3-4 textboxes within the div, on which if some server validation happens(say empty not allowed) , control focus should move to that textbox and the div should expand automatically. Normally validation happens but the div remains in collapsed state.

Please help on this.
ASP.NETJScriptjQuery

Avatar of undefined
Last Comment
Russ Suter
ASKER CERTIFIED SOLUTION
Avatar of Russ Suter
Russ Suter

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Devildib
Devildib

ASKER

if some code behind validation fails on a textbox and we set focus to that very textbox, within the div, does the div automatically expand in that case?
SOLUTION
Avatar of Russ Suter
Russ Suter

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASP.NET
ASP.NET

The successor to Active Server Pages, ASP.NET websites utilize the .NET framework to produce dynamic, data and content-driven web applications and services. ASP.NET code can be written using any .NET supported language. As of 2009, ASP.NET can also apply the Model-View-Controller (MVC) pattern to web applications

128K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo