Question: i want to show only the data that contains the cardnumber that i have entered in form1. my table looks like this

```
ID      cardNO     type     amount           date
1       1234       W    100.0000    08/03/2012 17:45:09
4       3455       W    100.0000    08/03/2012 22:10:58
5       5454       W    5.0000          09/03/2012 21:36:45ou

```

so if i entered 1234 is would only show data containing that cardNo
for example

```
ID      cardNO     type     amount           date
1       1234       W       100.0000       08/03/2012 17:45:09

```

i am passing the data from form1 with a variable called show2.cardNO

Am not sure how i can achieve this in visual C# 

i want to show this in a datagrid

Answer: 
If your `Activity` is not in the foreground, then it either has never been created, its in the *Paused* state, or in the *Stopped* state. You won't be able to have it render itself in the background during any of those times. You can read more about that [here](http://developer.android.com/guide/topics/fundamentals/activities.html#Lifecycle) which contains the following flow chart of an `Activity's` lifecycle:

![Activity Lifecycle Flowchart](https://i.stack.imgur.com/pnC5e.png)

There are a variety of ways to retrieve data through a background thread. Would it be possible to download the page as a locally cached file, so the DataPage only needs to render the HTML/CSS/JavaScript when it opens? If the rendering page is the bottleneck, this won't help you much though.
You can't have an Activity that runs in the background, that's what a `Service` is for. I'd recommend that when your "DataPage" Activity is started, you default the visibility of the WebView to `gone` and display a `ProgressBar` (loading spinner) to indicate that something is happening.

You can use the `setWebViewClient` method on your WebView to provide a custom client that overrides the `onPageFinished` method. When that callback method is triggered you can hide the progress bar (spinner) and show your WebView.

Something like this:

```
WebView view = findViewById(R.id.my_webview);
view.setWebViewClient(new WebViewClient() {
    @Override
    public void onPageFinished(WebView view, String url) {
        super.onPageFinished(view, url);
        view.setVisibility(View.VISIBLE);
    }
});
view.loadUrl("http://mydomain.com/");

```