Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help Pin
Vimalsoft(Pty) Ltd25-Mar-08 10:59
professionalVimalsoft(Pty) Ltd25-Mar-08 10:59 
QuestionHow can I add a new column in an excel file correctly? Pin
ATC24-Mar-08 16:34
ATC24-Mar-08 16:34 
AnswerRe: How can I add a new column in an excel file correctly? Pin
Dave Kreskowiak25-Mar-08 3:52
mveDave Kreskowiak25-Mar-08 3:52 
GeneralRe: How can I add a new column in an excel file correctly? Pin
ATC25-Mar-08 4:18
ATC25-Mar-08 4:18 
GeneralRe: How can I add a new column in an excel file correctly? Pin
Dave Kreskowiak25-Mar-08 4:55
mveDave Kreskowiak25-Mar-08 4:55 
GeneralCookies not working - help! Pin
Member 397274924-Mar-08 14:32
Member 397274924-Mar-08 14:32 
GeneralRe: Cookies not working - help! Pin
Eduard Keilholz25-Mar-08 3:07
Eduard Keilholz25-Mar-08 3:07 
QuestionRe: Cookies not working - help! Pin
Member 397274925-Mar-08 8:07
Member 397274925-Mar-08 8:07 
Eduard,

Thanks. Your example - with a few modifications - works for the session, but not when the user returns to the page.

If Request.Browser.Cookies Then
' Create a new cookie
Dim hcMyCookie As New HttpCookie("TestCookie", "test")
' set expiration date
hcMyCookie.Expires = DateTime.Now.AddMonths(1)
Response.Cookies.Add(hcMyCookie)
Else
Response.Write("
Cookies not supported
")
End If

Response.Write(Response.Cookies("TestCookie").Value)

If I set the cookie and then comment out all the above code except for the last line, the cookie goes away. It seems that the cookie only lasts for the session. How do I get the cookie to last longer than that?

Thanks


AnswerRe: Cookies not working - help! Pin
Member 397274925-Mar-08 8:14
Member 397274925-Mar-08 8:14 
GeneralRe: Cookies not working - help! Pin
nlarson1125-Mar-08 10:49
nlarson1125-Mar-08 10:49 
GeneralProblem with Form and network access Pin
Cory Kimble24-Mar-08 4:31
Cory Kimble24-Mar-08 4:31 
GeneralRe: Problem with Form and network access Pin
Dave Kreskowiak24-Mar-08 5:44
mveDave Kreskowiak24-Mar-08 5:44 
GeneralRe: Problem with Form and network access Pin
Cory Kimble24-Mar-08 6:56
Cory Kimble24-Mar-08 6:56 
GeneralRe: Problem with Form and network access Pin
Dave Kreskowiak24-Mar-08 9:28
mveDave Kreskowiak24-Mar-08 9:28 
GeneralRe: Problem with Form and network access Pin
Luc Pattyn24-Mar-08 9:55
sitebuilderLuc Pattyn24-Mar-08 9:55 
GeneralRe: Problem with Form and network access [modified] Pin
Cory Kimble24-Mar-08 10:02
Cory Kimble24-Mar-08 10:02 
GeneralRe: Problem with Form and network access Pin
Dave Kreskowiak24-Mar-08 10:43
mveDave Kreskowiak24-Mar-08 10:43 
GeneralRe: Problem with Form and network access Pin
Luc Pattyn24-Mar-08 9:59
sitebuilderLuc Pattyn24-Mar-08 9:59 
GeneralRe: Problem with Form and network access Pin
Cory Kimble25-Mar-08 3:34
Cory Kimble25-Mar-08 3:34 
GeneralRe: Problem with Form and network access Pin
Dave Kreskowiak25-Mar-08 4:08
mveDave Kreskowiak25-Mar-08 4:08 
GeneralRe: Problem with Form and network access Pin
Cory Kimble25-Mar-08 5:52
Cory Kimble25-Mar-08 5:52 
GeneralRe: Problem with Form and network access Pin
Dave Kreskowiak26-Mar-08 13:31
mveDave Kreskowiak26-Mar-08 13:31 
GeneralRe: Problem with Form and network access Pin
Luc Pattyn25-Mar-08 4:12
sitebuilderLuc Pattyn25-Mar-08 4:12 
GeneralRe: Problem with Form and network access Pin
Cory Kimble25-Mar-08 6:00
Cory Kimble25-Mar-08 6:00 
QuestionCan we launch EXCEL.EXE with an existed .xls file? Pin
ATC24-Mar-08 3:47
ATC24-Mar-08 3: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.