Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Way to hide it

Posted on 2017-08-22
5
Medium Priority
?
52 Views
Last Modified: 2017-08-22
Hi,
I want to change visibility of relevant button (like to hide it), per given relevant values on the page. How?

<input type="button" id="butt_p4" onclick="openPopup4();" style="height:23px; width:97px; visibility:visible" value="删除照片" runat="server" />

Open in new window

0
Comment
Question by:HuaMinChen
  • 2
  • 2
5 Comments
 
LVL 61

Expert Comment

by:HainKurt
ID: 42265794
try

visibility:visible

Open in new window


>>>

display:none

Open in new window

0
 
LVL 11

Author Comment

by:HuaMinChen
ID: 42265807
Yes, how to adjust it in the code behind?
0
 
LVL 54

Expert Comment

by:Ryan Chong
ID: 42265830
I want to change visibility of relevant button (like to hide it), per given relevant values on the page. How?
since the button is runat=server

you can consider to hide it by either front end via javascript OR back end via your .NET programming.
it's up to your workflow and method of handling it.
0
 
LVL 11

Author Comment

by:HuaMinChen
ID: 42265832
you can consider to hide it by either front end via javascript OR back end via your .NET programming.

Can I have more details to this?
0
 
LVL 54

Accepted Solution

by:
Ryan Chong earned 2000 total points
ID: 42265835
to hide a control that runat=server, you can consider to adjust its Visible property.

like in your code behind, try:
if (yourLogic) {
yourControl.Visible = true; //or false
} 

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question