Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
QuestionC# to Access Excel files Pin
ematskin30-Mar-09 7:24
ematskin30-Mar-09 7:24 
AnswerRe: C# to Access Excel files Pin
EliottA30-Mar-09 8:28
EliottA30-Mar-09 8:28 
QuestionC# Pin
M aJi D30-Mar-09 7:08
M aJi D30-Mar-09 7:08 
AnswerRe: C# Pin
EliottA30-Mar-09 7:20
EliottA30-Mar-09 7:20 
AnswerRe: C# Pin
0x3c030-Mar-09 7:50
0x3c030-Mar-09 7:50 
QuestionFlowchart - approach Pin
dfreeser30-Mar-09 7:06
dfreeser30-Mar-09 7:06 
AnswerRe: Flowchart - approach Pin
dfreeser30-Mar-09 8:37
dfreeser30-Mar-09 8:37 
QuestionSetting the httprequestheader.date Pin
MVMaasakkers30-Mar-09 6:56
MVMaasakkers30-Mar-09 6:56 
It sounds really stupid, but I can't seem to override the Date header in a httpwebrequest. Whenever (and however) I try I keep getting the ArgumentException (This header must be modified using the appropriate property.).

Currently my code looks like this:


DateTime dt = DateTime.Now;
idmReq.Headers.Set(HttpRequestHeader.Date, dt.ToString());

I also tried these:
idmReq.Headers["Date"] = dt.ToString();
idmReq.Headers.Set("Date", dt.ToString());
idmReq.Headers.Add("Date", dt.ToString());

The problem is that I need to set the Date header for our centralized identity management system.

Can someone please help?
AnswerRe: Setting the httprequestheader.date Pin
Ravi Bhavnani30-Mar-09 12:00
professionalRavi Bhavnani30-Mar-09 12:00 
QuestionSearching within datagridview Pin
Martin3108830-Mar-09 6:18
Martin3108830-Mar-09 6:18 
AnswerRe: Searching within datagridview Pin
celso_cabaleiro30-Mar-09 6:34
celso_cabaleiro30-Mar-09 6:34 
AnswerRe: Searching within datagridview Pin
musefan30-Mar-09 6:54
musefan30-Mar-09 6:54 
GeneralRe: Searching within datagridview Pin
celso_cabaleiro30-Mar-09 7:07
celso_cabaleiro30-Mar-09 7:07 
GeneralRe: Searching within datagridview Pin
musefan30-Mar-09 7:12
musefan30-Mar-09 7:12 
GeneralRe: Searching within datagridview Pin
celso_cabaleiro30-Mar-09 7:25
celso_cabaleiro30-Mar-09 7:25 
GeneralRe: Searching within datagridview Pin
musefan30-Mar-09 7:32
musefan30-Mar-09 7:32 
GeneralRe: Searching within datagridview Pin
celso_cabaleiro30-Mar-09 7:41
celso_cabaleiro30-Mar-09 7:41 
QuestionPrinting Pin
mark_w_30-Mar-09 5:59
mark_w_30-Mar-09 5:59 
AnswerRe: Printing Pin
Yusuf30-Mar-09 6:14
Yusuf30-Mar-09 6:14 
GeneralRe: Printing Pin
mark_w_30-Mar-09 6:22
mark_w_30-Mar-09 6:22 
QuestionHow to find status of usercontrol wether it is cleared or not Pin
Narendra Reddy Vajrala30-Mar-09 5:40
Narendra Reddy Vajrala30-Mar-09 5:40 
AnswerRe: How to find status of usercontrol wether it is cleared or not Pin
musefan30-Mar-09 6:47
musefan30-Mar-09 6:47 
GeneralRe: How to find status of usercontrol wether it is cleared or not Pin
Narendra Reddy Vajrala31-Mar-09 2:29
Narendra Reddy Vajrala31-Mar-09 2:29 
QuestionHow Syncronize..in C#??? Pin
VisualLive30-Mar-09 5:16
VisualLive30-Mar-09 5:16 
AnswerRe: How Syncronize..in C#??? Pin
dan!sh 30-Mar-09 5:44
professional dan!sh 30-Mar-09 5:44 

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.