Click here to Skip to main content
16,013,642 members
Home / Discussions / Web Development
   

Web Development

 
GeneralSQL Server API problem... Pin
6-Jun-02 4:24
suss6-Jun-02 4:24 
GeneralRe: SQL Server API problem... Pin
Remco V6-Jun-02 5:53
Remco V6-Jun-02 5:53 
GeneralRe: SQL Server API problem... Pin
Orkun GEDiK6-Jun-02 8:55
Orkun GEDiK6-Jun-02 8:55 
GeneralHiding user controls vs dynamic creation Pin
Senkwe Chanda6-Jun-02 4:04
Senkwe Chanda6-Jun-02 4:04 
GeneralStupid WebForm Designer Behavior Pin
Jamie Nordmeyer5-Jun-02 12:16
Jamie Nordmeyer5-Jun-02 12:16 
GeneralRe: Stupid WebForm Designer Behavior Pin
Senkwe Chanda6-Jun-02 4:10
Senkwe Chanda6-Jun-02 4:10 
GeneralRe: Stupid WebForm Designer Behavior Pin
Jamie Nordmeyer6-Jun-02 5:47
Jamie Nordmeyer6-Jun-02 5:47 
QuestionConvert seconds to hours in aspx bind? Pin
Todd Smith5-Jun-02 7:43
Todd Smith5-Jun-02 7:43 
I want to display a value as hours which is stored as seconds in a database so I need to convert the value when I bind it to a textbox control. Something like this:

<asp:textbox id="hours" size="3" text='<%# DataBinder.Eval(Container.DataItem, "interval") / 3600 %>' runat="server" />


On the submit side it's easy enough to convert it back to seconds but I'm not sure how to convert it on the aspx side. I can probably change the sql statement but I would like to avoid that. I would also like to avoid having to do the conversion in the page_load function. Can this be done?

Todd Smith
AnswerRe: Convert seconds to hours in aspx bind? Pin
Not Active7-Jun-02 9:53
mentorNot Active7-Jun-02 9:53 
GeneralRe: Convert seconds to hours in aspx bind? Pin
Todd Smith7-Jun-02 12:30
Todd Smith7-Jun-02 12:30 
GeneralStupid IIS problem Pin
James Spibey4-Jun-02 6:43
James Spibey4-Jun-02 6:43 
GeneralRe: Stupid IIS problem Pin
James Spibey4-Jun-02 23:58
James Spibey4-Jun-02 23:58 
GeneralRe: Stupid IIS problem Pin
Remco V6-Jun-02 6:03
Remco V6-Jun-02 6:03 
GeneralRe: Stupid IIS problem Pin
James Spibey6-Jun-02 9:41
James Spibey6-Jun-02 9:41 
GeneralRe: Stupid IIS problem Pin
Richard Deeming7-Jun-02 0:14
mveRichard Deeming7-Jun-02 0:14 
GeneralHTML Table tabing Pin
Fayez Al-Naddaf4-Jun-02 4:48
Fayez Al-Naddaf4-Jun-02 4:48 
GeneralRe: HTML Table tabing Pin
MS le Roux6-Jun-02 9:26
MS le Roux6-Jun-02 9:26 
GeneralImport Excel-files with ASP Pin
Morten, Norway4-Jun-02 4:03
Morten, Norway4-Jun-02 4:03 
GeneralRe: Import Excel-files with ASP Pin
David Wengier5-Jun-02 11:34
David Wengier5-Jun-02 11:34 
GeneralGetting data from local DB into remote DB using ASP Pin
James Spibey3-Jun-02 5:22
James Spibey3-Jun-02 5:22 
GeneralRe: Getting data from local DB into remote DB using ASP Pin
Not Active3-Jun-02 13:27
mentorNot Active3-Jun-02 13:27 
GeneralRe: Getting data from local DB into remote DB using ASP Pin
James Spibey3-Jun-02 13:58
James Spibey3-Jun-02 13:58 
GeneralRe: Getting data from local DB into remote DB using ASP Pin
Not Active3-Jun-02 16:54
mentorNot Active3-Jun-02 16:54 
GeneralRe: Getting data from local DB into remote DB using ASP Pin
Nick Parker7-Jun-02 5:30
protectorNick Parker7-Jun-02 5:30 
GeneralPage Templates Pin
Chris Maunder3-Jun-02 2:33
cofounderChris Maunder3-Jun-02 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.