JScript for the .NET Framework


Show/Hide Custom Web Control W/JScript


I have not had much luck & was hoping that someone out here might have figured this out already.  I'm trying to show/hide a Custom Web Control on a web form using JScript.
I've tried document.FormName("UserControl1").style.visibility = 'visible' but not luck...
 
Hi Steve,
When you are inheriting any HTML controls in your Custom control class, then its possible to set the visibility property, using getElementById property of the document. The code given below might help you.
<script> function ShowHide() {  document.getElementById("WebCustomControl11").style.visibility="hidden";    }</script>
<INPUT type="button" value="Button" onclick="ShowHide();"><cc1:WebCustomControl1 id="WebCustomControl11" runat="server"></cc1:WebCustomControl1> 
 

Related Links

InfoPath JScript - Loop through repeating elements in a Data Source programmatically
jquery intellesnese
To display a Yes/No dialog box after reading a file !!
Is there a VBScript for .NET?
Microsoft.JScript.Vsa.VsaEngine
HOWTO set a AJAX:TabContainer's height in javascript at run time.
Consume Web Service with Transport Layer Security (HTTPS) from JavaScript
Multi-threading in javascript
Click handler on popup does not run properly in a .NET environment
How to update ASP.NET image control periodically?
Format date before SQL Query execution
Alert window in aspx page.
Class doesn't support automation - or - how to install WS 5.7 on an XP SP3
how to do validation in cshtml (MVC)
How to implement IObjectSafety programmatically in JScript.NET
Reports and Graphs - JQuery

Categories

MSDN
Using Forums
Windows Phone Development
Windows Phone Dev Center
Visual FoxPro
Data Platform Development
Data Platform Developm...
Feedback and Discussions
Development
Project Server
Expression
Other Forums
Archived Forums E-H
Archived Forums I-L
OneDrive Development
Visual C#
Visual Studio Integrate
Test Tools in Visual S...
Application Insights (AI)
Windows App Studio Beta
Developing Windows Des...
Microsoft Message Queu...
Windows Hardware WDK a...
Developing Apps for Sh...
SharePoint 2013 - Usin...
SharePoint Legacy Vers...
Pricing & Billing
Azure Networking (DNS,...
Azure Search
Azure CDN
Azure Key Vault
Azure Stream Analytics
Azure Stack
Windows Presentation F...
Team Foundation Server...
Team Foundation Server...
JScript Native
Partnering with Microsoft
Training and Certifica...
SyncFx - General [Read...
Microsoft Robotics - C...
Microsoft Robotics - S...
Microsoft Robotics - V...
Microsoft Robotics - H...
.NET Compact Framework
SQL Server Tools
SQL Server XML
SQL Server Replication
SQL Server Search
SQL Server Migration
SQL Server Data Qualit...
Windows Embedded Compa...
SQL Server 2012 Analys...
SQL Server 2012 Master...
Server Virtualization
Windows Live General: ...
Windows Live  Spaces: ...
Bing Maps: Map Control...
CRM
MSDN Magazine
Known Issues for Windo...
Project Server General...
Bing Ads API: Development
Programming Silverligh...
Programming Silverligh...
Visual Studio & Silver...
Performance Profiling ...
Designing with Silverl...
Windows Performance To...
Surface Application De...
Project Standard and P...
Architecture, Tools, a...
Casablanca
Commerce Server 2002 a...
Getting Started With V...
HD DVD Interactivity A...
Hobbyist Zone
Innovate on Office
ISV Community Days
JScript for the .NET F...
Moderator Posting Only...
Office Live Small Busi...
Search Server: Frequen...
Search, Organize, and ...
SQL Server Modeling
SQL Server 2014 Integr...
Visual Basic for Appli...
Visual C++ Express 200...
Visual C++ IDE
Visual Studio Team Sys...
Visual Studio Tools fo...
Visual Studio WPF/SL D...
Visual Studio Online "...
Windows SideShow Devel...
OneDrive Development (...
.NET Native Preview
Microsoft Partner Cent...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile