Retroceder   Foros del Web > Programación para sitios web > .NET

Respuesta
 
Herramientas Desplegado
Antiguo 16-ago-2004, 18:05   #31 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Web App
Pregunta: No trabaja el Debug con mis páginas ASP.Net. Que puedo hacer..?
Respuesta:

http://www.gotdotnet.com/team/csharp...erproblems.doc
RootK está desconectado   Responder Citando
Antiguo 25-ago-2004, 12:22   #32 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: General
Pregunta: Cuales son las principales diferencias entre C# y VB.net ?
Respuesta:
Buscas diferencias entre c# y VB.NET ?
RootK está desconectado   Responder Citando
Antiguo 07-sep-2004, 17:56   #33 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Windows Forms
Pregunta: Mas que pregunta es un site que contiene muchas FAQ´s acerca de windows forms (vale la pena darse una vuelta)
Respuesta:
http://www.syncfusion.com/FAQ/WinForms/default.asp
RootK está desconectado   Responder Citando
Antiguo 08-sep-2004, 13:01   #34 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Tips and Tricks
Pregunta: Como cambiar los colores de una imágen de manera dinámica:
Respuesta:
Info:Cambiar colores de una Imágen
__________________
Nadie roba nada ya que en la vida todo se paga . . .
RootK está desconectado   Responder Citando
Antiguo 22-sep-2004, 09:59   #35 (permalink)
jose_d está en el buen camino
 
Avatar de jose_d
 
Fecha de Ingreso: enero-2003
Ubicación: Cali
Mensajes: 192
Enviar un mensaje por MSN a jose_d
Alegría

Tema: Web App
Pregunta: Como mantener el Scroll en gridlayout Panel:
Respuesta:
Retener Scroll en girdlayout
__________________
El leer te da el poder de mejorar
jose_d está desconectado   Responder Citando
Antiguo 28-sep-2004, 15:11   #36 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Windows Forms
Pregunta: Como llenar un combobox con un datareader (usando el clásico do while ) ?
Respuesta:
Llenar un ComboBox con un DataReader

Última edición por RootK; 28-sep-2004 a las 16:51.
RootK está desconectado   Responder Citando
Antiguo 14-oct-2004, 15:17   #37 (permalink)
SunDarK ha deshabilitado el karma
 
Avatar de SunDarK
 
Fecha de Ingreso: diciembre-2003
Ubicación: Sanlucar de Barrameda
Mensajes: 1.116
Tema: VS.NET
Pregunta: He instalado Windows XP SP2 en mi PC y ahora no consigo instalar las Extensiones de Front Page para poder instalar VS.NET
Respuesta: Para que no te el error de que no se puede configurar las extensiones de front page tienes que desactivar el FireWall que te trae el Windows XP SP2 por defecto(se recomienda tener un firewall alternativo instalado como el Zone Alarm o el Panda Platinum). Una vez desactivado ya podras instalar las extensiones de front page. Una vez instaladas se recomienda volver a activar el Firewall de Windows
__________________
¿Quién será el tal General Failure y por qué estará leyendo el disco duro?
SunDarK está desconectado   Responder Citando
Antiguo 26-oct-2004, 05:32   #38 (permalink)
chcma está en el buen camino
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 1.856
Tema: Archivo de Configuración
Pregunta: ¿Como puedo modificar un .exe.config y leerlo?
Respuesta:

http://www.codeproject.com/Purgatory/bfackrellConfg.asp

Cambiando el constructor, para pasarle el path del directorio donde esté el .exe.config ya lo tendremos resuelto.
__________________
Charlie.
chcma está desconectado   Responder Citando
Antiguo 26-oct-2004, 08:10   #39 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Web App
Pregunta: Como cambiar el idioma de mi página y/o de todo mi proyecto:
Respuesta:
se pierde el decimal al hacer un postback
RootK está desconectado   Responder Citando
Antiguo 26-oct-2004, 17:38   #40 (permalink)
xromeo está en el buen camino
 
Avatar de xromeo
 
Fecha de Ingreso: septiembre-2004
Ubicación: BOLIVIA
Mensajes: 54
Tema: Web App
Pregunta: Crystal Report con Stored Procedures
Respuesta:

Crystal Reports Stored Procedures
Prametros
__________________
:cool: No voy a dejar de hablarle sólo porque no me esté escuchando. Me gusta escucharme a mí mismo. Es uno de mis mayores placeres. A menudo mantengo largas conversaciones conmigo mismo, y soy tan inteligente que a veces no entiendo ni una palabra de lo que digo.

