Click here to Skip to main content
15,927,803 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Display message to the user if no records found? Pin
ZurdoDev3-Feb-17 3:26
professionalZurdoDev3-Feb-17 3:26 
QuestionStrange behaviour .net 2/4: The object of type "System.Web.UI.WebControls.Label" can not be converted to type "System.Web.UI.WebControls.TextBox". Pin
Markus Evacoso25-Jan-17 11:24
Markus Evacoso25-Jan-17 11:24 
SuggestionRe: Strange behaviour .net 2/4: The object of type "System.Web.UI.WebControls.Label" can not be converted to type "System.Web.UI.WebControls.TextBox". Pin
ZurdoDev26-Jan-17 0:54
professionalZurdoDev26-Jan-17 0:54 
GeneralRe: Strange behaviour .net 2/4: The object of type "System.Web.UI.WebControls.Label" can not be converted to type "System.Web.UI.WebControls.TextBox". Pin
Markus Evacoso26-Jan-17 20:56
Markus Evacoso26-Jan-17 20:56 
AnswerRe: Strange behaviour .net 2/4: The object of type "System.Web.UI.WebControls.Label" can not be converted to type "System.Web.UI.WebControls.TextBox". Pin
F-ES Sitecore26-Jan-17 22:37
professionalF-ES Sitecore26-Jan-17 22:37 
GeneralRe: Strange behaviour .net 2/4: The object of type "System.Web.UI.WebControls.Label" can not be converted to type "System.Web.UI.WebControls.TextBox". Pin
Markus Evacoso22-Jun-17 23:44
Markus Evacoso22-Jun-17 23:44 
Question<Projectname>.config in bin folder Pin
Markus Evacoso25-Jan-17 10:55
Markus Evacoso25-Jan-17 10:55 
AnswerRe: <Projectname>.config in bin folder Pin
ZurdoDev26-Jan-17 0:51
professionalZurdoDev26-Jan-17 0:51 
GeneralRe: <Projectname>.config in bin folder Pin
Markus Evacoso26-Jan-17 20:51
Markus Evacoso26-Jan-17 20:51 
AnswerRe: <Projectname>.config in bin folder Pin
Bryian Tan28-Jan-17 12:46
professionalBryian Tan28-Jan-17 12:46 
QuestionWhat we can do with date and time offset data Pin
Tridip Bhattacharjee24-Jan-17 22:43
professionalTridip Bhattacharjee24-Jan-17 22:43 
AnswerRe: What we can do with date and time offset data Pin
Jochen Arndt24-Jan-17 23:05
professionalJochen Arndt24-Jan-17 23:05 
GeneralRe: What we can do with date and time offset data Pin
Tridip Bhattacharjee25-Jan-17 0:45
professionalTridip Bhattacharjee25-Jan-17 0:45 
GeneralRe: What we can do with date and time offset data Pin
Jochen Arndt25-Jan-17 1:07
professionalJochen Arndt25-Jan-17 1:07 
GeneralRe: What we can do with date and time offset data Pin
Tridip Bhattacharjee29-Jan-17 22:35
professionalTridip Bhattacharjee29-Jan-17 22:35 
GeneralRe: What we can do with date and time offset data Pin
Jochen Arndt29-Jan-17 22:46
professionalJochen Arndt29-Jan-17 22:46 
QuestionHow to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee24-Jan-17 22:41
professionalTridip Bhattacharjee24-Jan-17 22:41 
AnswerRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt24-Jan-17 23:20
professionalJochen Arndt24-Jan-17 23:20 
Important: Always use UTC and binary types (no local time and no strings)!

When data must be send as strings use a universal format like ISO 8601 - Wikipedia[^].

On the client side get the time as UTC (e.g. using JavaScript Date().getTime()) and send that to the server.

Handle and store them on the server side as UTC.

To display them they may be optionally converted to the client's local time.

When this is done on the client side, use appropriate functions (just search for "<language> utc to local").

When this is done on the server side the time zone used by the client must known. This can be for example stored in the user record of the login database like here at CodeProject (see your profile settings).

To convert times when having an offset (timezone offsets are usually defined in minutes) just use the Add method of the DateTime class of the used language.
GeneralRe: How to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee25-Jan-17 0:53
professionalTridip Bhattacharjee25-Jan-17 0:53 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt25-Jan-17 1:14
professionalJochen Arndt25-Jan-17 1:14 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee29-Jan-17 22:33
professionalTridip Bhattacharjee29-Jan-17 22:33 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt29-Jan-17 22:55
professionalJochen Arndt29-Jan-17 22:55 
QuestionWhat is the difference between integration testing, regression testing and unit testing Pin
Tridip Bhattacharjee22-Jan-17 21:38
professionalTridip Bhattacharjee22-Jan-17 21:38 
AnswerRe: What is the difference between integration testing, regression testing and unit testing Pin
F-ES Sitecore22-Jan-17 23:15
professionalF-ES Sitecore22-Jan-17 23:15 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
Tridip Bhattacharjee23-Jan-17 21:31
professionalTridip Bhattacharjee23-Jan-17 21:31 

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.