Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Storing DICOM files into MSSQLSERVER database Pin
Eddy Vluggen18-Jul-17 7:28
professionalEddy Vluggen18-Jul-17 7:28 
AnswerRe: Storing DICOM files into MSSQLSERVER database Pin
Dave Kreskowiak18-Jul-17 7:29
mveDave Kreskowiak18-Jul-17 7:29 
Questionvb.net 2010 error 'Microsoft.ACE.OLEDB.12.0' provider is not registered Pin
dcof14-Jul-17 5:38
dcof14-Jul-17 5:38 
QuestionArabic printing on RAW printer (Receipt printer or small 40 column printer) Pin
chandrahas.k7-Jul-17 9:53
chandrahas.k7-Jul-17 9:53 
AnswerRe: Arabic printing on RAW printer (Receipt printer or small 40 column printer) Pin
Dave Kreskowiak8-Jul-17 14:24
mveDave Kreskowiak8-Jul-17 14:24 
Questionlistviewgroup troubels Pin
JR2126-Jul-17 20:57
JR2126-Jul-17 20:57 
AnswerRe: listviewgroup troubels Pin
JR2126-Jul-17 21:46
JR2126-Jul-17 21:46 
QuestionHow to clear or reset cookie values in vb.net Pin
Sandeep Vemulapalli6-Jul-17 10:46
Sandeep Vemulapalli6-Jul-17 10:46 
I was trying to reset or clear Cookie values, not the entire cookie for which I am setting. So the issue is when I try to process the transaction on Page 1 and go to the Page 2 and come back to Page 1 it is good (for the first time) but however when again I try to make some changes in Page 1 and go to the Page 2 and come back to Page 1 it is showing me the first selected values. The issue is the cookie values are not getting cleared (after the first time) or getting reset for the second transaction (second time). There are two different methods are being called Page_Load and SavePage so Next button will trigger SavePage method and when I try to come back to Page 1 Page_load is getting fired. The code I used in the both methods are. 

Can anyone please help me resetting the cookie values or clearing the cookie values for the first after setting. Thanks.

Page_Load Method

    blnCSRVerify = CBool(If(chkCSRVerify.Checked = True, 1, 0))
    blnCustomerDecline = CBool(If(chkCustomerDecline.Checked = True, 1, 0))
    If CustomerCookie.IsCSRVerify Then
    	chkCSRVerify.Checked = True
    End If
    If CustomerCookie.IsCustomerDecline Then
    	chkCustomerDecline.Checked = True
    End If
    If CustomerCookie.IsSurrenderCredentials <> const_DefaultValForSurrCred Then
    	If CBool(CustomerCookie.IsSurrenderCredentials) OrElse CBool(optlstVerification.YesSelected) Then
    		optlstVerification.SelectedValue = CStr(1)
    	Else
    		optlstVerification.SelectedValue = CStr(0)
    	End If
    End If

SavePage()

    Dim blnCSRVerify As Boolean = False
    Dim blnCustomerDecline As Boolean = False
    blnCSRVerify = CBool(If(chkCSRVerify.Checked = True, 1, 0))
    blnCustomerDecline = CBool(If(chkCustomerDecline.Checked = True, 1, 0))
        
    Dim objContext As HttpContext = HttpContext.Current
        
    Dim objCustomerCookie As HttpCookie = objContext.Request.Cookies("StarsCustomer")
                        
    If blnCSRVerify Then
    	objCustomerCookie.Values.Set("CSR_Verify", CStr(blnCSRVerify))
    End If
    If blnCustomerDecline Then
    	objCustomerCookie.Values.Set("CustomerDecline", CStr(blnCustomerDecline))
    End If
        
    objCustomerCookie.Values.Set("SurrenderCredentials", optlstVerification.SelectedValue.ToString)
      
    objContext.Response.Cookies.Add(objCustomerCookie)

AnswerRe: How to clear or reset cookie values in vb.net Pin
Gunaseelan K27-Jul-17 20:30
Gunaseelan K27-Jul-17 20:30 
QuestionError Pin
Member 132899082-Jul-17 22:02
Member 132899082-Jul-17 22:02 
AnswerRe: Error Pin
Richard Deeming3-Jul-17 1:42
mveRichard Deeming3-Jul-17 1:42 
GeneralRe: Error Pin
Member 132899083-Jul-17 7:12
Member 132899083-Jul-17 7:12 
GeneralRe: Error Pin
Richard Deeming3-Jul-17 7:36
mveRichard Deeming3-Jul-17 7:36 
QuestionError with large byte arrays in VB6 Pin
Member 1328661130-Jun-17 1:28
Member 1328661130-Jun-17 1:28 
AnswerRe: Error with large byte arrays in VB6 Pin
Eddy Vluggen30-Jun-17 1:55
professionalEddy Vluggen30-Jun-17 1:55 
SuggestionRe: Error with large byte arrays in VB6 Pin
Richard Deeming30-Jun-17 1:57
mveRichard Deeming30-Jun-17 1:57 
Questionhow to add check box in datagrid in VB 6.0 Pin
Nelson Dsilva28-Jun-17 9:35
Nelson Dsilva28-Jun-17 9:35 
AnswerRe: how to add check box in datagrid in VB 6.0 Pin
Eddy Vluggen28-Jun-17 23:12
professionalEddy Vluggen28-Jun-17 23:12 
QuestionCoding a simple grade system Pin
Member 1326288119-Jun-17 20:08
Member 1326288119-Jun-17 20:08 
AnswerRe: Coding a simple grade system Pin
Richard MacCutchan19-Jun-17 21:09
mveRichard MacCutchan19-Jun-17 21:09 
QuestionVisual Studio 2010 crashes after latest Windows 10 Update Pin
Member 811464319-Jun-17 2:31
Member 811464319-Jun-17 2:31 
Questionrun-time error Pin
Member 1326503717-Jun-17 10:36
Member 1326503717-Jun-17 10:36 
AnswerRe: run-time error Pin
Mycroft Holmes17-Jun-17 16:53
professionalMycroft Holmes17-Jun-17 16:53 
AnswerRe: run-time error Pin
Richard MacCutchan17-Jun-17 20:26
mveRichard MacCutchan17-Jun-17 20:26 
GeneralIs it possible to hook into a running vb6 ide program after you hit <F5> and use an compiled vb6 exe external program to access the running ide program and manipulate it. Pin
soundminded13-Jun-17 14:31
soundminded13-Jun-17 14:31 

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.