Re: how do i get a SQL timestamp into/out of a grid?
From: Craig G (craig.gamble_at_y_arrasoftware.com)
Date: 03/01/05
- Next message: tshad: "Re: Design flow for Code-behind"
- Previous message: Craig G: "Re: how do i get a SQL timestamp into/out of a grid?"
- In reply to: bruce barker: "Re: how do i get a SQL timestamp into/out of a grid?"
- Next in thread: Craig G: "Re: how do i get a SQL timestamp into/out of a grid?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 21:01:48 -0000
opps
should read
myTimeStamp = Convert.FromBase64String(CType(e.Item.Cells(5).Controls(1),
Label).Text)
but i still get the 1-dimensional array of byte cannot be converted to
string
"bruce barker" <nospam_brubar@safeco.com> wrote in message
news:eQQnO$pHFHA.1980@TK2MSFTNGP10.phx.gbl...
> '* store in field
> CType(e.Item.Cells(5).Controls(1), Label).Text.Text =
> System.ConvertToBase64String(myTimeStamp)
>
> '* fetch from field
> myTimeStamp = System.ConvertFromBase64(CType(e.Item.Cells(5).Controls(1),
> Label).Text)
>
> -- bruce (sqlwork.com)
>
> "Craig G" <craig.gamble@y_arrasoftware.com> wrote in message
> news:OCcPRUpHFHA.4032@TK2MSFTNGP12.phx.gbl...
> | i have a hidden template column that contains a label which is populated
> | with a SQL Timestamp. the problem is each time i bring the timestamp out
> it
> | is coming out as "System.Byte[]" which is just a string
> |
> | i understand that the timestamp cannot be seen as its binary but
what/how
> am
> | i meant to store it in within the grid and then return it out if the
user
> | selects that particular record
> |
> | ive just been using this to return other fields but that wont work for
the
> | timestamp
> | myTimeStamp = CType(e.Item.Cells(5).Controls(1), Label).Text
> |
> | anyone any idea's?
> |
> | Cheers,
> | Craig
> |
> |
>
>
- Next message: tshad: "Re: Design flow for Code-behind"
- Previous message: Craig G: "Re: how do i get a SQL timestamp into/out of a grid?"
- In reply to: bruce barker: "Re: how do i get a SQL timestamp into/out of a grid?"
- Next in thread: Craig G: "Re: how do i get a SQL timestamp into/out of a grid?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|