Pregunta: No trabaja el Debug con mis páginas ASP.Net. Que puedo hacer..?
Respuesta:
http://www.gotdotnet.com/team/csharp...erproblems.doc

|
|
#31 (permalink) |
|
Moderador
![]() ![]() |
Pregunta: No trabaja el Debug con mis páginas ASP.Net. Que puedo hacer..? Respuesta: http://www.gotdotnet.com/team/csharp...erproblems.doc ![]() |
|
|
|
|
|
#32 (permalink) |
|
Moderador
![]() ![]() |
Tema: General
Pregunta: Cuales son las principales diferencias entre C# y VB.net ? Respuesta: Buscas diferencias entre c# y VB.NET ? |
|
|
|
|
|
#33 (permalink) |
|
Moderador
![]() ![]() |
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 |
|
|
|
|
|
#34 (permalink) |
|
Moderador
![]() ![]() |
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 . . . |
|
|
|
|
|
#35 (permalink) |
![]() |
Tema: Web App
Pregunta: Como mantener el Scroll en gridlayout Panel: Respuesta: Retener Scroll en girdlayout
__________________
El leer te da el poder de mejorar |
|
|
|
|
|
#36 (permalink) |
|
Moderador
![]() ![]() |
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. |
|
|
|
|
|
#37 (permalink) |
![]() 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? |
|
|
|
|
|
#38 (permalink) |
![]() 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. |
|
|
|
|
|
#39 (permalink) |
|
Moderador
![]() ![]() |
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 |
|
|
|
|
|
#40 (permalink) |
![]() 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 |
|
|
|
|
|
#41 (permalink) |
|
Moderador
![]() ![]() |
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:
Donde tamaño proporcionas una cantidad dada en kilobytes <system.web>
<httpRuntime maxRequestLength="tamaño" ... ... /> </system.web> </configuration> Ejemplo. <httpRuntime maxRequestLength="4096" /> |
|
|
|
|
|
#42 (permalink) |
|
Moderador
![]() ![]() |
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 |
|
|
|
|
|
#43 (permalink) |
![]() 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 |
|
|
|
|
|
#44 (permalink) |
![]() 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() |
|
|
|
|
|
#45 (permalink) |
|
Moderador
![]() ![]() |
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. |
|
|
|
|
|
#46 (permalink) |
|
Moderador
![]() ![]() |
Tema: General
Pregunta: Cuales son los formatos de fecha ? (para obtener minutos, días, segundos, etc) Respuesta: http://authors.aspalliance.com/aspxt...InfoClass.aspx |
|
|
|
|
|
#47 (permalink) |
|
Moderador
![]() ![]() |
Tema: Web App
Pregunta: Como incluir archivos swf (flash) en mis páginas asp.net Respuesta: Animación Flash |
|
|
|
|
|
#48 (permalink) |
![]() 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. |
|
|
|
|
|
#49 (permalink) |
|
Moderador
![]() ![]() |
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 . . . |
|
|
|
|
|
#50 (permalink) |
|
Moderador
![]() ![]() |
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. |
|
|
|
|
|
#51 (permalink) |
![]() 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:
2) usarlo en nuestro estilo creado: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
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) |
|
|
|
|
|
#52 (permalink) |
![]() 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:
Código PHP:
|
|
|
|
|
|
#53 (permalink) |
|
Moderador
![]() ![]() |
Tema: General
Pregunta: como puedo hacer un SMPT directo sin utilizar el que trae por default el framework. Respuesta: Hacer un SMTP directo |
|
|
|