Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# USB Detection Pin
donovan.solms12-Jul-07 1:54
donovan.solms12-Jul-07 1:54 
QuestionHow to convert CSV file to XLS file using C# Programme Pin
liyakhat_shahid12-Jul-07 0:27
liyakhat_shahid12-Jul-07 0:27 
AnswerRe: How to convert CSV file to XLS file using C# Programme Pin
Bijesh12-Jul-07 1:06
Bijesh12-Jul-07 1:06 
GeneralRe: How to convert CSV file to XLS file using C# Programme Pin
liyakhat_shahid13-Jul-07 1:55
liyakhat_shahid13-Jul-07 1:55 
AnswerRe: How to convert CSV file to XLS file using C# Programme Pin
Jimmanuel12-Jul-07 1:15
Jimmanuel12-Jul-07 1:15 
AnswerRe: How to convert CSV file to XLS file using C# Programme Pin
martin_hughes12-Jul-07 2:30
martin_hughes12-Jul-07 2:30 
AnswerRe: How to convert CSV file to XLS file using C# Programme Pin
Pete O'Hanlon12-Jul-07 3:03
mvePete O'Hanlon12-Jul-07 3:03 
QuestionProblem with Cookies Enabled detection Pin
Adoremi11-Jul-07 23:10
Adoremi11-Jul-07 23:10 
Hi,

I have tried to write a cookie then read it. If it return true, meaning that the user's cookies is enabled and if it return false, that mean the cookies has been disabled. Unfortunately, when I turn my cookies off using IE, I was clueless when it always return me true. I have tested the same project with Firefox, it works pretty well!

Please help~

below is a part of my code in C#:

HttpCookie c;
if (!Page.IsPostBack)
{
if (HttpContext.Current.Request.Cookies["TestCookie"] != null)
{
c = Request.Cookies["TestCookie"];
c.Expires = DateTime.Today.AddDays(1);
c.Values.Add("testing","testing");
}
else
{
c = new HttpCookie("TestCookie");
c.Expires = DateTime.Today.AddDays(1);
c.Values.Add("testing","testing");
}

Response.Cookies.Add(c);
c = null;
}

if (Page.IsPostBack)
{
if (HttpContext.Current.Request.Cookies["TestCookie"] != null)
{
c = Request.Cookies["TestCookie"];
Response.Write("Cookie Enable");
}
else
{
Response.Write("Cookie Disable");
}
}
AnswerRe: Problem with Cookies Enabled detection Pin
chandu_shar12-Jul-07 0:21
chandu_shar12-Jul-07 0:21 
Questiondisable all DataGridViewRowHeaderCell glyphs Pin
agent32711-Jul-07 22:37
agent32711-Jul-07 22:37 
QuestionProblems with configuring .Net hosted control Pin
drweb8611-Jul-07 22:24
drweb8611-Jul-07 22:24 
Questionradiobutton BeforeStateChange ? Pin
fracalifa11-Jul-07 22:20
fracalifa11-Jul-07 22:20 
AnswerRe: radiobutton BeforeStateChange ? Pin
Martin#11-Jul-07 22:32
Martin#11-Jul-07 22:32 
AnswerRe: radiobutton BeforeStateChange ? Pin
Luc Pattyn11-Jul-07 23:48
sitebuilderLuc Pattyn11-Jul-07 23:48 
GeneralRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 0:05
Martin#12-Jul-07 0:05 
GeneralRe: radiobutton BeforeStateChange ? [modified] Pin
fracalifa12-Jul-07 0:32
fracalifa12-Jul-07 0:32 
GeneralRe: radiobutton BeforeStateChange ? Pin
Luc Pattyn12-Jul-07 0:36
sitebuilderLuc Pattyn12-Jul-07 0:36 
GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 0:40
fracalifa12-Jul-07 0:40 
JokeRe: radiobutton BeforeStateChange ? Pin
Luc Pattyn12-Jul-07 1:44
sitebuilderLuc Pattyn12-Jul-07 1:44 
AnswerRe: radiobutton BeforeStateChange ? Pin
ruanr12-Jul-07 0:23
ruanr12-Jul-07 0:23 
AnswerRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 0:39
Martin#12-Jul-07 0:39 
GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 1:07
fracalifa12-Jul-07 1:07 
GeneralRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 1:11
Martin#12-Jul-07 1:11 
GeneralRe: radiobutton BeforeStateChange ? Pin
fracalifa12-Jul-07 1:18
fracalifa12-Jul-07 1:18 
GeneralRe: radiobutton BeforeStateChange ? Pin
Martin#12-Jul-07 1:40
Martin#12-Jul-07 1:40 

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.