Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

This exception occur when we try to redirect a page.

Solution:

To solve this problem we should use second argument of Response.Redirect that will stop current page’s execution and move to next page. Sencond argument should be false.

Full solution is below

Android SharedPreferences

Introduction

Preferences are generly a little storage and typically name value pairs. They can be stored as “Shared Preferences” across various activities in an application. Or it can be something that needs to be stored specific to an activity.Here you will see the useage of SharedPreferences.