Oscar Wilde
xromeo está desconectado   Responder Citando
Antiguo 27-oct-2004, 09:00   #41 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Tips and Tricks (Web App)
Pregunta:
Que necesito hacer para que pueda hacer un upload de archivos mayores a 4 megas ?
Respuesta:
Coloca dentro del web.config el siguiente tag:

Cita:
<system.web>
<httpRuntime maxRequestLength="tamaño"
...
... />
</system.web>
</configuration>
Donde tamaño proporcionas una cantidad dada en kilobytes

Ejemplo.

<httpRuntime maxRequestLength="4096" />
RootK está desconectado   Responder Citando
Antiguo 27-oct-2004, 16:03   #42 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Tips and Tricks (web app)
Pregunta: Como hacer para que mi browser acepte browser acepte cookies aun cuando tiene la opcion "No aceptar cookies"
Respuesta:
ASP.NET. Problema con HttpCookie

Para mas información:
http://www.codeproject.com/aspnet/cookieless.asp
RootK está desconectado   Responder Citando
Antiguo 08-nov-2004, 19:34   #43 (permalink)
luiscl está en el buen camino
 
Avatar de luiscl
 
Fecha de Ingreso: abril-2004
Ubicación: Zaragoza
Mensajes: 305
¿Cómo maximiar una ventana en .NET?

Tema: web forms y Javascript
Pregunta: Cómo simular en .NET que maximizamos el form, ya sea con un botón o al cargarlo
Respuesta:


Hola!.

Ya sé que esto va en el foro de javascript, pero estoy seguro que a todos nos ha surgido esta duda en algún momento, así que os adjunto el código que he pillado en otro foro para hacerlo. En realidad no maximiza, pero sí redimensiona todo lo posible, así que el efecto es correcto.

<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript">function maximiza(){
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.avail Height);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.wi ndow.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}


</script>
</head>

<body>
<button onclick=maximiza()>Maximizar</button>
</body>
</html>

Al oprimir el boton la ventana se maximiza. Si deseas que la vntana se maximize al entrar , pon <body onload=maximiza()>
__________________
Pide lo que quieras...y luego paga por ello

Última edición por luiscl; 08-nov-2004 a las 19:42. Razón: Error en la estructura de la FAQ
luiscl está desconectado   Responder Citando
Antiguo 09-nov-2004, 12:20   #44 (permalink)
noah_242 está en el buen camino
 
Fecha de Ingreso: agosto-2004
Mensajes: 234
Tema: windows form
Pregunta: Desarrollar menu principal en una solucion que llame a 2 aplicaciones
Respuesta:

Lo primero que se hace es que al no poder hacer referencia al proyecto2 pues logicamente deberia de insertar dicha referencia,entonces se inserta la referencia pero esta deberia ser en formato dll,asi que se compila el proyecto 2 como biblioteca de clases y se inserta la referencia creada.Luego se va al proyecto1 y en el menu ya se pude hacer referencia al proyecto2 y dentro del proyecto2 pues elegir el form deseado.

