# AspNetPanel

To use the `AspNetPanel` control, simply set the `PageSource` property to the location of an existing .aspx document in the project.

{% hint style="info" %}
For a full list of properties, methods and events see the [API documentation.](http://docs.wisej.com/api)
{% endhint %}

## Features

### Page Source

Any ASP.NET or MVC page source can be shown in the `AspNetPanel` control.

Here's a sample page that converts text from lowercase to uppercase.

![ASP.NET sample page showing text conversion interface](/files/-MjVIdvn6WVkcNy6yoUT)

The corresponding code in the `PageSource`:

{% tabs %}
{% tab title="ASP.NET (C#)" %}

```aspnet
<!-- directives -->
<% @Page Language="C#" %>

<!-- code section -->
<script runat="server">

   private void convertoupper(object sender, EventArgs e)
   {
      string str = mytext.Value;
      changed_text.InnerHtml = str.ToUpper();
   }
</script>

<!-- Layout -->
<html>
   <head> 
      <title> Change to Upper Case </title> 
   </head>
   
   <body>
      <h3> Conversion to Upper Case </h3>
      
      <form runat="server">
         <input runat="server" id="mytext" type="text" />
         <input runat="server" id="button1" type="submit" value="Enter..." OnServerClick="convertoupper"/>
         
         <hr />
         <h3> Results: </h3>
         <span runat="server" id="changed_text" />
      </form>
      
   </body>
   
</html>
```

{% endtab %}
{% endtabs %}

## Advanced

### JavaScript Widget

| Item             | Description                                                                                                         |
| ---------------- | ------------------------------------------------------------------------------------------------------------------- |
| Class name       | "wisej.web.IFrame"                                                                                                  |
| Theme appearance | "iframe", see [Themes](https://docs.wisej.com/theme-builder/theme-elements/elements).                               |
| Child components | "frame" is the iframe element. See [JavaScript](/docs/concepts/javascript-object-model.md).                         |
| Source Code      | [https://github.com/iceteagroup/wisej-js](https://github.com/iceteagroup/wisej-js/blob/master/wisej.web.TextBox.js) |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/docs/controls/content/aspnetpanel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
