Question: I have a styled file Upload laying on top the vanilla asp.net fileupload control, which is hidden.
If the user comes back to edit his chosen files, there are buttons to view the file or delete it from the dataset; In addition the control is hidden.
However the fake fileupload remains visible.
I have written a custom method to call Jquery from Code behind, but I'm lacking the Jquery skills to hide this fake control and show it on demand.

The task is: Hide the fileupload which is contained in a and show it again if the user clicks on "remove file" & set the control to visible again, so he can choose another file.

Kind regards.

edit: the c# Method containing the Jquery code looks like this right now:

```
runjQueryCode(@"$(document).ready(function() {
                 $('#" + Btn_removeFile.ClientID + @"').click(function(){
                    $('.fakefile').show();
                    $('"+ fu.ClientID +@"').show();
                  });
                    $('.fakefile').hide();
                    $('"+ fu.ClientID +@"').hide();
                  });");

```

Answer: 
you need to assign `android:screenOrientation="landscape"` in AndroidManifest.xml, look at following code, 

```
<application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="landscape" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

```
Your activity is relaunched (onCreate is called) every time the activity changes orientation, to avoid this you can set in your androidmanifest android:configChanges="orientation" to the activity.