Dim form_prueba As New WindowsApplication2.frm_produccion()
form_prueba.MdiParent = Me '''si se esta llamando desde un menu en formato mdi
form_prueba.Show()
noah_242 está desconectado   Responder Citando
Antiguo 12-nov-2004, 10:57   #45 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Tips and tricks (web app)
Pregunta: Como crear un calendario para incluirlo en mis páginas haciendolo con javascript
Respuesta:
Insertar un Calendario en ASPX

Última edición por RootK; 12-nov-2004 a las 15:25.
RootK está desconectado   Responder Citando
Antiguo 16-nov-2004, 10:01   #46 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: General
Pregunta: Cuales son los formatos de fecha ? (para obtener minutos, días, segundos, etc)
Respuesta:
http://authors.aspalliance.com/aspxt...InfoClass.aspx
RootK está desconectado   Responder Citando
Antiguo 16-nov-2004, 10:05   #47 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Web App
Pregunta: Como incluir archivos swf (flash) en mis páginas asp.net
Respuesta:
Animación Flash
RootK está desconectado   Responder Citando
Antiguo 21-dic-2004, 17:12   #48 (permalink)
chcma está en el buen camino
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 1.856
¿Como puedo Leer y Escribir en el AppSettings? (VB y C#)

Bueno, acá os dejo una pequeña clase que he creado:



Imports System
Public Class XMLConfiguracion

Private FicheroConfiguracion As String
Public Sub New(ByVal Fichero As String)
FicheroConfiguracion = Fichero
End Sub

Public Function DevuelveValor(ByVal Llave As String)
Dim FichXml As New Xml.XmlDocument
FichXml.Load(FicheroConfiguracion & ".config")
Dim Child As Xml.XmlNode = FichXml.DocumentElement.SelectSingleNode("/configuration/appSettings/add[@key=""" & Llave & """]")
If Child Is Nothing Then
Return Nothing
Else
Return Child.Attributes("value").Value
End If
End Function

Public Function EstableceValor(ByVal Llave As String, ByVal NuevoValor As String)
Dim FichXml As New Xml.XmlDocument
FichXml.Load(FicheroConfiguracion & ".config")
Dim Child As Xml.XmlElement = CType(FichXml.DocumentElement.SelectSingleNode("/configuration/appSettings/add[@key=""" & Llave & """]"), Xml.XmlElement)

If Child Is Nothing Then
Return False
Else
Child.Attributes("value").Value = NuevoValor
FichXml.Save(FicheroConfiguracion & ".config")
Return True
End If
End Function
End Class
__________________
Charlie.
chcma está desconectado   Responder Citando
Antiguo 08-ene-2005, 09:13   #49 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Windows Forms
Pregunta: Como crear una máscara en mi textbox ?
Respuesta:
http://www.c-sharpcorner.com/Code/20...ditControl.asp
__________________
Nadie roba nada ya que en la vida todo se paga . . .
RootK está desconectado   Responder Citando
Antiguo 08-ene-2005, 09:34   #50 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: Tips And Tricks

Pregunta: Como buscar palabras que están contenidas en mis documentos de word, excel, etc. ?

Respuesta:
http://www.forosdelweb.com/showthrea...777#post924777

proyecto en .net pero con problemas al realizar consula a Index Server

Última edición por RootK; 04-abr-2005 a las 10:41.
RootK está desconectado   Responder Citando
Antiguo 08-ene-2005, 09:40   #51 (permalink)
freegirl tiene algunos puntos positivos de karma
 
Avatar de freegirl
 
Fecha de Ingreso: octubre-2003
Ubicación: Catalunya
Mensajes: 2.213
Visualizar todo el texto en celda Datatgrid, no sólo en modo edición

Tema: Windows Forms
Pregunta: Como visualizar todo el texto en la celda del datagrid, no sólo en modo edición.
Respuesta:

1) Crear una clase:

Cita:
Class DataGridTextBoxColumnWrap
Inherits DataGridTextBoxColumn

Protected Overloads Overrides Sub Paint(ByVal g As System.Drawing.Graphics, _
ByVal bounds As System.Drawing.Rectangle, _
ByVal source As System.Windows.Forms.CurrencyManager, _
ByVal rowNum As Integer, _
ByVal backBrush As System.Drawing.Brush, _
ByVal foreBrush As System.Drawing.Brush, _
ByVal alignToRight As Boolean)

Dim stringSize As SizeF
Dim stringFont As Font
Dim columnWidth As Integer
Dim stringValue As String
Dim stringDisplay As String
Dim stringYCoord As Single
Dim stringHeight As Single
Dim stringArray As ArrayList
Dim intStringLoop As Integer

g.FillRectangle(backBrush, bounds) 'Paint the rectangle for the cell using the backBrush
stringFont = Me.DataGridTableStyle.DataGrid.Font 'Get the font used by the column(style)
columnWidth = bounds.Width 'Get the width of the column

stringSize = g.MeasureString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg hijklmnopqrstuvwxyz1234567890", stringFont)
stringHeight = stringSize.Height
stringValue = GetText(source, rowNum) 'Get the text to be displayed in the cell
stringArray = GetArrayList(g, stringValue, stringFont, columnWidth)

For intStringLoop = 0 To stringArray.Count - 1
stringDisplay = CType(stringArray.Item(intStringLoop), String)
stringYCoord = bounds.Y + (intStringLoop * stringHeight)
g.DrawString(stringDisplay, stringFont, foreBrush, bounds.X, stringYCoord)
Next

End Sub
Public Sub New()
' Initialise the object and set its default properities
MyBase.New()
Me.NullText = ""
Me.ReadOnly = True
End Sub

Protected Overloads Overrides Sub Edit(ByVal source As CurrencyManager, ByVal rowNum As Integer, ByVal bounds As Rectangle, ByVal readOnly1 As Boolean, ByVal instantText As String, ByVal cellIsVisible As Boolean)
' This particular column will always be readonly and non-editable - therefore do not pass the event over
Return
End Sub
#Region "Helper Methods"
Function GetText(ByVal source As System.Windows.Forms.CurrencyManager, _
ByVal rowNum As Integer) As String

Dim objValue As Object = GetColumnValueAtRow(source, rowNum)
If objValue Is System.DBNull.Value Then
Return Me.NullText
Else
Return CType(objValue, String)
End If
End Function

Function GetArrayList(ByVal g As Graphics, ByVal stringValue As String, _
ByVal stringFont As Font, ByVal columnWidth As Integer) As ArrayList
Dim intCurrentChar As Integer
Dim stringCurrentChar As String
Dim stringDisplay As String
Dim intSpace As Integer
Dim stringSize As SizeF
Dim stringArray As New ArrayList


Do Until stringValue = ""
For intCurrentChar = 0 To stringValue.Length - 1
stringCurrentChar = stringValue.Substring(intCurrentChar, 1)
stringSize = g.MeasureString(stringDisplay & stringCurrentChar, stringFont)
If stringSize.Width <= columnWidth Then
stringDisplay &= stringCurrentChar
If intCurrentChar = stringValue.Length - 1 Then
stringArray.Add(stringDisplay)
stringDisplay = ""
stringValue = ""
Exit For
End If
Else
'Figure out where the first space preceding this location is...
intSpace = stringDisplay.LastIndexOf(" ")
If intSpace >= 0 Then
'we found the last space
intCurrentChar = intSpace + 1
stringDisplay = stringDisplay.Substring(0, intSpace + 1)
stringArray.Add(stringDisplay)
stringDisplay = ""
stringValue = stringValue.Substring(intCurrentChar)
Exit For
Else

stringArray.Add(stringDisplay)
stringDisplay = ""
stringValue = stringValue.Substring(intCurrentChar)
Exit For
End If
End If
Next
Loop

Return stringArray
End Function
#End Region

End Class
2) usarlo en nuestro estilo creado:

Cita:
Dim tb4 As DataGridTextBoxColumnWrap
tb4 = New DataGridTextBoxColumnWrap
tb4.HeaderText = "Item Description"
tb4.MappingName = "text"
tb4.NullText = ""
tb4.Width = 140
tb4.ReadOnly = True
ts.GridColumnStyles.Add(tb4)
freegirl está desconectado   Responder Citando
Antiguo 10-ene-2005, 01:26   #52 (permalink)
noah_242 está en el buen camino
 
Fecha de Ingreso: agosto-2004
Mensajes: 234
Tema: Windows Form

Pregunta: Como saber automaticamente mi direccion ip y el host de cualquier puesto atraves de su ip

Respuesta:



Código PHP:
''''''''Obtener ip automaticamente de mi host


        Dim ip 
As Net.Dns

        Dim nombre_Host 
As String ip.GetHostName

        Dim este_Host 
As Net.IPHostEntry ip.GetHostByName(nombre_Host)

        
Dim direccion_Ip As String este_Host.AddressList(0).ToString

        Me
.TextBox1.Text direccion_Ip 
''''''''''''



Código PHP:
''''funcion para obtener el nombre del host atraves de su IP

        
Function ObtenerHost(ByVal IP As IPAddress) As String()

        
Dim miHost As Net.IPHostEntry
        miHost 
Net.Dns.GetHostByAddress(IP)
       
ObtenerHost MiHost.HostName

        End 
Function 
noah_242 está desconectado   Responder Citando
Antiguo 25-ene-2005, 14:11   #53 (permalink)
Moderador
RootK llegará a ser famoso muy prontoRootK llegará a ser famoso muy pronto
 
Avatar de RootK
 
Fecha de Ingreso: noviembre-2002
Ubicación: México D.F
Mensajes: 7.524
Enviar un mensaje por MSN a RootK
Tema: General
Pregunta: como puedo hacer un SMPT directo sin utilizar el que trae por default el framework.
Respuesta:
Hacer un SMTP directo
RootK está desconectado   Responder Citando
Antiguo 01-feb-2005, 01:00   #54 (permalink)
noah_242 está en el buen camino
 
Fecha de Ingreso: agosto-2004
Mensajes: 234