Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET Espanol
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET Espanol Esta es una lista de correo dedicada al intercambio de conocimiento sobre ASP.NET en el idioma español.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET Espanol section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 29th, 2006, 10:43 AM
Registered User
Join Date: Aug 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default GridView + timestamp

yo tengo el siguiente store procedure con un tipo de campo timestamp):

ALTER PROCEDURE [dbo].[ProveedoresUpd]


@ProveedorId int,

@Nombre varchar(150),

@Borrado bit,

@Version timestamp




UPDATE [ActivosFijos].[Proveedores] SET [Nombre] = @Nombre, [Borrado] = @Borrado

WHERE (([ProveedorId] = @ProveedorId) AND ([Version] = @Version));

En Asp.Net yo tengo un gridview con un sql datasource:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="prov.aspx.vb" Inherits="prov" %>

<!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 runat="server">

<title>P gina sin t¡tulo</title>



<form id="form1" runat="server">


<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"

AutoGenerateColumns="False" DataKeyNames="ProveedorId" DataSourceID="SqlDataSource1">


<asp:CommandField ShowEditButton="True" ShowSelectButton="True" />

<asp:BoundField DataField="ProveedorId" HeaderText="ProveedorId" InsertVisible="False"

ReadOnly="True" SortExpression="ProveedorId" />

<asp:BoundField DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" />

<asp:CheckBoxField DataField="Borrado" HeaderText="Borrado" SortExpression="Borrado" />



<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SiovConnectionString %>"

DeleteCommand="ProveedoresDel" DeleteCommandType="StoredProcedure" InsertCommand="ProveedoresIns"

InsertCommandType="StoredProcedure" SelectCommand="ProveedoresSel" SelectCommandType="StoredProcedure"

UpdateCommand="ProveedoresUpd" UpdateCommandType="StoredProcedure">


<asp:Parameter Name="Original_ProveedorId" Type="Int32" />

<asp:Parameter Name="Original_Version" Type="Object" />



<asp:Parameter Name="ProveedorId" Type="Int32" />

<asp:Parameter Name="Nombre" Type="String" />

<asp:Parameter Name="Borrado" Type="Boolean" />

<asp:Parameter Name="Version" Type="DateTime" />



<asp:Parameter Name="Nombre" Type="String" />

<asp:Parameter Name="Borrado" Type="Boolean" />







Cuando intento actualizar un registro no pasa nada, vi en sql profile que el campo version(timestamp) va nulo.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeStamp nay_ctg BOOK: Beginning Cryptography with Java 1 August 7th, 2008 07:37 PM
Timestamp Problem hernann Java Databases 5 September 26th, 2007 07:51 AM
GridView + timestamp victorsj ASP.NET 2.0 Professional 0 August 29th, 2006 10:41 AM
timestamp isheikh BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 November 18th, 2004 05:23 PM
Timestamp and sql nevada city J2EE 3 June 24th, 2003 11:20 PM

All times are GMT -4. The time now is 03:02 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.