Click here to Skip to main content
15,884,237 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralWeird behavior of FindControl Pin
AlexeiXX39-Apr-08 8:01
AlexeiXX39-Apr-08 8:01 
GeneralRe: Weird behavior of FindControl Pin
MrPlankton9-Apr-08 11:32
MrPlankton9-Apr-08 11:32 
GeneralRe: Weird behavior of FindControl Pin
AlexeiXX39-Apr-08 11:47
AlexeiXX39-Apr-08 11:47 
GeneralRe: Weird behavior of FindControl Pin
MrPlankton10-Apr-08 5:39
MrPlankton10-Apr-08 5:39 
QuestionHow to send cookies with httpwebrequest Pin
raha20029-Apr-08 6:56
raha20029-Apr-08 6:56 
AnswerRe: How to send cookies with httpwebrequest Pin
led mike9-Apr-08 7:17
led mike9-Apr-08 7:17 
GeneralRe: How to send cookies with httpwebrequest Pin
raha20029-Apr-08 8:56
raha20029-Apr-08 8:56 
GeneralRe: How to send cookies with httpwebrequest Pin
led mike10-Apr-08 5:41
led mike10-Apr-08 5:41 
raha2002 wrote:
I think u misunderstood me. I want to send cookies from client to server. cookiecontainer is an object for response to put cookies in it. without it httpwebresponse can't send cookies back to client.

How do you know that? Did you try it? I did and it works just fine.

HttpWebRequest req = WebRequest.Create("http://localhost/Research/RequestViewer.aspx") as HttpWebRequest;
Cookie cook = new Cookie();
cook.Name = "TestCookie";
cook.Value = "CookieValue";
cook.Domain = "localhost";
req.CookieContainer = new CookieContainer();
req.CookieContainer.Add(cook);

WebResponse res = req.GetResponse();
Stream s = res.GetResponseStream();
StreamReader sr = new StreamReader(s);
while (!sr.EndOfStream)
    Console.WriteLine(sr.ReadLine());




led mike

QuestionLost selection from dropdownlist after postback??? Pin
JimFeng9-Apr-08 6:21
JimFeng9-Apr-08 6:21 
AnswerRe: Lost selection from dropdownlist after postback??? Pin
ChrisKo9-Apr-08 10:38
ChrisKo9-Apr-08 10:38 
GeneralRe: Lost selection from dropdownlist after postback??? Pin
JimFeng10-Apr-08 5:24
JimFeng10-Apr-08 5:24 
GeneralDates Problem Pin
macca249-Apr-08 5:09
macca249-Apr-08 5:09 
AnswerRe: Dates Problem Pin
Jesse Squire9-Apr-08 5:24
Jesse Squire9-Apr-08 5:24 
GeneralRe: Dates Problem Pin
Darsh_310-Apr-08 8:50
Darsh_310-Apr-08 8:50 
Questionhow to give input data at runtime in a table format after button click saving Pin
vardhanmm@gmail.com9-Apr-08 3:41
vardhanmm@gmail.com9-Apr-08 3:41 
AnswerRe: how to give input data at runtime in a table format after button click saving Pin
Ashish Sehajpal9-Apr-08 3:59
Ashish Sehajpal9-Apr-08 3:59 
GeneralRe: how to give input data at runtime in a table format after button click saving Pin
Paddy Boyd9-Apr-08 4:44
Paddy Boyd9-Apr-08 4:44 
Question[Message Deleted] Pin
John Sundar9-Apr-08 3:03
John Sundar9-Apr-08 3:03 
GeneralRe: Gathering error logs in ASP.NET with C# Pin
led mike9-Apr-08 4:48
led mike9-Apr-08 4:48 
QuestionError Asp.net with mysql ? Pin
i gr89-Apr-08 2:58
i gr89-Apr-08 2:58 
AnswerRe: Error Asp.net with mysql ? Pin
eyeseetee9-Apr-08 3:18
eyeseetee9-Apr-08 3:18 
GeneralRe: Error Asp.net with mysql ? Pin
i gr89-Apr-08 4:14
i gr89-Apr-08 4:14 
AnswerRe: Error Asp.net with mysql ? Pin
Ashish Sehajpal9-Apr-08 4:00
Ashish Sehajpal9-Apr-08 4:00 
GeneralRe: Error Asp.net with mysql ? Pin
i gr89-Apr-08 4:16
i gr89-Apr-08 4:16 
GeneralRe: Error Asp.net with mysql ? Pin
Ashish Sehajpal9-Apr-08 7:45
Ashish Sehajpal9-Apr-08 7:45 

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.