Click here to Skip to main content
15,886,258 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: New to Flash Pin
enhzflep11-Nov-09 22:00
enhzflep11-Nov-09 22:00 
GeneralRe: New to Flash Pin
VengefulSakhmet12-Nov-09 3:27
VengefulSakhmet12-Nov-09 3:27 
QuestiononChange Event in javascript Pin
Jacobb Michael10-Nov-09 21:32
Jacobb Michael10-Nov-09 21:32 
AnswerRe: onChange Event in javascript Pin
Abhishek Sur10-Nov-09 23:35
professionalAbhishek Sur10-Nov-09 23:35 
AnswerRe: onChange Event in javascript Pin
N.Surendra Prasad12-Nov-09 0:26
N.Surendra Prasad12-Nov-09 0:26 
AnswerRepost Pin
Not Active12-Nov-09 1:42
mentorNot Active12-Nov-09 1:42 
Question[Message Deleted] Pin
IrreverentCoder10-Nov-09 18:04
IrreverentCoder10-Nov-09 18:04 
AnswerRe: Serializing and DeSerializing datetime values in query string Pin
Abhishek Sur10-Nov-09 23:32
professionalAbhishek Sur10-Nov-09 23:32 
ArunkGeorge wrote:
1. Is there any standard on how the query string should look like? Should I use xml serialized date or Json serialzied date?


I think this is not good. Dont use Content-Type to determine the type of the response. I think it is better if you explicitely define a key for content type the client wants.

http://localhost/EmployeeSerach?EmpName=John&EmpAge=23&type=JSON


See I used type key to get JSON response from the client, so the client which uses it have proper knowledge about what type of response it expects.

ArunkGeorge wrote:
Should I use xml serialized date or Json serialzied date?


Yes, if you are creating JSON response, Use JSON serialized date, otherwise XML. (I guess it automatically does that way)


ArunkGeorge wrote:
Question 2: Most of the deserialization APIs exposed (at least the ones I have seen) deserialize a stream, and not a single datetime value. Do I have to always wrap the datetime into a stream in order to get that deserialized?


Yes I think you are right, But you can create your own Serializer any time and use it.


ArunkGeorge wrote:
Is there any easy way to get the query string parameter key-value pairs directly deserialized into a desired object?


Yes, I think there is. You might use Request.QueryString.AllKeys

ArunkGeorge wrote:
Question XmlSerializer accepts only a child of ICollection and so I am not able to pass a HashTable etc.


Yes... HashTables are different than normal, you can pass hashtable.Value which is ICollection.

Hope you got it.

Abhishek Sur
Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->

Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript

General[Message Deleted] Pin
IrreverentCoder11-Nov-09 18:21
IrreverentCoder11-Nov-09 18:21 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
Abhishek Sur11-Nov-09 21:01
professionalAbhishek Sur11-Nov-09 21:01 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
Richard MacCutchan11-Nov-09 21:56
mveRichard MacCutchan11-Nov-09 21:56 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
IrreverentCoder11-Nov-09 22:38
IrreverentCoder11-Nov-09 22:38 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
David Skelly11-Nov-09 23:14
David Skelly11-Nov-09 23:14 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
IrreverentCoder11-Nov-09 23:17
IrreverentCoder11-Nov-09 23:17 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
Oakman13-Nov-09 11:39
Oakman13-Nov-09 11:39 
General[Message Deleted] Pin
IrreverentCoder14-Nov-09 6:37
IrreverentCoder14-Nov-09 6:37 
GeneralRe: Serializing and DeSerializing datetime values in query string Pin
Oakman14-Nov-09 7:14
Oakman14-Nov-09 7:14 
QuestionUpload preview and resize an image Pin
M.A.Raheem10-Nov-09 0:08
M.A.Raheem10-Nov-09 0:08 
AnswerRe: Upload preview and resize an image Pin
Abhishek Sur10-Nov-09 21:02
professionalAbhishek Sur10-Nov-09 21:02 
GeneralRe: Upload preview and resize an image Pin
M.A.Raheem10-Nov-09 22:17
M.A.Raheem10-Nov-09 22:17 
GeneralRe: Upload preview and resize an image Pin
Abhishek Sur10-Nov-09 23:24
professionalAbhishek Sur10-Nov-09 23:24 
GeneralRe: Upload preview and resize an image Pin
M.A.Raheem12-Nov-09 1:36
M.A.Raheem12-Nov-09 1:36 
GeneralRe: Upload preview and resize an image Pin
Jayapal Chandran12-Nov-09 7:33
Jayapal Chandran12-Nov-09 7:33 
GeneralRe: Upload preview and resize an image Pin
M.A.Raheem12-Nov-09 22:12
M.A.Raheem12-Nov-09 22:12 
QuestionThrowing an error to abort javascript execution Pin
Jayapal Chandran9-Nov-09 19:47
Jayapal Chandran9-Nov-09 19:47 

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.