Welcome to Foxite.COM Community Weblog Sign in | Join | Help

Gift to AJAX (VB2008)

When we work with Ajax over vb2008 we find 2 things, 1: Speed and performance, 2: nice view when the page are working, so you can generate the gif and dowload directly from: http://www.ajaxload.info .

 

 Prosessing...

 

Best Regards,

 

Franklin Garzón.

MVP Visual FoxPro.

 

posted by frankling | 0 Comments
Filed Under:

Updating GridView with Datasource

Hi, the last days we need edit a row into GridView only with DataSourse, so in many places any body has a entire solution to this, then, I decided post the code to solution this.

( Note: In VFP this is easy, only a cursor, a grid and one append and replace or updatetable, easy.)

 

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not Me.IsPostBack Then

Dim dv As New Data.DataView

Dim sql As New SqlDataSource(ConfigurationManager.ConnectionStrings.Item("demoConnectionString").ToString(), "select * from empleados")

dv = sql.Select(UI.DataSourceSelectArguments.Empty)

Me.GridView1.DataSource = dv

Me.GridView1.DataBind()

End If

End Sub

Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating

Dim gv As GridView = DirectCast(sender, GridView)

For i As Integer = 0 To GridView1.Columns.Count - 1

Dim cell As DataControlFieldCell = TryCast(gv.Rows(e.RowIndex).Cells(i), DataControlFieldCell)

gv.Columns(i).ExtractValuesFromCell(e.NewValues, cell, DataControlRowState.Edit, True)

Next

End Sub

Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing

Dim gv As GridView = DirectCast(sender, GridView)

gv.EditIndex = e.NewEditIndex

gv.DataBind()

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Me.GridView1.EditIndex = 1

End Sub

End Class

 

 

Best Regards

 

Franklin Garzón

 

MVP Visual FoxPro

MCITP SQLServer

 

posted by frankling | 0 Comments
Filed Under: ,

Sync - VB2008/SQL2005 and VFP.

With VB2008 we can explore more potentials issues to our new developments, easy, power and extensibility.

Now you can see the new synchronization technique with VB2008 and SQL2005.

 

 

Dim sinc As New CacheSyncAgent

sinc.Synchronize()

 

 Its use the restrictions and mechanics of Compact SQL.

We can work a similar strategie into VFP9 using XML local with cursoradapter class.

 

(Para hacer un mix adjunto el link de mi entravista desde MS: aqui, también pueden ver entrevistas de otros MVPs)

 

Best Regards.

Franklin Garzón

posted by frankling | 0 Comments
Filed Under: ,

Ribbon y LINQ con VB2008

The CLR integration into Office 2007 and VB2008 is great, we can use all options between tecnologies, in this example you can see LINQ also.

Here you can see a pictures:

Best regards community.

 

Franklin Garzón

MVP Visual FoxPro

MCITP SQLServer

posted by frankling | 0 Comments
Filed Under:

Extending methods into VB2008

With VB2008 we can explote all advantages from our potencial, so, we can extend methods, all methods not hiericals, such as string.

 

(I think that any thing of extensión today was acquired from VFP, Ken Levy show this working over VSx - Visual Studio Extension, nice)

 

Saludos,

Franklin Garzón

 

MVP Visual FoxPro

MCIT SQLServer

posted by frankling | 0 Comments

Microsoft garantiza la interoperabilidad de su tecnología

Hoy en día el bum de open source esta por todos lados donde se está acentuado la discusión entre open source y propietary source.

 

Muchos dicen preferir el código abierto porque no necesita pagar una licencia por equipo, otros dicen porque pueden entrar ver y modificar el código, y otros dicen simplemente porque tiene la palabra mágica “abierto”.

 

El problema de fondo no está en que si es abierto o no, en que si es económico o no, está en que si es funcional o no.

 

Para que cualquier programa sea funcional debe ser compatible, permitir interacción interna y externa, admitir plataformas de terceros y sobre todo obtener resultados óptimos, eficientes y eficaces.

 

Es hacia donde apunta la nueva filosofía de Microsoft, esta ha sido concebida de tal forma que permitirá exponer la gran mayoría de sus sistemas por medio de APIs que permitirán la interacción entre todos sus sistemas y programas, además de una amplia documentación para la utilización de estas APIs.

 

Si bien es cierto seguiremos sin tener acceso a su código fuente, también en cierto que la aplicación de esta nueva disponibilidad de la tecnología va a ser de mucha ayuda y productividad para las empresas privadas y estatales.

 

De donde nace la necesidad del código abierto? La raíz de todo nace de las limitaciones de las herramientas Microsoft, la complejidad para extender una determinada funcionalidad y los mitos con los que los programadores debían enfrentarse para solucionar un problema insignificante. Ahora con esta nueva filosofía creo que vamos a poder explotar en verdad toda la plataforma Microsoft donde vamos a salir ganando todos.

 

A continuación tendrán los detalles desde Redmond: http://www.microsoft.com/spain/prensa/noticias/2008/febrero/n17.mspx

 

