473,327 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Databinding timestamp

Hi,

Simple question:

I have a SqlDataSource control that returns a tmiestamp column. This is fed
into a FormView control, which represents my time stamp as the string
"System.Byte[]"

I would expect to represent the timestamp as a base64 string. Where can I
convert between my base 64 string and the timestamp? NB I am using 2 way
databinding.

Thanks
Martin
Aug 1 '06 #1
2 1708
See this thread.
http://www.sqlservercentral.com/foru...ssageid=291605

I ended up converting the timestamp to an int.

...


"Martin" <x@y.zwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

Simple question:

I have a SqlDataSource control that returns a tmiestamp column. This is
fed
into a FormView control, which represents my time stamp as the string
"System.Byte[]"

I would expect to represent the timestamp as a base64 string. Where can I
convert between my base 64 string and the timestamp? NB I am using 2 way
databinding.

Thanks
Martin


Aug 1 '06 #2
It's taking an age to complete registration.

If only MS provided better args for the Selected event.

Think I'll have a look at deriving from SqlDataSource.

Martin

"sloan" <sl***@ipass.netwrote in message
news:eh**************@TK2MSFTNGP03.phx.gbl...
See this thread.
http://www.sqlservercentral.com/foru...ssageid=291605

I ended up converting the timestamp to an int.

..


"Martin" <x@y.zwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>Hi,

Simple question:

I have a SqlDataSource control that returns a tmiestamp column. This is
fed
>into a FormView control, which represents my time stamp as the string
"System.Byte[]"

I would expect to represent the timestamp as a base64 string. Where can
I
convert between my base 64 string and the timestamp? NB I am using 2 way
databinding.

Thanks
Martin



Aug 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: perplexed | last post by:
How do you convert a user inputted date to a unix timestamp before insterting it into your database? I have a form, with a textfield for a date that the user inputs in the format mm-dd-yyyy and...
2
by: Astra | last post by:
Hi All I know an SQL Server timestamp seems to be as useful as rocking horse for show jumping, but I'm hoping you know a 'fudge' to get me round a problem or at least confirm that it isn't...
2
by: rong.guo | last post by:
Hello Group, I am having a really weird problem... Can anyone tell the difference between Query 1 and Query 2 below? Why Query 2 excludes '2/28/2005'? Many thanks! create table a...
7
by: mybappy | last post by:
Hi: I am trying to use timestamp field of SQL Server to maintain concurrency. My problem is how do I store the timestamp value in my webform. The hidden field does not work as I get some cast...
2
by: Zygo Blaxell | last post by:
I have a table with a few million rows of temperature data keyed by timestamp. I want to group these rows by timestamp intervals (e.g. every 32 seconds), compute aggregate functions on the...
2
by: Russell Smith | last post by:
Timestamps support infinity. However if appears dates do not. When timestamps are cast to dates, there is no output. Is this an acceptable option or not? Below are a number of examples...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
22
by: Mal Ball | last post by:
I hope I have the right forum for this question. I have an existing Windows application which uses a SQL Server database and stored procedures. I am now developing a web application to use the same...
7
by: JJ | last post by:
How do I set one field to have the updated timestamp, and another to have the created timestamp? I want to do this directly from code generated from DB Designer if possible?! JJ
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.