Click here to Skip to main content
15,904,935 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAccess VBA - Return Object From Function Pin
Kevin Marois20-Jul-17 20:13
professionalKevin Marois20-Jul-17 20:13 
SuggestionRe: Access VBA - Return Object From Function Pin
Richard MacCutchan20-Jul-17 20:37
mveRichard MacCutchan20-Jul-17 20:37 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 5:10
professionalKevin Marois21-Jul-17 5:10 
GeneralRe: Access VBA - Return Object From Function Pin
Richard MacCutchan21-Jul-17 6:11
mveRichard MacCutchan21-Jul-17 6:11 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 6:14
professionalKevin Marois21-Jul-17 6:14 
GeneralRe: Access VBA - Return Object From Function Pin
Richard MacCutchan21-Jul-17 6:34
mveRichard MacCutchan21-Jul-17 6:34 
GeneralRe: Access VBA - Return Object From Function Pin
Dave Kreskowiak21-Jul-17 7:02
mveDave Kreskowiak21-Jul-17 7:02 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 7:29
professionalKevin Marois21-Jul-17 7:29 
GeneralRe: Access VBA - Return Object From Function Pin
Dave Kreskowiak21-Jul-17 8:04
mveDave Kreskowiak21-Jul-17 8:04 
JokeRe: Access VBA - Return Object From Function Pin
Mycroft Holmes21-Jul-17 14:06
professionalMycroft Holmes21-Jul-17 14:06 
QuestionPrintQueue error Pin
Otekpo Emmanuel19-Jul-17 8:19
Otekpo Emmanuel19-Jul-17 8:19 
AnswerRe: PrintQueue error Pin
Richard Deeming19-Jul-17 9:06
mveRichard Deeming19-Jul-17 9:06 
GeneralRe: PrintQueue error Pin
Otekpo Emmanuel19-Jul-17 10:35
Otekpo Emmanuel19-Jul-17 10:35 
GeneralRe: PrintQueue error Pin
Richard Deeming19-Jul-17 11:14
mveRichard Deeming19-Jul-17 11:14 
QuestionStoring DICOM files into MSSQLSERVER database Pin
Member 1240668218-Jul-17 7:14
Member 1240668218-Jul-17 7:14 
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 

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.