Saludos,

 

Franklin Garzón

MVP Visual FoxPro

From c# to VB.Net

In many cases we need send or convert any code in c# to VB, is important that we learn c# however not all people have the enought time to learn when the chief need this as quickly as possible.

So, you can get this functionality in:

http://labs.developerfusion.co.uk/convert/csharp-to-vb.aspx

 

Best Regards

 

Franklin Garzón

MVP Visual FoxPro

posted by frankling | 0 Comments
Filed Under:

Windows Vista Dialogs in Vb.net and Sedna.

Such as Sedna enable Windows Vista Dialogs (great featue add-ons), I review this features with VB.net and we take more things that we can control and implement.

You can see this graphics.

(normal progress)

(error progress)

With Sedna you only put this code lines:

dialog=CREATEOBJECT("VistaDialogs4COM.taskdialog")

dialog.Caption="Desde VFP"

...

dialog.Show

 

Best Regards

Franklin Garzon

posted by frankling | 4 Comments
Filed Under: ,

Two Features In SQL2008

In this case we can see two features en SQL2008, no more interesting but functionalities.

New datatype , date and intellisense in code editor.

 

posted by frankling | 1 Comments
Filed Under:

Sedna esta disponible

Finalmente Sedna ha sido liberado por MS para este mes, realmente se han demorado muchisimo, pero en buena hora estamos con este conjunto de adicionales que de una u otra forma nos ayudaran en el paso de sistemas hacia .Net.

Lo pueden descargar desde : http://www.microsoft.com/downloads/details.aspx?FamilyId=C04BCF8C-0944-49F0-AC2B-563518CE1D70&displaylang=en

El evento de VFP en Ecuador esta muy cerca.

 

Saludos.

Franklin Garzón

MVP Visual FoxPro.

posted by frankling | 0 Comments
Filed Under:

ADOBE vs Microsoft

While Microsoft go to the Web Application with the new Silverhtligth 2.0 , ADOBE go to the Desktop application with AIR.

We are in standby for VB10, is Silverthlight into VB10 realy?.

posted by frankling | 0 Comments
Filed Under: ,

VS2008 for Processors multi-core (intuitive)

With Visual Studio 2008 the compile files are optimised for processor multi.core, delete the intermediate work of operative sistem.

http://msdn.microsoft.com/msdnmag/issues/07/10/Futures/default.aspx?loc=es

 

Franklin Garzón

MVP Visual FoxPro

MCITP SQLServer

posted by frankling | 0 Comments
Filed Under:

New projects and new challenges (Google Maps)

These new challenges I want to share with the community to Fox that he accompanied for many years and will continue doing so until the last foxero has disappeared.

Well, on this occasion I would like to introduce you how easy it is to handle GoogleMaps with VS2008 in VB.net. Here images and code. (Time of build 5 minutes.)
 
 

 

You can see many references here.

posted by frankling | 0 Comments
Filed Under: ,

Combo Object in VFP and VB (VFP has flexible poperties, VB has stronger poperties)

VFP is stronger with database work, so if you need add a ítem in the combobox you can see this:

Add a combobox with :

RowSourceType=3

BondColumn=2

Note: the next code in vfp is very nice. (you need enter double equal)

Rowsource = = datos(1)

In the command window you put: set procedure to <your program>

<in your program put>

 

PROCEDURE datos

     LPARAMETERS tipo as Integer

     DO case

          CASE tipo=1 &&combo con seleccione item

                SELECT empresas.emp_nombre,emp_codigo FROM empresas into cursor combolista1 readwrite

                INSERT INTO combolista1 values ("Seleccione un item",0)

                SELECT * FROM combolista1 ORDER BY emp_codigo INTO CURSOR combolista1

 

     ENDCASE

ENDPROC

 

RETURN "combolista1"

WOW this is very nice, this code is optimized for VFP but his performance not is sufficient.

 

Now you can get a best performance in VB with the next code for the same functionality.

                Add a DropDownList with:

      DataSourceId = SqlDataSource1 (this has a connection asn ci,name fields)

      DataTextField=nombre

      DataValueField=ci

      AppendDataBoundItem=true

      In the eventhandle= Page_Load

        If Not Page.IsPostBack Then

            Dim lista As New ListItem

            lista.Text = "Seleccione un item"

            lista.Value = 0

            Me.DropDownList1.Items.Add(lista)

        End If

Wow this is very nice with the best performance.
posted by frankling | 0 Comments
Filed Under: ,

My firts view over WPF (Windows Presentation Fundation)

More tecnology, more investment, more features and more investigate.

With W.Vista MS put a WPF on live. Today we can download VS2008 and use a powerfull tool for WPF, a WPF is a XAML (eXtended Application Model Language).

With XAML we can use a Windows controls such as the next picture.

(More later I post a WFP with VFP data and WPF with VFP language)

Best Regards

 

Franklin Garzón

MVP Visual FoxPro

 

posted by frankling | 4 Comments
Filed Under:
More Posts Next page »