..:: MX Studio Fóruns ::..: ASP.Net - Como mostrar, esconder, FileUpload - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ASP.Net - Como mostrar, esconder, FileUpload

#1 User is online   xanburzum 

  • Group: Administrador
  • Posts: 2377
  • Joined: 04-November 08

Posted 03 June 2012 - 03:13 PM

	<%@ Page Language="C#" %>  
  	
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  	
	<script runat="server">  
    	protected void Button1_Click(object sender, System.EventArgs e)  
    	{  
        	FileUpload1.Visible = false;  
        	Label1.Text = "FileUpload esta oculto.";  
  	
    	}  
    	protected void Button2_Click(object sender, System.EventArgs e)  
    	{  
        	FileUpload1.Visible = true;  
        	Label1.Text = "FileUpload esta visível.";  
    	}  
	</script>  
  	
	<html xmlns="http://www.w3.org/1999/xhtml">  
	<head id="Head1" runat="server">  
    	<title>Como mostrar, esconder, FileUpload</title>  
	</head>  
	<body>  
    	<form id="form1" runat="server">  
    	<div>  
        	<h2 style="color:Navy; font-style:italic;">FileUpload Example: Show Hide</h2>  
        	<asp:Label   
             	ID="Label1"  
             	runat="server"  
             	ForeColor="DeepPink"  
             	Font-Size="Large"  
             	Font-Bold="true"  
             	Font-Italic="true"  
             	>  
        	</asp:Label>  
        	<br /><br />  
        	<div style="height:150px">  
            	<asp:FileUpload   
                 	ID="FileUpload1"   
                 	runat="server"  
                 	ForeColor="Wheat"  
                 	BackColor="Peru"  
                 	Font-Size="Large"  
                 	/>  
        	</div>  
        	<asp:Button   
             	ID="Button1"   
             	runat="server"  
             	ForeColor="Firebrick"  
             	Text="Ocultar FileUpload"  
             	Height="45"  
             	OnClick="Button1_Click"  
             	Font-Bold="true"  
             	/>  
        	<asp:Button   
             	ID="Button2"   
             	runat="server"  
             	ForeColor="Firebrick"  
             	Text="FileUpload Visível"  
             	Height="45"  
             	OnClick="Button2_Click"  
             	Font-Bold="true"  
             	/>  
    	</div>  
    	</form>  
	</body>  
	</html>  

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


Similar Topics Collapse


Publicidade




2 User(s) are reading this topic
0 membro(s), 2 visitante(s) e 0 membros anônimo(s)