Click here to Skip to main content
15,889,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Colin Angus Mackay22-Jan-09 5:32
Colin Angus Mackay22-Jan-09 5:32 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 20:50
professionaljon-8022-Jan-09 20:50 
AnswerRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
Colin Angus Mackay22-Jan-09 5:08
Colin Angus Mackay22-Jan-09 5:08 
GeneralRe: [newbie] SQLCommand.ExecuteScalar does not convert to (string) Pin
jon-8022-Jan-09 7:12
professionaljon-8022-Jan-09 7:12 
QuestionDelete Value from Cookie Pin
Abdullah S. Abdelhay22-Jan-09 4:43
Abdullah S. Abdelhay22-Jan-09 4:43 
AnswerRe: Delete Value from Cookie Pin
Jon Rista22-Jan-09 6:32
Jon Rista22-Jan-09 6:32 
GeneralRe: Delete Value from Cookie Pin
rama charan22-Jan-09 17:47
rama charan22-Jan-09 17:47 
AnswerRe: Delete Value from Cookie Pin
Rajdev Ramasamy26-Jan-09 22:28
Rajdev Ramasamy26-Jan-09 22:28 
We cannot delete a cookie actually. But one thing we can do is like, we can set the expiry date of the cookie to prior date, so that the browser will remove the cookie when it access the cookie for the next time, since it is expired.


Expiring the Cookie in Server Side:

if (Request.Cookies["MyCookie"] != null)
{
    HttpCookie myCookie = new HttpCookie("MyCookie");
    myCookie.Expires = DateTime.Now.AddDays(-1d);
    Response.Cookies.Add(myCookie);
}


<u>Expiring the Cookie in ClientSide Side:</u>

<script type="text/javascript">
<!--
  	deleteCookie('MyCookie');
// -->
</script>


Please reply on any doubts. Hope this will be usefull for you.

Thanks,
Rajdev KR
Questionworking with excel files version independantly in asp.net2.0 Pin
Nitin K22-Jan-09 3:47
Nitin K22-Jan-09 3:47 
AnswerRe: working with excel files version independantly in asp.net2.0 Pin
Rutvik Dave22-Jan-09 3:56
professionalRutvik Dave22-Jan-09 3:56 
QuestionASP.NET MVC Pin
Brendan Vogt22-Jan-09 2:31
Brendan Vogt22-Jan-09 2:31 
AnswerRe: ASP.NET MVC Pin
ToddHileHoffer22-Jan-09 2:53
ToddHileHoffer22-Jan-09 2:53 
AnswerRe: ASP.NET MVC Pin
Not Active22-Jan-09 3:24
mentorNot Active22-Jan-09 3:24 
Question[Message Deleted] Pin
jon-8022-Jan-09 2:16
professionaljon-8022-Jan-09 2:16 
AnswerRe: [newbie] Databinding question Pin
Paddy Boyd22-Jan-09 2:21
Paddy Boyd22-Jan-09 2:21 
Questioncomplexity in saving date from different countries Pin
NidhiKanu22-Jan-09 2:08
professionalNidhiKanu22-Jan-09 2:08 
AnswerRe: complexity in saving date from different countries Pin
Ashutosh Phoujdar22-Jan-09 2:35
Ashutosh Phoujdar22-Jan-09 2:35 
GeneralRe: complexity in saving date from different countries Pin
NidhiKanu22-Jan-09 2:43
professionalNidhiKanu22-Jan-09 2:43 
GeneralRe: complexity in saving date from different countries Pin
Ashutosh Phoujdar22-Jan-09 2:50
Ashutosh Phoujdar22-Jan-09 2:50 
GeneralRe: complexity in saving date from different countries Pin
NidhiKanu22-Jan-09 2:53
professionalNidhiKanu22-Jan-09 2:53 
QuestionFindControl returning null Pin
cooltoad12322-Jan-09 1:51
cooltoad12322-Jan-09 1:51 
AnswerRe: FindControl returning null Pin
Herman<T>.Instance22-Jan-09 2:00
Herman<T>.Instance22-Jan-09 2:00 
GeneralRe: FindControl returning null Pin
cooltoad12322-Jan-09 2:08
cooltoad12322-Jan-09 2:08 
GeneralRe: FindControl returning null Pin
Herman<T>.Instance22-Jan-09 2:17
Herman<T>.Instance22-Jan-09 2:17 
GeneralRe: FindControl returning null Pin
cooltoad12322-Jan-09 2:23
cooltoad12322-Jan-09 2:23 

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.