Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Code Snippets of
vela
public partial class ejemplo : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { lblEjemplo.Text = "El valor de la variable ejemplo es: " + Request.Form["ejemplo"]; } }
Acceso a la información pasada a través de un formulario
Uploaded on
11/24/2008 8:38:29 AM
0 comments
Programming Language:
c#
form
html
post
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Página de ejemplo</title> </head> <body> <form action="ejemplo.aspx" method="post"> Ejemplo: <input id="txtEjemplo" type="text" name="ejemplo" /> <input id="submitEjemplo" type="submit" value="submit" /> </form> </body> </html>
Formulario de ejemplo
Uploaded on
11/24/2008 8:34:53 AM
0 comments
Programming Language:
html
formulario
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void cmdEjemplo_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { this.rellenaCombo(cmbEjemplo, Directory.GetFiles(folderBrowserDialog1.SelectedPath)); } } private void rellenaCombo(ComboBox combo, String[] ficheros) { combo.Items.Clear(); for (int i = 0; i < ficheros.Length; i++) { combo.Items.Add(ficheros[i]); } } } }
Rellenar un combo con los ficheros de un directorio
Uploaded on
11/24/2008 8:19:42 AM
0 comments
Programming Language:
c#
combobox
directorio
fichero
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Página de ejemplo</title> <style> .lista ul { padding-right: 0px; padding-left: 0px; padding-bottom: 0px; padding-top: 0px; margin: 0px; } .lista li { list-style-type: none; display: inline; padding-right: 5px; } </style> </head> <body> <div class="lista"> <ul> <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4</li> </ul> </div> </body> </html>
Lista de ítems en una misma línea
Uploaded on
11/24/2008 8:10:24 AM
0 comments
Programming Language:
html
accesibilidad web
Public Function getTamFile(ByVal path As String) As String Dim fi As New FileInfo(path) If fi.Exists Then If (fi.Length / 1024) > 1024 Then Return Math.Round(((fi.Length / 1024) / 1024), 2).ToString() & " Mb" Else Return Math.Round((fi.Length / 1024), 2).ToString() & " Kb" End If Else Return String.Empty End If End Function
Método para obtener el tamaño de un fichero
Uploaded on
10/10/2008 6:49:43 AM
0 comments
Programming Language:
vb.net
fichero
tamaño
1
2
3
4
...
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com